Comment 68 for bug 376793

Revision history for this message
João Gomes (jvpgomes) wrote :

Yes, I used
sudo sh -c 'echo 1 > /proc/acpi/video/GFX0/DOS' and sudo sh -c 'echo 0 > /proc/acpi/video/GFX0/DOS'

But, it is not the same case.

For instance, when I do the following, it recognizes correctly if the lid is closed or open.

(with the lid closed)
$ cat /proc/acpi/button/lid/LID/state
state: closed

(with the lid open)
$ cat /proc/acpi/button/lid/LID/state
state: open

However, when the lid is open, the gnome-power-manager stills shows:
"lid is closed, so we are ignoring ->NORMAL state changes"
Because of that, it does not put the display to sleep.
And when I boot, it works properly. This only happens after I close the lid for the first time.
Killing gnome-power-manager and starting it again does not solve the problem.
Only after logging out and logging in or rebooting, it works again.

In fact, also in https://bugzilla.redhat.com/show_bug.cgi?id=512958
the report creator said at the beginning:
"/proc/acpi/button/lid/C1C4/state is changing correctly from open to close and vice versa."

In /etc/default/acpi-support I have:
HIBERNATE_MODE=shutdown
and
SUSPEND_METHODS="dbus-pm dbus-hal pm-utils"
Though, my problem is not the hibernate or suspend modes, which work well.
The problem is that gnome-power-manager recognizes the lid as closed when it is open.
Do you think it might be related?

Thank you for your help!