You are not logged in.
I think have some trouble with lxsession. A while ago I could have the lxde logout windown with
$ lxde-logout
But this doesn't work anymore. Unfortunately i don't have the old package of lxde any more so i can't confirm that's just on the version. however now I get this error:
$ lxde-logout
Error: LXSession is not running.
But when I use the lxde-menu it works just fine.
I did some investigation and found the following:
$ ck-list-sessions
Session3:
unix-user = '1000'
realname = ''
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2011-09-20T20:59:54.575496Z'
login-session-id = '13'
Session4:
unix-user = '1000'
realname = ''
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 = '2011-09-20T20:59:58.396835Z'
login-session-id = '13'
Is it normal to have two sessions at the same time? Is it may that why I can't launch lxde-logout from a terminal anymore?
Furthermore I can't get suspend working through dbus:
$ dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
Error org.freedesktop.UPower.GeneralError: not authorized
Once again, it works fine if I use the lxde-menu entry
Has this maybe something to do with this two sessions? Has anyone any experience? Is this a bug in lxsession or is my setup somehow screwed up?
Please help! Any hints welcome.
Last edited by wombalton (2011-09-20 21:24:47)
Offline
How are you starting LXDE?
If you are using a login manager, try startx instead.
Offline
No, I don't use a login manager. Just plan startx.
#
# ~/.xinitrc
#
…
#start the dektopenvironment
exec ck-launch-session startlxde
…
Offline
What happens if you launch startlxde without consolekit?
Offline
You mean just exec startlxde in .xinitrc?
$ ck-list-sessions
Session5:
unix-user = '1000'
realname = ''
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2011-09-22T20:32:07.788734Z'
login-session-id = '20'
idle-since-hint = '2011-09-22T20:32:38.510602Z'
$ dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
Error org.freedesktop.UPower.GeneralError: not authorized
$ lxde-logout
Error: LXSession is not running.
So that didn't change much, but now I can't Shutdown/Hibernate/Suspend from the lxde menu anymore.
I think the question is, where does this inactive session comes from? And why works lxde-logout from the menu, but not from a terminal?
Offline