Bug 497743 - gnome-power-manager sleeps after waking
Summary: gnome-power-manager sleeps after waking
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-power-manager
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 507547 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-26 19:25 UTC by Matthew Garrett
Modified: 2013-01-10 07:47 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-08-20 12:34:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Workaround patch (648 bytes, patch)
2009-04-26 19:39 UTC, Matthew Garrett
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.