This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Wayland] Cannot start a Wayland session from Plasma or tty

Tags: None
(comma "," separated)
diem
Registered Member
Posts
8
Karma
0
Hi all,

I want to help with the push towards Wayland, so I have made the necessary changes to get Wayland support working (I run Gentoo so I enabled the relevant USE flags and re-emerged @world), yet I have so far had mixed results and could really do with the community's assistance to see what my setup might be missing. Here is how far I have got trying to start from both SDDM and from a tty:

SDDM
At the login greeter, if I select 'Plasma (Wayland) (Wayland)' at the bottom-left (curious that Wayland is listed in brackets twice?) and provide my user credentials, the screen goes black briefly then comes back to the login screen. The contents of ~/.local/share/sddm/wayland-sesion.log are:
not a reply org.freedesktop.locale1 QDBusMessage(type=Error, service="org.freedesktop.DBus", error name="org.freedesktop.DBus.Error.ServiceUnknown", error message="The name org.freedesktop.locale1 was not provided by any .service files", signature="s", contents=("The name org.freedesktop.locale1 was not provided by any .service files") )
No backend specified through command line argument, trying auto resolution
Invalid MIT-MAGIC-COOKIE-1 keyKWin exited with code 1
startplasmacompositor: Shutting down...
startplasmacompositor: Done.

Googling the MIT-MAGIC-COOKIE-1 error doesn't throw up anything definitive, and nothing at all related to keyKWin and Wayland. Is it the source of the trouble though?

tty
I am currently using the following to start from a tty:
XDG_SESSION_TYPE=wayland
export $(dbus-launch) && startplasma-wayland --drm

This successfully gives my a black screen with a cursor, and if I leave it alone long enough it will lock the screen and give me the login window to unlock it, however I do not get the Plasma window furniture (no menu bar, Krunner isn't running etc. etc.). Here's the terminal output:
not a reply org.freedesktop.locale1 QDBusMessage(type=Error, service="org.freedesktop.DBus", error name="org.freedesktop.DBus.Error.ServiceUnknown", error message="The name org.freedesktop.locale1 was not provided by any .service files", signature="s", contents=("The name org.freedesktop.locale1 was not provided by any .service files") )
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5089:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5091:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5093:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5097:47: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5099:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5107:48: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5111:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5113:46: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5117:45: this compose sequence is a duplicate of another; skipping line
kwin_xkbcommon: XKB: /usr/share/X11/locale/en_US.UTF-8/Compose:5120:46: this compose sequence is a duplicate of another; skipping line
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 620 (KBL GT2)
OpenGL version string: 4.6 (Core Profile) Mesa 21.1.7
OpenGL shading language version string: 4.60
Driver: Intel
GPU class: Kaby Lake
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 21.1.7
Linux kernel version: 4.19.184
Requires strict binding: no
GLSL shaders: yes
Texture NPOT support: yes
Virtual Machine: no
Filter multi-plane format 961959257
Filter multi-plane format 825316697
Filter multi-plane format 842093913
Filter multi-plane format 909202777
Filter multi-plane format 875713881
Filter multi-plane format 961893977
Filter multi-plane format 825316953
Filter multi-plane format 842094169
Filter multi-plane format 909203033
Filter multi-plane format 875714137
Filter multi-plane format 842094158
Filter multi-plane format 909203022
kf.notifications: env says KDE is running but SNI unavailable -- check KDE_FULL_SESSION and XDG_CURRENT_DESKTOP
WARNING: Kernel has no file descriptor comparison support: Function not implemented
KWin exited with code 0
Launching kwin
startplasmacompositor: Shutting down...
startplasmacompositor: Done.

Obviously this is more promising, but still not quite there since I get nothing graphical with which I can interact. Can anyone suggest what is still missing from my setup?

[edit]
I got more interesting results when I used the following from a tty:
dbus-launch --exit-with-session startplasma-wayland

This starts a Wayland-within-a-window session within my existing logged-in X session on tty7 8) This isn't quite what I was after though - it feels somehow like a 'second class citizen - I would like to be able to boot my machine, end up at SDDM greeter, then choose to either log in as an X or as a Wayland session.

Any suggestions?

Many thanks,

Ian


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell