wlroots-eglstreams icon indicating copy to clipboard operation
wlroots-eglstreams copied to clipboard

Since nvidia driver 495 includes GBM support, will this fork no longer be needed?

Open Tank-Missile opened this issue 3 years ago • 24 comments

https://www.nvidia.com/download/driverResults.aspx/181167/en

Tank-Missile avatar Oct 14 '21 23:10 Tank-Missile

If said support will be more stable than this fork then probably yes, but knowing Nvidia it will be some time until that happens (I could be wrong and maybe even current beta is super stable, but I doubt it)

EDIT: Also a quote from another issue seems to confirm my conserns: Sway still doesn't work as well on GBM compared to this fork, though.

Also I'm not sure if the nvidia support is code changes free, I have not played with beta driver yet, so that could be another reason for a fork

PolyMeilex avatar Oct 15 '21 07:10 PolyMeilex

I'd say that there are still a lot of issues before GBM works properly with Sway. (See here). Personally NVDEC also started dropping lots of frames for me. Hopefully many of these issues will be fixed by the stable release.

Additionally this fork would be very helpful for users of Maxwell GPUs that won't be getting the 495 update.

sheepymeh avatar Oct 15 '21 09:10 sheepymeh

@sheepymeh could you please provide the source of Maxwell vs 495? I've got 970 GTX (maxwell) and it's still working with 495 beta and release page lists it in supported cards

danvd avatar Oct 15 '21 18:10 danvd

My bad, it was Kepler losing support in 495.

sheepymeh avatar Oct 16 '21 03:10 sheepymeh

Personally, I doubt this fork will be unneeded any time soon. The sway devs won't implement any form of support unless nvidia fully open-sources their driver, which seems very unlikely. And "out of the box" in the readme is somewhat misleading: It enables sway to run, provided you pass --my-next-gpu-wont-be-nvidia, but sway still won't use the nvidia card without heavy tinkering, or at all, depending on your hardware.

I think the GBM implementation they rolled out is not in vain, though. Maybe this fork could be simplified/extended if wired to use it?

LuigiPiucco avatar Oct 21 '21 12:10 LuigiPiucco

Sway with gbm works OK for me, not too good but fairly usable:

  • Terrible flickering and no cursor unless wf-recorder is running in the background
  • Sometimes pasting from the wayland clipboard hangs the programs that are reading from it
  • Similar to the above point, firefox sometimes just gets stuck and doesn't draw new frames, need to switch back and forth between workspaces to get it to magically redraw.

git-bruh avatar Oct 23 '21 09:10 git-bruh

When the GBM support gets stable, yes. Until then, stuck on EGLStreams or X11.

zoeleu avatar Oct 23 '21 20:10 zoeleu

I'll test todays driver when it arrives to arch repos. It's on aur now. If anyone has tested please provide feedback here with compositor etc. and what doesn't work.

pm4rcin avatar Oct 26 '21 20:10 pm4rcin

I seem to have the exact same issues described here: https://github.com/danvd/wlroots-eglstreams/issues/33#issuecomment-950126734

Dunno what they even changed in the stable driver lol

git-bruh avatar Oct 27 '21 07:10 git-bruh

@git-bruh did you today used standard wlroots or that fork?

pm4rcin avatar Oct 27 '21 09:10 pm4rcin

@pm4rcin wlroots 0.41.1

git-bruh avatar Oct 27 '21 11:10 git-bruh

@git-bruh did you use it with newest version of XWayland because it turns out that starting today it should work I guess XWayland-21.1.3-Released. But I don't know. I'll test tomorrow how it works on AMD + Nvidia laptop.

pm4rcin avatar Nov 08 '21 22:11 pm4rcin

Hi guys. I also tried vanilla wlroots with latest nvidia driver. Looks like it's not usable now: flickering, chrome does not start with wayland backend. I did not tested it further though - these 2 issues make it a showstopper for me.

danvd avatar Nov 10 '21 03:11 danvd

Now that mostly everything needed to get GBM into a usable state has been merged upstream, it's time for a progress report. As of this comment, I have the following packages installed:

  • egl-wayland 1.1.9
  • mesa 21.2.4
  • nvidia-dkms 495.44
  • plasma-desktop 5.23.3
  • qt5-wayland 5.15.2 with this patch to fix stuttering
  • wayfire-desktop-git 0.7.2
  • wlroots 0.14.1
  • xorg-xwayland 21.1.3

KDE Plasma on wayland is far from completely useable, but it's miles better than it was a year ago. With regular kwin, xwayland apps either stutter, have graphical glitches, or render completely black. The last case occurs with steam games and electron apps such as discord. Wayfire with an assortment of packages to make it a full desktop environment is a bit iffy to use, but I gave it a whirl to see if I would encounter the same issues. Steam games still render black and discord refuses to open.

Tank-Missile avatar Nov 11 '21 22:11 Tank-Missile

Managed to try it out with the patch for qt5-wayland under plasma 5.23.4, with GBM it is actually quite useable for me, it has some apps like discord or reaper(DAW) or spotify that just have like rendering flickering, but other than that the entire desktop is smooth and runs extremely well, surprisingly. I hope that those issues can be resolved fairly quickly so that GBM with Nvidia on wayland would work flawlessly.

kodatarule avatar Dec 31 '21 15:12 kodatarule

510.47 seems to have been released a few days ago with GBM support. I haven't tested it yet, but hopefully it fixes some of the remaining issues.

hansihe avatar Feb 04 '22 16:02 hansihe

Just checked it. Nothing has changed:

  1. Flickering: YES
  2. No cursor: YES
  3. Freezes of alacritty: YES :-(

danvd avatar Feb 04 '22 17:02 danvd

a long time later, still unuseable. Same issues that you mentioned @danvd . (worth noting, the no cursor can be worked around with WLR_NO_HARDWARE_CURSORS=1, but the rest of it is still a showstopper anyways).

mijoharas avatar Dec 08 '22 21:12 mijoharas

Off-topic, but I purchased an RX 6600. GTFO of Nvidia if you use Linux.

zoeleu avatar Dec 09 '22 19:12 zoeleu

And please do mention how sweet and buttery the new experience is! I made exactly the same move.

lucilanga avatar Dec 09 '22 21:12 lucilanga

(sorry for the off-topic) Yep, did the same, all problems are magically gone, even X11 works miles better, no matter the WM, no matter the DE, no matter the display server, and as a bonus suspend which I used to think is just broken on Linux (as it always was barely working on all of my machines) is now working perfectly as well.

Kinda funny to realize that I've been using Linux for years, not realizing how subpar experience I had, sometimes even thinking that it's just Linux being Linux, while it was just Nvidia being Nvidia.

PolyMeilex avatar Dec 09 '22 22:12 PolyMeilex

Off-topic again, but even on a Haswell, entry level, laptop Intel CPU, the experience with Wayland is THAT much better than Nvidia. Linux is, forgive the word, shit for many people because of Nvidia's lack of cooperation with Linux developers and lack of open source drivers.

zoeleu avatar Jan 09 '23 13:01 zoeleu

Don't forget about legacy nvidia cards

Pixelsuft avatar Jun 15 '23 10:06 Pixelsuft