You are not logged in.

#1 2016-03-27 19:11:38

Meirion
Member
Registered: 2009-10-04
Posts: 26

Can't start Wayland sessions from LightDM

Hi all

I'm trying to start some Wayland sessions (either Weston or Plasma) from the LightDM display manager. If I select those sessions and try to login then nothing happens and after a while I get returned to the login prompt. If I start Weston from a konsole window in Plasma (running under X) then Weston starts up fine.

Don't see any obvious errors in the /var/log/lightdm.log

Offline

#2 2016-03-27 22:22:54

Awebb
Member
Registered: 2010-05-06
Posts: 6,008

Re: Can't start Wayland sessions from LightDM

Could you post the lightdm log to some paste service? For the not so obvious errors, you know?

Offline

#3 2016-03-28 07:30:59

Meirion
Member
Registered: 2009-10-04
Posts: 26

Re: Can't start Wayland sessions from LightDM

Here is the log file. I also checked my .xsessions-errors file which shows:

https://www.dropbox.com/s/sw7zgi1uk870g … m.log?dl=0

startplasmacompositor: Starting up...
startplasmacompositor: Could not start D-Bus. Can you call qdbus?

Offline

#4 2016-05-18 15:45:07

ohmysql
Member
Registered: 2015-03-13
Posts: 33

Re: Can't start Wayland sessions from LightDM

I'm having the same issue--googling isn't coming up with a lot.

For instance, when trying to run sway, here's the LightDM log:

[+24.88s] DEBUG: Session pid=523: Running command /etc/lightdm/Xsession sway

Why is lightdm trying to run X for a Wayland application?

