by suby · 5y ago · 0 comments
I'm curious to know what state Wayland is in nowadays, especially regarding how well it works with Nvidia cards. The last time I tried it out was around 2017ish when Fedora enabled it by default. It was 100% not ready then as it wouldn't even boot into the desktop with my nvidia card.
Is it actually ready now? Does it work with nvidia cards? Does GPU acceleration work with nvidia cards? Are apps launching via xwayland gpu accelerated / working as expected? It sounds like OBS and some screenshot programs work now which is nice.
If you use one of the "big" compositors like GNOME or KDE I believe they have sort of added EGLStreams support so you can use it on NVIDIA but it's not perfect. If you use a more niche one, e.g sway, then it won't work on the NVIDIA proprietary drivers because they don't support GBM.
There is some news recently that NVIDIA may be coming around and are in the progress of implementing GBM support in their drivers, but it's not confirmed.
You can also use the nouveau nvidia drivers but from what I understand the performance is trash in 3d applications using modern cards, it seems more orientated to supporting older nvidia cards.
The thing that is worth noting is how this situation came to be. That is, there was at one point a conference where the community invited AMD, Intel, and NVidia to discuss the future of this API and Nvidia was a no show for some reason. Those who showed ended up producing GBM, Nvidia pulled EGLStreams out of a hat, and the rest is history.
Who knows, maybe it was something as simple as scheduling and the people at Nvidia that needed to be there couldn't make it? Maybe in another timeline this mess could have been avoided entirely.
But not sure about the OpenGL (I think Nvidia do).
These apis let you export a FD for sharing. Pretty sure you can import (scanout compatible) objects into DRI/DRM/KMS. Which is what libgbm does for Mesa drivers.
Although most compositors (including wl_roots based ones) still use libgbm as they might also need to support embedded hardware. (eg: Tizen).
(In the original release of Vulkan intel has a weird "unofficial" extension that let you export a FD. and khr had a VK_cube demo that could directly use KMS with Vulkan using this "extension". This was removed as it was only there to test Vulkan before any window manager integration was implemented)
Additionally, NVIDIA seems to be putting a lot of effort into overall Wayland support (yay!): https://www.phoronix.com/scan.php?page=news_item&px=NVIDIA-4...
Hopefully, by next year, Wayland on NVIDIA should be "fully" supported. It's slow progress, but it is moving forward.
Wayland support is getting really good these days, I'd recommend giving it a try before going back to Xorg if needed.
This release is no different than any previous one for NVIDIA users
Depends on your needs and hardware. I have an Nvidia desktop and Intel Laptop both running Arch + GNOME 40. Intel is definitely less buggy, but I still find myself switching back to X11. For example, when I needed screen sharing for work video conferencing, it only works under X11(PipeWire support was buggy at the time). Wayland/GNOME also still have issues with mouse lag with high CPU.
It's getting better every day, but still rough around the edges.
Years ago I remember dreading firing up XFree86 on a machine with only 4MB, opting to use svgalib apps instead. But I've been using XFree86/Xorg for two decades now. I like new technology (I love my Toyota hybrid, for example, even though it lacks a clutch pedal). What tangible benefit does Wayland offer me?
I can switch from Intel only to Nvidia PRIME profile and after restart it just switches to XOrg.
Before christmas I played around with Plasma on Wayland. It mostly works, but there were some weird quirky behavior. I didn't look much into it, since I'm so happy with Sway.
I hear people say Gnome is fine on Wayland.
As for Nvidia: can't help you with that, sorry.
With luck, this problem will soon be solved from the opposite direction:
But fractional scaling with Nvidia did not work at all before 21.04 so I guess there is progress.
This was 2 weeks ago on kubuntu 21.04 beta.
But I’m on manjaro now and for some reason I have less issues on my laptop than I had with ubuntu 20.04.
Considering I probably have to fool with X every six months or so, a lot will depend on what you mean by "ready."
Personally, I'm not ready for Wayland. It doesn't solve any problem I have. And might create problems I don't have. If I was in the market for new problems I'd probably try Arch again ;)
In my neck of the woods (Central Europe, so not a place with cheap and abundant hardware like North America or Asia) you can find plenty of decently priced hardware in stock if you're an educated consumer and willing to look around.
Sure, you won't find any discrete GPUs anywhere at MSRP thanks to mining and scalpers, BUT, you can find golden nuggets like the Zen2 based 6-core 4650 Pro Ryzen APUs for 220 Euros which is a cracking CPU with good integrated graphics, or you can buy a gaming laptop with the latest gen 8 core Ryzen 5800H and an RTX 3060, 16Gb RAM and 512Gb SSD for about 1200 Euros or even less which IMHO is insane value for this level of performance considering the current apocaliptic market.