! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-power-manager-0.9.98 with policykit fails to query authorization for su...
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-power-manager
Component:
General

Comments

Description Samuli Suominen 2010-08-11 08:18:07 CEST
Created attachment 3073 
dbus-monitor output

I'm having the same problem as the Debian maintainer here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582305
http://foo-projects.org/pipermail/xfce/2010-May/027130.html

pkaction --verbose:

org.freedesktop.upower.suspend:
  description:       Suspend the system
  message:           Authentication is required to suspend the system
  vendor:            The UPower Project
  vendor_url:        http://upower.freedesktop.org/
  icon:              system-suspend
  implicit any:      no
  implicit inactive: no
  implicit active:   yes

org.freedesktop.upower.hibernate:
  description:       Hibernate the system
  message:           Authentication is required to hibernate the system
  vendor:            The UPower Project
  vendor_url:        http://upower.freedesktop.org/
  icon:              system-suspend
  implicit any:      no
  implicit inactive: no
  implicit active:   yes

ck-list-sessions:

Session8:
	unix-user = '1000'
	realname = '(null)'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2010-08-11T06:46:32.007743Z'
	login-session-id = '4294967295'

upower --dump:

Daemon:
  daemon-version:  0.9.5
  can-suspend:     yes
  can-hibernate    yes
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:   no

For example gvfs and thunar-1.1.1 is able to find disks and mount them, udisks --mount is able to mount devices, and upower --dump is reporting the above "can-suspend: yes" and "can-hibernate: yes" but the buttons for hibernate/suspend are greyed out in xfce4-power-manager's system tray icon.

If I compile xfce4-power-manager without policykit, they show up.

The attached file is dbus-monitor output from time to xfce4-power-manager start, to it's closure.
Comment 1 Samuli Suominen 2010-08-11 08:24:07 CEST
btw, a sidenote, need the patch from bug 6568, otherwise it's quite hard to compile xfce4-power-manager without policykit
Comment 2 Samuli Suominen 2010-08-11 08:25:58 CEST
xfce4-power-manager --dump:

---------------------------------------------------
       Xfce power manager version 0.9.98
Without HAL support
With policykit support
With network manager support
With DPMS support
---------------------------------------------------
Can suspend: True
Can hibernate: True
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: False
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: False
Comment 3 Samuli Suominen 2010-08-11 08:30:21 CEST
arggg sorry. this is a duplicate of bug 6462.
Comment 4 Samuli Suominen 2010-08-11 08:33:34 CEST
(In reply to comment #3)
> arggg sorry. this is a duplicate of bug 6462.

unlike in that bug, I'm not using gdm (or any other DM) but startx/startxfce4:

$ echo $XDG_SESSION_COOKIE
0c963adce538d9b323b7ffa249f6a4ca-1281509192.3630-1472018301
Comment 5 Samuli Suominen 2010-08-11 08:36:53 CEST

*** This bug has been marked as a duplicate of bug 6462 ***

Bug #6631

Reported by:
Samuli Suominen
Reported on: 2010-08-11
Last modified on: 2010-08-11

People

Assignee:
Ali Abdallah
CC List:
0 users

Version

Version:
0.9.98

Attachments

dbus-monitor output (23.56 KB, text/plain)
2010-08-11 08:18 CEST , Samuli Suominen
no flags

Additional information