Fedora 24/23/22 nVidia Drivers Install Guide

Nvidia LogoThis is guide, howto install nVidia proprietary drivers on Fedora 24/23/22/21 and disable Nouveau driver. This guide works with GeForce 6/7/8/9/200/300/400/500/600/700/800/900/10 series cards.

  • GeForce 400/500/600/700/800/900/10 series cards works with 364.xx or 367.xx or 370.xx nVidia drivers
  • GeForce 8/9/200/300 series cards works with 340.xx nVidia drivers
  • GeForce 6/7 series cards works with 304.xx nVidia drivers

This is totally different guide than my earlier guides, like Fedora 20 nVidia driver install. This guide uses nVidia drivers directly from nVidia site and dkms to help on kernel updates. Have to say that I have had and heard strange problems with different repos (like RPMFusion) nVidia drivers. So that’s why I decided go back to old school (and bit ugly) method and install nVidia drivers “manually”. I have tested this guide with 304.xx (patched), 340.xx, 364.xx and 367.xx drivers/cards.

With DKMS, you could just update your kernel and your nVidia drivers are compiled automatically. If you want upgrade nVidia drivers, then you have to download new package from nVidia site or use “nvidia-installer –update” option (this works only with latest 367.xx drivers). If you try –update method with 304.xx or 340.xx versions, then you get 367.xx drivers.

Let me know, if you have some problems?

Or if you succeed, you could post output of following commands:

Backup first important files before you start installation. And this is of course at your own risk, because graphic cards, components and monitors are different and some combinations might cause totally unexpected results.

1. Before nVidia drivers installation

1.1 Check is your nVidia card supported

List of Supported NVIDIA GPU Products, if your card found before 340.xx section, then use 364.xx or 367.xx or 370.xx drivers and if between 340.xx and 304.xx sections, then use 340.xx drivers and if after 304.xx section, then use 304.xx drivers.

If you see multiple VGA controllers, then check next step and sometimes you might see example Intel VGA controller which have nothing to do with Optimus, normally you can go to BIOS and simply disable it.

1.2 NVIDIA Optimus Technology

If your lspci |grep -E “VGA|3D” output looks like following:

Or

Or you know that your computer have NVIDIA Optimus Technology, and it is impossible to turn Intel Graphics / NVIDIA Optimus off in the BIOS then this guide might not work for you and it’s not tested. You should check Bumblebee Project.

2. Install nVidia proprietary drivers on Fedora 24/23/22/21 and disable the nouveau driver

2.1 Download nVidia Installer Package

Go to http://www.nvidia.com/Download/Find.aspx?lang=en-us and find latest version of installer package. When you use browser this is normally downloaded /home/<username>/Downloads/NVIDIA-Linux-xxxx.run location. Fedora 24 and Kernel 4.6 needs a patched version of nVidia 364xx/340xx/304xx installers.

Tested versions:

Fedora 24

Fedora 23

  • 370.23 BETA (August 15, 2016)
  • 367.44 (August 23, 2016)
  • 364.19 (April 22, 2016)
  • 340.96 (November 16, 2015)
  • 304.131 (November 16, 2015) – installs and boot, but doesn’t work with Gnome 3.18. Other DEs/WMs should work normally. nVidia 304.131 Needs also patched version of installer.
Fedora 22/21

  • 370.23 BETA (August 15, 2016)
  • 367.44 (August 23, 2016)
  • 364.19 (April 22, 2016)
  • 340.96 (November 16, 2015)
  • 304.131 (November 16, 2015)

2.2 Make nVidia installer executable

2.3 Change root user

2.4 Make sure that you system is up-to-date and you are running latest kernel

If you have exclude=xorg-x11* row in your /etc/dnf/dnf.conf, then you can remove it now and update xorg too.

After update reboot your system and boot using latest kernel:

2.5 Install needed dependencies

2.6 Disable nouveau

2.6.1 Create or edit /etc/modprobe.d/blacklist.conf

Append ‘blacklist nouveau’

2.6.2 Edit /etc/sysconfig/grub

Append ‘rd.driver.blacklist=nouveau’ to end of ‘GRUB_CMDLINE_LINUX=”…”‘

2.6.3 Update grub2 conf

2.6.4 Remove xorg-x11-drv-nouveua

2.6.5 Generate initramfs

2.7 Reboot to runlevel 3

Note: You don’t have Desktop/GUI on runlevel 3. Make sure that you have some access to end of guide. (Print it, use lynx/links/w3m, save it to text file).

2.8 Install nVidia proprietary drivers for GeForce 6/7 & GeForce 8/9/200/300 & GeForce 400/500/600/700/800/900/10 series cards

2.8.1 Log in as root user

Or alternatively change root user (you shouldn’t have nouveua and xorg loaded)

2.8.2 Run NVIDIA Binary

Following command executes driver install routine. Use full file name command if you have multiple binaries on same directory.

