summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2020-02-13 13:33:48 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2020-02-13 13:33:48 -0800
commit4bdffa5fff83ec6f9260b36525f54ee63b2852e5 (patch)
tree57851b0c5ba6af3dd0848d874cdc42ad6599b447
parentChecksums (diff)
downloadpinebookpro-post-install-4bdffa5fff83ec6f9260b36525f54ee63b2852e5.tar.xz
install file, microphone commmits
-rw-r--r--PKGBUILD11
-rw-r--r--asound.state4
-rw-r--r--pinebookpro-post-install.install8
3 files changed, 13 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 482539f..b258398 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,26 +5,21 @@
# Not in an official repo and I use it
pkgname=pinebookpro-post-install
-pkgver=20200130
+pkgver=20200213
pkgrel=1
pkgdesc="Manjaro ARM's Pinebook Pro install files"
arch=('any')
url="https://www.manjaro.org"
-#depends=('pulseaudio-alsa')
conflicts=('pinebook-post-install')
license=('GPL')
source=("10-usb-kbd.hwdb"
"asound.state")
-# "hciattach"
-# "sdio-hciattach.service")
+install=${pkgname}.install
b2sums=('c321247196a8194e944ac311ec2f0d8186c8d5eaf0af409f36ac2cc7d0c5a9869e1bb87aa69e06d1412a4e2ed4b6821fe2320c499b35c1000678b1ff8df7a996'
- '003f3f031ac92a9cb1aac0795545af0686868fbcc88ccb08f7fef27bd8cc919ed06516b1e1e8180ed58717059c31ea74b7ebed9736393d70be441c3114677945')
+ 'ae363d3f5e3222a7e3574920e5d340f439a5394f7f3bf2ddf5be74c43b6faa9e8ec5f296d2ac57718e8bda7b7ddbc3583115247de1719ed8ea6ab598d6eaedf3')
package() {
- #install -Dm755 "${srcdir}/hciattach" -t "${pkgdir}/usr/bin/"
- #install -Dm644 "${srcdir}/sdio-hciattach.service" -t "${pkgdir}/usr/lib/systemd/system/"
install -Dm644 "${srcdir}/10-usb-kbd.hwdb" -t "${pkgdir}/etc/udev/hwdb.d/"
install -Dm644 "${srcdir}/asound.state" -t "${pkgdir}/var/lib/alsa/"
- #mkdir -p "${pkgdir}/usr/lib/firmware/"
ln -s "/usr/lib/firmware" "${pkgdir}/etc/firmware"
}
diff --git a/asound.state b/asound.state
index 9f3ba7e..690c0f1 100644
--- a/asound.state
+++ b/asound.state
@@ -158,7 +158,7 @@ state.rockchipes8316c {
control.14 {
iface MIXER
name 'ADC Capture Volume'
- value 0
+ value 192
comment {
access 'read write'
type INTEGER
@@ -166,7 +166,7 @@ state.rockchipes8316c {
range '0 - 192'
dbmin -9999999
dbmax 0
- dbvalue.0 -9999999
+ dbvalue.0 0
}
}
control.15 {
diff --git a/pinebookpro-post-install.install b/pinebookpro-post-install.install
new file mode 100644
index 0000000..5d1f394
--- /dev/null
+++ b/pinebookpro-post-install.install
@@ -0,0 +1,8 @@
+ post_install() {
+ # Edit the sleep.conf file
+ sed -i s/"#SuspendState=mem standby freeze"/SuspendState=freeze/g /etc/systemd/sleep.conf
+}
+
+ post_upgrade() {
+ post_install
+}