Fedora 19 nVidia Drivers Install / Uninstall Guide

Nvidia LogoLooking Fedora 20 “Heisenbug” nVidia Drivers Install guide?

This is guide, howto install nVidia proprietary drivers on Fedora 19 “Schrödinger’s Cat” and disable Nouveau driver. This guide works with GeForce 6/7/8/9/200/300/400/500/600/700 series cards. Older GeForce series cards works with 304.xx nVidia drivers and newer 8/9/200/300/400/500/600/700 series cards works with 331.xx nVidia drivers.

Fedora 19 nVidia driver installation is not much different from previous Fedora versions. I have tested this guide with a couple computers, so let me know, if you have some problems.

1. Before nVidia drivers installation

1.1 Check is your nVidia card supported

lspci |grep -i VGA
 
## Example output ##
01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce G210] (rev a2)

List of Supported NVIDIA GPU Products, if your card found before 304.xx section, then use 331.xx drivers and if under 304.xx section, then use 304.xx drivers.

1.2 NVIDIA Optimus Technology

If your lspci |grep -i VGA output looks like following:

00:02.0 VGA compatible controller: Intel Corporation 2n Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: nVidia Corporation GF106 [GeForce GT 555M SDDR3] (rev a1)

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 is not working on your system. Check If !1 0 forums user Viger guide instead Fedora 19 for NVIDIA Optimus users (with Nvidia driver or Bumblebee).

2. Install nVidia proprietary drivers on Fedora 19 “Schrödinger’s Cat” and disable the nouveau driver

2.1 Change root user

su -
## OR ##
sudo -i

2.2 Make sure that you are running latest kernel and have latest SELinux policy packages

If not then update kernel and reboot

yum update kernel* selinux-policy*
reboot

2.3 Add RPMFusion Repositories (Free and Non-Free)

32-bit and 64-bit

yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
 
## OR ##
 
yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

2.4 Install nVidia proprietary drivers for GeForce 6/7/8/9/200/300/400/500/600/700 series cards

Select akmod, kmod from following.

akmod-nvidia for GeForce 8/9/200/300/400/500/600/700 series cards

yum install akmod-nvidia xorg-x11-drv-nvidia-libs kernel-devel acpid

akmod-nvidia-304xx for GeForce 6/7 series cards

yum install akmod-nvidia-304xx xorg-x11-drv-nvidia-304xx-libs kernel-devel acpid

Extra package for kernel-PAE users

yum install kernel-PAE-devel

or

kmod-nvidia for GeForce 8/9/200/300/400/500/600/700 series cards

yum install kmod-nvidia xorg-x11-drv-nvidia-libs acpid

kmod-nvidia-304xx for GeForce 6/7 series cards

yum install kmod-nvidia-304xx xorg-x11-drv-nvidia-304xx-libs acpid

akmod is good option and easy way avoid problems on kernel updates and is best and only option if you use:

  • self-compiled kernel
  • older Fedora kernel
  • quickly changing kernels from updates-testing/rawhide

Full spec of kmod and akmod differences, check this.

2.5 Remove / disable nouveau drivers from kernel initramfs

## Backup old initramfs nouveau image ##
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
 
## Create new initramfs image ##
dracut /boot/initramfs-$(uname -r).img $(uname -r)

2.6 All is done and then just reboot

reboot

2.7 VDPAU/VAAPI support

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

yum install vdpauinfo libva-vdpau-driver libva-utils

3. Uninstall nVidia proprietary drivers on Fedora 19 “Schrödinger’s Cat” and enable the nouveau driver

I assume that you installed nVidia driver with this guide, then do following.

3.1 Change root user

su -
## OR ##
sudo -i

3.2 Uninstall nVidia Driver Packages

yum remove xorg-x11-drv-nvidia\* nvidia-settings nvidia-xconfig

3.3 Then Reboot System

reboot
Follow If Not True Then False Updates!