2.8.3 nVidia Installer Accept License

Accept nVidia License

2.8.4 nVidia Installer Register the Kernel Source Modules with DKMS

nVidia Installer dkms

2.8.5 nVidia Installer 32-bit Compatibility Libraries

nVidia Installer 32-bit Compatibility

2.8.6 nVidia Installer Installing Drivers

nVidia Installer Installing Drivers

Note: Just ignore following errors:

This is bug and maybe fixed on next release. For more information check this.

2.8.7 nVidia Installer Xorg Backup

nVidia Installer Xorg Backup

2.8.8 nVidia Drivers Installation Complete

nVidia Drivers Installation Complete

2.9 All Is Done and Then Reboot Back to Runlevel 5

2.10 VDPAU/VAAPI support

To enable video acceleration support for your player (Note: you need Geforce 8 or later).

3. Some Screenshots Using Different Cards and Drivers

3.1 nVidia 367.27 drivers on Fedora 24 Gnome 3.20 with Kernel 4.5.7

nVidia 367.27 Running on Fedora 24

3.2 nVidia 364.19 drivers on Fedora 24 Gnome 3.20.2 with Kernel 4.6

Fedora 24 Kernel 4.6 nVidia 364.19 Gnome 3.20.2

3.3 nVidia 340.96 drivers on Fedora 24 Gnome 3.20.2 with Kernel 4.6

Fedora 24 Kernel 4.6 nVidia 340.96 Gnome 3.20.2

3.4 nVidia 304.131 drivers on Fedora 24 LXDE with Kernel 4.6

Fedora 24 Kernel 4.6 nVidia 304.131 LXDE

3.5 nVidia 340.96 drivers on Fedora 23 Gnome 3.18.1 with Kernel 4.2.5 and Xorg 1.18

nVidia 340.96 drivers on Fedora 23 Gnome 3.18.1 with Kernel 4.2.5 and Xorg 1.18

3.6 nVidia 304.131 drivers on Fedora 22 Gnome 3.16.2

nVidia 304.131 on Fedora 22

3.7 nVidia 304.131 on Fedora 21 Gnome 3.14.2

nVidia 304.131 on Fedora 21

Let me know, if you have problems?

Or if you succeed, you could post output of following commands:

Check also Step 4. Restore/Change/Update Plymouth After nVidia Drivers Installation (BIOS/UEFI Users) and Step 5. Uninstall Fedora 24/23/22/21 nVidia drivers and Enable Nouveau

Share this post

909 Comments

  1. Hi,

    I tried your guide, but without success. My configuration is:
    Kernel 4.6.7-300 on Fedora 24 x64
    NVIDIA GTX 650
    I tried to install the driver 367.44.

    When I run the .run, I clicked Accept, then I get something saying that Nouveau driver is still enabled on my system, so I should disable it and reboot, even though I have followed every step in your How-to…

    Anyway, I reverted back to Nouveau and it works, so, I guess I’ll just leave it like this, but if anyone has an idea, I’m open to suggestions!

    Fred

    Reply
  2. Woops, I mixed up, I tried on kernel 4.7.2-201, not on 4.6.7-300.

    Reply
  3. hello friends. I could update my fedora 24 os. Including kernel, from 4.5.7 to 4.7.2. I feel very good.

    [/crayon]

    Reply
  4. hello friends. I could update my fedora 24 os. Including kernel, from 4.5.7 to 4.7.2. I feel very good.

    [/crayon]
    the updates ![alt text](https://dl.dropboxusercontent.com/u/71626382/Screenshot%20from%202016-09-11%2021-20-40.png “the updates”)

    Reply
  5. I’m facing a weird problem. Sometimes when the kernel updates (ex: from 4.7.2 to 4.7.3) my gnome session fails to start. In fact if I use lightdm with lxde or xfce I can use normally.

    The nVidia driver compiles without errors.

    However, the last this happened, upgrading the nvidia driver solved the problem. But, this time there is no update available. (If I use older version of kernel the errors persist).

    I suspect that during the compiling of the driver some file (related to the X session or gdm) is corrupted.

    nvidia-installer -v |grep version
    nvidia-installer: version 367.44 (buildmeister@swio-display-x86-rhel47-01)

    uname -a
    Linux labpic-15 4.7.3-200.fc24.x86_64 #1 SMP Wed Sep 7 17:31:21 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

    lspci |grep -i VGA
    01:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 625 OEM] (rev a1)

    Could someone help?

    Reply
    • Hi Daniel,

      Just reinstall nVidia drivers.

      Download drivers and run:

      Reply
      • It worked! Thanks.

        Reply
  6. I recently updated my kernel from 4.5.7 to 4.7.3 and NVIDIA driver 340.96 fails to build (with or without DKMS). Is there a solution for that?

    Reply
  7. Kernel 4.8 is due out in a few weeks. Are we gonna have another problem then?

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *