KDE Plasma (Wayland) and SDDM Queries

Thanks for linking this other thread. It list more links and my conclusion from that is that if you get autologin with Wayland working you can run into a black screen with no cursor although @karlmistelberger reports succes.

Anyhow I tried and follow the instructions and things work for me, nice.

During the boot the screen flashes one time, some thing I did not see before but that is likely because SDDM is still running on X11:

> sudo journalctl -b -u display-manager.service -p6
May 29 21:51:22 systemd[1]: Starting X Display Manager…
May 29 21:51:22 display-manager[1451]: /etc/vconsole.conf available
May 29 21:51:22 display-manager[1451]: XKBLAYOUT: us
May 29 21:51:22 display-manager[1451]: XKBLAYOUT is already set. Better don’t touch X11 keyboard configuration.
May 29 21:51:23 systemd[1]: Started X Display Manager.
May 29 21:51:23 sddm-helper[1666]: pam_unix(sddm-autologin:session): session opened for user marel(uid=1000) by marel(uid=0)
May 29 21:51:23 sddm-helper[1666]: pam_kwallet5(sddm-autologin:session): pam_kwallet5: open_session called without kwallet5_key
May 29 21:51:23 sddm[1460]: Authentication information: “Last login: Mon May 29 21:46:46 CEST 2023 from :0 on tty7”
May 29 21:51:23 sddm-helper[1666]: Starting: “/usr/share/sddm/scripts/wayland-session /usr/libexec/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland”

Not a big problem, so let me wait for that until a ssdm update with better wayland support and try to fix that afterwards.

What is not working yet nicely is shutting down the machine, X11 is the culprit but nothing in the journal likely because the journal is stopped before X11 is terminated. During the shut down I see it hang two times on X11, the first time it seems to time out and continue after 30 seconds and then at the end and that seems to take about 2 minutes.

1 Like

I was also having the shutdown/reboot issue a couple of weeks ago. The problem only lasted a few days and fixed itself, but it was quite annoying.

In the mean time, I edited /etc/systemd/user.conf

Change the following
#DefaultTimeoutStopSec=90s
to
DefaultTimeoutStopSec=15s

and you won’t have to wait so long when it does hang. Fedora just changed this as a default, because they said it was useless to have to wait so long. If a service has not shutdown in 15 seconds, it is not going to shutdown and should just be killed.

2 Likes

Thanks for the hint to reduce the default timeout. Makes good sense, but for now I leave the 90 seconds default so I notice. I might try to play with an updated sddm to see if I can get sddm also to run on Wayland so X11 is not started at all.

I did run:

> inxi -G
Graphics:
Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
driver: i915 v: kernel
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
dri: crocus gpu: i915 resolution: 2560x1440
API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel HD Graphics 4600 (HSW GT2)

So it looks (server: X.org, driver: X) like I am running more X11 still then expected.

Is this because KDE does not support Wayland completely (and that will be fixed for KDE Plasma 6)?

No, it is not that KDE does not support Wayland completely (as you can see the compositor is reported as kwin_wayland), but SDDM is still starting via an X11 session.

Yes, let us know how you get on with this. I couldn’t satisfy the dependencies when I tried it for Leap 15.4 a month or so ago.

Alternatively, switch to the gdm display-manager, which launches its own wayland session…

~> ps -ef |grep X
dean      1787  1746  0 19:21 ?        00:00:00 /usr/bin/Xwayland :0 -auth /run/user/1000/xauth_GHSyOf -listen 45 -listen 46 -displayfd 37 -rootless -wm 40
dean      2420  2305  0 19:22 pts/1    00:00:00 grep --color=auto X
~> ps -a |grep X
~> ps -ef |grep gdm
root      1113     1  0 19:20 ?        00:00:00 /usr/sbin/gdm
root      1702  1113  0 19:20 ?        00:00:00 gdm-session-worker [pam/gdm-password]
dean      1729  1702  0 19:21 tty2     00:00:00 /usr/lib/gdm/gdm-wayland-session --register-session /usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland
dean      2823  2305  0 19:29 pts/1    00:00:00 grep --color=auto gdm

I have now encountered too many annoyances in Wayland that I want to go back to X11 but switching now only throws me to tty. Incredibly frustrating, but adding to my +1 of anti-wayland.

Well this isn’t the category to do that. No value tacking on to a help thread with such a statement. If you need technical assistance, please start a new thread. If you want simply want to recount your Wayland experience you could add to the existing Open Chat thread (or start your own)…