You are not logged in.
Pages: 1
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
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
Hi,
take a look at this article. It's for the NC10 but maybe it helps you.
Offline
That solved the multiple wakeup issue !
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
Those who give up their liberty for security,
neither deserve liberty nor freedom,
and they will lose both.
- Benjamin Franklin
Offline
Pages: 1