You are not logged in.

#1 2012-04-27 21:10:31

snoxu
Member
Registered: 2010-01-24
Posts: 141

[Solved] Can't pm-suspend via acpid

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 / SUSP

It's getting logged but nothing happens.

Any help is appreciated

Last edited by snoxu (2012-04-28 03:52:31)

Offline

#2 2012-04-28 01:21:33

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: [Solved] Can't pm-suspend via acpid

Try this.

Change the line:

button/sleep)

in your handler.sh file to:

button/suspend)

Offline

#3 2012-04-28 03:53:27

snoxu
Member
Registered: 2010-01-24
Posts: 141

Re: [Solved] Can't pm-suspend via acpid

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

#4 2012-04-28 04:26:27

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: [Solved] Can't pm-suspend via acpid

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

Board footer

Powered by FluxBB