2 # /etc/acpid/actions/button.sh
3 # £ukasz Pawelczyk <havner@pld-linux.org>
5 # Detect buttons pressed and take appropriate actions.
14 logger "acpid: $1 action is not defined."
17 # put computer to sleep (not all machines have sleep button)
18 #echo mem > /sys/power/state
22 logger "acpid: $1 action is not defined."
23 # put computer to sleep
24 #echo mem > /sys/power/state
28 logger "acpid: $1 action is not defined."
29 # put computer to sleep
30 #echo mem > /sys/power/state
32 # if you want to specify separate commands for
33 # lid open/close uncomment this section:
35 #ODD=`echo $4 | grep "[13579bdf]$"`
37 # logger "acpid: lid close action is not defined"
39 # logger "acpid: lid open action is not defined"
43 logger "acpid: $1 action is not defined."