GNOME Bugzilla – Bug 595963
gnome-power-manager fails to suspend
Last modified: 2009-09-23 11:13:33 UTC
I'm using gentoo linux kernel 2.6.31, and the following (maybe relevant) packages: =gnome-extra/gnome-power-manager-2.27.92-r1 ~amd64 =sys-apps/devicekit-power-010 ~amd64 =gnome-extra/polkit-gnome-0.93 ~amd64 =sys-auth/polkit-0.93 ~amd64 =dev-libs/eggdbus-0.5 ~amd64 =sys-fs/udev-146 ~amd64 =sys-apps/hal-0.5.13-r2 ~amd64 When I try to suspend, nothing happens. The following error appears in /var/log/messages: dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.30" (uid=0 pid=26636 comm="/usr/libexec/polkitd-1 ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply=0 destination="org.freedesktop.ConsoleKit" (uid=0 pid=26221 comm="/usr/sbin/console-kit-daemon ")) If I try to suspend at the console by sending dbus a command: $ dbus-send --print-reply --system --dest=org.freedesktop.DeviceKit.Power /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend Error org.freedesktop.DeviceKit.Power.GeneralError: not authorized and in /var/log/messages: (not the different memberto the above: "CanStop" vs GetAll) dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.80" (uid=1000 pid=27070 comm="gnome-power-preferences ") interface="org.freedesktop.ConsoleKit.Manager" member="CanStop" error name="(unset)" requested_reply=0 destination="org.freedesktop.ConsoleKit" (uid=0 pid=26221 comm="/usr/sbin/console-kit-daemon ")) I have reported the bug downstream and was advised instead to post it here. https://bugs.gentoo.org/show_bug.cgi?id=285947
I can add some extras informations, found into my ~.xsession-errors : (gnome-power-manager:1663): devkit-power-gobject-WARNING **: Couldn't suspend: not authorized A rule which authorizes user is already present on the system... I think it's probably a polkit issue, or a missing setting... Regards, Romain.
(In reply to comment #1) > A rule which authorizes user is already present on the system... > I think it's probably a polkit issue, or a missing setting... Agreed, this isn't a gnome-power-manager issue. You need to check ConsoleKit is marking your session active, and polkit-1 is installed correctly.
It'd be nice if g-p-m could at least tell the user something isn't right with his setup as there is currently no message at all from what I get from the bug description.