Just wanted to share for the 10 people like me who has with an Nvidia + dual screen setup on ArchLinux (btw) with KDE Plasma desktop that since the new plasma 6 update I can finally use the Wayland session option!

The wayland should work has been around for the last 5 years and 5 years ago it was not even close, then 1 or 2 years ago it started not crashing but multi-screen was not OK (I tried all the kernel and driver parameters).

Now for me and my 5+ years-old setup (probably a lot of legacy plasma settings in my .config) it was finally seamless.

From previous tries I already knew that the desktop feels WAY smoother (true 60 fps everywhere, specially for the video players in web browser).

Feels great so far, discord screen-sharing is not there but can be done from Firefox if needed so OK for me.

I hope this post will be informative for some like me who tried several time over the years and didn’t had much hope.

PS : the cursor has a weirdly strong outline (too shiny to my taste) feels like unintended but not a big problem. I spent 30 mins in the options but couldn’t find anything about that.

42 points

In the coming months, an important protocol will be merged to Wayland and xorg, and the next Nvidia driver release will have support for that protocol. This will make the Nvidia Wayland experience 100x better

permalink
report
reply
29 points

Care to elaborate? Sounds promising

permalink
report
parent
reply
15 points

I’m not a hardware dev, but I’ve been following this issue for several months. Nvidia on Wayland does not implement implicit GPU synchronization currently for Xwayland. Other vendors do.

This issue is related to how/when the framebuffer from the gpu is handed off to be displayed. Implicit sync isn’t a great solution, it’s just what’s been done for Linux in the past.

Here’s a bit more detail if you’re interested:


I believe this issue is more specific to Wayland because Wayland relies on the DRM, direct rendering manager, to facilitate communication between the graphics driver and Wayland clients (applications). Whereas Xorg kinda just covered everything along the pipeline.

Implicit sync sounds like a bit of hack, where software (I assume the client? Or maybe the drm driver?) implicitly checks for the frame to be finished, rather than being signaled when the frame is ready.

So instead, Nvidia has been arguing for, designing and developing an explicit sync Wayland Protocol (and one for Xorg), which will let the graphics driver explicitly signal when a frame is finished and ready to be displayed. This is how the graphics stack works on Windows.


Right now on Nvidia, Xwayland clients will show previous frames, incomplete/corrupted frames or will fail to update when a new frame is rendered. Here’s the XWayland Merge Request. The issue is much worse on drivers > 535.xx after some optimizations worsened the issue. For now, rolling back can help!

There will be benefits in general with explicit sync, but the major ones will be Xwayland functioning properly for Nvidia users, VRR and apps with inconsistent framerates.

permalink
report
parent
reply
8 points
*

And apparently the plan is to have explicit sync ready for the next major driver version (v555).
From the discussions on Github and Gitlab it seems the work for that to happen is done. The changes in the necessary packages (Xwayland, Mesa?) just need to be merged and the the Nvidia driver 555 needs to be released. It hasn’t been that long since the previous release 550. So I guess it is going to take a bit of waiting still.

permalink
report
parent
reply
10 points
*

It’s the explicit sync protocol.

The TL;DR is basically: everyone else has supported implicit sync for ages, but Nvidia doesn’t. So now everyone is designing an explicit sync Wayland protocol to accommodate for this issue.

permalink
report
parent
reply
3 points

It’s explicit sync, look at my other comment for links

permalink
report
parent
reply
9 points

I’d like to know what this is as well? I was hoping Plasma 6 was going to solve my Nvidia + Wayland issues for me, but it didn’t seem to make any difference.

permalink
report
parent
reply
4 points

Because it’s Nvidia drivers causing it.

permalink
report
parent
reply
2 points

That has already been established, yes.

permalink
report
parent
reply
-6 points

PLEASE stop spreading that lie!!!

permalink
report
parent
reply
4 points

I just replied to Nilz over here with my understanding of it.

The protocol is to facilitate explicit gpu synchronization.

Currently xwayland apps show the most issues with this on Nvidia. Driver 535 and earlier help mitigate it, or using native Wayland apps, when possible.

permalink
report
parent
reply
1 point

Yeah, also waiting for it. Until the protocol is implemented, I have to use driver 535 without HDR support. :(

permalink
report
parent
reply
16 points

I tried Plasma 6 + Wayland on Arch btw earlier today, ran into the first issues in like 3 minutes after installation and switched back to Xorg for good. Wayland never worked for me. Yes it’s much more smooth and has nice features but it just never works that well on my machines. Btw for all the Wayland bodyguards, it was on Intel integrated graphics, not on NVidia or anything like that

permalink
report
reply
4 points

Damned, this is so frustrating when you cannot switch yet. Not like Wayland is perfect anyway but I felt the same with pipewire where the new system as some needed improvement but the switch is harsh.

permalink
report
parent
reply
6 points

Never had issues with Pipewire smh. I didn’t even notice the transition

permalink
report
parent
reply
3 points

What were the issues?

permalink
report
parent
reply
5 points

The whole system completely froze when I tried to resize the application launcher (aka Start menu). I switched to tty and saw Plasma getting stopped. I could launch the second GUI session but ehh I just rebooted. Maybe it wasn’t exactly a Wayland issue but anyways I always have something not working well on it. I also had bad performance which was on Plasma 5 + Wayland too (on Xorg it was fine of course). On another machine I even got artifacts when using it lol. And btw Plasma 6 is really unstable, even on Xorg. Don’t use it in production

permalink
report
parent
reply
3 points

I just installed Hyprland (so different WM, but still Wayland) on my laptop with Intel integrated graphics and it works fine for me. It could be a difference between generations, though, as my laptop is from 2014.

You’re not really missing much yet imo— most software I use still requires xwayland anyways.

permalink
report
parent
reply
2 points

The machine was probably from the same era. I don’t remember the CPU model but it’s 4th gen I3 I think

permalink
report
parent
reply
2 points

Same. Switching users didn’t work in Plasma 6 and switched back to Gnome.

permalink
report
parent
reply
10 points
*

discord screen-sharing is not there but can be done from Firefox if needed

You can also install KDE’s XWayland Video Bridge, which converts Wayland screen sharing into an app for discord to share.

flatpak install --user --or-update https://cdn.kde.org/flatpak/xwaylandvideobridge-nightly/org.kde.xwaylandvideobridge.flatpakref

You might also want to add the repo for updates, but I think it’s been down for a little while for me.

Edit: There’s a new repo: flatpak remote-add --if-not-exists xwaylandvideobridge-nightly https://cdn.kde.org/flatpak/xwaylandvideobridge-nightly/xwaylandvideobridge-nightly.flatpakrepo

permalink
report
reply
9 points

My experience with this setup is generally:

  • login to a black screen
  • try to switch windows or desktops, then something appears with glitchy green animations
  • get annoyed
  • go back to x

I’m sure I missed something stupid like installing drivers properly, but I’ve been too busy / lazy to fix it.

permalink
report
reply
1 point

You need to enable DRM KMS on Nvidia.

permalink
report
parent
reply
1 point

Thanks 🙂

permalink
report
parent
reply
8 points

Welcome to Wayland, the Way(land) of the Future! ducks, flees!

But really, welcome to the Wayland club ;P

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 9.7K

    Monthly active users

  • 5.8K

    Posts

  • 162K

    Comments