Bug 497262 - better lid state handling
Summary: better lid state handling
Keywords:
Status: CLOSED WONTFIX
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:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-23 04:02 UTC by Matthias Clasen
Modified: 2010-06-28 12:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-28 12:10:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matthias Clasen 2009-04-23 04:02:15 UTC
If I log out and quickly close my lid, the in-session gpm is already gone, so doesn't pick up the lid close, and by the time the gpm in the login session becomes active, the lid is already closed. Result: the lid is closed, and the machine is not suspending. Briefly opening and closing the lid makes gpm pick up the lid change, and it suspends. 

I think gpm should evualuate the lid state when it becomes active, and react accordingly when it is found to be closed.

Comment 1 Richard Hughes 2009-04-23 09:00:21 UTC
commit 2afc1080ed12aba7cee0d6bf75b5a25363449c1d
Author: Richard Hughes <richard>
Date:   Thu Apr 23 09:58:30 2009 +0100

    Do the lid policy action on active-change. Fixes rh#497262

Could you give git master a go please, and tell me if it fixes this bug. Thanks.

Comment 2 Matthias Clasen 2009-04-23 15:01:43 UTC
With git master, gpm doesn't seem to pick up _any_ lid state or lid changes. I must be missing something...

Comment 3 Richard Hughes 2009-04-24 09:03:03 UTC
Compile with --enable-legacy-buttons

Comment 4 Matthias Clasen 2009-04-25 03:11:05 UTC
Ok, tested as follows:

switch to vt2
run 'sleep 10; chvt 1'
close lid

when the vt switch happened, gpm did suspend my laptop

success, I'd say.

Comment 5 Bug Zapper 2009-06-09 14:26:54 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 6 Richard Hughes 2009-08-20 12:25:09 UTC
Still an issue?

Comment 7 Martin Pitt 2010-03-17 11:59:52 UTC
I think this needs some more thought. There are two cases here: (1) lid close happens while gdm session is already up, and (2) lid close happens in between user session already shut down and gdm session not up yet.

That gpm commit should not influence case (2) here, which was the one in the original bug description. 

Comment 4 is not a good test for case (1) here, I think, since it works under different conditions: In a realistic scenario (gdm starting up), gdm has the active console, and its gdm would just pick up the "lid close" event and react to it. The gpm change here should not influence this at all. But Comment 4 synthesizes a situation where gpm is _not_ on an active console, and thus ignores the lid event. The gpm patch "fixes" that case, but at the same time breaks gpm for docked laptops.

Please see https://bugzilla.gnome.org/show_bug.cgi?id=613130 for details.

Comment 8 Martin Pitt 2010-03-17 12:09:32 UTC
"... gdm has the active console, and its gdm would just pick up ..."

Obviously the second "gdm" is meant to be "gpm".

Comment 9 Bug Zapper 2010-04-27 13:53:23 UTC
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '11'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 11's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 11 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 10 Bug Zapper 2010-06-28 12:10:37 UTC
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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