124 Comments

  1. I have GeForce 6100 nForce 405

    Do I have to uninstall the rpmfusion stuff first?

    I have the following from rpmfusion:

    [root@ast180ua381b dthiessen]# rpm -qa \*nvidia\* | sort -V
    akmod-nvidia-304xx-304.108-2.fc19.x86_64
    kmod-nvidia-304xx-3.9.5-301.fc19.x86_64-304.108-2.fc19.x86_64
    kmod-nvidia-304xx-3.11.10-200.fc19.x86_64-304.108-2.fc19.x86_64
    xorg-x11-drv-nvidia-304xx-304.108-2.fc19.x86_64
    xorg-x11-drv-nvidia-304xx-libs-304.108-2.fc19.x86_64

    Also what is interesting is that for my card, the driver from nvidia is version 304.64
    NVIDIA-Linux-x86_64-304.64.run

    RPMFusion latest, that totals screws my system is 304.116
    I am currently using 304.108, but, I have some issues sometimes with it.

    The nouveau drivers don’t work at all for my old card.

  2. I tried the instruction in your article using FC 20 using GTX 670. It did not work first as boot screen froze on services start. One of the comment said to install kernel-devel and acpid. Not sure I needed acpid but I went ahead and installed it.

    After that I erased akmod,
    yum erase akmod-nvidia xorg-x11-drv-nvidia-libs
    and did install again
    yum install akmod-nvidia xorg-x11-drv-nvidia-libs
    reboot and all works fine for me. Hopefully someone else can test it.

  3. Is there any support for the NVidia 96.xx drivers? I can’t seem to find how to install the 96 drivers.

    Thanks,

    - Jay

  4. After Install nVidia proprietary drivers
    i removed nouveau drivers

    Remove / disable nouveau drivers from kernel initramfs

    ## Backup old initramfs nouveau image ##
    mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img

    ## Create new initramfs image ##
    dracut /boot/initramfs-$(uname -r).img $(uname -r)

    now my system uses nvidia Drivers perfectly

  5. Hello !
    would anyone please tell me what are the steps to install nvidia in my machine .
    I have an Asus P43sj with Fedora 19 installed
    when i lspci, i get

    [root@hacking djed]# lspci |grep -i VGA
    01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce GT 520M] (rev a1)

    i tried to follow sm steps then it fail to boot , just an ugly boot
    loader line appear , i had to reinstall fedora 19

    • After installing akmod-nvidia
      do the following it worked well in my system

      ## Backup old initramfs nouveau image ##
      mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img

      ## Create new initramfs image ##
      dracut /boot/initramfs-$(uname -r).img $(uname -r)

  6. install rpmfusion repo:

    su -c ‘yum localinstall -y –nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm’

    su -c yum install -y xorg*nvidia

  7. su -c ‘yum install -y xorg*nvidia’ ;#forgot the quotes

  8. do i not need to uninstall nouveau first ?

  9. No, no need to remove nouveau, just run “yum install xorg*nvidia”

  10. Hello JR,

    My NVIDIA GPU card is GeForce 8400M GS,and I trid to install the drivers many times on Fedora 19 and Fedora 20(kernel :3.12.5 or 3.11) .After the drivers is installed, the computer can run an init 3 state but the Xwindow could not run.

    lsmod |grep nvidia
    nvidia 9592640 0
    drm 23.658 1 nvidia
    i2c_core 37169 4 drm , i2c_i801,nvidia,videodev

    Thanks for your help.

    • Hi dreamzhao,

      Looks like nvidia drivers are loaded correctly. Could you post output of your /var/log/Xorg.0.log after boot, example to http://pastebin.com ?

      • Hello JR,
        After booted in init 3 state,and run “vi /var/log/Xorg.0.log”,it return nothing. Thanks for your help.

      • More infomation:run “vi /var/log/Xorg.0.log”,and shou that 0L,0C

      • There are some infomations may be used:

        #uname –r
        3.12.5-302.fc20.i686
        #Lspci | grep –i VGA
        01:00.0 VGA compatible controller:NVIDIA Corporation G86M [Geforce 8400M GS] (rev a1)
        #lsmod |grep –e noub -e nvidia
        nvidia 9592640 0
        drm 23.658 1 nvidia
        i2c_core 37169 4 drm , i2c_i801,nvidia,videodev

        #rmmod nouveau
        ERROR:Module nouveau is not currently loaded
        #modprobe nvidia
        It returns nothing.

        #rpm –qa \*nvidia\* kernel\* |sort
        abrt-addon-kernelloops-2.1.9-1.fc20.i686
        akmod-nvidia-331.20-10.fc20.i686
        kernel-3.11.10-301.fc20.i686
        kernel-3.12.5-302.fc20.i686
        kernel-PAE-devel-3.12.5-302.fc20.i686
        kernel-devel-3.12.5-302.fc20.i686
        kernel-headers-3.12.5-302.fc20.i686
        kernel-modules-extra-3.11.10-301.fc20.i686
        kernel-modules-extra-3.12.5-302.fc20.i686
        libreport-plugin-kernelloops-2.1.9-1.fc20.i686
        xorg-x11-drv-nvidia-331.20-6.fc20.i686

        Any help is appreciate.

        • Hi dreamzhao,

          You have to boot init 5 and change another virtual console and then check /var/log/Xorg.0.log, do you see log then?

  11. On my ThinkPad w520, my system hung at boot when I followed the generic instructions. The advice given by IQ above worked for me; after I installed the two packages (kernel-devel and acpid) and then erased and re-installed the video drivers, the system booted properly. Thanks, IQ!

  12. thank you IQ it solved my problem too

  13. You must have forgotten the below 2 steps of removing nouveau driver after Step 2.4.

    Step:2.4.1

    mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img

    Step:2.4.2
    ## Create new initramfs image ##
    dracut /boot/initramfs-$(uname -r).img $(uname -r)

    Step 2.5

    This worked for me with kmod drivers for Elitebook 8560W NVIDIA Quadro 1000M.

    It is strange that these 2 steps are skipped in the installation guide.

    • Hi Chetan,

      All testing what I have done with my own nVidia cards, everything is working normally without creating new initramfs image. Perhaps it is better to be on the safe side and update this guide to include these commands, because I own just a couple of nVidia graphics card. :)

  14. Hi all nVidia graphics users!

    Yes currently kernel-devel is not installed as dependency, but it’s needed when akmod-nvidia is used, so I added it to my guide. I added acpid too, because Option “ConnectToAcpid” is default on. And I added initramfs generation part too, because, looks like some users need it to get everything working. Please let me know if you have anything other useful feedback to this guide? :)

    I will publish Fedora 20 nVidia install guide soon, when I have tested little bit more. Testing needs unfortunately clean Fedora 20 installs on physical machines, because then it’s much more easier to check what’s is really needed and still I can test only a few nVidia cards.

    Thank you for your feedback!

  15. Thanks for these guides, JR.
    I followed the guide on Fedora 20, and got the problem “vfs: unable to mount root fs on unknown-block (0,0).
    Maybe the problem was grub configuration.

  16. Works for Fedora 20. My graphics card is a GTX 660.

  17. What is a got

    lspci |grep -i VGA
    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)

    I have an Asus X450c with a Nvidia Geforce 720m and also the internal INtel card. What to do? Thx!

  18. I manage to load X server, but after using nvidia-xconfig I get xorg.conf which isn’t working.
    On nouveau driver, my xorg.conf looked like this:
    http://pastebin.com/B66kGchp
    And xorg.conf generated by nvidia-xconfig looks following:
    http://pastebin.com/vTdCmW0i
    Additionally,
    lsmod |grep nvidia
    shows nothing. Why?
    I’m using integrated graphics card:
    02:00.0 VGA compatible controller: NVIDIA Corporation C77 [GeForce 8200] (rev a2)
    I also get following error in Xorg.0.log:
    [ 84.456] (II) Loading /usr/lib64/nvidia/xorg/libglx.so
    [ 84.457] (EE) Failed to load /usr/lib64/nvidia/xorg/libglx.so: libnvidia-tls.so.331.20: cannot open shared object file: No such file or directory
    although libnvidia-tls.so.331.20 is present, but at /usr/lib64/nvidia/xorg and at /usr/lib64/nvidia/xorg/tls/
    What’s wrong?

  19. I forgot to mention that I’m using Fedora 20.

  20. @Aflred And you followed the instructions completely? I have a GTX 670 and I’m getting no where… :(

  21. Have a GeForce GT 330 and no X after rebuiling ramfs (sevveral times).

    Followed IQ’s instruction on removing the nvidia drv and libs and reinstalled, and WHA LA!

    Doesn’t make sense but works ;-)

  22. What if I want to install a Telsa K20 card? You don’t mention that. What do I do then?

  23. Hi thanks for a great how to.

    I have one issue hopefully someone can help me with.

    After performing Step 2.4 I reboot my machine. I have now lost my spash screen for the whole disk encryption password prompt and the boot splash screen is different. How do I modify this? Is this information in initramfs or some where else?

    Thanks.
    Thanks.

  24. Same problem with my ASUS UX302LG and Nvidia Geforce 730M. After installing the drivers the machine stucks at starting up the GNOME Display manager. Has anyone solved this problem?

    • Hi Frank,

      Could you post output of following command:

      lspci |grep -i VGA
  25. Hello JR,

    Output of the lspci command:

    [frank@localhost ~]$ lspci |grep -i VGA
    00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)

    Part of the output lspci -k:

    04:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 730M] (rev a1)
    Subsystem: ASUSTeK Computer Inc. GeForce GT 730M
    Kernel modules: nouveau

  26. This howto dont work for me never, sorry

    • Hi Isaac,

      I’m sorry to hear that this hasn’t worked for you.

      Could you tell a bit more about the problem and your nVidia card?

Leave a Comment

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackbacks/Pingbacks

  1. [SOLVED] Graphics card for fedora 18 - [...] and was much higher than earlier when I didn't have a dedicated graphics card. I found a solution here, …