SDDM autologin to plasmawayland issue

Hi! I’m writing this for future reference in case anyone has the same problem.

I had an issue with the SDDM autologin to the Plasma Wayland session. When I disabled autologin and selected the Plasma Wayland session manually, it started properly. However, with the SDDM autologin option it always started X instead of Wayland.

After searching online, I found several discussions about similar issues but no definitive solutions.

Then, I figured out that the issue was due to my ~/.zprofile configuration. It contained the following line to start X:

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -keeptty -nolisten tcp > ~/.xorg.log 2>&1

After commenting out this line, SDDM autologin to the Plasma Wayland session started working properly.

It appears that SDDM autologin starts the shell as a “login shell”, which sources the ~/.zprofile, while regular SDDM login does not.

EDIT. Just in case I repeat, that I solved the issue myself and posted it here for future reference.

5 Likes

This is an unusual setting.

The behavior can be configured at → System Settings → Colors & Themes → Login Screen → Behaviour

1 Like

I persuaded my installation to auto-login to Wayland by editing /etc/sddm.conf.d/kde_settings.conf and changing

Session=plasma

to

Session=plasmawayland

It needs to be in sddm.conf.d rather than sddm.conf, as the latter may get overwritten by an update.

I think I had this as a leftover from earlier time when I used autologin to tty and autostart X without display manager.

Later I installed SDDM, switched to Wayland and for a long time I could not figure out why manual login to Wayland works while autologin always starts X.

I used this same way of configuration and this very option and was surprised that it anyway started X. At last I’ve found this ~/.zprofile leftover configuration line.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.