[Pkg-utopia-maintainers] Bug#582305: upower: can't obtain suspend/hibernate authorization
Yves-Alexis Perez
corsac at debian.org
Wed May 19 20:53:48 UTC 2010
Package: upower
Version: 0.9.4-1
Severity: normal
Hey,
I'm not 100% sure it's a bug in upower, but I'm still puzzled.
I'm testing xfce4-power-manager 0.9.98, which uses
upower/policykit/consolekit/…
Running xfpm --dump replies:
corsac at hidalgo: xfce4-power-manager --dump
---------------------------------------------------
Xfce power manager version 0.9.98
With HAL support
With policykit support
With network manager support
With DPMS support
---------------------------------------------------
Can suspend: True
Can hibernate: False
Can spin down hard disks: True
Authorized to suspend: False
Authorized to hibernate: False
Authorized to shutdown: True
Authorized to spin down hard disks: False
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True
and the logs from debug xfpm give:
TRACE[xfpm-polkit.c:407] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.suspend is authorized=FALSE
TRACE[xfpm-polkit.c:407] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.upower.hibernate is authorized=FALSE
TRACE[xfpm-polkit.c:407] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.udisks.drive-set-spindown is authorized=FALSE
polkit-auth returns nothing (but I'm told it's normal, not sure), when I
try to obtain authorization from polickit, I get:
corsac at hidalgo: POLKIT_AUTH_FORCE_TEXT=1 polkit-auth --obtain org.freedesktop.upower.suspend
Attempting to obtain authorization for org.freedesktop.upower.suspend.
polkit-grant-helper: given auth type (1 -> no) is bogus
Failed to obtain authorization for org.freedesktop.upower.suspend.
Looking at /usr/share/polkit-1/actions/org.freedesktop.upower.policy,
local users should get the “suspend” authorization automatically, so I'm
not sure what is the problem. Do you have any clue what's not working
there and a way to debug?
Cheers,
--
Yves-Alexis
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages upower depends on:
ii dbus 1.2.24-1 simple interprocess messaging syst
ii libc6 2.10.2-8 Embedded GNU C Library: Shared lib
ii libdbus-1-3 1.2.24-1 simple interprocess messaging syst
ii libdbus-glib-1-2 0.86-1 simple interprocess messaging syst
ii libglib2.0-0 2.24.1-1 The GLib library of C routines
ii libgudev-1.0-0 154-1 GObject-based wrapper library for
ii libpolkit-gobject-1-0 0.96-2 PolicyKit Authorization API
ii libupower-glib1 0.9.4-1 abstraction for power management -
ii libusb-0.1-4 2:0.1.12-14 userspace USB programming library
ii udev 154-1 /dev/ and hotplug management daemo
Versions of packages upower recommends:
ii pm-utils 1.3.0-1 utilities and scripts for power ma
ii policykit-1 0.96-2 framework for managing administrat
upower suggests no packages.
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list