Comment 20 for bug 33072

Revision history for this message
In , Lowe-brown (lowe-brown) wrote :

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