Hibernation on laptop lid close action.
I'm running pekwm window manager. I want hibernate the laptop when I close the lid. I googled and found a linuxquestions.org thread that gave instructions, which I followed. They were to create a file "/etc/acpi/events/lid" with the following content:
event=button/lid
action=/usr/sbin/pm-hibernate
Now when I close the lid, it does hibernate. But when I resume, the first time it will shut down again after a few seconds. I have to start it up a second time to get it to resume properly. It does resume to where I left it, but I have to start it twice. Does anyone know why it's doing this?
|