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: 116
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...
Great guide, really. It was certainly most helpful for a filthy Linux noob such as me.
Fedora 34 MATE (Beta)
nvidia-installer: version 460.73.01
NEOFETCH: [email protected]
OS: Fedora 34 (MATE-Compiz) x86_64
Host: Z390 AORUS PRO
Kernel: 5.11.12-300.fc34.x86_64
Shell: bash 5.1.0
Resolution: 3840×2160
DE: MATE 1.24.2
WM: Metacity (Marco)
Theme: Blue-Submarine [GTK2/3]
Icons: oxygen-for-mint [GTK2/3]
Terminal: mate-terminal
CPU: Intel i9-9900K (16) @ 5.000GHz
GPU: NVIDIA GeForce RTX 2080 Rev. A
Memory: 1777MiB / 32063MiB
Followed the guide after i have updated fedora 34 , it doesn’t worked !
I got this message:
—————————————–
Failed to run `/usr/sbin/dkms build -m nvidia -v 465.24.02 -k
5.11.14-300.fc34.x86_64`: Error! echo
Your kernel headers for kernel 5.11.14-300.fc34.x86_64 cannot be
found at
/lib/modules/5.11.14-300.fc34.x86_64/build or
/lib/modules/5.11.14-300.fc34.x86_64/source.
You can use the –kernelsourcedir option to tell DKMS where it’s
located.
Right now on Fedora 34 after the update you have no headers for the running kernel by the kernel-devel is for the previous kernel and when you run the default kernel the src/build directories link to a non-existent folder !
No compilation of modules can be done dkms will not work with anything.
Hi chris,
Kernel-devel 5.11.14 should be available, but maybe some reason it wasn’t updated on upgrade process. You can at least install it using following command:
dnf install https://kojipkgs.fedoraproject.org/packages/kernel/5.11.14/300.fc34/x86_64/kernel-devel-5.11.14-300.fc34.x86_64.rpm
Then just reinstall your NVIDIA drivers.
How to solve this? How do i get the kernel header for default kernel?
Hello MD Ali Haider,
Could you tell more about your kernel and header versions?
nvidia-installer: version 460.56
Linux localhost.localdomain 5.11.15-200.fc33.x86_64 #1 SMP Fri Apr 16 13:41:20 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
Thanks waiting for Fedora 35 and NVIDIA 340
Hello com,
Kernel 5.12? I can check it, if it’s possible to patch working.
Thanks a lot for the tutorial. It was really useful. Greetings.
nvidia-installer -v |grep version
nvidia-installer: version 460.73.01
uname -a
Linux vfx 5.11.15-300.fc34.x86_64 #1 SMP Fri Apr 16 13:41:48 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
lspci |grep -E “VGA|3D”
01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
02:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
You’re welcome! Excellent to hear that you got NVIDIA drivers working!
Hello, since I am using GTX 1650 (Notebook) I had to install the driver with version 418.113. First, I patched it with the method in the other article, then I completed the installation by following this article and I got the “installed” message. No error was displayed. But when I return to “Runlevel 5” again, the “nvidia-settings” command does not work and when I enter the settings, I see that I still use the Intel graphics card. Below are the outputs of the three commands given at the end of the article. Please help me.
Outputs:
[[email protected] ~]$ nvidia-installer -v |grep version
nvidia-installer: version 418.113
[[email protected] ~]$ uname -a
Linux erkingoksu 5.11.15-300.fc34.x86_64 #1 SMP Fri Apr 16 13:41:48 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]$ lspci |grep -E “VGA|3D”
bash: 3D”: command not found…
[[email protected] ~]$ lspci |grep -E “VGA|3D”
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
06:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. RTS5763DL NVMe SSD Controller (rev 01)
Hello Erkin,
Could you post also output of the following command:
Hi,
I followed your guide and installed my nvidia 9400m, 340.108, on fedora 34 and it worked as a charm but i found that the nvidia xserver settings app won’t open anymore, any tips? or something i could have missed?
This was a new installation, not an upgrade or anything.
Thanks for the effort putting it all together. I had to downgrade the c-compiler to make it work, though,
Matthias
nvidia-installer: version 460.73.01
5.11.16-300.fc34.x86_64 #1 SMP Wed Apr 21 13:18:33 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
00:1f.5 Non-VGA unclassified device: Intel Corporation 200 Series/Z370 Chipset Family SPI Controller
21:00.0 VGA compatible controller: NVIDIA Corporation TU104 [GeForce RTX 2080] (rev a1)
Nice to hear that you got it working!
Also
--no-cc-version-check
option works, when you have compiler which is newer than gcc what was used to compile the currently running kernel.On Fedora 34 with kernel 5.11.17-300:
If you run the installer you will get an error because of a compiler mismatch: the installer needs gcc-11.0.1, but a raw install of fedora 34 after updating and all the commands above will get you gcc 11.1.1
Simply do ‘ dnf install gcc-11.0.1* ‘ before running the Nvidia executable, which will automatically downgrade your gcc to 11.0.1 and run the installer again.
Hopefully it helps anybody who gets an error on the latest version at the current time.
The issue might get resolved very soon, and i don’t think it helps editing the article, but just in case.
Forgot to mention: this is happening with Nvidia driver 465.27
Thanks S,
And yes you are totally right, gcc downgrade is possible option, but maybe easiest workaround this is use –no-cc-version-check NVIDIA installer parameter. Also 5.11.18 Kernel (https://koji.fedoraproject.org/koji/buildinfo?buildID=1743070) is compiled using gcc 11.1.1.
[[email protected] user]# nvidia-installer -v |grep version
nvidia-installer: version 460.73.01
[[email protected] user]# uname -a
Linux fedora 5.11.18-300.fc34.x86_64 #1 SMP Mon May 3 15:10:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] user]#
lspci |grep -E “VGA|3D”
65:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3090] (rev a1)
nvidia-installer: version 460.80
Linux localhost.localdomain 5.11.18-300.fc34.x86_64 #1 SMP Mon May 3 15:10:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)
I have been using you very helpful instructions on Fedora 32 from kernel version 5.9 through 5.11, making use of the patched versions for kernel’s 5.10 and 5.11, most recently with the NVIDIA 390.141 drivers. DKMS stopped updating the modules when the kernel was updated from 5.11.17-100.fc32.x86_64 to 5.11.19-100.fc32.x86_64. I did download the NVIDIA 390.143 drivers and attempted to install them with the following errors:
[from the NVIDIA installer error output]
ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 390.143 -k 5.11.19-100.fc32.x86_64`:
Kernel preparation unnecessary for this kernel. Skipping…
Building module:
cleaning build area…
‘make’ -j4 NV_EXCLUDE_BUILD_MODULES=” KERNEL_UNAME=5.11.19-100.fc32.x86_64 modules…(bad exit status:
2)
Error! Bad return status for module build on kernel: 5.11.19-100.fc32.x86_64 (x86_64)
Consult /var/lib/dkms/nvidia/390.143/build/make.log for more information.
[from /var/lib/dkms/nvidia/390.143/build/make.log]
DKMS make.log for nvidia-390.143 for kernel 5.11.19-100.fc32.x86_64 (x86_64)
Mon May 17 14:03:04 AKDT 2021
make[1]: Entering directory ‘/usr/src/kernels/5.11.19-100.fc32.x86_64’
scripts/Makefile.lib:8: ‘always’ is deprecated. Please use ‘always-y’ instead
Compiler version check failed:
The major and minor number of the compiler used to
compile the kernel:
gcc (GCC) 10.2.1 20201125 (Red Hat 10.2.1-9), GNU ld version 2.34-6.fc32
does not match the compiler used here:
cc (GCC) 10.3.1 20210422 (Red Hat 10.3.1-1)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It is recommended to set the CC environment variable
to the compiler that was used to compile the kernel.
The compiler version check can be disabled by setting
the IGNORE_CC_MISMATCH environment variable to “1”.
However, mixing compiler versions between the kernel
and kernel modules can result in subtle bugs that are
difficult to diagnose.
*** Failed CC version check. Bailing out! ***
make[2]: *** [/var/lib/dkms/nvidia/390.143/build/Kbuild:189: cc_version_check] Error 1
make[2]: *** Waiting for unfinished jobs….
make[1]: *** [Makefile:1821: /var/lib/dkms/nvidia/390.143/build] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/5.11.19-100.fc32.x86_64’
make: *** [Makefile:81: modules] Error 2
I also checked for a patched version but did not find one. Is there any was to correct the errors above?
Hi Borealis,
Nice to hear that this have been useful guide for you!
To solve this problem use
--no-cc-version-check
NVIDIA installer option. It should work. Alternatively you can upgrade kernel to 5.11.20 or downgrade gcc.[[email protected] ~]$ nvidia-installer -v |grep version
nvidia-installer: version 460.80
[cstork[email protected] ~]$ uname -a
Linux WS-6200-Primary 5.11.21-300.fc34.x86_64 #1 SMP Fri May 14 17:43:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]$ lspci |grep -E “VGA|3D”
01:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 710] (rev a1)