if i close and reopen the lid, the first time it works, the second time it doesn't (the laptop wakes up and nothing happens, display stays shut). With xfce4-power-manager i can use the menu to suspend to ram, and it works any number of times. The settings are set to "suspend to ram" when lid is closed. I guess some other software takes control of the lid switch event before xfce4-power-manager does. I uninstalled acpi-support (acpid) and hibernate, but the lid switch's suspend still crashes the second time. I'm using debian unstable.
(In reply to comment #0) > if i close and reopen the lid, the first time it works, the second time it > doesn't (the laptop wakes up and nothing happens, display stays shut). > With xfce4-power-manager i can use the menu to suspend to ram, and it works any > number of times. It is weired that your system suspends okay when using the menu any number of times. You said "display stays shut" you mean you aren't able to use your computer anymore after second suspend on lid close, you have to restart it right? Same method from both the menu and on lid event is used to suspend the computer, so i don't think this is related in any sense to the power manager, but i'm not able to think of the reason of this problem, something is crashing on next lid event after suspend (of course you tried to generate two lid close events with the power manager configured to do nothing!), you can try to re-port a bug against Debian and see what they have, keep me informed and don't hesitate to ask if you have a question or you think xfce4-power-manager is causing this problem.
thanks for your reply. yes, on the second lid close, the laptop goes in a weird state : display is off, fan is off, power button is on, and nothing happens. I bet CPU is off, too. I have to force power off then start it again. I just "tried to generate two lid close events with the power manager configured to do nothing" : the result is that nothing happens, no suspend to ram, nothing. That's confusing...
So i tested more, and found this : 1-WORKS : suspend from menu + resume with power button + suspend from menu 2-WORKS : suspend by closing lid + resume with power button + suspend by closing lid 3-BUGGY : suspend from menu + close then open lid + suspend from menu for the second one i had to use a spoon to push the power button without opening the lid too much :) so the bug is triggered when the laptop wakes up by opening the lid, and only in that case. anyway, that shows the bug probably doesn't come from power-manager.
(In reply to comment #3) > So i tested more, and found this : > 1-WORKS : suspend from menu + resume with power button + suspend from menu > 2-WORKS : suspend by closing lid + resume with power button + suspend by > closing lid At the beginning i thought from your posts that if you keep suspending the computer on lid events it crashes the second time. > 3-BUGGY : suspend from menu + close then open lid + suspend from menu what about 4 : suspend from menu + close then open lid + suspend by closing lid is also buggy? > so the bug is triggered when the laptop wakes up by opening the lid, and only > in that case. Your laptop automatically wakes up from suspend if you open the lid? or you have to open the lid then press any key? > > anyway, that shows the bug probably doesn't come from power-manager. Yes, i will close this bug as invalid. Thanks.
>> So i tested more, and found this : >> 1-WORKS : suspend from menu + resume with power button + suspend from menu >> 2-WORKS : suspend by closing lid + resume with power button + suspend by >> closing lid > > At the beginning i thought from your posts that if you keep suspending the > computer on lid events it crashes the second time. > >> 3-BUGGY : suspend from menu + close then open lid + suspend from menu > > what about > 4 : suspend from menu + close then open lid + suspend by closing lid > > is also buggy? yes > >> so the bug is triggered when the laptop wakes up by opening the lid, and only >> in that case. > > Your laptop automatically wakes up from suspend if you open the lid? yes > or you > have to open the lid then press any key? no > >> >> anyway, that shows the bug probably doesn't come from power-manager. > > Yes, i will close this bug as invalid. thanks
i ended up resolving this bug by doing : cat /proc/acpi/wakeup Device S-state Status Sysfs node SLPB S3 *enabled LID S3 *enabled ... echo " LID" > /proc/acpi/wakeup then opening the lid doesn't wake up, and waking up using power button does not crash the laptop.