You are not logged in.

#1 2010-06-01 20:07:28

Noble
Member
Registered: 2010-06-01
Posts: 63

[SOLVED] acpid + pm-suspend = problems

Having a problem that I have to wake my computer twice when it goes into suspend.

acpid and handler.sh is set to react on laptop lid close by running pm-suspend.

Openbox. Not using HAL.

Sometimes the fan goes at 100% when waking up as well.

Last edited by Noble (2010-06-04 10:07:42)


Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin

Offline

#2 2010-06-02 08:02:03

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: [SOLVED] acpid + pm-suspend = problems

Is there any distinction between the lid close and open events? I would assume that handler.sh reacts to lid open the same way as it does for lid close. Have you tried logging the 4 arguments of handler.sh and looked how they differ for the two events? Do this more than once, because sometimes handler.sh gets a simple counter as an argument, which is not well suited to distinguish the two events.

Maybe handler.sh has to look into the status file of your lid -- something like /proc/acpi/button/lid/LID/state.

Offline

#3 2010-06-02 18:32:43

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: [SOLVED] acpid + pm-suspend = problems

Hi,

take a look at this article. It's for the NC10 but maybe it helps you.

Offline

#4 2010-06-04 10:04:57

Noble
Member
Registered: 2010-06-01
Posts: 63

Re: [SOLVED] acpid + pm-suspend = problems

That solved the multiple wakeup issue smile !

Here is the code if somebody else needs it (had to modify a tad), its for a HP ProBook 5310m

    if [ `/bin/awk '{print $2}' /proc/acpi/button/lid/LID/state` = closed ]; then
        /usr/sbin/pm-suspend
    fi

The fan issue is still there though hmm


Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin

Offline

Board footer

Powered by FluxBB