device-purism-librem5: add udev rule for toggling wifi PM on charger change (MR 1863)
This commit is contained in:
parent
6606d81688
commit
6db0e21df7
2 changed files with 8 additions and 1 deletions
2
device/community/device-purism-librem5/70-wifi-pm.rules
Normal file
2
device/community/device-purism-librem5/70-wifi-pm.rules
Normal file
|
@ -0,0 +1,2 @@
|
|||
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_TYPE}=="USB", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="/usr/sbin/iw wlan0 set power_save off"
|
||||
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_TYPE}=="USB", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="/usr/sbin/iw wlan0 set power_save on"
|
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
||||
pkgname=device-purism-librem5
|
||||
pkgdesc="Purism Librem 5 Phone"
|
||||
pkgver=1.9
|
||||
pkgver=1.10
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
|
@ -11,6 +11,7 @@ options="!check !archcheck"
|
|||
depends="
|
||||
alsa-ucm-conf
|
||||
gpsd
|
||||
iw
|
||||
linux-purism-librem5
|
||||
mesa-dri-gallium
|
||||
mesa-egl
|
||||
|
@ -26,6 +27,7 @@ source="
|
|||
00-kwin.sh
|
||||
00-mesa.sh
|
||||
70-gnss.rules
|
||||
70-wifi-pm.rules
|
||||
77-mm-broadmobi-port-types.rules
|
||||
deviceinfo
|
||||
flash_script.lst
|
||||
|
@ -87,6 +89,8 @@ package() {
|
|||
install -D -m644 "$_confdir"/debian/librem5-base-defaults.librem5-pm.udev \
|
||||
"$pkgdir"/usr/lib/udev/rules.d/librem5-pm.rules
|
||||
install -D -m644 "$srcdir"/70-gnss.rules "$pkgdir"/usr/lib/udev/rules.d/70-gnss.rules
|
||||
# Wifi / PM
|
||||
install -Dm644 "$srcdir"/70-wifi-pm.rules -t "$pkgdir"/usr/lib/udev/rules.d/
|
||||
|
||||
# install audio config files from upstream Purism
|
||||
mkdir -p "$pkgdir"/usr/share/alsa/ucm
|
||||
|
@ -98,6 +102,7 @@ sha512sums="d23e23a48bdea8df65b7df2475caa5b85c8e999c7dff1e48e359a8fb9166019c4c60
|
|||
685ec71484a932c59f83f1039d4d18a010a5849342e96d9e15ae8ce64374aac15073f9c51d7d9f270c60e70d2ea15c685b8f528cdc40f991b093b9227cba6a48 00-kwin.sh
|
||||
9b4ecf6692db6d291799b2ebcdd7f3ceba52d657c01b40a15f4d819f1f9d2f0576bfcf94b1889da767d1757f3af86f4056160b9b31b1ecab0517acfb958f22a9 00-mesa.sh
|
||||
be0cf9f9e37c33d526fdf5fb61de1b42b3bb9309faf1feb0db51fa9639c3c0b35608977c898130ff60ebf2e8081ac36799b96c748b7efa9dcef7501753bc4890 70-gnss.rules
|
||||
8b6fa7b12c15f439c561901f3ffe24a1ef2a0c343401c0a79281060854ab29e08a1fb5e7adae8684b12aa9f535ed99e2dad993dce9724822cb0fbf2497dd86e5 70-wifi-pm.rules
|
||||
00355d9ad085a77e157f3c62eb4f1bcac2823d3b341e34d1128edbfb1444fba83e8eacd263ea61da9f6d853f1328ab7fbe5ea63bd08c8a1bc9b8eaf44ae1f1c6 77-mm-broadmobi-port-types.rules
|
||||
aefd60a66454529fe80852ed9fffc89babda10937ba1c805379bfbe0e4ea6cf3276409cbb5570975e0ff14d813adcf3e9664a904f93c3e7ac8c408bc5473065e deviceinfo
|
||||
d033df2b9125622c946af67dad83070473c86937b5825f57ad272c9145b594071dd6913949127803c45af4ea3226526551718d40739f9f1ee4bfe6446e62c856 flash_script.lst
|
||||
|
|
Loading…
Reference in a new issue