Sddm crashing at boot

Hi, I have installed the KDE edition to two different laptops (Lenovo and HP), both shipping an Intel CPU and integrated graphics. However, most of the times the session does not start (both X and Wayland) and I have to type “startx” to get the desktop working. What could I do? This is my sddm.log (I see an error message in the end):
[12:03:09.861] (II) DAEMON: Initializing…
[12:03:09.867] (II) DAEMON: Starting…
[12:03:09.867] (II) DAEMON: Logind interface found
[12:03:09.868] (II) DAEMON: Adding new display on vt 7 …
[12:03:09.870] (II) DAEMON: Loading theme configuration from “”
[12:03:09.870] (II) DAEMON: Display server starting…
[12:03:09.870] (II) DAEMON: Running: /usr/bin/X -nolisten tcp -dpi 108 -auth /var/run/sddm/{ec159aee-0d80-494d-ae21-b814e937ff50} -background none -noreset -displayfd 17 -seat seat0 vt7
[12:03:10.164] (II) DAEMON: Setting default cursor
[12:03:10.179] (II) DAEMON: Running display setup script “/usr/share/sddm/scripts/Xsetup”
[12:03:10.184] (II) DAEMON: Display server started.
[12:03:10.184] (II) DAEMON: Socket server starting…
[12:03:10.184] (II) DAEMON: Socket server started.
[12:03:10.187] (II) DAEMON: Loading theme configuration from “/usr/share/sddm/themes/maldives/theme.conf”
[12:03:10.188] (II) DAEMON: Greeter starting…
[12:03:10.189] (II) DAEMON: Adding cookie to “/var/run/sddm/{ec159aee-0d80-494d-ae21-b814e937ff50}”
[12:03:10.203] (II) HELPER: [PAM] Starting…
[12:03:10.203] (II) HELPER: [PAM] Authenticating…
[12:03:10.203] (II) HELPER: [PAM] returning.
[12:03:10.218] (II) DAEMON: Greeter session started successfully
[12:03:10.337] (II) DAEMON: Message received from greeter: Connect
[12:03:19.690] (II) DAEMON: Message received from greeter: Login
[12:03:19.690] (II) DAEMON: Reading from “/usr/share/xsessions/plasma.desktop”
[12:03:19.692] (II) DAEMON: Reading from “/usr/share/xsessions/plasma.desktop”
[12:03:19.692] (II) DAEMON: Session “/usr/share/xsessions/plasma.desktop” selected, command: “/usr/bin/startplasma-x11”
[12:03:19.716] (II) HELPER: [PAM] Starting…
[12:03:19.716] (II) HELPER: [PAM] Authenticating…
[12:03:19.717] (II) HELPER: [PAM] Preparing to converse…
[12:03:19.717] (II) HELPER: [PAM] Conversation with 1 messages
[12:03:19.735] (II) HELPER: [PAM] returning.
[12:03:19.736] (II) DAEMON: Authenticated successfully
[12:03:19.737] (II) DAEMON: Authenticated successfully
[12:03:19.771] (II) HELPER: [PAM] Closing session
[12:03:19.774] (II) HELPER: [PAM] Ended.
[12:03:19.776] (II) DAEMON: Auth: sddm-helper exited successfully
[12:03:19.776] (II) DAEMON: Greeter stopped.
[12:03:21.575] (II) HELPER: Starting: “/usr/share/sddm/scripts/Xsession “/usr/bin/startplasma-x11"”
[12:03:21.578] (II) HELPER: Adding cookie to “/home/wastelander/.Xauthority”
[12:03:21.583] (II) DAEMON: Session started
[12:04:29.223] (WW) DAEMON: Signal received: SIGTERM
[12:04:29.224] (II) DAEMON: Socket server stopping…
[12:04:29.224] (II) DAEMON: Socket server stopped.
[12:04:29.224] (II) DAEMON: Display server stopping…
[12:04:29.270] (II) DAEMON: Display server stopped.
[12:04:29.270] (II) DAEMON: Running display stop script “/usr/share/sddm/scripts/Xstop”
[12:04:34.272] (WW) DAEMON: QProcess: Destroyed while process (”/usr/libexec/sddm-helper") is still running.
[12:04:50.857] (II) DAEMON: Initializing…
[12:04:50.864] (II) DAEMON: Starting…
[12:04:50.864] (II) DAEMON: Logind interface found
[12:04:50.865] (II) DAEMON: Adding new display on vt 7 …
[12:04:50.866] (II) DAEMON: Loading theme configuration from “”
[12:04:50.866] (II) DAEMON: Display server starting…
[12:04:50.867] (II) DAEMON: Running: /usr/bin/X -nolisten tcp -dpi 108 -auth /var/run/sddm/{1445073e-2fe5-4c58-b03d-9c5b92d2cce6} -background none -noreset -displayfd 17 -seat seat0 vt7
[12:04:53.419] (EE) DAEMON: Failed to read display number from pipe
[12:04:53.419] (EE) DAEMON: Display server failed to start. Exiting

There was such a thing. I don’t remember how I decided. cl-console-gui I think will help

I tried to save a new session with cl-console-gui, however the problem wasn’t fixed. Because it happens intermittenly, it looks like there is a race condition betweend sddm and something else, but I can’t really understand.

My settings are /etc/portage/make.conf/custom at the moment, now the system works like clockwork, it helped me
custom (2.4 КБ)

thanks so much, I will try it! Did you generate it with calculate- console or did you manually edit the file? However I think I find the culprit: it should be plymouth. Indeed if I uninstall it, the sddm greeter shows up normally. It looks like plymouth locks up the video card preventing sddm from launching, but I don’t have any idea how to find a workaround for this.

I edited this file manually. Parameters ALSA_CARDS= “hda-intel”
VIDEO_CARDS= “amdgpu radeonsi radeon”, replace with your own data. In the line FEATURES= “${FEATURES} getbinpkg ccache usepkg preserve-libs”, delete usepkg. After cl-update --revdep-rebuild
P.S emerge-uDN world or emerge-uDNa world, optional, cl-update does the same.
If I’m wrong, correct me

Slightly correcting for myself what I don’t need in the system (sorry for my English)
custom (2.4 КБ)

Hey alex thanks again for your patience and detailed explanation. In the meanwhile I have switched to LXQT edition and it worked flawlessly, of course if I try KDE again I will be very happy to try your settings and let you know. BTW, your English is excellent :slightly_smiling_face: