diff options
author | Karel Kočí <karel.koci@nic.cz> | 2018-08-09 13:08:29 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2018-08-09 13:08:29 +0200 |
commit | adaf5f3c258d5875fd01aa47948204e0cb2420b5 (patch) | |
tree | 7561fe6ed3a059f36661b955b1c67b0db1c05e18 /system/etc/acpi | |
parent | c6d61873f998e8eda3d09e98fb5a2f80f3336de9 (diff) | |
download | myconfigs-adaf5f3c258d5875fd01aa47948204e0cb2420b5.tar.gz myconfigs-adaf5f3c258d5875fd01aa47948204e0cb2420b5.tar.bz2 myconfigs-adaf5f3c258d5875fd01aa47948204e0cb2420b5.zip |
Drop part of system_install
Diffstat (limited to 'system/etc/acpi')
-rwxr-xr-x | system/etc/acpi/handler.sh | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/system/etc/acpi/handler.sh b/system/etc/acpi/handler.sh deleted file mode 100755 index 1cc28ff..0000000 --- a/system/etc/acpi/handler.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash -# Default acpi script that takes an entry for all actions - -case "$1" in - button/power) - case "$2" in - PBTN|PWRF) - logger 'PowerButton pressed' - ;; - *) - logger "ACPI action undefined: $2" - ;; - esac - ;; - button/sleep) - case "$2" in - SLPB|SBTN) - pm-suspend - logger 'SuspendButton pressed' - ;; - *) - logger "ACPI action undefined: $2" - ;; - esac - ;; - ac_adapter) - case "$2" in - AC|ACAD|ADP0) - case "$4" in - 00000000) - logger 'AC unpluged' - echo 1000 > /sys/class/backlight/intel_backlight/brightness - ;; - 00000001) - logger 'AC pluged' - echo 5273 > /sys/class/backlight/intel_backlight/brightness - ;; - esac - ;; - *) - logger "ACPI action undefined: $2" - ;; - esac - ;; - battery) - case "$2" in - BAT0) - case "$4" in - 00000000) - logger 'Battery online' - ;; - 00000001) - logger 'Battery offline' - ;; - esac - ;; - CPU0) - ;; - *) logger "ACPI action undefined: $2" ;; - esac - ;; - button/lid) - case "$3" in - close) - logger 'LID closed' - pm-suspend - ;; - open) - logger 'LID opened' - ;; - *) - logger "ACPI action undefined: $3" - ;; - esac - ;; - *) - logger "ACPI group/action undefined: $1 / $2" - ;; -esac |