You are not logged in.

#1 2019-11-23 12:28:47

Im3rik
Member
Registered: 2019-11-09
Posts: 31

Speed up LightDM

Hi everyone,

I'm using ly as display manager for a while now because it's incredibly fast.
Now I want to have a consistent login and lock screen design, so I switched to LightDM.

However LightDM is a lot slower on my system(s) than ly was.
In particular the ly password prompt was shown less than half a second after the kernel messages disappeared,
while LightDM takes 3-4 seconds (which is a lot on a 7s boot system) after the kernel messages to show the password prompt.

My lightdm.conf is the default one, I only changed the greeter-session line to "greeter-session=lightdm-gtk-greeter" (I also tried the lightdm-mini-greeter but that isn't faster either).

My lightdm.log:

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=431
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+1.10s] DEBUG: Monitoring logind for seats
[+1.10s] DEBUG: New seat added from logind: seat0
[+1.10s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+1.10s] DEBUG: Seat seat0: Starting
[+1.10s] DEBUG: Seat seat0: Creating greeter session
[+1.10s] DEBUG: Seat seat0: Creating display server of type x
[+1.10s] DEBUG: posix_spawn avoided (fd close requested) 
[+1.11s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+1.11s] DEBUG: Using VT 7
[+1.11s] DEBUG: Seat seat0: Starting local X display on VT 7
[+1.11s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+1.11s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+1.11s] DEBUG: XServer 0: Launching X Server
[+1.11s] DEBUG: Launching process 686: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+1.11s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+1.11s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+1.11s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+1.11s] 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
[+1.11s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+1.12s] DEBUG: User erik added
[+1.12s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested) 
[+2.62s] DEBUG: Got signal 10 from process 686
[+2.62s] DEBUG: XServer 0: Got signal from X server :0
[+2.62s] DEBUG: XServer 0: Connecting to XServer :0
[+2.81s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+2.81s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+2.81s] DEBUG: Session pid=703: Started with service 'lightdm-greeter', username 'lightdm'
[+2.84s] DEBUG: Session pid=703: Authentication complete with return value 0: Success
[+2.84s] DEBUG: Seat seat0: Session authenticated, running command
[+2.84s] DEBUG: Session pid=703: Running command /usr/bin/lightdm-gtk-greeter
[+2.84s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+2.84s] DEBUG: Session pid=703: Logging to /var/log/lightdm/seat0-greeter.log
[+3.09s] DEBUG: Activating VT 7
[+3.09s] DEBUG: Activating login1 session c1
[+3.10s] DEBUG: Seat seat0 changes active session to c1
[+3.10s] DEBUG: Session c1 is already active
[+3.47s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+3.68s] DEBUG: Greeter start authentication for erik
[+3.68s] DEBUG: Session pid=744: Started with service 'lightdm', username 'erik'
[+3.70s] DEBUG: Session pid=744: Got 1 message(s) from PAM
[+3.70s] DEBUG: Prompt greeter with 1 message(s)
[+6.63s] DEBUG: Continue authentication
[+6.65s] DEBUG: Session pid=744: Authentication complete with return value 0: Success
[+6.65s] DEBUG: Authenticate result for user erik: Success
[+6.65s] DEBUG: User erik authorized
[+6.67s] DEBUG: Greeter requests session awesome
[+6.67s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+6.67s] DEBUG: Terminating login1 session c1
[+6.67s] DEBUG: Session pid=703: Sending SIGTERM
[+6.68s] DEBUG: Greeter closed communication channel
[+6.68s] DEBUG: Session pid=703: Exited with return value 0
[+6.68s] DEBUG: Seat seat0: Session stopped
[+6.68s] DEBUG: Seat seat0: Greeter stopped, running session
[+6.68s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+6.68s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+6.69s] DEBUG: Session pid=744: Running command /etc/lightdm/Xsession awesome
[+6.69s] DEBUG: Creating shared data directory /var/lib/lightdm-data/erik
[+6.69s] DEBUG: Session pid=744: Logging to .xsession-errors
[+6.94s] DEBUG: Activating VT 7
[+6.94s] DEBUG: Activating login1 session 2
[+6.94s] DEBUG: Seat seat0 changes active session to 
[+6.94s] DEBUG: Seat seat0 changes active session to 2
[+6.94s] DEBUG: Session 2 is already active

As you can see it takes 3.7s to prompt the greeter which seems pretty long to me.
Also "Monitoring logind for seats" starts pretty late at 1.10s, in most logs I found in the forums like in this post it says:

[+0.01s] DEBUG: Monitoring logind for seats

