Created
November 22, 2013 14:33
-
-
Save nk23x/7600782 to your computer and use it in GitHub Desktop.
press power button = suspend to disk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## /etc/acpi/acpi_handler.sh | |
IFS=${IFS}/ | |
set $@ | |
case "$1" in | |
button) | |
case "$2" in | |
power ) echo -n disk > /sys/power/state | |
;; | |
*) logger "ACPI action $2 is not defined" | |
;; | |
esac | |
;; | |
*) | |
logger "ACPI group $1 / action $2 is not defined" | |
;; | |
esac | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment