You are not logged in.
I'm running awesome-wm and in .xinitrc I have ck-launch-session launched.
Also I'm trying to make reboot/halt and suspend/hibernate work through dbus-send.
But when I run:
dbus-send --system --print-reply --dest="org.freedesktop.UPower" \
/org/freedesktop/UPower org.freedesktop.UPower.Suspend
I receive:
Error org.freedesktop.UPower.GeneralError: not authorized
And on:
dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit"\
/org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
I receive:
Error org.freedesktop.ConsoleKit.Manager.NotPrivileged: Not Authorized
How can this be solved?
Last edited by m0nhawk (2010-11-06 19:57:04)
Offline
This is a bug in consolekit 0.4.2, in 0.4.1 works fine. Waiting for a bugfix.
Offline
Yep, buyer beware in [testing]. Is it a known bug? Is it reported somewhere?
edit: yes it is https://bugs.archlinux.org/task/21391
Last edited by quigybo (2010-11-09 14:17:47)
Offline
Sorry for bumping this thread, but I couldn't figure out what I need to do to
fix this problem. I'm running consolekit 0.4.3-2 and still see this problem
though the bug linked by quigybo is closed.
My user is in the power group and I start my window manager with:
dbus-launch --sh-syntax --exit-with-session ck-launch-session awesome
ck-list-sessions shows me that I have a session active:
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat3'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2011-02-07T20:08:47.873895Z'
login-session-id = '4294967295'
Yet, I cannot suspend as a normal user:
dbus-send --system --print-reply --dest="org.freedesktop.UPower" \
/org/freedesktop/UPower org.freedesktop.UPower.Suspend
Error org.freedesktop.UPower.GeneralError: not authorized
Running the above command as root successfully suspends my computer.
Am I missing something?
Offline
the_isz,
same problem with wmfs
Offline
Hmm... After posting my message yesterday I realized that I get the same error
message when I try to mount using udisks. Did something go wrong with polkit?
Edit:
I think this thread here discusses our problem...
Edit 2:
cgarcia has written a patch against xorg-xdm that solves my problems. See
this thread for details.
Last edited by the_isz (2011-02-09 18:06:26)
Offline