254 points · by ddevault · 7y ago · 229 comments
Nvidia's position, literally, is their GPUs are not Linux compatible. The Linux ecosystem relies on the Mesa stack (Mesa, DRI, DRM, GBM, KMS, etc), and DRM is part of the upstream kernel itself... Nvidia has openly not used any of these APIs.
This is exactly equivalent to Nvidia not using WDDM and DXGI. If Nvidia chose to do that, Microsoft would outright ban them from driver certification (thus the platform entirely), so why is it wrong for Linux and Wayland to do the same?
The Linux community reached out to Nvidia and help them along with Nouveau, and at one point even threatened to sue them. Linus Torvalds has told them that he doesn't care about them if they won't actually participate in Linux, and will continue to break their drivers because they just don't listen.
No, you are taking a with-us-or-against-us mentality. Users and application developers want things to work as broadly as possible, regardless of the graphics card or driver being used. Whether that helps or hurts various parties regarding Nvidia's closed-source stance is irrelevant.
> Nvidia's position, literally, is their GPUs are not Linux compatible
Citation needed. If this is their position, why would they offer Linux driver downloads? Not supporting something in a way Linux would prefer is not the same as not supporting something.
>This is exactly equivalent to Nvidia not using WDDM and DXGI. If Nvidia chose to do that, Microsoft would outright ban them from driver certification (thus the platform entirely), so why is it wrong for Linux and Wayland to do the same?
Microsoft can get away with this precisely because it sells Windows; it lowers the price to vendors (such as Dell) on the condition that they only use certified drivers. It is entirely possible to run Windows with uncertified drivers. In any case, it is my understanding that this is a licensing issue, and Nvidia would support more APIs if it could do so while keeping the driver proprietary.
It's not so much that they are incompatible. It's that they weren't written for linux. They use the same driver for windows which has been adapted for linux. That also allows them to avoid any sort of derivate work clause that would kick in due to the GPL.
> I first heard about this from one of the developers of the hit game SimCity, who told me that there was a critical bug in his application: it used memory right after freeing it, a major no-no that happened to work OK on DOS but would not work under Windows where memory that is freed is likely to be snatched up by another running application right away. The testers on the Windows team were going through various popular applications, testing them to make sure they worked OK, but SimCity kept crashing. They reported this to the Windows developers, who disassembled SimCity, stepped through it in a debugger, found the bug, and added special code that checked if SimCity was running, and if it did, ran the memory allocator in a special mode in which you could still use memory after freeing it.
Well, maybe Microsoft of 2019 might behave differently, after spending decades in desktop OS market domination, but what's more relevant is how they got there in the first place.
[1] https://www.joelonsoftware.com/2004/06/13/how-microsoft-lost...
And for low end and integrated cards, using Intel or AMD APU is an obvious choice, especially in laptops. Optimus is such a horrible mess, that no Linux users should come anywhere close to it.
My gut feeling says no.
Intel joining the high end GPU market with open drivers might also help speeding things up, including dislodging of CUDA lock-in.
The last group is so vanishingly small. They’re neither a meaningful number of users nor a meaning number of payers.
Linux should do its best to support word of mouth evangelists with the best user experience possible, because even though free software evangelism is definitely viral, retention favors convenience over all other factors when the price is zero.
But this has always been about ego. Jensen Huang thinks he’s the biggest hot shot in the world, and that culture pervades his company. But Linux is going to be around a lot longer than somebody’s game rendering coprocessors.
I’d appeal to humility, not some meaningless details about APIs. Definitely not a business case.
I’m honestly surprised the major distros haven’t gotten together to do this, in a shared fork if necessary. It’s outright embarrassing that this attitude still infects the Linux project.
None of the distros are going to get behind your fork because all agree with Linux on this matter, rightfully so. Nvidia can fuck off with their proprietary crap, Linux has no intention of bending over for that garbage.
Linux needs to get over itself and recognize that it’s part of a larger world, and that its “my way or the highway” attitude is unnecessarily constraining.
The fact that people are coming to you and saying “I’d like to use my Nvidia card with Linux but Linux isn’t supported” does mean it’s a problem—and the problem is Linux’s, not Nvidia’s.
ATI/AMD still has their own proprietary, closed blob driver that is not in the tree - and which actually runs quite a bit faster than the open source one.
I don't find it embarrassing that Linux maintainers prefer to leave every line of code in the kernel up for improvement, rather than desperately replicating known misbehaviours until a new five-to-ten year waterfall release comes. AMD's drivers work great, I buy AMD because instead of getting upset that they don't get to call all the shots, they put in the work and make peace with the establishment.
NVIDIA would rather throw a pathetic, childish tantrum and blame everyone else for their arrogant position which leaves their customers begging maintainers to comply and work on their own time to enrich NVIDIA.
1. https://www.phoronix.com/forums/forum/linux-graphics-x-org-d...
Having a hard stance on Nvidia, which I support, makes no sense if they have no interest in Linux support at all.
Nvidia's linux drivers work fine for me, although granted they are hard to install (hard compared to apt install).
I got hit by strange Wayland bugs when distros like Ubuntu and Fedora activated it too early and I'm not looking to make the switch anytime soon, but I wish the project the best and am happy to see it seems to be on a good way.
There is a very high likelihood that when a user complains about Wayland support for Nvidia they mean this:
* user already assumes Nvidia is a bad Linux actor
* user knows Nvidia only supports buggy blobs
* user may even know Nvidia is bad to people trying to unblob the blobs
* user already went through the trouble of doing what it takes to get the bad Linux Nvidia blobs to work to play games on their machines
* user notices that the bad buggy Linux Nvidia blobs fail to work at all with Wayland
* user is understandably even more frustrated than they were before. So they ask you-- a Wayland person-- how can it be even worse for them now when they've already been generating much more complex and power-hungry graphics with their buggy blob than they'd ever do with Wayland.
If you're representing Wayland, this problem is your problem whether you want it or not. Perhaps the answer is to make the protocol worse so the the Nvidia user doesn't remain eternally maximally frustrated. Perhaps the answer is that isn't possible and you're stuck in the same boat as the user. Perhaps it means you start a hunger strike or gather thousands of devs to protest outside Nvidia's headquarters until they improve. I have no idea.
But please don't do that FLOSS thing where all the devs on a project teach each other to sync on, "Sorry Mario, but your princess is in another castle." That pattern becomes it's own problem and can quickly end up discouraging development even from potential devs who don't care at all about Nvidia support.
> Wayland doesn’t support screenshots/capture!
What is the current UX for screenshotting, screencapture, and screencapture with audio for the most featureful DE that uses Wayland atm? Is there a program out there that offers push-button access for these three features (choosing the most sensible default format in each case)?
As the actual person who receives these complaints... this isn't true. Once it's explained, though, the users still stick around and get angry because they made dumb, uninformed choices as a consumer and think it's our fault.
>If you're representing Wayland, this problem is your problem whether you want it or not.
It's not. We can just choose not to solve it. Use X and buy smarter when the next harware upgrade comes around, or wait until your hardware is supported by nouveau if you don't want to upgrade any time soon.
>What is the current UX for screenshotting, screencapture, and screencapture with audio for the most featureful DE that uses Wayland atm? Is there a program out there that offers push-button access for these three features (choosing the most sensible default format in each case)?
I don't really know what the situation is for more noob-friendly DEs like GNOME, but on sway this tool is the i3-equivalent of push-button simplicity:
https://wayland.emersion.fr/grim/
Push-button screen capture isn't there yet.
If this is the attitude of Wayland developers, it goes a long way towards explaining Wayland's ten year road of non-adoption.
Attempting to run a project based on the opinions of a group of Nvidia devs who (1) don't care about your project and (2) don't care about your goals is technical madness. It took the kernel more than a decade of stubbornness before all the other device driver writers caved and supported decent design. As far as I recall Nvidia is literally the last major device driver who refuses to play ball with open source. If Nvidia users can't use Wayland for driver reasons that is because of Nvidia's choices and there isn't anything the Wayland devs can do without repeating all the mistakes of X.org.
If it takes another decade before Nvidia caves and behaves like a good corporate citizen then that is a decade well spent by the Wayland devs. Long term maintainability will eventually trump short term user issues; just like it did for wifi et al. It is unfortunate Nvidia is making their user's lives hard, but the writing has been on the wall since AMD started open sourcing their driver stack in the 2008 era.
Compare to something like this:
"We need to provide potential users of Wayland with better information, both to better calibrate their expectations and ensure that anger is properly directed and to help them make more informed buying decisions in the future."
Of fucking course you have a communication problem when your relationship with your userbase is founded on logic like "doing anything other than calling them idiots and ignoring them is useless and we shouldn't surrender to idiocy".
But maybe that's okay. With a viable alternative, we can be patient.
To illustrate with my own example, I bought a Linux-compatible laptop when I wanted to run Linux on a desktop. That rewarded the seller for effort they put in, reused the FOSS work already performed, and required no demands to be made of volunteers. These things are a two-way street. So, I met them in the middle. Did it again getting a Thinkpad cuz I wanted to try BSD's later this year. Supported all of them.
If trying to maximize adoption, you have to tolerate people's indifference and selfishness. They dont want to maximize sales for anti-FOSS company. So, they're telling that company's customers the issue, suggesting a switch, and having something waiting for AMD buyers.
In terms of sheer bang for your buck, Nvidia's cards have been on top for a while now (there's a good reason cryptocurrency miners have been using them), on Linux their proprietary drivers are the most stable in games - unless your only goal is to run Wayland, it's not exactly a "dumb, uninformed choice".
This seems like a clear problem with Wayland developers mentality if they expect consumers to make purchasing decisions based on their platform alone.
But they have not been on top for a long enough period that cards bought when they were are generally supported by nouveau, and cards bought after should be AMD. On top of this, the reality is that most people don't need top of the line GPUs. Last year's GPUs will run next year's games at max specs.
>Linux their proprietary drivers are the most stable in games
were
Not anymore, as long as you are using latest Mesa. Also, Nvidia usage on Linux is gradually dropping. See: https://www.gamingonlinux.com/index.php?module=statistics&vi...
So I agree with position that compositor developers should not waste their time on supporting the blob. If Nvidia are so eager, let them contribute support, like they proposed for KWin.
It's gamers, that prefer Nvidia. Nvidia has better optimized driver stack, although they also sometimes play fast and loose.
https://www.phoronix.com/ has a recent benchmarking of absolute card performance[1], and sometimes does performance-per-dollar, as here[2] last year with OpenCL (reporting AMD's FLOPS as cheaper... when ROCm satisfices). I've found the site helpful when tracking bleeding-edge linux support for high-end graphics cards.
[1] https://www.phoronix.com/scan.php?page=article&item=radeon-v... [2] https://www.phoronix.com/scan.php?page=article&item=nvidia-r...
On Gnome you can bind shortcuts to copy save to a file or copy to clipboard the whole screen, the current window, or a rectangular screen region. In the latter case, you can drag a rectangle with the mouse to choose the area you want to screenshot. There is a visual indication of the copied region (it blends a white rectangle over it), and the clipboard works with all applications (both Wayland and XWayland).
For screen recording I've used Peek, which is pretty nice, too.
You're absolutely, completely, 100% correct. In this scenario it is the Wayland developer's problem - wanted or otherwise - that the user is incredibly frustrated. Like most frustrated people, the user chooses to blame what seems like a reasonable target who coincidentally isn't them. Such as Wayland!
This anger and frustration is something that Wayland devs unquestionably have to deal with. It's just perhaps possible that the choices made by NVidia driving this completely reasonable frustration might not be something Wayland devs have to own.
Again, you're completely right. Unhappy users are going to blame Wayland devs. There just might be some room for subtlety.
Linux is trying to force its unique “all drivers are open source and in our tree” view of the world on everyone. Linux could stop doing this and start guaranteeing stable interfaces.
If stable interfaces are available and Nvidia doesn’t use them, then it might be reasonable to call them “a bad actor.”
Assuming that a stable kernel API would just make things better ignores the potential downsides. I don't recall the name of the talk, but someone did comparative research into BSD kernel security and found that backwards compatibility was a significant source of bugs and that OpenBSD has benefited greatly from their aggressive removal of such code.
There's no reason to doubt that this holds true for Linux as well
The Gnome UX is pretty nice, see my sibling comment.
Interestingly, this is more of an indictment of Wayland than anything in the article that's being "debunked". I don't dispute that it is difficult work, but you'll have to choose between making a viable X replacement, and dying on this particular hill.
Thankfully, Nvidia makes Linux drivers, otherwise I would have to (gasp) use Windows as my development machine. Unfortunately, Wayland doesn’t work. I love Wayland and its clean API, but I can’t use anything else except Nvidia, because there is no CUDA.
And fine: if you have a difference of opinion, just use X.
Pipewire approach looks the best for screenshots and video recording. I hope all Wayland compositors will settle on it.
> Secondary clipboard support <...> wp-primary-selection
I guess the standard is very recent. Last time I tried, KWin didn't support it yet.
> We fought long and hard over this and we now have a protocol for negotiating client- vs server-side decorations, which is now fairly broadly supported, including among some of its opponents.
A major problem with Mutter remains. Mutter developers don't want to depend on GTK for whatever reason, but so are SDL, mpv and other non-GUI applications and toolkits developers. The result are ugly looking windows for such cases in Gnome.
> You have to step up, though: no one working on Wayland today seems to care.
It's a problem with Wayland in general. The end user gets the short end of the stick, since with removal of some functionality that was in X, some use cases are cut off. But there is no one player like with X server. Tons of compositors are developed by different people. So even raising the issue let alone coming to some consensus takes a very long time.
I'm not saying Wayland isn't the way to go, just pointing out it's a very hard transition.
> Wayland doesn’t support Nvidia!
How is the progress of using Vulkan for Wayland compositors and avoiding the whole EGLstreams mess?
I see this: https://github.com/KhronosGroup/Vulkan-Docs/issues/294
But it's not clear from it whether now there is a way to avoid using GBM or EGLstreams.
Following your edit: yes, the new standard protocol for primary selection is very new. But everyone supports the GTK protocol and the transition will not be visible to users.
Dude, so many edits: "But there is no one player like with X server" -> this player is wlroots
Oh my god man, stop editing your comment: "How is the progress of using Vulkan for Wayland compositors and avoiding the whole EGLstreams mess?" -> hard to say now, it's very very early.
> this player is wlroots
One of the players still, since for example KWin isn't using it. I.e. it unfortunately came too late to unify the situation.
GTK is 100% designed to be a (Wayland/X/Windows/Mac) client. Shoving it into the display server is bound to end in disaster.
KWin have no problem using Qt, so I don't buy the disaster argument in general for such solutions. But may be GTK is a lot worse.
There's no avoiding GBM or EGLstreams, if you want a compositor, that can get a OpenGL/VA-API/whatever handle (as opposed to pixmap in system RAM) from the client and be able compose it on GPU (as opposed to being rendered by client by whatever means it wants, maybe transferred to system RAM, and then by compositor back to the GPU).
Then I suppose Nvidia should finish their proposed common memory manager, which looks stalled now.
On the subject of leaving the responsibility of taking screenshots to the Wayland compositor:
"for simple things using the compositor's screen shot tool is fine. But what if I don't like the screenshot tool for my compositor of choice? My experience with the GNOME screenshot tool (granted this was pre-wayland) was that it wasn't as good as, say, shutter, which has a lot of options, let's you easily crop and edit the screenshot from inside the screenshot tool etc. And then swaygrab doesn't even (currently) have an option to capture a rectangular region."
There are some other things "Why I'm not going to switch to Wayland yet" mentions which are important to me, like Wayland's lack of color picker tools and xdotool functionality.
The parent article says:
"Wayland doesn't have network transparency! This is actually true! But it's not as bad as it's made out to be. Here's why: X11 forwarding works on Wayland. Wait, what? Yep: all mainstream desktop Wayland compositors have support for Xwayland, which is an implementation of the X11 server which translates X11 to Wayland, for backwards compatibility. X11 forwarding works with it! So if you use X11 forwarding on Xorg today, your workflow will work on Wayland unchanged."
So why wouldn't I just use xorg to begin with?
Overall, Wayland just seems immature to me, and not a viable competitor to Xorg, which has had all of this functionality for decades. As an Xorg user, I really struggle to come up with compelling reasons to switch.
[1] - https://old.reddit.com/r/wayland/comments/85q78y/why_im_not_...
I addressed this in my article, please read it. And you can select a rectangular region on sway today, using tools which are portable across many Wayland compositors.
>So why wouldn't I just use xorg to begin with?
You can, no one's stopping you.
RDP on Windows works amazingly, it's really like having your remote machine at your fingertips (as long as network holds).
On GNU/Linux on the other hand, most solutions are hacky or cumbersome or non-standard or a linear combination of the previous adjectives.
I really wish I could have truly good remote desktop support on GNU/Linux.
There's also just regular old rdesktop, which seems to work pretty well if you're mostly connecting to Windows servers.
X2Go was cool and worked well, but support for various distro was a bit unclear (only Ubuntu? can't remember, that was like four years ago) as unclear was on which condition you could actually resume your session and how (what if I disconnect unexpectedly? how do I list my current sessions? Is there audio in/out forwarding? clipboard sharing?). The website homepage failed to address many of these questions, ultimately failing to answer the question "can I actually rely on this thing?".
You can't have a graphical, user-oriented, server and tell the user to "hey, just use a shell script and a control binary, and then hook a hotkey into your window manager and make it run that script". That's just not how user friendliness works.
Try to find a common ground between Wayland being secure and Wayland being practical.
Though Compositors may share libraries as well, and a unifying library might very well be developed for this.
I never had a problem, and if you upgrade the next time, check the hardware compatibility and buy what you need. Till then, just run a X stack.
https://github.com/doitsujin/dxvk/issues/806
If games are using SDL, you can also select Wayland using SDL_VIDEODRIVER=wayland. But there are some glitches still. I tried doing it for example with ScummVM, and it produced double cursor.
> All three are necessary for most Wayland compositors. Only the first two are implemented by the Nvidia proprietary driver.
Ok. But what about nouveau? Is nvidia supported using the open-source drivers (the only ones I will use) or are these drivers too lacking?
Are the wlroots developers completely disregarding nvidia-support over issues only found with the proprietary drivers, or are there actual unworkable nvidia issues regardless of driver used?
But nouveau has trouble supporting the newest cards currently, since Nvidia seems to try their best to make their lives hell.
So it should work with most of the setups until you’re trying to reach a certain performance threshold.
I’m not sure what scenarios are being invisioned here, but isn’t that absolutely something a nefarious app could do, because the app will be run as you, and you have write access to your bashrc?
As an example, since it’s fresh in my memory, if the folks who put dodgy cryptocurrency stealing code into npm packages had instead put this keylogger in there, that would have worked right? You run npm install, npm runs as you, the package runs as you, the package updates your bashrc.
Looks good ! Do you think fancy animations and tiling could be done (wobling, fading and swiping effects when switch from one pane to the other, etc.)?
https://www.youtube.com/watch?list=PLb7YRKEhWEBUIoT-a29UoJW9...
$ (kubuntu 18.04LTS default install, not tweaky tweaky) loginctl show-session 3 -p Type
Type=x11
https://bugzilla.redhat.com/show_bug.cgi?id=1399093
To be fair I remember video playback was waaaaaay smoother with wayland than X last time I tried. But this kind of bugs happened to me last year. I don't have time anymore for distribution tweaking, either the current LTS works or I pick up something else (that's why I don't mind running x or wayland these days: whatever works is okay).
I don't see how Wayland can succeed without supporting Nvidia. Yes, they'll have to write several thousand more lines of code, but if you're going to make a desktop environment in 2019, you're going to have to put in that effort to support the graphics card that most people have. It would be great if Nvidia had better Linux support! But they don't and washing your desktop platform's hands of the issue just makes the whole project DOA.
Are there any competitors to Wayland that don't take a hard-line stance against supporting the most popular and most powerful graphics cards in the world?
As someone who hasn't bought a GPU in several years, but might be in the market for one soon, I have to wonder: what the heck is going on with Nvidia?
I remember back in the day, on Linux, they were the graphics card to get if you wanted the highest performance, and could get their proprietary drivers working reliably (I never could). But now they seem to be alienating even closed-source partners.
As someone who thinks any GPU made in the past 5 years is more than good enough, avoiding the Nvidia driver situation (on every platform) would be worth the slight performance loss of getting literally any other card.
Also: it's possible to have a definition of success which excludes users of the proprietary driver. We don't have the same value system.
>the [...] most powerful graphics cards in the world?
Citation needed? And the highest of the high end graphics cards are excessive vanity most of the time, you don't need the tip-top to play any modern game at any settings you want.
Yes, Nvidia are not great when it comes to OSS, but like it or not, for doing real work in ML, scientific computing, or video and photo editing, Nvidia with CUDA is simply a much better experience and much more broadly supported.
While I don't think it should be the job of wlroots/sway to fix Nvidia's less than ideal driver chain, I think it is important to remember that a lot of people get a lot of productive work done on with Nvidia cards and would love to get rid of some of the pain of X while still being able to use their high end GPUs for both work and graphics.
It seems fairly clear with with MacOS focusing less and less on high end machines, there is a gap for high end unix workstations and hopefully desktop Linux can fill that gap, but right now that likely means Nvidia support... I think the best answer is just to buy amd and market forces will get Nvidia to change, but that still doesn't mean everyone can just go that path right now to get their day job done.
Fine. If you do these things, stay on X.
>While I don't think it should be the job of wlroots/sway to fix Nvidia's less than ideal driver chain, I think it is important to remember that a lot of people get a lot of productive work done on with Nvidia cards and would love to get rid of some of the pain of X while still being able to use their high end GPUs for both work and graphics.
I honestly just don't care. They should boycott Nvidia and find something else to do with their time if they really want better support from Wayland. I'm not going to bend over for Nvidia. Ever.
This is a very dismissive attitude that embodies the problem with Wayland. Millions of gamers absolutely do need that acceleration they paid for, it's not "vanity".
> We don't have the same value system.
I just want a usable Linux desktop that leverages the hardware in my machine. The "values" here seem to be: we acknowledge the extra work required to support mainstream graphics cards, we just don't want to do it and it's really your fault as a user for buying it/asking us to support it.
>it's really your fault as a user for buying it/asking us to support it.
Yes, I'm soooo sorry that I don't want to do free work to help you prop up a company that lives to make me suffer as a developer...
I'm clearly exagerrating here but I hope the point is made. Like the article says, just keep using X, I don't care.
It works beautifully with sway. Less so with KWin for me at least, although apparently NVIDIA are doing some work to fix that.
Reclocking support on recent GPUs is also a problem for anything that wants full performance - they really need to sort that out. I get that this is hard to do.
This whole situation is just really annoying and it must be immensely frustrating to be on the end of a lot of the complaints especially when the position of the sway developers not wanting to essentially write it twice just for NVIDIA support is totally reasonable.
FYI: most people have Intel GPUs. More than both AMD and Nvidia combined (Somewhere around 70%, AMD around 13% and Nvidia around 17%). Intel and AMD are supported, ergo for most people it works just fine. It could work with Nvidia too, if Nvidia were cooperative.
Well, they should get their act together and work with the rest of the community instead. In KDE, people working in KWin said that they will not support NVIDIA for Wayland, unless NVIDIA itself steps in, proposes a change, gets it approved, and maintains it.
That's what they ended up doing so far, although the change hasn't been merged anywhere yet AFAIK.
If so, I'm interested in how we can expect consistency; and eg. moving the window of an unresponsive application.
This could well be a misconception, which is why now seems a decent time to ask.
These seem to be good qualities of X. Wayland has been a number of years in the making, so I have somewhat lost track of my source of this information.
Edit: Apologies, I did read the fine article. It appears I must have skipped a section.
The core Wayland protocol doesn't do these things by design, but that doesn't mean end-users can't do them on Wayland compositors which support these use cases in the places that they're designed to be supported.
Which is why they shouldn't care that the core Wayland protocol doesn't implement it. These use cases WORK!
Somebody has actually done this!
Erik De Rijcke put together Greenfield [0], which is a Wayland compositor that relays surfaces with H.264 or JPEG over WebRTC. It is exactly as cool as it sounds, and it seems like it actually might work pretty well. It's the sort of thing that could be standardized, with a bit of work.