! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
suspend to ram works ok when used with the menu, not when laptop lid is closed
Status:
CLOSED: INVALID
Product:
Xfce4-power-manager
Component:
General

Comments

Description Jérémy Lal 2009-07-18 21:51:45 CEST
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.
Comment 1 Ali Abdallah editbugs 2009-07-18 22:22:49 CEST
(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.
Comment 2 Jérémy Lal 2009-07-18 22:40:30 CEST
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...
Comment 3 Jérémy Lal 2009-07-18 23:14:38 CEST
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.
Comment 4 Ali Abdallah editbugs 2009-07-18 23:26:32 CEST
(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.
Comment 5 Jérémy Lal 2009-07-19 08:34:31 CEST
>> 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
Comment 6 Jérémy Lal 2009-07-19 12:46:22 CEST
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.

Bug #5584

Reported by:
Jérémy Lal
Reported on: 2009-07-18
Last modified on: 2009-07-19

People

Assignee:
Ali Abdallah
CC List:
0 users

Version

Attachments

Additional information