Bug 6542 - hal shows the wrong lid state after resume from hibernate
Summary: hal shows the wrong lid state after resume from hibernate
Status: RESOLVED FIXED
Alias: None
Product: hal
Classification: Unclassified
Component: hald (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: David Zeuthen (not reading bugmail)
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-10 00:01 UTC by David Lowe
Modified: 2006-06-05 03:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description David Lowe 2006-04-10 00:01:30 UTC
After a fresh hald start, acpi and hal agree on the lid state of my laptop

[root@trillian lowe]# lshal -l | grep button.state
  button.state.value = false  (bool)
[root@trillian lowe]# cat /proc/acpi/button/lid/LID/state
state:      open

However, after hibernating (by closing the lid) and resuming, they disagree
[root@trillian lowe]# lshal -l | grep button.state
  button.state.value = true  (bool)
[root@trillian lowe]# cat /proc/acpi/button/lid/LID/state
state:      open

I am using hal version 0.5.7 plus the patch for hal-system-power-hibernate that
rescans the button on resume. So rescanning isn't setting the correct state.

Restarting hald on resume returns the values to normal.

This is related to gnome-power-manager bug
http://bugzilla.gnome.org/show_bug.cgi?id=334220
Comment 1 Thomas M Steenholdt 2006-04-17 17:52:34 UTC
I'm seing the exact same thing on my system and I know of a few other systems
that are hit by this bug as well (i don't know of any system that's not).

3rd party tools, like gnome-power-manager, that relies on this information from
hal can't help making bad decicions. So, whenever i unplug AC from my laptop to
move to another desk, my system is suspended because it thinks the lid is shut.
Comment 2 Richard Hughes 2006-06-05 03:21:27 UTC
2006-04-24  Richard Hughes <richard@hughsie.com>

	* tools/hal-system-power-hibernate, tools/hal-system-power-suspend:
	Add --print-reply to dbus-send else the Rescan does not work.
	This should fix a whole load of bugs related to ACPI values on resume.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.