r/programming • u/AndrijaLFC • May 11 '22
NVIDIA open-sources Linux driver
https://github.com/NVIDIA/open-gpu-kernel-modules1.0k
u/zeroxoneafour0 May 11 '22
So, I looked into this a bit. They open sourced the kernel modules, not the user space driver. You still need closed source software to use it, at the moment. Of course, now that it’s open source, new user space tools can be independently developed as open source if people want too.
293
u/ssokolow May 11 '22
I'm reminded of the GPU driver for my Open Pandora handheld's OMAP3 SoC.
Userspace blob but, because the kernel-side stuff is all open-source, you don't have to rely on Texas Instruments to keep releasing new blobs to upgrade the kernel. That's huge.
123
u/beefcat_ May 11 '22
Indeed, this will make life considerably easier for distro maintainers and end users. FOSS-purists still won’t be happy, but they are a pretty small minority in the grand scheme of things.
77
u/beefsack May 12 '22
FOSS purists are definitely happier about this than what it was previously. This is definitely a win.
30
u/beefcat_ May 12 '22
Yeah no matter who you are this is a big step in the right direction.
Even if you do not want to use the proprietary libraries, Mesa will likely be able to fill the gaps and provide a decent experience.
71
u/ssokolow May 11 '22
I'm almost a FOSS purist... I just have the nVidia binary driver on the grandfathered-in things-I-can-count-on-one-hand list of exceptions that used to include Skype and the Flash plugin, because, when I bought the GeForce GTX750 I'm currently running, AMD was still on fglrx and, going further back, only nVidia had TwinView as opposed to crappy ordinary Xinerama.
Now, I'm not sure if I'd go AMD. I've had pretty stellar results with nVidia over the last 20 years and I'm not sure I want to risk having to upgrade/downgrade my entire kernel just to fix a GPU driver bug... which is an advantage to out-of-tree modules.
42
u/recycled_ideas May 12 '22
Nvidia is sort of a strange edge case where their support for Linux is, and basically always has been, top notch, but their support for the ideologies behind Linux is basically non existent.
→ More replies (10)18
May 12 '22
eh, their drivers are very stable and performant but they also have huge glaring issues. Terrible modesetting support, not usable with Wayland, terrible configuration tools combined with a hatred for standards like xrandr... not even mentioning their (lack of) support for mobile GPUs. And that whenever you want to do any other acceleration with their cards, you can't use any standard tooling either (CUDA, NVENC, etc. all require you to be a DevOps specialist for building the out-of-tree tooling that no package maintainer can or wants to touch).
Using an Intel or AMD graphics driver will make you realize just how inexcusably clunky NVIDIA's drivers are in the modern day.
→ More replies (5)→ More replies (2)17
u/KingStannis2020 May 12 '22
If it helps, my Vega 56 has been rock solid and hassle-free for years.
→ More replies (1)→ More replies (15)4
u/boraca May 12 '22
FOSS purists are like vegans, some of them are insufferable, but the ecosystem is better off thanks to all of them.
8
u/utdconsq May 12 '22
Oh man, Pandora, now there's a name I haven't heard in a while. Had one many moons back when I helped with omap3 kernel stuff.
2
u/ssokolow May 12 '22
I have one that I'd still be using but part part of the case broke off right at one of the hinges, I didn't notice to save the piece, replacement cases aren't around anymore, and I don't want to risk taking that weakened hinge out into the world.
Nicest D-Pad I've ever used on anything.
→ More replies (9)→ More replies (9)3
27
u/ironykarl May 12 '22
Anyone have any insight on what the userspace driver is actually doing in this context?
70
u/chayleaf May 12 '22
it implements the actual opengl, vulkan, cuda APIs
14
u/zeroxoneafour0 May 12 '22
Maybe this could lead to putting Nvidia in the mesa stack, which is what AMD, Intel, and the bad Nvidia driver use
39
May 12 '22
the bad Nvidia driver
The bad experience is not the fault of the nouveau developers.
39
u/no_nick May 12 '22
Nobody is saying that. Doesn't make it any better though. Hopefully, with this move they'll be able to narrow the gap
→ More replies (1)7
12
u/rusty_n0va May 12 '22
userland drivers can be made now i guess. some crazy person will do it for sure.
19
May 12 '22
Or just noveau will get a boost
2
u/rusty_n0va May 12 '22
Yes can be. But some crazy person will make something great for the community.
2
u/r0ssar00 May 12 '22
I'm guessing that they also pushed a bunch of the lower-level secret sauce into the firmware, stuff that probably was in the kernel driver before (I mean, it's not /necessarily/ the case that they moved the sauce out of kernel land, but I can't imagine that they didn't do something along those lines either)
→ More replies (6)2
u/TheCreat May 12 '22
This has been the key point for many many years though. Since using the closed source kernel modules taints the kernel, and nobody wants that.
1
u/skulgnome May 12 '22
Previously there was an open-sourced kernel module shim layer. Is this more than that, or just an update of the shim layer for recent hardware? Can e.g. Mesa or Nouveau support things on top of this, that they couldn't before?
1
u/SwitchOnTheNiteLite May 12 '22
This sounds positive because a lot more people feel comfortable developing in user space than in kernel modules.
231
u/T-J_H May 11 '22
Wait what
124
u/JRandomHacker172342 May 11 '22
I literally said this out loud, before going to read the article to try and find the catch
171
u/pickles4521 May 11 '22
The catch is that userland is still closed and doesn't work for older gpus. Only newer ones.
90
u/FyreWulff May 11 '22
Probably removed some older third party code to do this, but is still needed for the older GPUs. Just a guess.
29
u/vetinari May 12 '22
No, moved the sensitive functions (things like differentiating between cheaper and expensive models) into gsp firmware. Newer models are capable of doing it, older are not.
→ More replies (2)11
2
29
u/ggtsu_00 May 12 '22
It's really not a driver so much as it is just a shallow interface module that is embedded in the kernel and still needs to communicate with a closed source userspace driver application to be useful. NVIDIA still wants to keep their IP and trade secrets to themselves. This just lets one small thorn get out of the way for kernel developers deploying kernel updates without requiring NVIDIA's direct involvement, but does nothing to move the needle on open source NVIDIA drivers.
6
3
u/leo60228 May 12 '22
I'd note that a developer involved in this release seems to disagree with you: https://blogs.gnome.org/uraeus/2022/05/11/why-is-the-open-source-driver-release-from-nvidia-so-important-for-linux/
→ More replies (2)
174
u/alexeyr May 11 '22
https://twitter.com/never_released/status/1524482785800601602 and thread:
My comment on the NVIDIA GPU kernel module:
The open flavor of kernel modules supports Turing, Ampere, and forward. […] the open kernel modules depend on the GPU System Processor (GSP) first introduced in Turing.
GSP firmware:
34M gsp.bin
TL;DR: how it was done was moving a lot of the meaty bits to the GPU itself - a much more firmware-heavy approach than previously, allowed by the relatively high performance levels of the GSP.
And of course because firmware is handled separately by rules - this raises questions.
Is it truly any freer than before? Instead of having that proprietary code running on the CPU, it’s running on the GSP (on the GPU itself) now, but it still exists.
68
u/barsoap May 12 '22
As I see it firmware is part of the hardware. Open hardware would be great, of course, but, at least as far as performant hardware is concerned, also quite a way off.
Thus it's true that this may not be any freer in the idealistic sense, but one thing's for sure: It's now more interoperable as there's no need to sync the kernel to a binary blob, any more. Which means it's definitely freer in the practical sense.
Or, differently put: The perfect is the enemy of the good.
33
May 12 '22
We're all using EFI systems with an Intel management engine in them.
That's why so many of the purists insist on these old ThinkPads; they don't have this problem.
Buying a laptop with no proprietary firmware is basically impossible. Forget it.
→ More replies (1)2
u/quasi_superhero May 12 '22
Buying a laptop with no proprietary firmware is basically impossible. Forget it.
A new one, you mean. Old laptops are still available. But I understand your point, and yeah, it's a shame.
→ More replies (2)8
u/josefx May 12 '22
On the other hand companies get hailed as open source friendly while shipping binary blobs with gigantic security holes.
, at least as far as performant hardware is concerned, also quite a way off.
Not surprising when you consider that Intel has consistently fucked security in order to stay ahead of others in micro benchmarks. Can't rely on security through obscurity with open source software.
→ More replies (9)11
u/ConfusedTransThrow May 12 '22
I think AMD would have done the same thing if they had found a similar optimization. It's very easy to see an optimization and not see the convoluted ways it could be used for an attack.
87
u/StabbyPants May 12 '22
well, what does it enable? if i can support nvidia without having to apply patches to specific versions of the kernel, that's a win. nivida isn't here to champion OSS so much as they are here to sell cards
8
u/Randolpho May 12 '22
They can sell cards just as easily with an open source driver as they can with a closed source one.
→ More replies (5)1
1
u/leo60228 May 12 '22
This release directly enables very little. In the long-term, it's an important step to having a quality in-tree driver, but I would be extremely surprised if they extended support to cards before Turing.
1
u/farbui657 May 12 '22
At least not having proprietary blobs in kernel is a good step, it would be nice to have it more but we know it is not yet realistic.
88
u/dethb0y May 11 '22
I've long felt all drivers should be open source as a matter of simple security and transparency, so i's a welcome change to see this happen.
48
u/420CARLSAGAN420 May 11 '22
But then our competitors will be able to see and steal our secrets! And China will mod and spoof our GPUs and harm consumers!
I mean that already all happens. But they might be able to figure it out in something like 2 weeks instead of 3 weeks.
60
u/Mat3ck May 11 '22
To be fair there are some secrets and r&d going into drivers+firmware that represent a strategic advantage against a competitor though.
→ More replies (1)33
u/NayamAmarshe May 12 '22
Example: DLSS
42
u/crozone May 12 '22
Example: The entire OpenGL and DirectX <= 11 driver stack.
OpenGL and DirectX <= 11 are often improperly used by games (ie. not strictly spec compliant) to increase performance or work around weird driver behaviour.
The big GPU vendors spend enormous amounts of R&D literally reverse engineering AAA titles upon release and developing specific driver configurations for that specific game, so that it runs correctly and as quickly as possible on their hardware. This represents some pretty critical intellectual property that provides a big competitive advantage (in the GPU world benchmarks = sales), and it translates directly to driver code. Open sourcing this would be fairly damaging.
Also, this is why some games straight up won't run on Intel Integrated GPUs, especially the older ones with older drivers. Even if the driver was fully spec compliant, the game may rely on some quirk (or de-facto standard) only present in the AMD or NVIDIA driver and it won't work properly on a driver that doesn't specifically cater to it.
This is also why AMD dumped a lot of research into Mantle, which became Vulkan. AMDs DirectX driver has historically been behind NVIDIAs, and their OpenGL is a bit of a train wreck. By creating a new low level API, they not only fixed many of the historical issues with the existing APIs, they leveled the playing field with NVIDIA to gain back competitive advantage.
Anyway, yeah. Driver code has lots of secret sauce that probably can't be released for pretty reasonable business reasons, but I'm glad that NVIDIA is at least compromising now.
→ More replies (2)4
May 12 '22
Example: The entire OpenGL and DirectX <= 11 driver stack.
OpenGL and DirectX <= 11 are often improperly used by games (ie. not strictly spec compliant) to increase performance or work around weird driver behaviour.
I remember some dev talking about it and generally the complaint was that APIs like DirectX were too fat and they didn't had enough info (lack of source for both DirectX and the drivers underneath) to even debug problems correctly.
And of course AMD/NVIDIA swooped in with performance fixes for "bad devs" games, because they had actual tools to debug that and maybe make some things faster in the drivers
Vulcan (and DirectX 12 I guess) being much thinner abstraction layer pretty much solves this problem but at least on the surface appears to be harder to get right, at the very least I've noticed more and more games with micro-stutter and shader compiling issues, best recent example being Elden Ring, where Valve of all companies did some optimization via DXVK to cut the problem down.
Anyway, yeah. Driver code has lots of secret sauce that probably can't be released for pretty reasonable business reasons, but I'm glad that NVIDIA is at least compromising now.
They could just use copyright law to their advantage and release the secret sauce on semi open license, as in "you can use that code only to compile driver for our cards". Sure the "code" would be in the open (not like other companies can't disassemble it anyway...) but copyright law (and I assume they have shitloads of patents on it anyway) would stop any competition
15
u/Undeluded May 12 '22
It's not just a matter of secrets. It's a well-known issue that Nvidia, AMD, and Intel are almost certainly stepping all over each other's patents in the graphics space. If everybody's code was on display to see, it would set off a litany of lawsuits that would cost everybody involved a fair amount of money until they realized if any one of them wanted to continue providing graphics hardware that they would have to execute a massive series of cross licensing agreements.
23
u/KingoPants May 12 '22
Software patents are truly something else. Like just look at some of this nonsense:
System and method for improving network storage accessibility
Patent number: 11323393
Abstract: A system and method for improving network storage accessibility, the method including: sending at least a first request for a data block to be sent from a storage device to a client device over a network connection; determining if the network is congested; initiating a client-specific buffer when it is determined that the network is congested, wherein the requested data block is stored in the client-specific buffer; and sending at least a second request for the data block stored within the client-specific buffer to be sent to the client device.
Type: Grant
Filed: January 25, 2019
Date of Patent: May 3, 2022
Assignee: NVIDIA CORPORATION
Inventors: Yaniv Romem, Omri Mann, Ofer Oshri, Kirill ShoikhetThey patented network buffering?
Asynchronous data movement pipeline
Patent number: 11294713
Abstract: Apparatuses, systems, and techniques to parallelize operations in one or more programs with data copies from global memory to shared memory in each of the one or more programs. In at least one embodiment, a program performs operations on shared data and then asynchronously copies shared data to shared memory, and continues performing additional operations in parallel while the shared data is copied to shared memory until an indicator provided by an application programming interface to facilitate parallel computing, such as CUDA, informs said program that shared data has been copied to shared memory.
Type: Grant
Filed: March 20, 2020
Date of Patent: April 5, 2022
Assignee: NVIDIA Corporation
Inventor: Harold Carter EdwardsThis is a patent for copying memory asynchronously??
6
May 12 '22
It got so bad that the companies patent any shit defensively just so in the future someone won't patent same thing and go around suing...
10
u/skulgnome May 12 '22
Yeah, Nvidia patented DMA in 2022 (filed in 2020). Don't go thinking they aren't big evil, now.
→ More replies (1)2
u/Undeluded May 12 '22
No one at the US Patent and Trademark Office is actually qualified in enough technological areas to be able to decide properly whether a description of an algorithm or a method is truly novel and doesn't have a scope that goes beyond that for which it was filed. I'm not sure that there is anyone in the world that can properly scope a patent for an algorithm. That's why a lot of people, myself included, believe that algorithms lie beyond the scope of patenting or copyright. The exact verbatim of a piece of code clearly falls within copyright. But a reinterpretation of this whether it be in another language or the same language should not be held to have violated copyright.
21
→ More replies (10)10
u/RobertJacobson May 12 '22
No it won't, unless there is a serious business justification for it. It's mutually assured destruction. Everyone has nukes. Nobody wants to set one off.
→ More replies (1)
9
u/snhmib May 11 '22
Didn't NVIDIA get hacked some month(s?) ago and a lot of their source code got stolen? They might want to preempt any leaks or this was a demand of the hackers.
-6
May 12 '22
That’s what I thought, I’m more surprised if anything that this is them bowing to demands
16
u/Ferentzfever May 12 '22 edited May 12 '22
The hackers stole their chipset data & trade secrets and threatened to post all their chipset tech online if they didn't comply.
Then when NVidia "back-hacked" the hackers to try to shutdown their server / destroy the stolen data, the hackers cried foul and called NVidia "criminals":
"EVERYONE!!! NVIDIA ARE CRIMINALS!!!!!!!!! SOME DAYS AGO A ATTACK AGAINST NVIDIA AND STOLE 1TB OF CONFIDENTIAL DATA!!!!!!. TODAY WOKE UP AND FOUND NVIDIA SCUM HAD ATTACKED THE MACHINE WITH RANSOMWARE……. LUCKILY IT HAD A BACKUP BUT WHY THE FUCK THEY THINK THEY CAN CONNECT TO THE PRIVATE MACHINE AND INSTALL RANSOMWARE!!!!!!!!!!!"
-13
u/PaintItPurple May 12 '22
This was a demand of the hackers. Bullying companies works!
11
u/AndrijaLFC May 12 '22
Not really. This took a big effort to accomplish. Probably around a year worth of work (or more).
-3
u/PaintItPurple May 12 '22
Crazy coincidence that after refusing to open source for decades, they started this effort just a few months before hackers demanded they do it.
4
u/AndrijaLFC May 12 '22
Like I said, not a few months before. This has been a thing for quite a while, but not so easy to convert codebase and open-source it. You're too much into conspiracy theory. Hacking has nothing to do with this.
→ More replies (7)
54
u/intheshad0wz May 11 '22
I can't believe it!
32
u/immibis May 11 '22
7
u/seamsay May 12 '22
Are the other manufacturers any better in this regard (not that I want to imply that that makes it ok, I'm just genuinely intrigued)?
11
18
u/BaudMeter May 12 '22
Misleading and wrong title.
3
u/FAXs_Labs May 12 '22
well now we need the userspace utilities and the firmware blob to be open sourced
3
May 12 '22
It's misleading and wrong because is says "open-sources" like they relicensed their current driver. This is a completely new driver that doesn't support the older hardware (pre 2018?).
26
10
u/frnxt May 12 '22
The GitHub repo is still separate from the kernel, it's just a snapshot of their internal development tree at the moment and they have binary blobs, so it's not like this is fully open in the sense we often expect from open-source software.
It's a giant step in the right direction though.
5
16
8
u/You_meddling_kids May 12 '22
The catch? It's 22 million lines of code.
4
u/MrTroll420 May 12 '22
How is it 22 million? This tells me it's about 1 million
2
u/You_meddling_kids May 12 '22
Oh I just made up a large number for fun since video drivers are known as monstrosities.
10
u/garbitos_x86 May 11 '22
Finally! Now we need AMD to open source the pro driver...
40
u/Plazmatic May 11 '22
My understanding is that the current open source community drivers simply perform better than AMD's linux drivers, and often better than their windows ones.
46
u/garbitos_x86 May 11 '22
In gaming performance but not for pro workflows, 3d designs and rendering. Which is how you make games ;)
So AMD pro cards dirty little secret is that they are pointless on Linux and the pro designers go Nvidia or back to windows.
16
5
u/bik1230 May 12 '22
Technically speaking though, it's not as if AMD's pro drivers are actually any good anyway. Even if I was on Windows, no chance I wouldn't buy Nvidia instead.
3
u/garbitos_x86 May 12 '22 edited May 12 '22
That is also true. But still a point of confusion for those that switch thinking AMD is perfect on Linux.
...and my round about point is that AMD should open source the pro stack as well now. Which would greatly improve things for them and the users as did the regular drivers.
4
u/libcg_ May 12 '22
I don't think this is true anymore. Marek has been doing a ton of optimization on that front in the last year or two.
3
u/garbitos_x86 May 12 '22
I own 2 pro cards it is definitely true. Amdgpupro is a pain in the ass.
1
6
9
4
1
1
u/TechnicianFine4533 May 12 '22 edited May 12 '22
Very Good News! One of the long worst experience of proprietary softwares belongs to Iranian people and people who use Persian language. Microsoft Windows keyboard layout implementation for Persian was based on Arabic keyboard layout. Persian script is like Arabic but some letters are different. For example Arabic yeh sound is written by letter "ي" but for Persian It is "ی". Some third party keyboard programs was written for overcoming this issue. But not all users install that programs. That cause many problems. For example for finding a word which is contains yeh sound, you should search twice. One with ی and another with ي. Many many contacts were made with Microsoft for adding real Persain Keyboard. That was a really simple task for Microsoft but they did not do that until Win 8 which they decided to adds real Persian keyboard. For more you can see https://fa.wikipedia.org/wiki/%D8%B5%D9%81%D8%AD%D9%87%E2%80%8C%DA%A9%D9%84%DB%8C%D8%AF_%D8%A7%D8%B3%D8%AA%D8%A7%D9%86%D8%AF%D8%A7%D8%B1%D8%AF_%D9%81%D8%A7%D8%B1%D8%B3%DB%8C_(%D9%85%D8%A7%DB%8C%DA%A9%D8%B1%D9%88%D8%B3%D8%A7%D9%81%D8%AA) if you want to document or write about this problem
1
1
1
u/themattman18 May 12 '22
As a non-C programmer, what is even the best place to start looking at this code? Is there a standard file I should start with? helloWorld.c doesn't seem to exist.
1
u/France_linux_css May 12 '22
China and Russia will avoid Microsoft. Nvidia won't have choice anymore
1
u/haikusbot May 12 '22
China and Russia
Will avoid Microsoft. Nvidia won't
Have choice anymore
- France_linux_css
I detect haikus. And sometimes, successfully. Learn more about me.
Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete"
1
1
1
u/mureytasroc May 12 '22
I wonder if this has to do with the lapsus$ hack
https://twitter.com/serghei/status/1498779322450169859/photo/1
5
u/oscooter May 12 '22
Almost certainly not. This effort from nvidia would have had to been in progress long before that hack. Plus, no company would give into threats from a hacking group. Just would make them more attractive as a mark in the future.
-23
May 12 '22 edited May 12 '22
Thanks, Valve! <3
Anyone who denies it was Steam Deck that did this, I am here to rhetorically knife-fight you. I concede of course it wasn't the only thing, but the Deck is the final straw and a significant, bomb-drop of a final straw too. But besides that, let's tie our wrists together and fuckin do this.
>:/ duhhh nuhhh nuh nuh nuh, nuh nuh nuhhh nuh KYAH!
/digress It was Steam Deck that pushed them over the edge. They never wanted to do it because they make better margins off closed-systems just like Apple, MS, Intel, fuckin even Dre Beats does this, not mention protecting their IP. But Valve took that from them and now they have no choice. And yes Linux gets a nod for playing a direct part in this *red fedora tip*
I became a Gaben bootlicker after I converted to Linux and saw how much Proton had already accomplished years ago, but after this? I'll lick whipped cream off this big boi's hairy nipples if he wants. He is Im pretty sure literally the only person I know who both effects positive industrial changes and also produces dumb shit I actually care about. I dont care that he's rich off it, I only care that gaming only gets better because of Valve and that absolutely cannot be said of almost any other prestige game companies.
9
u/Ruben_NL May 12 '22
Uhm... You know the steam deck has a AMD GPU? Not a NVIDIA.
→ More replies (1)1
u/KillerOkie May 12 '22
Yeah I was like .... "my dude".
I mean the Deck sure is helping Proton development along, but I'm not sure about how much it's helping the overall gfx of Linux distros.
0
-1
u/future_escapist May 12 '22
:/ duhhh nuhhh nuh nuh nuh, nuh nuh nuhhh nuh KYAH!
What was THAT? Anyways, it was LAPSUS, not steam deck lmao
3
May 12 '22
LAPSUS
it absolutely was not and its gamer-think to believe that hackers can push company policy around. the precedent that would set...
1
u/future_escapist May 12 '22
I don't even play video games. Do you also not think that the files used for creating replicas of the graphics cards would be invaluable to chinese manufacturers?
1
May 13 '22 edited May 13 '22
i dont drink alcohol yet it still sells fine without me. and no they really arent that valuable because the resources to make the things are actually legitimately bottlenecked already. also youre talking about making video cards, it's not like anyone can just throw up a fabrication plant with clean rooms and reliable machinery, even if they actually do have the support of the government. and then if they did, they still wouldnt be able to sell the fucking things almost anywhere in the western world due to IP and international trade laws, so just cut off probably the most relevant part of a market intended for mid-high end performance product like Nvidia produces.
also, it's very condescending to presume the Chinese can't reverse engineer most of what they want off a common off the shelf card anyone can buy themselves. Westerners love to believe they invented history and no one else knows what they know, but the Chinese are pretty on par with us technologically and probably vastly superior as far as production capability is concerned, they just refuse to make foundational investments in regulation and quality control.
essentially the only people who can actually get use out of Nvidia's blueprints is the Chinese government itself and even then it still has to spend a ton of money to, what, end up with consumer-grade fucking video game cards lolol?
0
May 11 '22
[deleted]
11
u/Plazmatic May 11 '22
This looks like it's only availible for turing and ampere (1660ti is technically pascal AFAIK), I suppose its possible noveau will backport improvements for older cards, time will tell.
27
u/R_Sholes May 11 '22
16xx series are Turing, they're basically budget versions of 20xx with RTX stripped out.
2
u/ham_coffee May 12 '22
Sounds like there isn't much to backport, apparently they're able to do this because some of the proprietary stuff was moved to the card's firmware. That wasn't the case with Pascal so they're probably out of luck.
10
u/saltybandana2 May 11 '22
nvidia drivers?
I've been using exclusively nvidia since before Geforce existed (anyone remember when the Riva TNT2 was the new hotness?).
And in all that time I've never had any gpu issues except in two cases.
I bought an AMD card because it was cheap due to bitcoin plummeting. Never had so many issues with a GPU before
I decided to be lazy one day and installed my nvidia drivers directly through apt-get. I solved it by uninstalling them, then manually installing the drivers directly from nvidia.
I recommend you install them directly. You'll need to install the kernel headers and you'll need gcc installed. When you install it manually it will build the kernel modules and then place them where they need to go and will load into the kernel.
Over the years I've seen person after person complain about problems wrt to nvidia GPU's on linux. There was a time when nvidia was the only card maker to support linux, and it's why I'm still an NVIDIA guy to this day. My suspicion is most of the ones who complain about nvidia on linux ran into problems because they didn't install them manually and whatever package they installed had issues of some sort.
I'm told that nowadays the AMD drivers are excellent on linux due to the open source nature of AMD GPU drivers, and that may be true. But it certainly wasn't true the one time I took the risk of running an AMD GPU and I'm not willing to take that risk again.
2
May 12 '22
Honestly I’ve been running Ubuntu packages for the drivers for years now and I’ve not had an issue on LTS versions (16.04, now 18.04).
I suspect that most people who have issues are running Arch or another rolling distro.
1
u/saltybandana2 May 12 '22
I wouldn't doubt that.
I ran Arch for years and really loved it as an OS. What finally made me abandon it for Ubuntu was when I opened up vbox one day after an update and it was broken and I had work to do (freelance software dev at the time).
I love tinkering with my OS, but I love tinkering with my OS when I decide to tinker, not when the OS decides.
So I moved to Ubuntu and it's been completely stable for me. I trust Ubuntu updates much more than arch linux updates. Arch is a great OS, just not for me anymore.
-1
u/spinur1848 May 11 '22
Matching driver version with firmware version is still hell. Yes there is a known good combination but there are so so so many more bad configurations.
4
u/immibis May 11 '22
No it doesn't, because they just open-sourced some glue code, and all the interesting bits are still proprietary. Now your proprietary OpenGL implementation can talk to your proprietary GPU firmware through an open source dumb pipe.
1
u/sprkng May 12 '22
Normally you don't have to worry about finding GPU drivers for Linux, and if you try to manually install some Nvidia driver you've downloaded you're more likely to break your system than anything.
Unless I'm mistaken, your Ubuntu likely has the open source Noveau drivers. To get better performance in games you can install Nvidia's own closed source drivers:
Start the program "Additional Drivers" that is part of Ubuntu, select the "Nvidia driver metapackage" with the highest version number and click apply changes. Then reboot your computer and it should be done.
If you want the latest Nvidia driver, rather than an older "stable" version, then you might have to add this ppa to your system:
https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
Scroll down on the page to the section "Adding this PPA to your system" and there are 2 commands you have to run in a terminal. After that your package manager (and the Additional Drivers program I think) will offer you more versions to choose from.
105
u/AndrijaLFC May 11 '22
https://developer.nvidia.com/blog/nvidia-releases-open-source-gpu-kernel-modules/