You are not logged in.
Hello fellow archers, I'm following the acpid wiki to suspend on pressing the sleep/suspend button and for some reason pm-suspend is not executed. Here are the relevant bits:
acpi_listen
button/suspend SUSP 00000080 00000000 /etc/acpi/handler.sh
button/sleep)
case "$2" in
SUSP) #echo -n mem >/sys/power/state ;;
/usr/sbin/pm-suspend ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;tail -f /var/log/messages.log
localhost xxxx: ACPI group/action undefined: button/suspend / SUSPIt's getting logged but nothing happens.
Any help is appreciated
Last edited by snoxu (2012-04-28 03:52:31)
Offline
Try this.
Change the line:
button/sleep)in your handler.sh file to:
button/suspend)Offline
Thanks that fixed it. I think I actually tried it before but I couldn't get it to work for some reason.
A bit strange that it was getting logged without the fix.
Last edited by snoxu (2012-04-28 03:55:43)
Offline
I don't think it was getting logged like you think.
localhost xxxx: ACPI group/action undefined: button/suspend / SUSP
^^^^^
The 'group/' is not in the snippet you provided. It must have been generated by some other part of your script.
Offline