Background: Plasma DE (s6) with the relevant wayland packages (plasma-wayland-protocols, plasma-wayland-session, etc.) installed and SDDM as the greeter.
Problem: SDDM cannot launch a wayland session. If auto-login is enabled then the session does not start and the greeter appears (selecting wayland fails while X11 succeeds). When the greeter appears on boot (such as when auto-login is disabled) and you select plasma-wayland as the session, the screen goes black and you are kicked back to the greeter.
Similar problems: 1. Here on the Artix forum. 2. Discussion on SDDM Github.
I am unsure of whether the reason in the first link is still relevant and I have tried some of the suggestions in the second link, but those were unsuccesful.
Launching a nested wayland session via XDG_SESSION_TYPE=wayland dbus-run-session startplasma-wayland
executes without any problem.
Relevant information:
inxi -G
Graphics:
Device-1: AMD Cezanne driver: amdgpu v: kernel
Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3 driver: X:
loaded: amdgpu unloaded: fbdev,modesetting,vesa gpu: amdgpu
resolution: 2880x1800~90Hz
OpenGL: renderer: AMD RENOIR (LLVM 14.0.6 DRM 3.46 5.18.10-artix1-1)
v: 4.6 Mesa 22.1.3
SDDM wayland session log:
kdeinit5: preparing to launch '/usr/lib/kf5/klauncher'
kdeinit5: Launched KLauncher, pid = 11626, result = 0
(kwin_wayland:11616): Gtk-WARNING **: 10:25:43.290: cannot open display:
(kwin_wayland:11627): Gtk-WARNING **: 10:25:43.446: cannot open display:
/** TRUNCATED: the above line is repeated several times **/
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
The Wayland connection broke. Did the Wayland compositor die?
qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
The Wayland connection broke. Did the Wayland compositor die?
kdeinit5: Communication error with launcher. Exiting!
Error: could not determine $DISPLAY.
Error: Can not contact kdeinit5!
org.kde.startup: "kdeinit5_shutdown" () exited with code 255
startplasma-wayland: Shutting down...
startplasmacompositor: Shutting down...
startplasmacompositor: Done.
The sddm-git AUR package has the same behaviour.
Has anybody faced this problem and managed to solve it?