I couldn't really find a log of a working LightDM installation as most people who post their logs here have issues with LightDM.

So is it possible to speed up LightDM for me?
I'm using an i5-8250U with NVMe SSD if that's important.

Thanks in advance
Erik

Offline

#2 2020-07-03 06:01:46

efr0
Member
Registered: 2020-07-03
Posts: 1

Re: Speed up LightDM

@Im3rik,
Did you find a solution for this?

Offline

#3 2020-07-03 07:55:00

Im3rik
Member
Registered: 2019-11-09
Posts: 31

Re: Speed up LightDM

No, I'm still using ly as display manager and resigned to the fact that my DM looks different than my lock screen.

Offline

#4 2020-07-03 09:31:59

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: Speed up LightDM

I don't seem to be having that delay problem here when I try to compare log files. Here's my current log file and the ".old" one:

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=836
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: posix_spawn avoided (fd close requested) 
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.01s] DEBUG: XServer 0: Launching X Server
[+0.01s] DEBUG: Launching process 847: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.01s] 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.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.01s] DEBUG: User ropid added
[+0.01s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested) 
[+0.51s] DEBUG: Got signal 10 from process 847
[+0.51s] DEBUG: XServer 0: Got signal from X server :0
[+0.51s] DEBUG: XServer 0: Connecting to XServer :0
[+0.51s] DEBUG: Launching process 876: /etc/lightdm/display-setup
[+0.52s] DEBUG: Process 876 exited with return value 0
[+0.52s] DEBUG: Seat seat0: Exit status of /etc/lightdm/display-setup: 0
[+0.52s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+0.52s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.52s] DEBUG: Session pid=882: Started with service 'lightdm-greeter', username 'lightdm'
[+0.53s] DEBUG: Session pid=882: Authentication complete with return value 0: Success
[+0.53s] DEBUG: Seat seat0: Session authenticated, running command
[+0.53s] DEBUG: Session pid=882: Running command /usr/bin/lightdm-gtk-greeter
[+0.53s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+0.53s] DEBUG: Session pid=882: Logging to /var/log/lightdm/seat0-greeter.log
[+0.63s] DEBUG: Activating VT 7
[+0.63s] DEBUG: Activating login1 session c1
[+0.63s] DEBUG: Seat seat0 changes active session to c1
[+0.63s] DEBUG: Session c1 is already active
[+0.78s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+0.99s] DEBUG: Greeter start authentication for ropid
[+0.99s] DEBUG: Session pid=950: Started with service 'lightdm', username 'ropid'
[+1.00s] DEBUG: Session pid=950: Got 1 message(s) from PAM
[+1.00s] DEBUG: Prompt greeter with 1 message(s)
[+3.04s] DEBUG: Continue authentication
[+3.05s] DEBUG: Session pid=950: Authentication complete with return value 0: Success
[+3.05s] DEBUG: Authenticate result for user ropid: Success
[+3.05s] DEBUG: User ropid authorized
[+3.07s] DEBUG: Greeter requests session xfce
[+3.07s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+3.07s] DEBUG: Terminating login1 session c1
[+3.08s] DEBUG: Session pid=882: Sending SIGTERM
[+3.09s] DEBUG: Greeter closed communication channel
[+3.09s] DEBUG: Session pid=882: Exited with return value 0
[+3.09s] DEBUG: Seat seat0: Session stopped
[+3.09s] DEBUG: Seat seat0: Greeter stopped, running session
[+3.09s] DEBUG: Launching process 966: /etc/lightdm/session-setup
[+3.10s] DEBUG: Process 966 exited with return value 0
[+3.10s] DEBUG: Seat seat0: Exit status of /etc/lightdm/session-setup: 0
[+3.10s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+3.10s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+3.11s] DEBUG: Session pid=950: Running command /etc/lightdm/Xsession startxfce4
[+3.11s] DEBUG: Creating shared data directory /var/lib/lightdm-data/ropid
[+3.11s] DEBUG: Session pid=950: Logging to .xsession-errors
[+3.22s] DEBUG: Activating VT 7
[+3.22s] DEBUG: Activating login1 session 2
[+3.22s] DEBUG: Seat seat0 changes active session to 
[+3.22s] DEBUG: Seat seat0 changes active session to 2
[+3.22s] DEBUG: Session 2 is already active
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=826
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: posix_spawn avoided (fd close requested) 
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.01s] DEBUG: XServer 0: Launching X Server
[+0.01s] DEBUG: Launching process 837: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.01s] 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.01s] DEBUG: Loading user config from /etc/lightdm/users.conf
[+0.01s] DEBUG: User ropid added
[+0.01s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested) 
[+0.56s] DEBUG: Got signal 10 from process 837
[+0.56s] DEBUG: XServer 0: Got signal from X server :0
[+0.56s] DEBUG: XServer 0: Connecting to XServer :0
[+0.56s] DEBUG: Launching process 866: /etc/lightdm/display-setup
[+0.56s] DEBUG: Process 866 exited with return value 0
[+0.56s] DEBUG: Seat seat0: Exit status of /etc/lightdm/display-setup: 0
[+0.56s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+0.56s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+0.56s] DEBUG: Session pid=872: Started with service 'lightdm-greeter', username 'lightdm'
[+0.57s] DEBUG: Session pid=872: Authentication complete with return value 0: Success
[+0.57s] DEBUG: Seat seat0: Session authenticated, running command
[+0.57s] DEBUG: Session pid=872: Running command /usr/bin/lightdm-gtk-greeter
[+0.57s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+0.57s] DEBUG: Session pid=872: Logging to /var/log/lightdm/seat0-greeter.log
[+0.68s] DEBUG: Activating VT 7
[+0.68s] DEBUG: Activating login1 session c1
[+0.68s] DEBUG: Seat seat0 changes active session to c1
[+0.68s] DEBUG: Session c1 is already active
[+0.83s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+1.03s] DEBUG: Greeter start authentication for ropid
[+1.03s] DEBUG: Session pid=940: Started with service 'lightdm', username 'ropid'
[+1.04s] DEBUG: Session pid=940: Got 1 message(s) from PAM
[+1.04s] DEBUG: Prompt greeter with 1 message(s)
[+65.36s] DEBUG: Continue authentication
[+65.37s] DEBUG: Session pid=940: Authentication complete with return value 0: Success
[+65.37s] DEBUG: Authenticate result for user ropid: Success
[+65.37s] DEBUG: User ropid authorized
[+65.39s] DEBUG: Greeter requests session xfce
[+65.39s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+65.39s] DEBUG: Terminating login1 session c1
[+65.39s] DEBUG: Session pid=872: Sending SIGTERM
[+65.41s] DEBUG: Greeter closed communication channel
[+65.41s] DEBUG: Session pid=872: Exited with return value 0
[+65.41s] DEBUG: Seat seat0: Session stopped
[+65.41s] DEBUG: Seat seat0: Greeter stopped, running session
[+65.41s] DEBUG: Launching process 983: /etc/lightdm/session-setup
[+65.42s] DEBUG: Process 983 exited with return value 0
[+65.42s] DEBUG: Seat seat0: Exit status of /etc/lightdm/session-setup: 0
[+65.42s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+65.42s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+65.42s] DEBUG: Session pid=940: Running command /etc/lightdm/Xsession startxfce4
[+65.42s] DEBUG: Creating shared data directory /var/lib/lightdm-data/ropid
[+65.42s] DEBUG: Session pid=940: Logging to .xsession-errors
[+65.53s] DEBUG: Activating VT 7
[+65.53s] DEBUG: Activating login1 session 2
[+65.53s] DEBUG: Seat seat0 changes active session to 
[+65.53s] DEBUG: Seat seat0 changes active session to 2
[+65.53s] DEBUG: Session 2 is already active
[+53774.58s] DEBUG: Session pid=940: Exited with return value 0
[+53774.58s] DEBUG: Seat seat0: Session stopped
[+53774.58s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+53774.58s] DEBUG: Sending signal 15 to process 837
[+53774.59s] DEBUG: Got signal 15 from process 1
[+53774.59s] DEBUG: Caught Terminated signal, shutting down
[+53774.59s] DEBUG: Stopping display manager
[+53774.59s] DEBUG: Seat seat0: Stopping
[+53774.61s] DEBUG: Process 837 exited with return value 0
[+53774.61s] DEBUG: XServer 0: X server stopped
[+53774.61s] DEBUG: Releasing VT 7
[+53774.61s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+53774.61s] DEBUG: Seat seat0: Display server stopped
[+53774.61s] DEBUG: Seat seat0: Stopped
[+53774.61s] DEBUG: Display manager stopped
[+53774.61s] DEBUG: Stopping daemon
[+53774.61s] DEBUG: Exiting with return value 0

Both of my log files show the prompt at about 1.0 seconds after LightDM starts, for you it's 3.7 seconds until the prompt.

Last edited by Ropid (2020-07-03 09:32:39)

Offline

Board footer

Powered by FluxBB