You are not logged in.

#1 2011-09-20 21:23:03

wombalton
Member
Registered: 2011-07-18
Posts: 17

[lxde] [lxsession] lxde-logout issue

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

#2 2011-09-21 02:28:14

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [lxde] [lxsession] lxde-logout issue

How are you starting LXDE?

If you are using a login manager, try startx instead.

Offline

#3 2011-09-21 13:17:44

wombalton
Member
Registered: 2011-07-18
Posts: 17

Re: [lxde] [lxsession] lxde-logout issue

No, I don't use a login manager. Just plan startx.

#
# ~/.xinitrc
#
…
#start the dektopenvironment
exec ck-launch-session startlxde
…

Offline

#4 2011-09-22 00:16:25

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [lxde] [lxsession] lxde-logout issue

What happens if you launch startlxde without consolekit?

Offline

#5 2011-09-22 20:41:35

wombalton
Member
Registered: 2011-07-18
Posts: 17

Re: [lxde] [lxsession] lxde-logout issue

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

Board footer

Powered by FluxBB