Fedora 37/36/35 NVIDIA Drivers Install Guide [530.30.02 / 525.89.02 / 520.56.06 / 515.86.01 / 510.108.03 / 470.161.03 / 390.157 / 340.108] - Comment Page: 72
This is guide, howto install NVIDIA proprietary drivers (manually using .run installer) on Fedora 37/36/35/34/33/32 and disable Nouveau driver. This guide works with GeForce 8/9/200/300/400/500/600/700/800/900/10/20/30/40 series cards.
GeForce RTX 40 series cards works with 530.xx, 525.xx, 520.xx NVIDIA drivers, (RTX 4090)
GeForce RTX 30 series cards works with 530.xx, 525.xx, 520.xx, 515.xx, 510.xx and 470.xx NVIDIA drivers, (RTX 3090, RTX 3080 and RTX 3070, RTX 3060, RTX 3060 Ti)
GeForce RTX 20 series cards works with 530.xx, 525.xx, 520.xx, 515.xx, 510.xx and 470.xx NVIDIA drivers (RTX 2080 Ti, RTX 2080, RTX 2070 Ti, RTX 2070, RTX 2060)
GeForce GT/GTX 600/700/800/900/10 series...
I tried to ask this question before but trying again as it did not post after some days.
Thank you for the guide. I succeeded in installing the Nvidia drivers on a clean Fedora 27 install but when I reboot, I get an error when it tries to start gdm. Just says: Oops! Something went wrong! Please log out and try again.
But every time, the same thing happens.
I stopped gdm and used lxdm instead, and that works for starting graphical environment, but now there is no lock screen or switch users.
Any idea why gdm doesn’t work (but lxdm does)? And why no lock / switch user? What can I look into?
$ uname -r
4.17.9-100.fc27.x86_64
$ ls Downloads/
NVIDIA-Linux-x86_64-390.77.run
$ lspci | grep ‘VGA’
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
Thank you!
Leek
Hi Leek,
What if you try to upgrade your system to Fedora 28? Newer GDM should work without problems.
I can try this.
Today, I logged in and got this error:
Unexpected system error
The system has encountered a problem and recovered.
Name: kernel-core
Version: 4.17.9-100.fc27.x86_64
First Detected: 52 seconds ago
Reported: cannot be reported
Your problem seems to be caused by NVIDIA graphics driver
The NVIDIA graphics drivers are proprietary, and many kernel developers consider this driver to violate the GPL license of the kernel. Fedora does not include proprietary software.
Fedora Suggests: Consider using the free and Nouveau driver instead or use a graphics adapter from Intel or AMD or any other manufacturer that provides full specifications and/or source code.
So I will try to upgrade and report back what happens. Hoping this error goes away.
I got some time to work on this today and successfully upgraded and then switched display manager back to gdm.
When I first logged into the graphical environment, there was no switch user in the menu, but it appeared after I locked the screen the first time. Strange.
But all appears to be working now under F28.
Thank you.
Excellent! Nice to hear, that you got everything working!
Bad news. :-(
gdm and X works fine, but now the graphics performance is in the basement. Unigine Heaven benchmark gives FPS of 1-4 on initial run even with Nvidia settings set to Max Performance.
I think I will try the rpmfusion drivers and see if they work any better.
Hi Leek,
Sounds strange, you can of course try rpmfusion drivers, but they use exactly same nVidia drivers (actually older drivers 396.45). If you just run installer, then you can choose version (390.77, 396.45 or 396.54 etc). This install method is different, but both drivers are nVidia proprietary drivers.
rpmfusion drivers work just fine. No idea why the difference but now graphics benchmarks are great. Thanks for your help.
Hi Leek,
Ok, nice to hear that you got it working. Hard to say what is difference, because drivers are of course same.
$ nvidia-installer -v |grep version
nvidia-installer: version 396.51 ([email protected])
$ uname -a
Linux snafu-fedora.donthurt.us 4.17.12-200.fc28.x86_64 #1 SMP Fri Aug 3 15:01:13 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ lspci | egrep ‘VGA|3D’
23:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
I can see 4 monitors in nvidia-seetings. 2 are OK, but 2 which link to second Card show “Disable”. Even I change them to Non-Disable, and modify some items in Xorg.conf. the 2 screen still cannot work.
And funny thing is if I change the default Card to No.2 card in xorg.conf, the sistuation is just oppisit. 2 still can not work. Thanks.
Everything correct! Thanks
nvidia-installer: version 396.51 ([email protected])
Linux FEDORAFujitsuWD4 4.17.12-200.fc28.x86_64 #1 SMP Fri Aug 3 15:01:13 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2)
Hi, sadly the installation just gave me a black screen on graphical.target, however following the uninstall guide present there i got the gui back with nouveau.
[[email protected] ~]$ uname -a
Linux ramza 4.17.11-200.fc28.x86_64 #1 SMP Mon Jul 30 15:21:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]$
[[email protected] ~]$ lspci |grep -E “VGA|3D”
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 920MX] (rev a2)
[[email protected] ~]$
Hi sombriks,
Your problem is nVidia Optimus device. Check step 1.2 NVIDIA Optimus Technology.
Actaully you got everything working as it should be. You can’t run any displays with nVidia Optimus devices on Linux.
Thank you! The driver works perfectly. With nouveau, I had to set the graphics quality in SuperTuxKart to 3, but now I can play with the max setting in glorious 60 frames a second.
nvidia-installer: version 396.51 ([email protected])
Linux fedora 4.17.14-202.fc28.x86_64 #1 SMP Wed Aug 15 12:29:25 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
Thanks! Here’s screenshot of my output:
[[email protected] ~]$ nvidia-installer -v | grep version
nvidia-installer: version 390.77 ([email protected]) Tue Jul 10 23:19:33 PDT
[[email protected] ~]$ uname -a
Linux localhost.localdomain 4.17.14-202.fc28.x86_64 #1 SMP Wed Aug 15 12:29:25 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]$ lspci | grep -E “VGA|3D”
01:00.0 VGA compatible controller: NVIDIA Corporation GP104GLM [Quadro P3000 Mobile] (rev a1)
[[email protected] ~]$
Thanks! It worked like a charm.
$ nvidia-installer -v |grep version && uname -a && lspci |grep -E “VGA|3D”
nvidia-installer: version 396.51 ([email protected]) Tue Jul 31 16:05:07 PDT 2018
Linux salmon.localdomain 4.17.14-202.fc28.x86_64 #1 SMP Wed Aug 15 12:29:25 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
01:00.0 VGA compatible controller: NVIDIA Corporation GP108 [GeForce GT 1030] (rev a1)
# KERNEL
$ uname -a
Linux crunch 4.17.14-102.fc27.x86_64 #1 SMP Wed Aug 15 12:26:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
# GRAPHICS CARD
$ lspci |grep -E “VGA|3D”
01:00.0 VGA compatible controller: NVIDIA Corporation GM107GLM [Quadro M1000M] (rev a2)
# FEDORA 27
$ cat /etc/redhat-release
Fedora release 27 (Twenty Seven)
# NVIDIA DRIVER FILE USED
NVIDIA-Linux-x86_64-390.77.run
I am experiencing issues when attempting to follow your guide on a Fedora 27 machine. See above for the specific details of my machine and what I’m using.
Basically I get to the point where I’m in multi-user mode and initiate the installation of the NVIDIA .run file. Per your guide, during installation I choose “Yes” when it prompts if I want to register the kernel module sources with DKMS. Next I also choose “Yes” when prompted to install NVIDIA’s 32-bit libraries. At this point the installation continues as if there are no issues. However once it gets to the DKMS section, an error is generated:
Failed to run `/usr/sbin/dkms build -m nvidia -v 390.77 -k 4.17.14-102.fc27.x86_64`: Error! echo
Your kernel headers for kernel 4.17.14-102.fc27.x86_64 cannot be found at
/lib/modules/4.17.14-102.fc27.x86_64/build or
/lib/modules/4.17.14-102.fc27.x86_64/source.
Do you have any idea on what the issue could be?
Thanks!
Hi crunch,
Looks like you don’t have kernel-headers installed, should be installed after step 2.5 Install needed dependencies.
Sadly…
install: boots to blank screen
uninstall: panics during boot
Fedora 27, GeForce 770
Hello GB,
Could you post more information about your nVidia graphics card:
As much as i hate to run proprietary software, this is a system i care little about therefore i didn’t mind as much.
Installation seems to have gone well and working smoother than the nouveau drivers.
[[email protected] ~]$ nvidia-installer -v | grep version
µnvidia-installer: version 396.54 ([email protected]) Wed Aug 15 00:22:39 PDT 2018
[[email protected] ~]$ lspci | grep -E “VGA|3D”
09:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1080] (rev a1)
nvidia-installer: version 396.54 ([email protected]) Wed Aug 15 00:22:39 PDT 2018
Linux asgarth 4.17.17-200.fc28.x86_64 #1 SMP Mon Aug 20 15:56:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
01:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 770] (rev a1)
Thank you so much. Worked as depicted
Hello (JR?),
Thank you kindly for maintaining this post over the years. Every time I do a fresh fedora install (about once a year, depending on CUDA support xD), I literally just search “install nvidida driver if not true then false” because it’s never failed me for the past five years. So again, thank you <3
Today was the first "unsuccessful" version _ever_, but it doesn't actually seem to be related to any false instructions in the blog. However, it took a couple of hours for me to figure out, so if it is relevant and you think it is worth including, it will likely help future readers of this article — it is doubtful this problem will actually go away.
Notes:
– Fedora 27
– Driver: 390.87
I don't think those actually matter though. After following the mantra, runlevel 3 install finishes, reboot and 'Oops! Something went wrong'.
(1) The first thing I found was talking about not having GDM be Wayland. You un-comment the second line saying `WaylandEnable=false` in the file `/etc/gdm/custom.conf`.
– This seems like a good thing to do in general, since it is defaulting to `true`, and my understanding is NVIDIA and Wayland do not get along. (no evidence though…)
(2) The thing that seemed to actually be the problem was SELinux. The commands that fixed it for me (as root):
– `ausearch -c 'gnome-session-c' –raw | audit2allow -M mygnomesession.c`
– `semodule -X 300 -i mygnomesession.c.pp `
There is more discussion about the SELinux stuff here: https://forums.fedoraforum.org/showthread.php?315654-F27-nvidia-driver-gnome
Of course, if you include this in the article you probably have better advice as to what to name these files / where they should be created. I know basically nothing about SELinux other than it exists, and I had to tinker with it for nginx once …
Thank you again for this article, it's been a god-send to me for literally years at this point! I hope the two points above make sense, and if you feel they belong in the main article / note at the end, please do not attribute me because I didn't solve any of it lol. I just trolled the internet long enough and got lucky enough to find things that seemed reasonable xD
P.S. This may have been a thing in fc26? CUDA release schedule means I hop one, so before fc27 today I installed fc25, previously 23, 21 … and it may also not be a thing in fc28?
Thank you so much! This post has continuously proven to be a life-saver for many years!
Your tutorial has worked like a charm for the following configuration:
$ nvidia-installer -v | grep version
nvidia-installer: version 390.87 ([email protected]) Tue Aug 21 17:33:51 PDT 2018
$ uname -a
Linux localhost.localdomain 4.17.19-200.fc28.x86_64 #1 SMP Fri Aug 24 15:47:41 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ lspci |grep -E “VGA|3D”
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050] (rev a1)