You are not logged in.

#1 2015-12-12 18:24:04

shelbydz
Member
Registered: 2014-03-16
Posts: 58

lightdm fails to start session after authenticating

Hi All,

I am setting up a fresh install on a laptop. Trying to get LigthDM, LightDM-webkit-greeter and Cinnamon to work. They kind of do in pieces, but not all together.

I can start Cinnamon by running

 startx 

I got lightdm and the webkit greeter running, and i can start it with systemd. But when I try to authenticate from the greeter, nothing happens. The password box goes away. Looking at the lightdm.log file I see:

[+11.38s] DEBUG: Session pid=653: Greeter start authentication for user
[+11.38s] DEBUG: Session pid=673: Started with service 'lightdm', username 'user'
[+11.39s] DEBUG: Session pid=673: Got 1 message(s) from PAM
[+11.39s] DEBUG: Session pid=653: Prompt greeter with 1 message(s)
[+13.24s] DEBUG: Session pid=653: Continue authentication
[+13.26s] DEBUG: Session pid=673: Authentication complete with return value 0: Success
[+13.26s] DEBUG: Session pid=653: Authenticate result for user user: Success
[+13.26s] DEBUG: Session pid=653: User user authorized
[+13.26s] DEBUG: Session pid=653: Greeter requests session cinnamon-session
[+13.26s] DEBUG: Seat seat0: Failed to find session configuration cinnamon-session
[+13.26s] DEBUG: Seat seat0: Can't find session 'cinnamon-session'
[+16.68s] DEBUG: Seat seat0 changes active session to c1

in my ~/.xinitrc I put

exec cinnamon-session

i changed the session line in .dmrc to

Session=cinnamon-session

i fixed/uncommented the following lines in the lightdm.conf

[LightDM]
start-default-seat=true
...
sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions

[Seat:*]
greeter-session=lightdm-webkit-greeter
user-session=cinnamon-session

all with pretty much no change. the only thing that seemed to make a difference was the 'start-default-seat' line in the config. that changed the output of the log from

[+13.26s] DEBUG: Session pid=653: Greeter requests session default
[+13.26s] DEBUG: Seat seat0: Failed to find session configuration default
[+13.26s] DEBUG: Seat seat0: Can't find session 'default'

to

[+13.26s] DEBUG: Session pid=653: Greeter requests session cinnamon-session
[+13.26s] DEBUG: Seat seat0: Failed to find session configuration cinnamon-session
[+13.26s] DEBUG: Seat seat0: Can't find session 'cinnamon-session'

what am i missing. what else can i post that is of use?

thx

Offline

#2 2015-12-14 18:38:40

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 96
Website

Re: lightdm fails to start session after authenticating

From what I gather:

Your .xinitrc is fine - although possibly not required, but fine.

.dmrc: it should be Session=cinnamon

Finally in your lightdm config, the user-session should be commented out: #user-session=default

Should work fine then... smile


edit:

Make sure your .xinit is owned by you. The contents is fine as it is.
Reset your lightdm config. The only line you should need to uncomment is the line to tell it which greeter to use.
By default, I thought, Lightdm just runs whatever is in .xinitrc. You could try manually specifying 'cinnamon' as the session (not cinnamon-session).

Last edited by rlees85 (2015-12-14 21:50:59)

Offline

Board footer

Powered by FluxBB