Description of problem:
I have configured my laptop to suspend when the lid is closed and running on
battery. It is supposed to blank screen when closing on AC. I noticed that if I
close the laptop at the end of the day, and then unplug it the laptop stays
running. It should suspend.
This is not a bug, it's a design decision.
However /apps/gnome-power-manager/battery_event_when_closed should do what you
"If the battery lid close event should occur (for example 'Suspend when lid
closed on battery') when the lid is previously shut and the AC power
disconnected at a later time."
Use gconf-editor to toggle this yourself.
Well then change this to a request for enhancement, since I believe this is the
wrong decision. It is natural at the end of the day to close the laptop and
then unplug it. Having it super heat in the bag is a bad idea. Similarly if I
had the laptop in a docking station I would figure it would suspend when
disconnected with the lid closed. I see very little reason do leave the laptop
running by default if I say suspend on battery when lid closed.
I do believe other operating systems work this way by default as well. If you
unplug while closed, it will go into a suspend state. Or at least thats what
happend the last time I used said other operating systems ( a few years back ).
Changing the behaviour w/out significantly good reason should be avoided as to
not add confusion to migrating users or dualboot users.
Maybe so, it makes more and more sense to me the more I read it. Richard, was
there any good reason the default doesn't do this?
I filed this upstream a while ago. http://bugzilla.gnome.org/show_bug.cgi?id=331655
No real technical reason, only I got a few bugzillas about the weird behaviour.
It was also done at the point in the history where HAL was not correctly
refreshing the lid status (it's been fixed in CVS for a few months) and setting
this option was bad, as the lid was always "closed" and hence kept re-suspending.
If the lid status is always correct, then it's insanity not to use this option.
Unfortunatly, lid status still is incorrect for some (significant, and vocal
few) people - but I think we might be good to enable this for 2-17.
2007-05-14 Richard Hughes <firstname.lastname@example.org>
Change the /apps/gnome-power-manager/battery/event_when_closed
key to default to true. This means that if you shut the lid and then
remove the AC power then the system will by default suspend.
This may make systems that have dodgey lid reporting to immediatly
suspend when removed from AC, but we can blacklist (or fix) them as
they are reported. Fixes fedora:214404
Committed to 2-19. Let the bugzillas commence. :-)