Better HN
topnewbestaskshowjobs
Log inSign up

myownfriend

3 karma · joined Feb 1, 2022 (4y ago) · 3 submissions

Submissions

comment 4y ago · link · parent

"why not let me continue to use X11?"

You CAN continue to use X11. There just isn't much point for most applications especially since XWayland lets you run X11 applications in a Wayland session. Wayland is more efficient than X11. Phoronix recently did benchmarks with games in both and Gnome's and KDE's Wayland sessions outperformed the Xorg session while using less power even though those applications were using XWayland.

"Why not just integrate Weston X11 backend into Xorg and then let application developers to drop support for X11 completely, while letting me keep using X11?"

That isn't how any of this works. Weston's X11 backend, just like the X11 backend of all DEs, relies on Xorg. There's nothing worthwhile from a Weston's X11 backend to implement into Xorg.

"Do we need an IPv4 vs IPv6 battle again?"

I mean the same people who worked on Xorg work on Wayland.They didn't come up with it for no reason. X is a protocol from 1983 and has been on version 11 since 1987. It predates GPUs, OpenGL, compositors, and multi-core desktop CPUs. They actually explain the rationale behind Wayland and what's wrong with X11 in the Wayland FAQ.

https://wayland.freedesktop.org/faq.html

If you look at the ideas that were drafted for X12, you can see that Wayland is pretty in line with it. https://www.x.org/wiki/Development/X12/?action=diff

"Moreover, those «program X uses Wayland, but bla-bla-bla... set this environment variable to use X11 backend» are frustrating."

I don't know how else you would like that work.

comment 4y ago · link · parent

Currently running Gnome from a Wayland session with Nvidia's 510.39.01 drivers without issue. It's not Wayland that's not ready yet, it's the ecosystem around it.

While the first commit on the Wayland git was in 2008, it's client and server APIs weren't considered stable until 2013 and then DE support for it only really picked up in 2016 since they were built around X11 from the beginning.

If you were an Nvidia user then your options for DEs were limited to the ones that supported EGLStreams and you didn't get XWayland hardware acceleration or support for Webrender in Firefox until Nvidia started support DMA-buf in June of last year. Nvidia didn't support GBM until October of this year but it had an annoying memory leak which caused issues with programs not wanting to launch of launching as black squares. On top of that, the code that compositors and XWayland used to detect whether to use GBM or EGLStreams didn't work at first and XWayland windows launched as transparent so they needed to be updated. It wasn't until these beta drivers, which came out this month, that I'm able to do everything I'm supposed to be able to do in a Wayland session and the major hurdles in Wayland adoption on Nvidia have been removed. Kwin already removed it's EGLStreams backend because it never worked well to begin with and the drivers will only improve from now on.

comment 4y ago · link · parent

If Xorg could have the functionality of Wayland (mixed refresh rates, mixed DPI scaling, and the performance benefits) then Wayland wouldn't exist.

Things like global cursor coordinates, screen capture, and window automation are intended to or already are being done through things like xdg-desktop-portals which ask for user for permission before an application is allowed to do these things.