KISS-kde icon indicating copy to clipboard operation
KISS-kde copied to clipboard

Test wayland

Open dilyn-corner opened this issue 5 years ago • 11 comments

With the release of plasma 5.20.0, Wayland support is at the fore. This issue exists to track progress on dropping Xorg dependencies. Currently it should be perfectly possible to start a Wayland session. Any issues relating to better Wayland support in this repository will be documented here.

dilyn-corner avatar Oct 15 '20 17:10 dilyn-corner

The first issue I have encountered: I cannot start a Wayland session.

@sdsddsd1, tips or tricks?

dilyn-corner avatar Oct 18 '20 15:10 dilyn-corner

I dont have a kde-system anymore, but I am glad to give my "expertise" :D What are prerequisites you have already done? Like do you start with elogind, from tty or sddm? Without elogind the xdg_runntime_dir needs to be set. Things you probably know with your wl experience but just to make sure. Going after KDE docs https://community.kde.org/KWin/Wayland#Start_a_Plasma_session_on_Wayland dbus-run-session startplasma-wayland

sdsddsd1 avatar Oct 18 '20 16:10 sdsddsd1

Just a TTY for now :)

I thought I had done all of these things but I will retest. Presumably forking xorg-server to add xwayland support will be necessary for now, but we'll see!

dilyn-corner avatar Oct 18 '20 16:10 dilyn-corner

I am just snooping around (: What do you try do start, kwin or kwinft? Arch wiki references to the same docs I found above https://wiki.archlinux.org/index.php/KDE#From_the_console . Arch also provides a "kde wayland" package. May be good to look over this. https://www.archlinux.org/packages/extra/x86_64/plasma-wayland-session/

sdsddsd1 avatar Oct 18 '20 16:10 sdsddsd1

Their package only installs a .desktop file, which might be relevant.

The error I'm actually getting that seems to stop this is "no libinput :(". Which is a weird error to get.

dilyn-corner avatar Oct 18 '20 16:10 dilyn-corner

I noticed that kwayland and plasma-wayland is missing as a package in the plasma repo.

sdsddsd1 avatar Oct 18 '20 17:10 sdsddsd1

kwayland is in frameworks and plasma-wayland is not a package (though *-session and *-protocols are, and we have discussed the former and the latter is in this repo).

dilyn-corner avatar Oct 18 '20 17:10 dilyn-corner

As it stands, a pseudo list of currently required xorg libs:

kscreenlocker -> qt5-x11extras, xcb-util-keysyms kwindowsystem -> qt5-x11extras libkscreen -> qt5-x11extras plasma-integration -> qt5-x11extras plasma-desktop -> xorg-server kwin -> libX11 kwayland -> EGL. This means mesa requires x11 platform support

There are a few more small deps sprinked in (like xcb-util-* stuff), but ultimately it all comes down to when kwayland stops being... Dumb? Like, that's the dumbest framework ever. It's literally named kWAYLAND for crying out loud.

dilyn-corner avatar Oct 27 '20 01:10 dilyn-corner

kwin has a sneaky line in its build output:

xwayland required to launch kwin_wayland

This can't be it, right?

Will test, of course 🙃

dilyn-corner avatar Oct 27 '20 14:10 dilyn-corner

Update: have tested all changes thus far. No longer have the aforementioned issue about libinput. Which is good. New issue: session appears to launch, but it is merely a black screen. What fun.

dilyn-corner avatar Nov 01 '20 18:11 dilyn-corner

Thats some progress.🍹 Looking for 'kwin blackscreen' brings up mostly issues related to nvidia. And also issues 4 years old :
💻 🧑‍🚒

sdsddsd1 avatar Nov 02 '20 11:11 sdsddsd1