News for hackers. Stuff that matters.
Re:HW accelerated Xwayland rendering for Nvidia merged by jrm4 on Friday April 09, 2021 @02:24PM (#26754096)
Long time Linux (and therefore X11) user here. I'm not much of a programmer, more of a techy end user.

I have read of the supposed benefits of Wayland, but from what I can percieve, the cons (too numerous to mention, but mostly breaking a billion useful things that X has had for some time) seem to out weigh the pro. Yes, the pro. Fractional scaling.

I don't like actively cheering for something to fail, but I really don't get it. X11 is in no way broken enough to justify such a huge change, and I'm concerned that the KDEs and Gnomes of the world are going to ramrod the thing through regardless.

Re:HW accelerated Xwayland rendering for Nvidia merged by dijit on Friday April 09, 2021 @02:33PM (#26754240)
Fractional scaling is kind of the most visible thing today. But to be clear, there’s a lot of benefits to wayland.

Mostly the issues could be hacked around. But let’s be absolutely clear with this: it is hacking around the issue.

Problem: tearing, solvable with double buffering, maybe.

Problem: Xorg runs as root, solvable, there’s ways of making your user have direct control of the frame buffer device.

Problem: Xorg is a network system, and a porous one, meaning it’s possible to intercept keystrokes from any running program. Solvable by running a mini X11 instance for each program.

Problem: Xorg is a network system, meaning it is very inefficient. (Imagine using TCP to talk to your SSD)

Problem: Xorg needs to be backwards compatible, so it can’t dig much into hardware features. Especially as the client may not be on the same machine as the server.

Overall, wayland is a good clean slate, it’s been in development a long time. X11 has major warts and they are hard to clear out.

Re:HW accelerated Xwayland rendering for Nvidia merged by espadrine on Friday April 09, 2021 @06:16PM (#26756870)
I’d like to emphasize a major aspect that makes the switch a non-brainer: SECURITY.

The “good old days” of unencrypted Internet, where everyone could see your cookies, are no longer acceptable; the same is true of X11.

With X11, if you copy a password from your manager, you must assume all running apps now know it and transmitted it to a malicious server. There’s no way to tell.

With Wayland, it is only transmitted upon pasting, and only done directly from the copier app to the paster app.

With X11, everything displayed on the screen is compromised. Also, all inputs, keyboard and otherwise.

With Wayland, each app only sees their own pixels.

With X11, screen locking is pure hackery that doesn’t always protect the locked pixels and… login password.

Traditionally, you are meant to trust that process boundaries on Linux are sacredly secure, which is why Spectre was a big deal. But in practice, that is only true under Wayland.

Re:HW accelerated Xwayland rendering for Nvidia merged by marwis on Friday April 09, 2021 @08:16PM (#26757743)
X11 is also just a protocol and you can implement it securely and expose access control through extensions. In fact it already exists (XACE) just nobody is using it.
Re:HW accelerated Xwayland rendering for Nvidia merged by the_why_of_y on Saturday April 10, 2021 @05:16AM (#26760135)
XACE is basically an extension of SELinux into userspace for X11. Given that today Fedora/RHEL are the only distros that enable SELinux out of the box, such an approach would have been doomed to failure (or doomed to provide a product differentiator for RHEL in the best case) - not to mention the sheer joy and excitement that debugging SELinux AVC denials would produce for end users and desktop application developers.

https://www.freedesktop.org/software/XDevConf/x-security-wal...

Re:HW accelerated Xwayland rendering for Nvidia merged by jude- on Saturday April 10, 2021 @12:11AM (#26758850)
Exactly! It astonishes me that Wayland folks think that replacing the whole graphics stack is somehow easier than using an X extension that already exists. Really speaks to the profound immaturity of the project.
Re:HW accelerated Xwayland rendering for Nvidia merged by cycomanic on Saturday April 10, 2021 @12:46AM (#26759004)
My god, those "wayland folks" were the same people developing X. They were not some unrelated people pushing an agenda. It's always fascinating to see all the arm chair experts saying things how things ought to be done without ever having written a X extension or anything of that sort.
Re:HW accelerated Xwayland rendering for Nvidia merged by wander_homer on Saturday April 10, 2021 @02:21AM (#26759387)
So the fact that someone was a developer of X, means their resilient to following some agenda or non objective opinion? There's a really famous and often quoted talk about X vs Wayland from one of those developers and it was clearly made in a way to present Wayland in a better light by purposely portraying X11 in a bad way, for example by leaving out crucial details. Like in one example they picked on the slow startup time of applications and attributed it to the blocking calls made to X.org, without even mentioning that asynchronous alternatives are not only available, but toolkits like Qt were already using them exclusively at that time. The verdict of course was that X11 is broken and fixing that is almost impossible.
Re:HW accelerated Xwayland rendering for Nvidia merged by Szpadel on Saturday April 10, 2021 @08:29AM (#26760997)
X11 was designed to everything like OS, it's display server, gui library, font manager, printing server and more, X11 was ment to be like qt or gtk, you tell it that you want to display input and it will draw it for you, the issue now it that basically every app now display every window as one bitmap, because we do not want to use 98% of the x11. Also why do you think there wasn't much development activity in X for years now? There is so much wrong with it's state that nobody wants to work with it. It's like talking: why someone would like to use rust or go or c# when we have cobol? why not just write cobol extension?
Re:HW accelerated Xwayland rendering for Nvidia merged by wander_homer on Saturday April 10, 2021 @08:56AM (#26761140)
I'm not really sure what you're getting at. Like I never said there's no point in using or developing Wayland. I was addressing the statement, that Wayland was build by former X11 developers, which supposedly makes them purely objective authorities. Of course, that's not the case as, can be seen by the example I gave.
Re:HW accelerated Xwayland rendering for Nvidia merged by cycomanic on Saturday April 10, 2021 @02:25PM (#26763720)
No, you're arguing a strawman. What I'm saying is, if you have never even tried writing an X extension, likely never properly looked at the X protocol (let alone it's implementation) you have no leg to stand on to make technical criticism of the people who did the work and then decided it was too much work and build something else.
Re:HW accelerated Xwayland rendering for Nvidia merged by jude- on Saturday April 10, 2021 @06:46PM (#26765956)
And, have you written a Wayland extension and a X11 extension and learned the difference? No? Then why should we listen to you?
Re:HW accelerated Xwayland rendering for Nvidia merged by taway098123 on Monday April 12, 2021 @07:50PM (#26786566)
There isn't really much difference. It's about the same amount of work either way to ship an extension.

In Wayland, you make the extension, then you patch every compositor, every toolkit and every application.

In X11, you make the extension, then you patch the X server, Xlib, XCB, every window manager, every toolkit, and every application.

Re:HW accelerated Xwayland rendering for Nvidia merged by jude- on Tuesday April 13, 2021 @03:52AM (#26789341)
The question was related to the relative difficulty of replacing the whole graphics stack vs. patching in support for an X extension that has existed for longer than Wayland. One of these things is far, far less work than the other.
Re:HW accelerated Xwayland rendering for Nvidia merged by taway098123 on Tuesday April 13, 2021 @12:06PM (#26794354)
As someone who has done both, I respectfully disagree.
Re:HW accelerated Xwayland rendering for Nvidia merged by jude- on Tuesday April 13, 2021 @02:47PM (#26797147)
I call bullshit. If you had done so, you would have shared links to them to prove your point.
Re:HW accelerated Xwayland rendering for Nvidia merged by taway098123 on Tuesday April 13, 2021 @02:59PM (#26797330)
There's no code I can show you that would be any more convincing than just looking at the code to the X server and then looking at the code to any wayland implementation. There's not anything particularly special about these projects.
Re:HW accelerated Xwayland rendering for Nvidia merged by atq2119 on Saturday April 10, 2021 @02:27AM (#26759410)
> With X11, if you copy a password from your manager, you must assume all running apps now know it and transmitted it to a malicious server. There’s no way to tell.

With Wayland, it is only transmitted upon pasting, and only done directly from the copier app to the paster app.

Can you elaborate?

This sounds implausible, wishful thinking since key bindings are managed by individual applications. Whoever holds the clipboard must trust the application that claims to have received a paste command from the user. I don't see anything that could prevent spoofing without just blocking clipboard access entirely or making the usability a lot worse.

Re:HW accelerated Xwayland rendering for Nvidia merged by espadrine on Saturday April 10, 2021 @06:55AM (#26760545)
In X11, every client is equal.

In Wayland, the compositor has special standing. For instance, KWin will only allow the currently active window to paste.

There is more information here: https://phabricator.kde.org/T4449#192501

Re:HW accelerated Xwayland rendering for Nvidia merged by atq2119 on Saturday April 10, 2021 @03:56PM (#26764552)
Leaving aside for the moment that this policy is only a partial protection against a malicious client, the same policy could well be implemented in X11. (The window manager is not fully equal.)

At a meta level, this is probably the most frustrating thing about Wayland: all of its benefits could be realized in the X context itself, even the getting rid of legacy baggage (deprecate parts of the protocol leading up to the definition of an X12).

People actively chose not to do this and instead delayed progress by at least a decade.

Ideally, Wayland would have just served as a tech demo to guide the evolution of X. But as a community, we give too much credit to people working on shiny new things.

Re:HW accelerated Xwayland rendering for Nvidia merged by espadrine on Sunday April 11, 2021 @01:07PM (#26771792)
X12 is simply called Wayland.
Re:HW accelerated Xwayland rendering for Nvidia merged by jrm4 on Sunday April 11, 2021 @12:19AM (#26767458)
Again, long time Linux user and this really doesn't tell me why Wayland is good, it tells me that the Linux ecosystem is getting frog-boiled into accepting the same sort of frightfully dumb practices that the other operating systems have been doing for years? How did we get to a place where I have to pit the security of some of my apps against other apps?
Re:HW accelerated Xwayland rendering for Nvidia merged by stingraycharles on Saturday April 10, 2021 @01:58AM (#26759287)
“With X11, everything displayed on the screen is compromised. Also, all inputs, keyboard and otherwise.

”With Wayland, each app only sees their own pixels.”

Out of curiosity, if this is true, how are screenshots / screen recorders implemented? Do they require some special permissions? And if this is the case, why wouldn’t any app be able to acquire these special permissions?

Re:HW accelerated Xwayland rendering for Nvidia merged by dijit on Saturday April 10, 2021 @02:57AM (#26759527)
This is currently why a lot of people are complaining screen recorders do not work.

There are solutions to this, which allow finer grained access to screen recording in future, but there are a couple of competing standards right now.

Re:HW accelerated Xwayland rendering for Nvidia merged by michaelmrose on Friday April 09, 2021 @04:08PM (#26755445)
You said Xorg is a network system twice and I don't think you did enough research once. Wherein client and server are local it doesn't doesn't communicate via the network stack. The problem you imagine exists only in your imagination not reality.

I don't care if xorg runs as root and I don't need to run an instance of xorg per application I simply install software from trusted sources and haven't managed to get malware between 2003 and now. I also didn't have issues with tearing in 2003 and I don't now.

Generally speaking QT and GTK and other toolkits must concern themselves with the details of X others concern themselves with QT or GTK as they would under wayland. It is extremely likely that all players in the overall ecosystem who never had to specifically worry about X in many years have had more issues, work, and tears from wayland development than they would have had for the remainder of the next century with X.

This is nearly entirely about presenting a saner stable base to improve the work for a tiny number of people actually developing the graphics stack in Linux to build upon and unfortunately they made poor design decisions at the start that have led to it taking 12 years and still not being ready for prime time in some ways.

After doing the necessary research to understand the topic you could construct another post about the shortcomings of X that is actually factually correct but it would still be beside the point. Wayland would still be a poor work that squandered a lot of the opportunity of a clean slate despite its authors being in perhaps the best position possible to do so. In 20 years Linux if it exists on the desktop will be a weird opaque overengineered system that works when it works and is impossible for an end user to understand why it is misbehaving when it doesn't.

On the bright side due to package management the windows solution of pave over the install and start over could probably be configured to automatically reinstall all your software for you!

Re:HW accelerated Xwayland rendering for Nvidia merged by jrm4 on Friday April 09, 2021 @05:15PM (#26756277)
After a few years of wondering about the "why," I find this comment very illustrating; it feels like Wayland is one of many Linux related efforts (like Gnome and KDE) that are not particularly interested in a high level of interoperability and/or long term durability. Instead, the goal is more in the direction of trying to make their preferred way of things more dominant in the ecosystem. Now, if those efforts are actually good at it then more power to them. But most of the time, that doesn't happen, and I think it harms the Linux ecosystem, one that I am a fan of, overall.
Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Friday April 09, 2021 @10:03PM (#26758316)
How does it harm the ecosystem to place the fundamental abstraction of the goddamn DISPLAY server over something that actually was created after GPUs was a thing?

The X server is maxed out, or as a core maintainer said, you can only apply this many lipstick to a pig. It is fundamentally broken. But the X api is not, it will be supported forever in terms of XWayland. Which is a net win, we get proper graphics, and apps will be backward compatible.

Re:HW accelerated Xwayland rendering for Nvidia merged by destructionator on Friday April 09, 2021 @10:10PM (#26758350)
> It is fundamentally broken.

The Wayland developers disagree with you:

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

"It's entirely possible to incorporate the buffer exchange and update models that Wayland is built on into X."

They themselves say they could have fixed X. They just didn't want to. And now they've predictably just made a new mess.

Re:HW accelerated Xwayland rendering for Nvidia merged by the_why_of_y on Saturday April 10, 2021 @05:20AM (#26760155)
The problem with X11 was never that you can't add things to it, the problem is that you can't remove things from it.
Re:HW accelerated Xwayland rendering for Nvidia merged by destructionator on Saturday April 10, 2021 @08:42AM (#26761057)
First, this isn't true - watch the youtube the other person in this thread put where he tells a story about how they deleting about 1/3 of the code (15:19), but secondly even if they didn't, why is that a problem?

Breaking user's applications isn't actually a virtue.

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Saturday April 10, 2021 @03:27AM (#26759660)
Re:HW accelerated Xwayland rendering for Nvidia merged by wander_homer on Saturday April 10, 2021 @09:47AM (#26761469)
Did you watch and understand it? This presentation is nothing but a highly one-sided and subjective talk, which gladly bends the truth or leaves out crucial details to get a good laugh from the audience.

Take the whole part about "X terrible IPC" and slow startup time as an example. It's portrayed as if slow startup time is an inherent flaw of X due to blocking IPC calls. However he forgot to mention, that non-blocking calls had been there for years and big projects like Qt were using them exclusively instead of the blocking Xlib calls. Then he goes on to say that Chromium's startup time is so slow because at minimum it waits half a second for replies from the X server. So let's get some current numbers on a T420s for starting up Chromium and immediately closing it:

  Weston + Chromium (Wayland mode): 731.3 ms ±  39.4 ms
  Sway + Chromium (Wayland mode): 688.2 ms ±  22.7 ms
  Sway + Chromium (XWayland): 667.2 ms ±  16.6 ms
  X.org + i3 + Chromium: 661.3ms ±  17.2 ms
I was actually surprised to see how little difference there is, if there's any at all.

So either his numbers don't apply anymore and X.org is not a bottleneck anymore, or Wayland became a similar bottleneck, or his numbers never made sense in the first place, especially since he never bechmarked the Wayland part.

Edit: On GNOME Shell Chromium also starts slightly faster with X.org with 0.6 - 0.7s and > 0.7s in Wayland mode.

*updated benchmark results with the actual results from hyperfine (10 runs each)

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Saturday April 10, 2021 @12:12PM (#26762539)
The video is quite old. And I think you should add a compositor on top of i3 to measure the same thing.

The whole point of the talk was that when a compositor is used (which should absolutely be used because with increasing resolutions tearing will just get more visible), X has pretty much a useless role in the whole situation. That is, you’ve got yourself an architectural problem. Which is no surprise, X had been here forever. But maybe it should no longer the be the abstraction we build our graphics on.

Re:HW accelerated Xwayland rendering for Nvidia merged by wander_homer on Saturday April 10, 2021 @12:26PM (#26762651)
With X.org + i3 + picom (GLX backend, animations and vsync enabled) I get: 665.8 ms ± 19.3 ms

So it doesn't seem to have any significant influence either.

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Saturday April 10, 2021 @12:57PM (#26762939)
Thanks for benchmarking, but as I mentioned, this was/is not a significant problem that would give way for Wayland. What I wrote in the second part of my comment is.
Re:HW accelerated Xwayland rendering for Nvidia merged by marwis on Friday April 09, 2021 @08:26PM (#26757803)
If you have enough permissions to intercept keystrokes in X via network monitoring then most likely you have enough permissions to intercept keystrokes in wayland e.g. by ptrace.

You're not using TCP for local X, it's all Unix domain sockets and SHM. Hard to get any faster on Linux.

One could certainly implement feature emulation to preserve backward compatibility with evolving hardware. Or just deprecate feature, X over network was pretty much broken for a long time.

Not saying Wayland isn't an improvement over X but a lot of supposed limitations of X are often misrepresented and exaggerated.

Re:HW accelerated Xwayland rendering for Nvidia merged by hedora on Friday April 09, 2021 @10:50PM (#26758529)
Also, all the other “problems” with X have been solved for years. (No tearing, no root X1q on my box, in particular)
Re:HW accelerated Xwayland rendering for Nvidia merged by gspr on Friday April 09, 2021 @02:37PM (#26754291)
I very much agree with what you wrote. I'll just add a comment:

> Overall, wayland is a good clean slate, it’s been in development a long time. X11 has major warts and they are hard to clear out.

This may seem like it's irrelevant for the user. It isn't. Lots of things us users want are much easier and more attractive for developers to add to the clean slate design that is Wayland.

For example: When I switched, an unexpected bonus I experienced was that my touchpad's behavior got orders of magnitude better. So I googled around a bit, and it turns out that almost all touchpad improvements just happen to occur on Wayland because the people who are interested in that aren't interested in wading through the X swamp in order to implement their stuff. (I mean, have you looked at the X code? Oh dear, oh dear, it's a daunting thing!)

Re:HW accelerated Xwayland rendering for Nvidia merged by mrighele on Friday April 09, 2021 @03:32PM (#26755022)
> This may seem like it's irrelevant for the user. It isn't. Lots of things us users want are much easier and more attractive for developers to add to the clean slate design that is Wayland.

This is something I don't understand about Wayland. How is it possible that something that is supposed to be much easier and more attractive for developers after TEN+ years of development still has so many issues ?

Re:HW accelerated Xwayland rendering for Nvidia merged by stinkytaco on Friday April 09, 2021 @03:54PM (#26755271)
On the other hand, a bunch of X11 issues were just listed, and X has existed three times as long. Some issues are architectural and thus probably not solvable, some are just persistent annoyances that must be difficult to fix and likely will not get fixed because X11 has so little active development anymore. X has enough issues that a good portion of the community said, "we've got to fix this". And frankly, I've used software from multi-billion dollar corporations that gives me more trouble in a day than Wayland does in a month.
Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Friday April 09, 2021 @09:57PM (#26758288)
The protocol had been in development for that long, most compositors for a few years, and clients change their implementation up to their own schedule.

I see it as a “failing” of the bazaar way of development, linux can’t just say we now use this API. So there is an inherent not enough user on the new API to bother porting, and due to not enough user it is not as streamlined/stable, and you have a vicious circle. But I have to say the issues with wayland are heavily overstated, and I think it is out of this cycle, and is getting quite a bit of steam.

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Friday April 09, 2021 @09:53PM (#26758264)
Just a note: It is due to libinput, which as far as I know can be used with X as well, but I haven’t personally done so.
Re:HW accelerated Xwayland rendering for Nvidia merged by nsajko on Saturday April 10, 2021 @05:44AM (#26760256)
Libinput is not a Wayland thing, and it's actually the recommended solution on X11.
Re:HW accelerated Xwayland rendering for Nvidia merged by josefx on Friday April 09, 2021 @03:44PM (#26755170)
> Xorg is a network system, meaning it is very inefficient. (Imagine using TCP to talk to your SSD)

I am quite sure that there is something wrong with your system if your X clients run through the IP stack by default.

Re:HW accelerated Xwayland rendering for Nvidia merged by jrm4 on Friday April 09, 2021 @04:05PM (#26755398)
So, I see and understand these arguments in theory -- but, and I don't think I'm alone, none of them are actually pressing?

I'm running Openbox/Xubuntu on a 4K monitor, doing some awesome equivalent-of-4-monitors work, then playing all the steam games I want with the Proton and the decent AMD GPU, all under X. "Font size is a little weird sometimes" is my only gripe?

Put differently, I understand "hacking around the issue" criticism in theory -- but if you applied that sort of purity to, say, web programming -- step one would be, okay, first get rid of Javascript, an idea that I really do like in theory, but I know it's not happening.

Re:HW accelerated Xwayland rendering for Nvidia merged by _jal on Friday April 09, 2021 @02:50PM (#26754484)
I find it personally a bit hilarious - Wayland has been Going To Be Great Soon for over a decade.

I've never even had a reason to want to run it.

But I'm sure it'll be great, any day now.

Re:HW accelerated Xwayland rendering for Nvidia merged by toun on Friday April 09, 2021 @03:02PM (#26754650)
I find Wayland is great already for my usage, and has been for the last two years. If Xorg works for you and Wayland doesn't, that's perfectly fine too.
Re:HW accelerated Xwayland rendering for Nvidia merged by _jal on Friday April 09, 2021 @03:17PM (#26754846)
Don't get me wrong - I would love to not deal with certain X warts. (I see substantially fewer warts than other people do, but that's just me.)

It just seems Wayland's combination of technical requirements and political entanglements make it a sort of Zeno's Project, doomed to asymptotically approach peoples' expectations and desires, but never reach them.

Re:HW accelerated Xwayland rendering for Nvidia merged by coldtea on Friday April 09, 2021 @03:04PM (#26754676)
>I find it personally a bit hilarious - Wayland has been Going To Be Great Soon for over a decade.

So? The same has been the case for desktop Linux in general, for 2 decades.

Re:HW accelerated Xwayland rendering for Nvidia merged by throw0101a on Friday April 09, 2021 @03:08PM (#26754726)
> So? The same has been the case for desktop Linux in general, for 2 decades.

Some of us have been running Linux desktops for over two decades. Nothing more fun than setting Modelines manually for your VESA card:

* https://en.wikipedia.org/wiki/XFree86_Modeline

Re:HW accelerated Xwayland rendering for Nvidia merged by michaelmrose on Friday April 09, 2021 @04:13PM (#26755505)
Desktop linux actually worked pretty well in 2003 for my purposes. I started on Fedora Core 1. I burned a dvd hit the magic key to select a boot target booted it up told the installer what time zone I was in and what disks it could use and such details and rebooted after a while.

Wine sucked and there was less software existed but it was perfectly possible to do the normal tasks one did with a computer.

Re:HW accelerated Xwayland rendering for Nvidia merged by hedora on Friday April 09, 2021 @10:55PM (#26758549)
Back on my IBM 386/75MHz (yes, really), linux could only boot at 25MHz, yet its desktop environment was faster, prettier and more featureful than Windows @75MHz

Edit: I guess it was a 486 in a 386 motherboard. Windows was definitely slower at 75MHz than Linux at 25MHz though:

http://ps-2.kev009.com/sandy55/Interposer/386_upgrade.html#R...

Re:HW accelerated Xwayland rendering for Nvidia merged by de_Selby on Friday April 09, 2021 @03:45PM (#26755184)
Linux desktop has been perfectly fine for at least 1.5 of those decades.
Re:HW accelerated Xwayland rendering for Nvidia merged by edoceo on Friday April 09, 2021 @03:09PM (#26754740)
My Gentoo/Xfce multiple monitors with Nvidia has been great for at least 10 years.

Linux Desktop is Great. Wayland is still in the process of becoming great (I think it's making good progress too)

Re:HW accelerated Xwayland rendering for Nvidia merged by KeyBoardG on Friday April 09, 2021 @03:36PM (#26755080)
From what I gather its a chicken and egg issue. Wayland would get more attention and development if it had more users. It would have more users if it had more feature development. Although a lot of the bigger gaps are closed or closing now. OBS now works on Wayland as of 03/30/2021 and Fedora plans to ship Wayland as the default.
Re:HW accelerated Xwayland rendering for Nvidia merged by Conan_Kudo on Saturday April 10, 2021 @12:12AM (#26758855)
Fedora Workstation (i.e. GNOME) has already been shipping with Wayland by default. What's new is that Fedora KDE is also going to ship with Wayland by default.

Reference: https://fedoraproject.org/wiki/Changes/WaylandByDefaultForPl...

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Friday April 09, 2021 @10:04PM (#26758319)
Maybe actually trying it and adding something to the discussion would be better?
Re:HW accelerated Xwayland rendering for Nvidia merged by sprash on Friday April 09, 2021 @04:16PM (#26755532)
> Fractional scaling is kind of the most visible thing today.

And also perfectly possible with X11 because the pitch information is exposed via the Xrandr extention

> Problem: tearing, solvable with double buffering, maybe.

Solved since ages. Just enable Tearfree in your Xorg.conf. That also shows how great X11 really is. It allows you the choice to turn it on or off. Because Tearfree comes at a cost of latency.

> Problem: Xorg runs as root, solvable, there’s ways of making your user have direct control of the frame buffer device.

OpneBSD solved that two decades ago. Also it perfectly possible on Linux to run X11 as non-Root.

> Problem: Xorg is a network system, and a porous one, meaning it’s possible to intercept keystrokes from any running program.

This is a feature not a bug. The security paradigm is blacklisting (which means sandboxing untrusted apps) instead of whitelising (which means locking everything up and only allow the compositor to do stuff). Since the vast majority of Software on FOSS system is trusted X11 is the far superior solution here.

> Problem: Xorg is a network system, meaning it is very inefficient.

X11 runs even on 386's and beats Wayland in every performance metric, especially latency. After 13 years of development only some compositors come close to X11's performance.

> Problem: Xorg needs to be backwards compatible, so it can’t dig much into hardware features.

Backwards compatibility is a major feature even 40 year old Software runs on current Xorg which is an impressive feat. As for the "hardware features": DRI3 uses the exact same buffer sharing mechanism as the major Wayland compositors do. Wayland offers zero advantage in exploited Hardware features. On the contrary X11 is capable of using hardware layers that has the effect that you can smoothly move your mouse even on heavy load and OOM events. Wayland still completely craps out in that regard.

> Overall, wayland is a good clean slate, it’s been in development a long time.

It is a clean slate, but a very bad one. The wrong philosophy ("every frame is perfect") and the wrong abstractions ("everything in the universe is a buffer made of RGB values") make it a major step backwards in computer graphics on Unix/Linux.

Re:HW accelerated Xwayland rendering for Nvidia merged by floatboth on Friday April 09, 2021 @08:59PM (#26757971)
> perfectly possible with X11 because the pitch information is exposed via the Xrandr extention

Only the "Windows" kind of scaling where the app works in non-scaled, real pixels and does everything by itself. Not the "Apple" kind of scaling that Wayland supports, where you have logical pixels backed by 2x/3x/… the physical pixels. (Like many things Apple does, this was invented for good reasons. Positioning a window to be on both a 1x and a 2x monitor just works with that kind of scaling, without the app ever having to consider the displays it touches.)

> Solved since ages. Just enable Tearfree in your Xorg.conf.

That's a driver-specific hack that kinda maybe works sometimes. Sometimes you need to juggle compositor options combined with that and nothing works anyway.

> X11 runs even on 386's and beats Wayland in every performance metric, especially latency.

Any composited X11 desktop is slower than a Wayland one, with the Xorg server acting as a bloated IPC broker in between the compositor and the client.

Yeah, you can get really low latency if you just don't composite at all. Go back to Windows 95 if you think that's acceptable :)

> X11 is capable of using hardware layers that has the effect that you can smoothly move your mouse even on heavy load and OOM events. Wayland still completely craps out in that regard.

I'm sure pretty much all production Wayland compositors use the cursor layer. wlroots for sure does. (But I don't think it's a big deal under heavy load, there the problem is the display server even processing the mouse events at all first.)

Weston goes further and can use HW layers for actual surface compositing when possible. wlroots is going to gain that power soon-ish with libliftoff.

> The wrong philosophy ("every frame is perfect")

Again, feel free to use Windows 95.

For anyone used to current commercial desktop and mobile UIs, any imperfect frames are unacceptable, artifacts like tearing make your system look like a complete joke. Apple computers didn't show imperfect frames since the early early 2000s PowerPC era. Not matching that is a complete shame.

Re:HW accelerated Xwayland rendering for Nvidia merged by sprash on Friday April 09, 2021 @09:22PM (#26758108)
> logical pixels backed by 2x/3x/… the physical pixels.

This is not fractional scaling. Fractional scaling has to be done by the application itself (even on Wayland).

> That's a driver-specific hack

It is not a hack. It is a solution and a very good one because DDX drivers can make use of vendor specific 2D acceleration and therefore achieve much better latency with the tearfree option on X11 than Wayland ever will where everything runs through the 3D pipeline by default.

> Any composited X11 desktop is slower than a Wayland one

If you enable Tearfree you don't need a compositor if the driver works properly. Of course X11 compositors with fancy blur effects have bad performance. I always turn them off.

> Go back to Windows 95 if you think that's acceptable :)

Why don't you switch to Android? Android already does everything that Wayland fans want and better.

> I'm sure pretty much all production Wayland compositors use the cursor layer.

I get severe mouse stuttering on high CPU or GPU load. A problem that was solved on X11 20 years ago. I have no idea what wlroots really does but it does it definitely wrong.

> Go back to Windows 95 if you think that's acceptable :)

The value of X11 is the ecosystem and platform it provides. If you want Linux with a compositor switch to Android. There you also have your sandboxing and whatnot. Don't turn the Linux Desktop into a Phone OS. As Desktop OS I genuinely prefer Windows 95 over Android.

> Apple computers didn't show imperfect frames since the early early 2000s PowerPC era.

Ever used OS X on those? They are barely usable because of severe lag and stuttering. But yeah the frames were so perfect that most people decided to switch back to MacOS 9 to do real work.

Re:HW accelerated Xwayland rendering for Nvidia merged by floatboth on Friday April 09, 2021 @09:53PM (#26758258)
> Fractional scaling has to be done by the application itself (even on Wayland).

No, fractional is handled by applications just rendering at 2x and getting downscaled to 1.5x or whatever.

Yeah, the "Windows" way looks sharper on fractional, but the "Apple" downscaling is easier to handle and it looks fine – there were iPhones that did everything like that.

> DDX drivers can make use of vendor specific 2D acceleration

Ah, I remember Intel's various native 2D accelerations (UXA, SNA) – each with its own unique horrific bugs (artifacts all over the screen, all text turning into junk), all eventually sorta deprecated in favor of glamor (OpenGL) with the generic modesetting driver.

There's not much to 2D accelerate with modern applications that all do their own rendering. Compositing acceleration is possible in a vendor-agnostic way via KMS planes and we'll have that in wlroots.

> Ever used OS X on those? They are barely usable because of severe lag and stuttering.

I have an iBook G4 :) Leopard runs perfectly smoothly. Yeah, the very first generation of hardware when OS X was just introduced wasn't ready. The next one was.

Re:HW accelerated Xwayland rendering for Nvidia merged by Conan_Kudo on Saturday April 10, 2021 @12:15AM (#26758872)
> There's not much to 2D accelerate with modern applications that all do their own rendering. Compositing acceleration is possible in a vendor-agnostic way via KMS planes and we'll have that in wlroots.

It's even more fun when your realize no GPU in the last decade has shipped 2D acceleration capabilities. Wayland uses 3D acceleration because that's what GPUs offer, because that's what the other platforms exclusively offer now.

Re:HW accelerated Xwayland rendering for Nvidia merged by Sebb767 on Friday April 09, 2021 @08:08PM (#26757692)
> The security paradigm is blacklisting [...]. Since the vast majority of Software on FOSS system is trusted X11 is the far superior solution here.

This is absolutely not a good solution. Even if you audited all your software enough to consider it trusted (which is unlikely if you're not a purist - see IDEs, browsers, widevine, Docker ...), it does not guarantee anything is secure. Anything that receives input from the outside might be vulnerable to an RCE. If you're running it under a different user or in a jail, the impact is limited - unless it can access your X server, in which case it can simply log everything you type and escalate.

Jailing an app is basically impossible under X. Yes, you can use Zephyr, but you're not going to be able to watch a video there and you're WM integration is going to be miserable as well. And realistically you'd really need to jail most apps.

X11 might work for a lot of things, but blacklisting is absolutely not a superior approach.

Re:HW accelerated Xwayland rendering for Nvidia merged by sprash on Friday April 09, 2021 @09:03PM (#26757994)
> it does not guarantee anything is secure.

Indeed. But looking at the state of the average Wayland compositor right now I trust all of my X11 software more than I trust Wayland. Especially when X11 and most clients have been battle tested for up to 35 years.

Besides that, you can also use Xpra for sandboxing which has better desktop integration.

Re:HW accelerated Xwayland rendering for Nvidia merged by infoseek12 on Friday April 09, 2021 @02:48PM (#26754459)
The main thing that has me cheering Wayland on is that it seems like the only, really viable, path forward for the Linux desktop environment. The developers of X11, and more or less the rest of the Linux community, decided that X11 wasn’t the best path to take into the future. So X11 is treated like a legacy technology. It will keep getting patched and will be supported for the foreseeable future but it’s hard to see anyone wanting to invest a lot of effort innovating and moving the tech forward when everyone agrees there’s no future in it. I’m not aware of any frameworks that are really competing with Wayland for the next generation.

There will be stumbling blocks as with any new technology, especially one that interrelates with so many systems but Waylands core architecture seems to be solid.

Personally, I’m still using I3 and don’t see many immediate benefits to switching over to Sway (the Wayland fork of I3). I am cheering Wayland on though and making the switch is somewhere on my todo list. What other path forward is there for desktop Linux?

Re:HW accelerated Xwayland rendering for Nvidia merged by inclemnet on Friday April 09, 2021 @02:54PM (#26754539)
> Sway (the Wayland fork of I3)

Minor clarification: Sway is an i3-compatible wayland compositor written from scratch, not a fork.

Re:HW accelerated Xwayland rendering for Nvidia merged by zaxcellent on Friday April 09, 2021 @02:31PM (#26754206)
The issue is X11 as we know it has no developers left. If nobody is around to maintain it, the world will move on, no ramrod necessary. More info: https://ajaxnwnk.blogspot.com/2020/10/on-abandoning-x-server...
Re:HW accelerated Xwayland rendering for Nvidia merged by sprash on Friday April 09, 2021 @03:59PM (#26755338)
There are plenty of developers left. It is just release management refuses to make new releases.
Re:HW accelerated Xwayland rendering for Nvidia merged by zaxcellent on Friday April 09, 2021 @04:54PM (#26756028)
I suppose that theory is possible. A proxy for developer availability might be to check the primary mailing list of xorg for the full month of march: https://lists.x.org/archives/xorg-devel/2021-March/thread.ht.... There wasn't much directly related to xorg-xserver itself. As a point of comparison, here is March for QEMU: https://lists.nongnu.org/archive/html/qemu-devel/2021-03/thr...
Re:HW accelerated Xwayland rendering for Nvidia merged by sprash on Friday April 09, 2021 @05:18PM (#26756311)
After years of misleading propaganda about how X11 is "deprecated" now I would expect no less. Besides maybe the main communication channel for development is somewhere else.
Re:HW accelerated Xwayland rendering for Nvidia merged by taway098123 on Friday April 09, 2021 @05:42PM (#26756563)
Most developer activity related to Linux graphics is in dri-devel, it's been like this for quite a while. The X development channels have been mostly dead outside of discussion of XWayland. I doubt you'll see anyone starting any major new features in X.
Re:HW accelerated Xwayland rendering for Nvidia merged by pantalaimon on Friday April 09, 2021 @06:10PM (#26756818)
There are still some active PRs

https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests...

Someone is trying to get multi-touch support merged, but is waiting for a review.

Re:HW accelerated Xwayland rendering for Nvidia merged by taway098123 on Friday April 09, 2021 @06:51PM (#26757176)
I hope someone comes along to review those, but I don't see there being much interest in it.
Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Friday April 09, 2021 @10:06PM (#26758331)
If this lie helps you sleep at night.. The reality is out there, why don’t you have a look?
Re:HW accelerated Xwayland rendering for Nvidia merged by aduitsis on Friday April 09, 2021 @03:02PM (#26754653)
The fact that XWayland's "performance should be roughly on-par with native X11" probably solidifies rather than weakens the position of X11 as the de facto display protocol.

If everything that uses X11 today can be used on top of XWayland without any modification and without performance loss, this means that a lot of pressure stemming from the need to switch to speaking Wayland instead of X11 is lifted in a certain sense.

Or am I missing something?

Re:HW accelerated Xwayland rendering for Nvidia merged by kllrnohj on Saturday April 10, 2021 @11:15AM (#26762052)
> X11 is in no way broken enough to justify such a huge change

Oh it absolutely is. The entire design of X11 is broken and a barrier to how applications & drivers actually work.

There's a reason that literally everyone else switched away from an X11-style model to a Wayland-style one. That is, MacOS, Windows & Android are all Wayland-style compositor designs. This was the major transition that Microsoft did from Windows XP to Windows Vista.

This is part of the reason that things like video playback in browsers on Linux is just awful. What browsers (or really any modern UI stack) want is just a system compositor that speaks buffers and transactions. Transactions are important to synchronize composition changes and content changes - for example, when you scroll a webpage with a video in it. It's better for power if the video is in a system composition layer, as then it can use a hardware overlay plane instead of being GPU composited (reduces power consumption). But then you need the browsers updated rendering of the scroll position to be synchronized with that composition update. This type of capability is standard on all major platforms at this point.

You can do this everywhere, except on X11. Possibly doable with extensions, but at that point your "extensions" are "completely change everything about the base X11 design & promises" as X11's base design & promises specifically don't provide anything like this.

X11's fundamental design is completely wrong & backwards. That's why a clean slate is necessary. Yes this migration is painful (see Windows Vista), but if it was actually pushed it would be a short term pain and the ecosystem would come out the other side healthier than it started (see Windows 7)

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Friday April 09, 2021 @09:50PM (#26758248)
> X11 is in no way broken enough to justify such a huge change

And why do you think you have sufficient knowledge on the topic to assume that? I do assume you have not read the source code of the X server, isn’t it a bit “cocky” to state such a statement, which is in opposition to what the actual X maintainers say, who actually created wayland? It’s not like a project from nothing, it was created with the shortcomings of X in mind.

Re:HW accelerated Xwayland rendering for Nvidia merged by destructionator on Friday April 09, 2021 @10:21PM (#26758396)
> in opposition to what the actual X maintainers say, who actually created wayland?

[citation needed]

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Saturday April 10, 2021 @03:28AM (#26759665)
Re:HW accelerated Xwayland rendering for Nvidia merged by destructionator on Saturday April 10, 2021 @09:02AM (#26761180)
First off, a 45 minute long video isn't much of a citation. Where, exactly, are you citing?

Secondly, this isn't the first time I've had people point to this same video. It doesn't actually say what you claim it says. It says the creator of Wayland worked on X (though actually his core focus was DRI2, which btw, is not X), and the one individual speaker in that video worked on X a long time ago (specifically his focus was on keyboard input).

Their claim is more "X is redundant" than "X is hopeless". They're wrong, of course, the video makes absurd claims like "nobody uses core X11". Maybe they don't since they work in niches, but in the real world, plenty of people do... and that's the part of the X server nobody actually complains about. Even Wayland are perfectly OK with that part! (See retaining it in XWayland. When these wayland devs complain about Xorg their focus is usually on the driver side. Well, hate to break it to them, drivers are always ugly. See the link we're commenting on, if Wayland actually works on all the devices Xorg works on, it'll be just as ugly.)

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Saturday April 10, 2021 @09:25AM (#26761318)
How about the actual technical details in the video? With a compositor on top of X, what purpose does X actually serve other than being an unnecessary complicated IPC layer that duplicates many of the messages?

Also, there have been another HN post with “X is abadonware” or similarly titled, which was written by another X maintainer. But feel free to check the mailing list as well looking at activity.

Re:HW accelerated Xwayland rendering for Nvidia merged by destructionator on Saturday April 10, 2021 @06:26PM (#26765770)
> With a compositor on top of X

I reject that premise. I've never used a compositor and I don't know why anyone would, they seem utterly useless.

But even if you do, the compositor only does one job: layer graphics. Most X messages have nothing to do with graphics. They're more likely to be about clipboard, drag and drop, notification windows, taskbar panels, etc., etc., etc. Wayland either fragments this (saying it is all the compositor's problem or punts it to dbus or something), or ignores it (they feel about useful things the way I feel about compositors), and will likely reinvent it eventually anyway.

And btw, what about X is unnecessarily complicated? I love the way the presenter claims the specs are impossible but I managed to implement them and so did a bunch of other people. So apparently it isn't actually that hard. and btw they aren't actually all that different than similar functionality in different operating systems, aside from things like asynchronous chunking... which is a good thing, since you don't want to block your UI event loop anyway! So it is what good programs ought to be already doing.

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Sunday April 11, 2021 @04:01AM (#26768447)
> I reject that premise. I've never used a compositor and I don't know why anyone would, they seem utterly useless.

Have you tried watching a video in full screen?

> But even if you do, the compositor only does one job: layer graphics

Yes, and this small little detail is not solved by X, but Wayland.

> Most X messages have nothing to do with graphics. They're more likely to be about clipboard, drag and drop, notification windows, taskbar panels, etc., etc., etc.

And it will live on in the form of XWayland. And I do dislike needlessly dropping backward compatibility, X’s APIs are globally broadcasted, and can’t really be retrofitted to an only server-client communication, so it makes sense to “reinvent” it.

> I love the way the presenter claims the specs are impossible but I managed to implement them

What part of it? I doubt you included the now removed printer part and the million other things the X developers had to cut out with hard work. And as I said, XWayland is made explicitly for this high level API of X, it is not going anywhere.

And I’m not sure what you mean by asynchronous chunking. You mean tearing? You do have to synchronize somewhere.

Re:HW accelerated Xwayland rendering for Nvidia merged by destructionator on Sunday April 11, 2021 @08:50AM (#26769991)
> Have you tried watching a video in full screen?

Nah, I've actually never used a computer since 1995. What is this "yoo-tubes" thing all the kids are talking about nowadays anyway?

You do realize that X applications can use DRI too right? And vsync when they swap buffers? This is trivially easy.

The only time I've ever seen glitches is if I tweak a couple config options with the intention of causing it, run a poorly-behaving program, and then resize it rapidly up and down. That'll cause a flicker.

> X’s APIs are globally broadcasted

No, they're not. I imagine you must think thinking of one client deliberately selecting the input of another client's window, which is allowed (unless the client is untrusted, e.g. an application from a `ssh -X` session - yes, X does support "untrusted" connections and restricts their access, and has since like 2007), but that's still not broadcast per se; you only receive a copy of the message if you specifically requested it.

> What part of it?

Drag and drop, clipboard, docking, window manager hints; here I was referring to the extension specs used for IPC with the X server.

And it is really pretty cool what you can do with this. If you run two applications on separate computers, you can drag and drop stuff between them and it just works.

That's the asynchronous chunking I referred to, again this was in the context of "unnecessarily complicated IPC". There's a size limit and acknowledgement protocol in transferring things like drops and pastes and your program is never supposed to block on those cases, rather go back to the full event loop. This is a bit more complicated to program, but it has several benefits, even on non-network cases (like say pasting a gigabyte on a Windows box) - you can stay responsive to the user while working in the background, show progress bars and cancel buttons, etc.

(Now if you're on the same machine btw the spec says to optimize some of these things and, for example, transfer a filename instead of file contents and let them read it themselves. The youtube video is half-correct when he says X isn't network transparent. Actually, a surprising amount of things are, like you can often run (old-style) OpenGL programs on remote hosts even if the author didn't plan on that! But if you want best results, you do need to have local machine optimization branches. If local machine, use shared memory instead of buffer transfers. If local machine, send file name instead of contents on drop event. Stuff like that. I also personally do things like if remote machine, disable mouse motion events unless a button is held down, just so save on bandwidth, though of course that's not a big deal anymore, but the core protocol does make that trivially easy to do!)

wrt tearing - which again I virtually never see on X (I have to go out of my way to trigger it!) so I really don't know why people complain about that so much - again you can vsync easily with glx and double buffer easily in any program. There's even a XSync extension you can use to help with these, even across clients: https://www.x.org/releases/X11R7.6/doc/libXext/synclib.html (note the date on that: 1991. It isn't like this stuff is new.)

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Sunday April 11, 2021 @01:48PM (#26772076)
Well, I can continue on listing problems with X. How about HDPI? Or mixed HDPI? I’m sure some things can be retrofitted, but I still don’t see why should we continue with a protocol not planned for/with modern hardware in mind.

Also, regarding network transparency. As you note, most apps are no longer network transparent, and remote window streaming can be much better solved with modern compressions/encoding. It doesn’t have to be part of the core protocol, the latter should only concern itself with displaying rectangles on the screen. Everything else can be built on top of it.

Also, while in itself not a good argument, both MacOS and windows use a compositor since forever.

Re:HW accelerated Xwayland rendering for Nvidia merged by dkersten on Friday April 09, 2021 @03:08PM (#26754737)
> mostly breaking a billion useful things that X has had for some time

This is always the case when there is some widely used legacy tech, but it shouldn't stop us from trying to move forward, or we'll never get better things.

I've personally switched to using wayland on my main laptop and am very happy with it. I was using X before and was getting incredibly bad screen tearing when using i3, I tried every recommendation I could find (double buffering, running a compositor, etc) and nothing helped, but Sway on wayland fixed it for me and its been running flawlessly for the last 9 months. I have no plans of going back to X anytime. The only thing I use X for is playing Windows games with Proton (which this HW acceleration change might even fix, if the laptop had an nvidia gpu, but alas, it does not).

Re:HW accelerated Xwayland rendering for Nvidia merged by sprash on Friday April 09, 2021 @04:27PM (#26755668)
> but it shouldn't stop us from trying to move forward,

Wayland means moving backwards. It has the complete wrong philosophy and abstractions. If "sway" runs flawlessly for you you are not doing much with your computer at all. I can't work without my fine tuned synaptics driver configuration and without my over the years grown and perfected scripts using xdotool, dmenu, xsel, xcape, xcalib and many other tiny but useful x-tools.

Re:HW accelerated Xwayland rendering for Nvidia merged by dkersten on Friday April 09, 2021 @04:50PM (#26755976)
So because it doesn't work for your workflow of scripts that rely on X, wayland is a step backwards and I must not be using my computer for much? Get over yourself.

> fine tuned synaptics driver configuration

My touchpad, touchscreen and apple magic trackpad work great for me, so this isn't a problem for me.

Re:HW accelerated Xwayland rendering for Nvidia merged by sprash on Friday April 09, 2021 @05:13PM (#26756256)
Wayland is power-user hostile. If all you do is watching cat videos all day long Wayland will be great for you.
Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Friday April 09, 2021 @10:10PM (#26758351)
Well, it actually do allows watching videos at all without tearing everywhere, which was not possible on X without a compositor.
Re:HW accelerated Xwayland rendering for Nvidia merged by anoncake on Saturday April 10, 2021 @01:33AM (#26759186)
It is obviously not possible on Wayland without a compositor either?
Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Saturday April 10, 2021 @03:22AM (#26759640)
I rather run a single compositor, than run X that works as a fancy IPC doing nothing interesting and a compositor on top. Also, it is needlessly chatty as well.
Re:HW accelerated Xwayland rendering for Nvidia merged by dkersten on Friday April 09, 2021 @05:27PM (#26756402)
And once again you are making completely erroneous assumptions about my computer use.
Re:HW accelerated Xwayland rendering for Nvidia merged by ohthehugemanate on Saturday April 10, 2021 @04:05AM (#26759823)
2 year wayland (sway) user here. Every time anything is posted here about wayland, I read about some people's crazy issues. Karma brings them all out of the woodwork, I guess.

If message boards like HN are where you're getting this impression, just beware of sample bias. Remember that everyone on Fedora and/or KDE has been running wayland for literal years. That is a lot of users, and not enough complaints to make them consider reverting.

Fwiw here's my counter anecdata:

I'm on arch with swaywm, meaning my system is in no way "out of the box". I have gone back to X from time to time, and... it drives me crazy. Everything is blurry, it takes an hour off my battery time, and it FEELS laggy and unresponsive. Oh, and the experience of installing anything involves 5 extra packages (automatically included, at least) to work around X stuff. God help you if you want to configure an input method; it goes through AT LEAST 2 layers. For some input methods (touchscreens, i'm looking at you), you have brittle hacks like one layer is just reading the debug log of another. Anyway every settings change you make requires restarting your whole WM, and probably fiddling with several 3rd party tools to understand and make it easier... no thanks.

Even when I could only screen share between xwayland apps, and I really tried to go back, I couldn't stomach it. The wayland experience for me is just so much better across so many dimensions. I can only imagine what it's like for my friends who use OOTB setups and aren't even aware they're on Wayland.

Re:HW accelerated Xwayland rendering for Nvidia merged by edflsafoiewq on Friday April 09, 2021 @02:41PM (#26754340)
It's an old story.

A conservative rewrite, that amends those things experience has shown were mistakes but were always retained for compatibility, is rare, since the impulse to rewrite is revolutionary in nature. A rewrite is treated as an opportunity to remake the world in a new image (with a new set of mistakes to uncover).

Re:HW accelerated Xwayland rendering for Nvidia merged by Qwertious on Saturday April 10, 2021 @12:19AM (#26758893)
AIUI rewriting X wouldn't be much use anyway, because the problem is mostly in the protocol not the actual codebase implementing the protocol.
Re:HW accelerated Xwayland rendering for Nvidia merged by turminal on Friday April 09, 2021 @03:20PM (#26754883)
The problem here is that a lot of stuff X does relies on horribly unsafe (mis)features of X. And of course wayland had to break compatibility with those things.
Re:HW accelerated Xwayland rendering for Nvidia merged by michaelmrose on Friday April 09, 2021 @04:35PM (#26755789)
If the user wants to do X which involves increased danger to the user giving users a way to tell the system that app X has the privilege of doing X but not allowing all applications to do X is potentially viable but telling users you don't need to do X anymore is a much harder sale.

It needn't be a prompt users will quickly be prompted to click yes to it could easily be an option in settings or at communicated at install time.

Re:HW accelerated Xwayland rendering for Nvidia merged by devwastaken on Friday April 09, 2021 @02:34PM (#26754252)
There are reasons, many times those reasons are obvious to whomever is actually implimenting the changes but not to others outside of it. The reasons have been highlighted hundreds of times and unless there's actual arguments against those reasons the discussion of "I don't like wayland" is a distractive circle that ignores the content of the original post.
Re:HW accelerated Xwayland rendering for Nvidia merged by DoctorNick on Friday April 09, 2021 @02:29PM (#26754178)
X11 is a security nightmare. It is absolutely broken enough to justify a huge change.
Re:HW accelerated Xwayland rendering for Nvidia merged by michaelmrose on Friday April 09, 2021 @04:15PM (#26755526)
Installing random software off the internet or from a market that developers have direct access to poison is a security nightmare that isn't much fixed by wayland.
Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Friday April 09, 2021 @10:11PM (#26758360)
Allowing smoking between barrels of gunpowder is different than in an open space.

Wayland is a necessary part of security, but not sufficient.

Re:HW accelerated Xwayland rendering for Nvidia merged by jude- on Saturday April 10, 2021 @12:26AM (#26758920)
It's security theater. If I can run a process on your machine under your user account, you can bet I can keylog you, X11 or no.
Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Saturday April 10, 2021 @03:12AM (#26759592)
Try it. You can’t unless you’ve found some exploit in a given wayland compositor.

Linux only grants permission to keyboard/mouse events to root or to display “owner”, which is the one who requested it on a given tty.

Re:HW accelerated Xwayland rendering for Nvidia merged by jude- on Saturday April 10, 2021 @12:34PM (#26762720)
Here are a few ways off the top of my head that don't require exploiting Wayland or gaining access to the `input` group (or whatever group owns the /dev/input/* events), using nothing more than a local shell under your user account:

* Using ptrace(2) to hook into your running processes and grabbing key data that way

* Adding a LD_PRELOAD around your application launcher (via your .bashrc or some other auto-exec script) to have it intercept key events for your application

* Downloading and mounting a FUSE filesystem image with the /dev/input device nodes owned by your user ID instead of root.

* Use one of the multitude of privilege-escalation CVEs on the Linux desktop to gain root, and keylog you that way [1].

Come back when you understand the problem.

[1] https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=linux+privi...

Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Saturday April 10, 2021 @12:56PM (#26762917)
What is not clear about necessary but not sufficient? Of course sandboxing is necessary, but graphics is a deliberate hole in a sandbox. If that hole is unsecure, the whole thing is.

How does X help here?

Re:HW accelerated Xwayland rendering for Nvidia merged by jude- on Saturday April 10, 2021 @08:49PM (#26766666)
X already solves this particular input hole with the XACE extension. No need to replace the whole graphics stack when the X server is already capable of addressing this issue.
Re:HW accelerated Xwayland rendering for Nvidia merged by taway098123 on Monday April 12, 2021 @07:47PM (#26786556)
XACE doesn't solve it. As mentioned elsewhere, that's dependent on SELinux. The idea with Wayland is to make things more secure everywhere, and not just on systems that have a particular LSM.
Re:HW accelerated Xwayland rendering for Nvidia merged by jude- on Tuesday April 13, 2021 @03:08AM (#26789008)
Wrong. XACE is independent of SELinux and LSMs. It's just a protocol for writing plugins to X servers that filter which events X clients can see.

That there exist SELinux plugins does not mean that XACE itself depends on it. Like, try reading the actual documentation instead of regurgitating FUD: https://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/Xserv...

Re:HW accelerated Xwayland rendering for Nvidia merged by taway098123 on Tuesday April 13, 2021 @12:05PM (#26794315)
It's not wrong, it's not FUD, and that doesn't change anything. The only working plugin is the SELinux one. If you can't use that, you have to rebuild an entire new security architecture... which is what they had to do in Wayland anyway. XACE isn't really built for anything besides MAC either, so it's inadequate for doing anything that isn't an LSM. It also has a problem where new hooks need to be added for every new X extension, and that didn't happen so now it's outdated. In Wayland that entire concept was replaced with a single API function to do generic traffic filtering.

It's also outside the scope of a desktop environment or window manager to ship plugins to the X server. Hence another reason why they had to go with a new protocol that makes it easier to implement their own server...

Re:HW accelerated Xwayland rendering for Nvidia merged by jude- on Tuesday April 13, 2021 @02:43PM (#26797073)
> The only working plugin is the SELinux one. If you can't use that, you have to rebuild an entire new security architecture

I stopped reading at this point. If you're not going to read the documentation, then you can kindly go crawl back under your rock on /r/linuxmasterrace.

Re:HW accelerated Xwayland rendering for Nvidia merged by taway098123 on Tuesday April 13, 2021 @02:52PM (#26797223)
I was familiar with that documentation around 10 years ago, please stop making these assumptions and please stop dismissing what I have to say. The documentation is irrelevant, I'm talking about the server source code. There is one real plugin implementation there that uses SELinux. That's it. There is currently no other real way to use XACE, it's otherwise totally useless to end users.

Yes people could develop new plugins that integrate with some other security mechanism, but they haven't, in part because the hooks are so out of date, and in part because, you know, that requires building another security mechanism. The access hooks are not a security mechanism, they allow you to integrate with some external MAC.

Re:HW accelerated Xwayland rendering for Nvidia merged by michaelmrose on Saturday April 10, 2021 @12:22AM (#26758904)
Unless you are using different vms for isolation it's all open barrels of gunpowder all the time.
Re:HW accelerated Xwayland rendering for Nvidia merged by kaba0 on Saturday April 10, 2021 @03:14AM (#26759604)
I agree with you in general, but even if you use jailed apps in X, they can keylog. It can be solved with nested X sessions, but that would only add yet another hacky patch.
Re:HW accelerated Xwayland rendering for Nvidia merged by coldtea on Friday April 09, 2021 @03:03PM (#26754662)
First of all, nobody cared to hack on X/Xorg. The project was seriously understaffed.

Second, it ended a pile of hacks upon hacks.

Those two reasons have to be added on top of the other benefits of Wayland (or any other modern re-arch of X).