In Bug #65730 
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/65730 I 
found the solution for my problem. The gconf-key 
/apps/gnome-power-manager/action_button_suspend was missing. I added that key 
an set it to suspend (and removed the comments from /etc/acpi.sleep.sh).
As the suspend hat worked that way before, I'am wondering why this key was 
missing. Changing the value to "interactive" changes also the behavior. Now the 
SuspendButton works as expected.
But unfortunately not the PowerButton, which is also the only Button left in 
the GUI of g-p-m. If I change the action for the PowerButton in the GUI the 
values of the keys in gconf change too, but if I press the button nothing 
happens. The event is caught by the acpid and /etc/acpi/powerbtn.sh is called, 
as you can see below.

[Wed May  9 20:10:44 2007] received event "button/power PWRF 00000080 00000008"
[Wed May  9 20:10:44 2007] notifying client 12524[121:121]
[Wed May  9 20:10:44 2007] notifying client 4879[0:0]
[Wed May  9 20:10:44 2007] executing action "/etc/acpi/powerbtn.sh"
[Wed May  9 20:10:44 2007] BEGIN HANDLER MESSAGES
[Wed May  9 20:10:44 2007] END HANDLER MESSAGES
[Wed May  9 20:10:44 2007] action exited with status 0
[Wed May  9 20:10:44 2007] completed event "button/power PWRF 00000080 00000008"

I remeber that the SuspendButton was also available in the GUI. Why did
it disappear? And why does the PowerButton not work?

I attached the skript /etc/acpi/powerbth.sh

** Attachment added: "powerbtn.sh"
   http://librarian.launchpad.net/7592820/powerbtn.sh

-- 
suspend: gnome-power-manager vs. button/sleep
https://bugs.launchpad.net/bugs/113639
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to