After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 595963 - gnome-power-manager fails to suspend
gnome-power-manager fails to suspend
Status: RESOLVED NOTGNOME
Product: gnome-power-manager
Classification: Deprecated
Component: gnome-power-manager
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-09-22 14:51 UTC by Peter Waller
Modified: 2009-09-23 11:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Peter Waller 2009-09-22 14:51:18 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
Comment 1 Romain Perier 2009-09-22 17:13:50 UTC
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.
Comment 2 Richard Hughes 2009-09-23 09:06:04 UTC
(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.
Comment 3 Gilles Dartiguelongue 2009-09-23 11:13:33 UTC
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.