[+0.04s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.05s] DEBUG: Starting Light Display Manager 1.18.1, UID=0 PID=340
[+0.05s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.05s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.05s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.05s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.05s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.34s] DEBUG: Registered seat module xlocal
[+0.34s] DEBUG: Registered seat module xremote
[+0.34s] DEBUG: Registered seat module unity
[+0.78s] DEBUG: Monitoring logind for seats
[+0.78s] DEBUG: New seat added from logind: seat0
[+0.78s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.78s] DEBUG: Seat seat0: Starting
[+0.78s] DEBUG: Seat seat0: Creating greeter session
[+0.87s] DEBUG: Seat seat0: Creating display server of type x
[+0.87s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
[+0.87s] DEBUG: Using VT 7
[+0.87s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.87s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+0.87s] DEBUG: DisplayServer x-0: Writing X server authority to /run/lightdm/root/:0
[+0.87s] DEBUG: DisplayServer x-0: Launching X Server
[+0.87s] DEBUG: Launching process 371: /usr/sbin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.87s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+0.87s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.87s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.91s] WARNING: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
[+0.91s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+1.12s] DEBUG: User archannend added
[+1.12s] DEBUG: User david added
[+1.12s] DEBUG: User gamer added
[+1.12s] DEBUG: User johndoe added
[+1.12s] DEBUG: User victoria added
[+9.40s] DEBUG: Got signal 10 from process 371
[+9.40s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+9.40s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+9.69s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+9.69s] DEBUG: Session pid=421: Started with service 'lightdm-greeter', username 'lightdm'
[+10.51s] DEBUG: Session pid=421: Authentication complete with return value 0: Success
[+10.51s] DEBUG: Seat seat0: Session authenticated, running command
[+10.51s] DEBUG: Session pid=421: Running command /usr/sbin/lightdm-gtk-greeter
[+10.51s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+10.51s] DEBUG: Session pid=421: Logging to /var/log/lightdm/x-0-greeter.log
[+11.32s] DEBUG: Activating VT 7
[+11.32s] DEBUG: Activating login1 session c1
[+11.32s] DEBUG: Seat seat0 changes active session to c1
[+11.32s] DEBUG: Session c1 is already active
[+16.66s] DEBUG: Session pid=421: Greeter connected version=1.18.1 resettable=false
[+22.31s] DEBUG: Session pid=421: Greeter start authentication for david
[+22.31s] DEBUG: Session pid=523: Started with service 'lightdm', username 'david'
[+22.40s] DEBUG: Session pid=523: Got 1 message(s) from PAM
[+22.40s] DEBUG: Session pid=421: Prompt greeter with 1 message(s)
[+24.64s] DEBUG: Session pid=421: Continue authentication
[+24.74s] DEBUG: Session pid=523: Authentication complete with return value 0: Success
[+24.74s] DEBUG: Session pid=421: Authenticate result for user david: Success
[+24.74s] DEBUG: Session pid=421: User david authorized
[+24.74s] DEBUG: Session pid=421: Greeter sets language en_US.utf8
[+24.88s] DEBUG: Session pid=421: Greeter requests session sway
[+24.88s] DEBUG: Seat seat0: Creating display server of type wayland
[+24.88s] DEBUG: Using VT 8
[+24.88s] DEBUG: Seat seat0: Display server ready, running session
[+24.88s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+24.88s] DEBUG: Session pid=523: Running command /etc/lightdm/Xsession sway
[+24.88s] DEBUG: Creating shared data directory /var/lib/lightdm-data/david
[+24.88s] DEBUG: Session pid=523: Logging to .xsession-errors
[+24.98s] DEBUG: Activating VT 8
[+25.09s] DEBUG: Seat seat0: Stopping greeter
[+25.09s] DEBUG: Session pid=421: Sending SIGTERM
[+25.09s] DEBUG: Activating login1 session c2
[+25.09s] DEBUG: Seat seat0 changes active session to c2
[+25.09s] DEBUG: Session c2 is already active
[+25.36s] DEBUG: Session pid=421: Greeter closed communication channel
[+25.36s] DEBUG: Session pid=421: Exited with return value 0
[+25.36s] DEBUG: Seat seat0: Session stopped
[+25.36s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+25.36s] DEBUG: Sending signal 15 to process 371
[+25.42s] DEBUG: Process 371 exited with return value 0
[+25.42s] DEBUG: DisplayServer x-0: X server stopped
[+25.42s] DEBUG: Releasing VT 7
[+25.42s] DEBUG: DisplayServer x-0: Removing X server authority /run/lightdm/root/:0
[+25.42s] DEBUG: Seat seat0: Display server stopped
[+26.41s] DEBUG: Session pid=523: Exited with return value 0
[+26.41s] DEBUG: Seat seat0: Session stopped
[+26.41s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+26.41s] DEBUG: Seat seat0: Display server stopped
[+26.41s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+26.41s] DEBUG: Seat seat0: Creating greeter session
[+26.41s] DEBUG: Seat seat0: Creating display server of type x
[+26.41s] DEBUG: Using VT 7
[+26.41s] DEBUG: Seat seat0: Starting local X display on VT 7
[+26.41s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
[+26.41s] DEBUG: DisplayServer x-0: Writing X server authority to /run/lightdm/root/:0
[+26.41s] DEBUG: DisplayServer x-0: Launching X Server
[+26.41s] DEBUG: Launching process 625: /usr/sbin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+26.42s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
[+26.42s] DEBUG: Releasing VT 8
[+26.42s] DEBUG: Seat seat0 changes active session to 
[+26.42s] CRITICAL: session_get_login1_session_id: assertion 'session != NULL' failed
[+26.67s] DEBUG: Got signal 10 from process 625
[+26.67s] DEBUG: DisplayServer x-0: Got signal from X server :0
[+26.67s] DEBUG: DisplayServer x-0: Connecting to XServer :0
[+26.68s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+26.68s] DEBUG: Session pid=638: Started with service 'lightdm-greeter', username 'lightdm'
[+26.70s] DEBUG: Session pid=638: Authentication complete with return value 0: Success
[+26.70s] DEBUG: Seat seat0: Session authenticated, running command
[+26.70s] DEBUG: Session pid=638: Running command /usr/sbin/lightdm-gtk-greeter
[+26.70s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+26.70s] DEBUG: Session pid=638: Logging to /var/log/lightdm/x-0-greeter.log
[+26.77s] DEBUG: Activating VT 7
[+26.77s] DEBUG: Activating login1 session c3
[+26.78s] DEBUG: Seat seat0 changes active session to c3
[+26.78s] DEBUG: Session c3 is already active
[+26.99s] DEBUG: Session pid=638: Greeter connected version=1.18.1 resettable=false
[+27.18s] DEBUG: Session pid=638: Greeter start authentication for david
[+27.18s] DEBUG: Session pid=675: Started with service 'lightdm', username 'david'
[+27.20s] DEBUG: Session pid=675: Got 1 message(s) from PAM
[+27.20s] DEBUG: Session pid=638: Prompt greeter with 1 message(s)
[+28.83s] DEBUG: Session pid=638: Greeter closed communication channel
[+28.83s] DEBUG: Session pid=638: Exited with return value 0
[+28.84s] DEBUG: Seat seat0: Session stopped
[+28.84s] DEBUG: Seat seat0: Stopping; failed to start a greeter
[+28.84s] DEBUG: Seat seat0: Stopping
[+28.84s] DEBUG: Seat seat0: Stopping display server
[+28.84s] DEBUG: Sending signal 15 to process 625
[+28.84s] DEBUG: Seat seat0: Stopping session
[+28.84s] DEBUG: Session pid=675: Sending SIGTERM
[+28.84s] DEBUG: Session pid=675: Terminated with signal 15
[+28.84s] DEBUG: Session: Failed during authentication
[+28.84s] DEBUG: Seat seat0: Session stopped
[+33.84s] DEBUG: Sending signal 9 to process 625

Last edited by ohmysql (2016-05-18 16:10:06)

Offline

#5 2018-02-21 18:25:35

frazzmark
Member
From: Italy
Registered: 2018-02-21
Posts: 14

Re: Can't start Wayland sessions from LightDM

This also happened to me, and the lightdm.log isn't very helpful because it just says that the process died and the log is in .xsession-errors . In the file the only lines are the same as indicated before:

startplasmacompositor: Could not start D-Bus. Can you call qdbus?

lightdm.log

[+12714.34s] DEBUG: Continue authentication
[+12714.56s] DEBUG: Session pid=13129: Authentication complete with return value 0: Success
[+12714.56s] DEBUG: Authenticate result for user fabio: Success
[+12714.56s] DEBUG: User fabio authorized
[+12714.58s] DEBUG: Greeter sets language it_IT.utf8
[+12714.61s] DEBUG: Greeter requests session plasmawayland
[+12714.63s] DEBUG: Writing /home/fabio/.dmrc
[+12714.63s] DEBUG: Seat seat0: Creating display server of type wayland
[+12714.63s] DEBUG: Using VT 8
[+12714.63s] CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[+12714.63s] DEBUG: Seat seat0: Display server ready, running session
[+12714.63s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session4
[+12714.64s] CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
[+12714.64s] DEBUG: Session pid=13129: Running command /etc/lightdm/Xsession dbus-launch --exit-with-session /usr/bin/startplasmacompositor
[+12714.64s] DEBUG: Creating shared data directory /var/lib/lightdm-data/fabio
[+12714.64s] DEBUG: Session pid=13129: Logging to .xsession-errors
[+12714.68s] DEBUG: Activating VT 8
[+12714.87s] DEBUG: Seat seat0: Stopping greeter
[+12714.87s] DEBUG: Terminating login1 session c10
[+12714.88s] DEBUG: Session pid=13087: Sending SIGTERM
[+12714.88s] DEBUG: Activating login1 session c11
[+12714.89s] DEBUG: Seat seat0 changes active session to c11
[+12714.89s] DEBUG: Session c11 is already active
[+12714.90s] DEBUG: Greeter closed communication channel
[+12714.90s] DEBUG: Session pid=13087: Exited with return value 0
[+12714.90s] DEBUG: Seat seat0: Session stopped
[+12714.90s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+12714.90s] DEBUG: Sending signal 15 to process 13077
[+12714.92s] DEBUG: Process 13077 exited with return value 0
[+12714.92s] DEBUG: XServer 0: X server stopped
[+12714.92s] DEBUG: Releasing VT 7
[+12714.92s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+12714.92s] DEBUG: Seat seat0: Display server stopped

Last edited by frazzmark (2018-02-21 18:33:07)

Offline

#6 2018-02-21 19:33:52

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 10,897
Website

Re: Can't start Wayland sessions from LightDM

A lot has changed in plasma's wayland support in the last two years. Please create a new thread for your issue, describing exactly how you have set up your system to run wayland. I'm not familiar with lightdm, but I'm pretty sure it shouldn't be trying to use Xsession for a wayland session, or be calling dbus-launch.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB