Bug 184586

Summary: System suspends twice if lid closed before suspend-to-ram selected from menu completes
Product: [Frameworks and Libraries] solid Reporter: Mackenzie Morgan <macoafi>
Component: powermanagement-daemonAssignee: Dario Freddi <drf>
Status: RESOLVED FIXED    
Severity: normal CC: oren
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mackenzie Morgan 2009-02-17 04:36:49 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

Steps:
1. In Power Devil, choose to suspend to ram when lid is closed on battery power
2. Unplug so running on battery power
3. Choose suspend to ram from the KMenu
4. Close the lid before suspending completes

What happens:
I press the spacebar, and it resumes. As soon as it finishes resuming, it suspends again.  I have to press the spacebar again to make it re-resume.

What should happen:
Only one suspend event should be queued.

This involves both HAL and the power manager.  See https://bugs.edge.launchpad.net/ubuntu/+source/acpi-support/+bug/306310 for more information.  That bug shows that it has already been fixed in HAL and gnome-power-manager for Ubuntu, but I can attest that the problem persists if you use Power Devil instead of gnome-power-manager.
Comment 1 Oren Held 2009-09-05 20:40:20 UTC
I used to have this problem, then I've found that I've had both KDE3 power manager (forgot its name)  and KDE 4 PowerDevil running.

Try to kill/uninstall the old kde3 power manager.

I guess it's an upgrade problem.
Comment 2 Mackenzie Morgan 2009-09-07 07:32:35 UTC
KDE3 has never been installed on this machine, so...no, not an upgrade bug.
Comment 3 Dario Freddi 2009-12-01 17:24:36 UTC
This bug should actually be fixed, since now powerdevil holds a lock whenever starting a suspend action. Please reopen if you're still able to reproduce it with 4.3+