Handle PMU power button in Jessie

This commit is contained in:
zador-blood-stained
2016-01-31 15:05:17 +03:00
parent c7055e8798
commit 9d8d0d4b23
2 changed files with 11 additions and 2 deletions

View 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"

View File

@@ -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