Bug 497743

Summary: gnome-power-manager sleeps after waking
Product: [Fedora] Fedora Reporter: Matthew Garrett <mjg>
Component: gnome-power-managerAssignee: Richard Hughes <richard>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: james, jfeeney, leo, mschmidt, repli2dev, rhughes, richard, simon, will
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-20 12:34:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Workaround patch none

Description Matthew Garrett 2009-04-26 19:25:56 UTC
Hitting the sleep button causes g-p-m to initiate sleep. It's blocked while doing so. This means that the hal button press event isn't delivered until after resume, which means too much time has passed for them to be flagged as duplicate events. This causes a further sleep cycle.

Comment 1 Matthew Garrett 2009-04-26 19:39:26 UTC
Created attachment 341367 [details]
Workaround patch

This patch simply skips sending the hal event if it's a button event rather than a lid event. Probably not suitable for upstream, but potentially a decent workaround for F-11? Tested with no double suspends and suspend on lid close still working.

Comment 2 Bug Zapper 2009-06-09 14:37:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Michal Schmidt 2009-06-25 11:28:40 UTC
*** Bug 507547 has been marked as a duplicate of this bug. ***

Comment 4 Michal Schmidt 2009-06-25 11:30:26 UTC
The patch has been successfully tested by the two reporters of bug 507547. Please consider releasing an update with it.

Comment 5 Will Kemp 2009-07-20 20:36:46 UTC
I got rid of this problem by installing the patched gnome power manager (linked to in bug 507547). But it's come back again with the latest update.

Comment 6 Jan Drábek 2009-07-21 06:59:54 UTC
I am facing same problem after latest update.

Comment 7 Richard Hughes 2009-08-20 12:34:07 UTC
Ooops.

* Mon Aug 20 2009 Richard Hughes  <rhughes> - 2.26.4-3
- Actually apply the patch in #497743

See http://koji.fedoraproject.org/koji/taskinfo?taskID=1617346 for the build.