It would be great if SDDM could run under wayland. Documentation of SDDM says, that SDDM is abble to run under wayland. It's a little inappropriate to run Xorg to run wayland session. It would be great if x11-misc/sddm had USE flag, which can change default configuration to run SDDM under (for example) kwin compositor. If this is not possible, it would be a good idea to run SDDM under X11 without root privileges. This way is for sure stable.
It is experimental and broken for every second user trying to use it.
https://github.com/gentoo/qt/pull/267 was where we did some WIP on it, just for completeness.
One of the reasons for SDDM Wayland backend currently failing to work is bug 935166. And prior to 0.21.0 it would have required weston[fullscreen] instead, dependency on which was likewise not enforced by the old ebuild for 0.18 or 0.20 series either. Once the correct dependency on dev-libs/weston with the appropriate shell is enforced, it's very likely that SDDM will work reliably with the Wayland backend, since ultimately it's using much of the same graphical stack that most of the still widely used Xorg DDX do (at least with Intel and AMD graphics that I'm familiar with). I expect enabling the Wayland backend by default is not going to be far away. And, unless I'm mistaken, other Plasma 6 distros such as Arch Linux already do use Qt6 SDDM with the Wayland backend as the default.
I just realized that the Arch system without xorg-server also lacks sddm, so they likely have not migrated their package to Wayland backend by default. Sorry for that bit of misinformation previously.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4699002678178dafc5031ad22b8d5b60d614b505 commit 4699002678178dafc5031ad22b8d5b60d614b505 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2024-11-19 19:09:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-04-24 22:18:21 +0000 x11-misc/sddm: try to use VT7 first From https://github.com/sddm/sddm/commit/0ff45c0 Set SDDM_INITIAL_VT=7. This potentially fixes a lot of the vt related bugs and might allow DisplayServer to be set to wayland or x11-user. Bug: https://bugs.gentoo.org/920955 Bug: https://bugs.gentoo.org/915483 Bug: https://bugs.gentoo.org/914656 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/39375 Closes: https://github.com/gentoo/gentoo/pull/39375 Signed-off-by: Sam James <sam@gentoo.org> ...nager-init-1.1.2-r1.ebuild => display-manager-init-1.1.2-r2.ebuild} | 0 gui-libs/display-manager-init/files/display-manager.confd | 1 + x11-misc/sddm/sddm-0.21.0_p20250326.ebuild | 3 +++ 3 files changed, 4 insertions(+)