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 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 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.

Tested versions:

Fedora 24

Fedora 23

Fedora 22/21

  • 367.27 (June 13, 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 358.16 drivers on Fedora 23 Gnome 3.18.2 with Kernel 4.2.6 and Xorg 1.18

nVidia 358.16 on Fedora 23 Gnome 3.18.2 Kernel 4.2.6

3.3 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.4 nVidia 355.11 drivers on Fedora 22 Gnome 3.16.2 with Kernel 4.1.10

nVidia 355.11 on Fedora 22 Gnome 3.16.2 with Kernel 4.1.10

3.5 nVidia 304.131 drivers on Fedora 22 Gnome 3.16.2

nVidia 304.131 on Fedora 22

3.6 nVidia 340.76 on Fedora 21 Gnome 3.14.2

nVidia 340.76 on Fedora 21 Gnome 3.14.2

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

769 Comments

  1. Works like a charm! Thanks a lot, succesful at first try :D

    [root@localhost wired]# nvidia-installer -v |grep version
    nvidia-installer: version 367.27 (buildmeister@swio-display-x64-rhel04-12)
    [root@localhost wired]# uname -a
    Linux localhost.localdomain 4.5.7-200.fc23.x86_64 #1 SMP Wed Jun 8 17:41:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    [root@localhost wired]# lspci |grep -i VGA
    01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)

    Reply
  2. Succeeded in all steps. When I rebooted the resolution is too small.
    My monitor is FHD (1920*1080).
    How can I ve that resolution?

    Reply
    • Hi Pranam,

      Could you tell me more about your hardware. Your monitor, graphics card and what cable you are using?

      Reply
  3. Hi JR

    I successfully installed the latest driver on Fedora 24. The problem is the driver crashes after several minutes and the system hangs on “Starting Switch Root…” What can it be?

    Reply
    • Re-installing the driver didn’t help. It stucks at Starting Switch Root… I’m now using the default driver. Strangely, I have been using the beta of Fedora 24 KDE with 367.27 when Fedora 24 was released.

      Reply
  4. Problem : KBD, Mouse do not work in GUI screen on GDM , KDM, LXDM, LIGHTDM ….in Fedora-23…
    —————————–
    xorg-1.18.3
    —————————–
    4.5.7-200.fc23.x86_64
    ————————————–
    02:00.0 VGA compatible controller: NVIDIA Corporation GK106GL [Quadro K4000] (rev a1)
    02:00.1 Audio device: NVIDIA Corporation GK106 HDMI Audio Controller (rev a1)
    —————————————-
    [ 156.313] (WW) Hotplugging is on, devices using drivers ‘kbd’, ‘mouse’ or ‘vmmouse’ will be disabled.
    [ 156.313] (WW) Disabling Mouse0
    [ 156.313] (WW) Disabling Keyboard0
    ——————–

    Reply
  5. Success!
    nvidia-installer: version 367.27 (buildmeister@swio-display-x64-rhel04-12)
    Linux localhost.localdomain 4.5.7-300.fc24.x86_64 #1 SMP Wed Jun 8 18:12:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1)

    Reply
  6. > nvidia-installer -v |grep version

    nvidia-installer: version 340.96 (buildmeister@swio-display-x86-rhel47-05) Sun Nov 8 22:50:33 PST 2015

    > uname -a

    Linux xxxx 4.5.7-300.fc24.x86_64 #1 SMP Wed Jun 8 18:12:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

    > lspci |grep -i VGA

    01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)

    Reply
  7. Thanks, you are my hero.

    nvidia-installer -v |grep version
    nvidia-installer: version 367.27 (buildmeister@swio-display-x64-rhel04-12) Thu Jun 9 19:24:47 PDT

    uname -a
    Linux fx 4.5.7-300.fc24.x86_64 #1 SMP Wed Jun 8 18:12:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

    lspci |grep -i VGA
    01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2)

    Reply
  8. Thank you so much. Worked fine.
    nvidia-installer -v |grep version
    nvidia-installer: version 367.27 (buildmeister@swio-display-x64-rhel04-12)
    [root@localhost ~]# uname -a
    Linux localhost.localdomain 4.5.7-300.fc24.x86_64 #1 SMP Wed Jun 8 18:12:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    [root@localhost ~]# lspci |grep -i VGA
    01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)

    Reply
  9. Hi Sergey,

    Same problem here. With kernel 4.5.7 and the latest NVIDIA driver for Linux 64-bit (367.27 at the moment). After few minutes on the graphical environment (Gnome), it crashes. I tried to install an older NVIDIA driver but the error persists.

    Reply
    • Hi Julián and Sergey,

      Could you check your graphics card temps? Is it overheating?

      Then could you check/post your dmesg, journalctl and /var/log/Xorg.*.log to get some extra info?

      Reply
      • No, it’s not overheating, crashed at 40C. Also I can’t see today’s log for jornalctl.

        How can I post the logs. The site is blocking me.

        Reply
      • No, it’s not overheating, crashed at 40C. Also I can’t see today’s log for jornalctl.

        How can I post the logs? The site is blocking me.

        Reply
      • No, it’s not overheating, crashed at 40C. Also I can’t see today’s log for journalctl.

        How can I post the logs? The site is blocking me.

        Reply
  10. Hi! It worked first time for me for a GeForce 9500 GT. After a bit of playing around with “coolbits”, I was also able to set the fan speed manually, and keep it persistent after rebooting. I had replaced the stock cooling fan with a larger one, but this meant that the default 25% idle setting wasn’t enough for the fan to start spinning. I only found out about that after opening the computer case to clean the fan. Increasing the percentage to 42% fixed it.

    I was having problems with LibreOffice 5.0.x (latest in the Fedora repos). The GUI was unusable with black bars and black-on-black menu items. Upgrading to a newer 5.1.x version fixed it.

    Reply
  11. test

    Reply

Submit a Comment

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