I seem to have this same bug. I'm on an HP Pavilion dv1111AV. acpi_listen shows that acpi is getting the events. However, gnome-power-manager --verbose does not show gnome-power-manager handling the events.
Ugly as it is, I've worked around the problem by including commenting out the CheckPolicy line of the lid and including the following, which simulates the settings I tried to set up with gnome-power-manager.
#if [ `CheckPolicy` = 0 ]; then exit; fi
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
echo "lid closed"
grep -q off-line /proc/acpi/ac_adapter/*/state
if [ $? = 0 ]
then
echo "sleep with gnome-power-cmd"
su tom gnome-power-cmd.sh suspend
Yeah, that's ugly.
Let me know if I can give you some more output to help with this.
I seem to have this same bug. I'm on an HP Pavilion dv1111AV. acpi_listen shows that acpi is getting the events. However, gnome-power-manager --verbose does not show gnome-power-manager handling the events.
Ugly as it is, I've worked around the problem by including commenting out the CheckPolicy line of the lid and including the following, which simulates the settings I tried to set up with gnome-power- manager.
#if [ `CheckPolicy` = 0 ]; then exit; fi
grep -q closed /proc/acpi/ button/ lid/*/state ac_adapter/ */state
gnome- power-cmd. sh suspend
if [ $? = 0 ]
then
echo "lid closed"
grep -q off-line /proc/acpi/
if [ $? = 0 ]
then
echo "sleep with gnome-power-cmd"
su tom
Yeah, that's ugly.
Let me know if I can give you some more output to help with this.