-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plasma Wayland #43757
Comments
I think I got this working from a tty. For sddm no though. |
I've had it running since 5.11 (maybe 5.10) from sddm but haven't used it due to missing features: https://community.kde.org/Plasma/5.13_Errata This should do it:
|
@peterhoeg with that patch sddm seems to get stuck when authenticating in a vm with the wayland session and has to be manually restarted. |
@peterhoeg with that patch sddm seems to get stuck when authenticating in
a vm with the wayland session and has to be manually restarted.
I have admittedly not tried it recently but it definitely was working in the past.
|
My patch is based on your patch @peterhoeg :D |
I got a step further, adding my user to the |
I got it working! :D Now I just need to cleanup all the stuff :D |
Here is my pr: #44139 |
I suggest having a look at how the X11 session files are handled and then simply doing it the same way. Polluting |
Yeah I know, that is really hacky. The x11 desktop files are generated by us, but there is some work going on to switch to the provided desktop files. |
Any updates on this? |
Currently nothing new. I think there was some work to support Wayland desktop files from the login manager. That is the last piece that is missing, AFAIK |
Is there a PR for that? |
Not yet, the work that was done, was for gnome. |
Okay. |
An issue to which project? KDE? I really need to test KDE Neon an compare it with the NixOS performance. Maybe we miss something. |
My bad, sorry for not being specific. |
I created that project as a place to gather all wayland related issues - it isn't as such a concerted effort to get plasma going. I haven't spent real time on it as wayland KDE is still missing features for my use case(s). |
As a data point, I tried launching a KDE wayland session y'day which worked fine (except for the missing features). |
It wasn't stuttery at all? |
Perhaps my issue has to do with something between AMDGPU and KDE/Wayland... |
I tried it on a laptop with haswell graphics fwiw - no graphics issues. |
How strange. Latest nixpkgs, right? |
Am I correct that the only missing bit is getting |
I need to find some time to bring plasma Wayland to sddm. Should not be that hard anymore. |
While you're at it, how about plasma 5.15 as well? ;-) |
@peterhoeg there is already a pr: #55650 |
On NixOS 18.09, with the sddm patch applied, when I choose wayland, I only get a black screen and then get back into sddm, without any meaningful error message in journal. As you all seem to be on unstable, I guess I'll wait for 19.03 and hope that it'll just work then. |
I didn't use the patch currently, so maybe something broke in the meantime. |
Here we go: #56988 |
I'm getting:
when trying to run manually with:
I got the SDDM session file to load by simply adding |
@nrdxp same problem here. It's kwin_wayland which fails. With
I've tracked this error to https://code.qt.io/cgit/qt/qtbase.git/tree/src/gui/kernel/qguiapplication.cpp?h=dev#n1234 . Plugin's class is instantiated via Regular Qt/KDE apps can be launched under Weston successfully (without Xwayland). UPDATE I've got it! Look at https://github.com/KDE/kwin/blob/master/plugins/qpa/main.cpp : |
Now, the problem is that hardware acceleration is not working in kwin_wayland if it's launched with drm backend (i. e. from tty). I've tracked this to kwin compositing plugin selection mechanism ("SceneOpenGL" compositing plugin is responsible for initializing EGL, calling the code in mesa which actually adds wayland globals to compositor registry allowing clients to create hardware accelerated rendering contexts). For x11 backend, kwin_wayland instantiates "SceneOpenGL"; however, when run with drm backend, it instantiates "SceneQPainter" backend, which doesn't initialize EGL at all. Relevant code is in composite.cpp,
and assured that libgbm is reported by cmake during build
, "SceneQPainter" is still instantiated instead of "SceneOpenGL". UPDATE it is really because of missing mesa/libgbm dependency. kwin_wayland built with it provides hardware acceleration. However, if it is built as overridden pkg with its own attr name in Nix scope (
|
Now, the problem is that normal Plasma Wayland startup routines (ones that run when I have submitted proposal to change Qt plugin paths handling in nixpkgs, #86369 ; I think it will eradicate the need for these wrappers which build enormous env vars. |
I marked this as stale due to inactivity. → More info |
still important to me |
1 similar comment
still important to me |
This would be cool, I've always wanted to move away from X but can't figure out how to configure wayland : ( |
This PR (and the one-liner mentioned in a comment) basically gets it going: #117102 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/plasma-wayland-session-not-available-from-sddm/13447/3 |
I finally want to get Plasma working on Wayland with Nixos.
After trying today the whole day getting this working, I'm desperate.
I think that the problem is something with missing permissions.
My current output is:
I have the following patch applied:
Anyone has any further ideas? @peterhoeg @ttuegel @worldofpeace @adisbladis
The text was updated successfully, but these errors were encountered: