Power buttons doesn't work

Asked by Meher Khiari on 2010-06-25

I have Gnomenu 2.8 on archlinux.
The reboot and poweroff buttons doesn't work.
When launching the command used when clicking on these buttons from the command line I have this error (for the reboot for example) :
using gnome >= 2.30, dbus changed to UPower
Traceback (most recent call last):
  File "/usr/lib/gnomenu/session-manager.py", line 74, in <module>
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "RequestReboot" with signature "" on interface "org.gnome.SessionManager" doesn't exist

I don't know how dbus works so I can't debug it.
Any help is appreciated.

Question information

English Edit question
GnoMenu Edit question
No assignee Edit question
Solved by:
Helder Fraga
Last query:
Last reply:
Helder Fraga (whise) said : #1

does arch support upower?

Meher Khiari (keikun2004) said : #2

Yes and it is installed.
version : 0.9.4

Helder Fraga (whise) said : #3

what version of gnome you have installed?

Meher Khiari (keikun2004) said : #4

gnome 2.30

technoshaun (shaun-marolf) said : #5

Do you know the commands UPower uses to run the function for shutdown, restart, sleep and Hibernate?

Helder Fraga (whise) said : #6

i found this problem is not in UPower but in gnome SessionManager

im using the gnome 2.30 implementation


Helder Fraga (whise) said : #7

hahh i found the problem, looks like the RequestShutdown and RequestReboot commands are only in ubuntu in normal gnome they use Shutdown and Reboot commands

Best Helder Fraga (whise) said : #8

more investigation i found out that ubuntu provides a patch for gnome that allows RequestReboot and RequestShutdown, in normal gnome this patch is not applied so there is no way to actually reboot or shutdown the pc, so i added a workarround in the latest bzr so that if the patch is not present you will be given the shutdown dialog instead

Please test the latest bzr and see if it works properly?

Meher Khiari (keikun2004) said : #9

Effectively, with the last bzr, when I click on the poweroff or restart button I get the normal gnome dialog to select the action. But it wouldn't be better to get all the power buttons in one button ? Because, with this configuration, it is a waste of space and a repetitive task for the user. Or is it a theme task ? (I should start checking for the themes documentation :) )

Meher Khiari (keikun2004) said : #10

Thanks whise, that solved my question.

Helder Fraga (whise) said : #11

im guessing sooner or later the ubuntu patch will be used upstream in gnome itself, so all we have to do is wait

Helder Fraga (whise) said : #12

also i think other distros users can request patch inclusion in the distro , you should try to request the patch to be added to arch