mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Handle PMU power button in Jessie
This commit is contained in:
5
config/71-axp-power-button.rules
Normal file
5
config/71-axp-power-button.rules
Normal file
@@ -0,0 +1,5 @@
|
||||
# Handle AXP power button with systemd
|
||||
ACTION=="remove", GOTO="power_switch_end"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="axp20x-pek", TAG+="power-switch"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ATTRS{name}=="axp[12][890]-supplyer", TAG+="power-switch"
|
||||
LABEL="power_switch_end"
|
||||
@@ -93,6 +93,10 @@ jessie)
|
||||
mkdir -p $DEST/cache/sdcard/etc/systemd/system/systemd-modules-load.service.d/
|
||||
echo "[Service]" > $DEST/cache/sdcard/etc/systemd/system/systemd-modules-load.service.d/10-timeout.conf
|
||||
echo "TimeoutStopSec=10" >> $DEST/cache/sdcard/etc/systemd/system/systemd-modules-load.service.d/10-timeout.conf
|
||||
|
||||
# handle PMU power button
|
||||
mkdir -p $DEST/cache/sdcard/etc/udev/rules.d/
|
||||
cp $SRC/lib/config/71-axp-power-button.rules $DEST/cache/sdcard/etc/udev/rules.d/
|
||||
;;
|
||||
|
||||
# Ubuntu Trusty
|
||||
|
||||
Reference in New Issue
Block a user