Howto: Install Nvidia driver for Fedora 15

Dec-2nd-2010

If you’re wanting to use the nvidia proprietary driver, rather than the nouveau driver provided by default in Fedora 15, then do the following:

1. Add this to the end of the kernel line (without quotes) in /etc/grub.conf -> “rdblacklist=nouveau vga=0×318″

2. Command:  su -c “rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm”

3. Command: yum update

4. For 64bit Users, Command: yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64

5. A) For 32bit Users, Command: yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686
5. B) For 32bit Users using the PAE kernel, Command: yum install kmod-nvidia-PAE.i686 xorg-x11-drv-nvidia-libs.i686

6. Reboot, and you’re done !

Note: If this doesn’t seem to work for you, in step one, instead of “rdblacklist=nouveau”, try “nouveau.modeset=0″

Comments

  1. Techwatch Said,

    thanks very much that is very clear

  2. Linux Software Blog » Blog Archive » SOLVED Fedora 12 + Nvidia installation problems Said,

    [...] NOTE: If you need the tutorial for Fedora 13, go here: http://linuxsoftwareblog.com/?p=516 [...]

  3. PAUL Said,

    Thankyou very much for this!

    I’ve tried several other guides but everyone seems to be too distracted by the new opensource drivers lately!

  4. dev Said,

    One that worked….thanks.

  5. cemetery Said,

    Very informative it’s about time there’s a tutorial for Fedora nvidia drivers that minimize headaches.

  6. Fedora 13 and CUDA « hobiger.org Blog Said,

    [...] followed installation of NVIDIA driver as described here [...]

  7. andrew Said,

    I got this for 64 bit
    [root@localhost ~]# yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64
    Loaded plugins: presto, refresh-packagekit
    fedora/metalink | 28 kB 00:00
    fedora | 4.3 kB 00:00
    fedora/primary_db | 13 MB 00:06
    updates/metalink | 24 kB 00:00
    updates | 4.5 kB 00:00
    updates/primary_db | 1.7 MB 00:00
    Setting up Install Process
    No package kmod-nvidia available.
    No package xorg-x11-drv-nvidia-libs.i686 available.
    No package xorg-x11-drv-nvidia-libs.x86_64 available.
    Nothing to do
    [root@localhost ~]#

  8. Rob Said,

    Hi Andrew,

    it seems that you have not successfully completed parts 2 and 3. In the list of checked repositories in your list, the rpmfusion repository is not mentioned. Please ensure that you do parts 2 and 3.

  9. turgut kalfaoglu Said,

    In my case, I had to add nouveau to /etc/modprobe.d/blacklist.conf
    file, otherwise kernel kept loading it and ignoring the kernel line.

    Then I did a telinit 2 to drop to command line, and installed the NVIDIA drivers I downloaded from Nvidia.. worked like a charm..glxgears went from 900 to 5000.. -t

  10. Remi Said,

    Good stuff, thanks !

  11. Marcelo Said,

    I followed those steps and the installation went correctly, bu recently the software update installed an update for the fedora 13 kernel and my system doesn’t boot anymore, it’s stop at the loading screen on the boot process. and every time a reinstall fedora, install the driver and eventually update the system it happens again, so what can i do to correct this?

  12. Rob Said,

    Hi Marcelo. Can I have a guess that, at some point in the past, you have used the NVidia driver, (ending in .sh) rather than the RPMFusion package? I have noticed that, where this is the case, there is an issue with the soft link to the libGL.so.1 file. Do the following as root at your own risk (though I’ve done it successfully elsewhere):
    Change lib to lib64 accordingly for 64 bit systems.
    1. rm /usr/lib/libGL.so.1
    2. ln -s /usr/lib/nvidia/lbGL.so.1 /usr/lib/libGL.so.1

    You may notice that the existing soft link is pointing to an old NVidia driver e.g. 185.* in /usr/lib/

  13. Al Said,

    This works fine, but I had to install system-config-display-2.2.1.fc12.i686 to resolve all dependencies of xorg-x11-drv-nvidia-libs.i686

    Thanks!

  14. NVIDIA Officially Sucks! « rnd()ness Said,

    [...] code for the fedora kernel in case you wanted to recompile your own kernel.  Also, I found another great page with instructions on how to install the rpmfusion’s version of the NVIDIA [...]

  15. a-nony-mus Said,

    How do I reverse this? I did it and then I messed up the resolution of the screen, and it says it is on maximum.

  16. hercufles Said,

    Sorry im a bit new with linux but how do part 1 i dont know how to edit grub.conf

  17. fadsas Said,

    su: invalid option — ‘U’

    That’s what I get.

  18. Rob Said,

    @hercufles
    Perhaps, you could run “gedit grub.conf” from the command line. You’ll be presented with a text editor to make the necessary changes

  19. Rob Said,

    @fadsas
    I suggest trying to type the command in manually, rather than copying and pasting (the HTML may be rendering inaccurately). Good luck.

  20. Chaos Said,

    Thanks a lot.

  21. Ratfink Said,

    Thanks for the nice guide! I’ll do this tomorrow, after I update the >700 packages that need updating.

    Just for future reference, the real file is /boot/grub/grub.conf now. /etc/grub.conf is just a symbolic link. Less to type, but maybe that symlink might disappear eventually.

  22. SmartViking Said,

    Thank you this worked like a charm. =)

  23. Rob Said,

    @ Ratfink, thanks, updated.

  24. Shady Said,

    hey,
    i have the same problem as Andrew,

    [root@soslemachine etc]# yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686
    Loaded plugins: presto, refresh-packagekit
    Setting up Install Process
    No package kmod-nvidia available.
    No package xorg-x11-drv-nvidia-libs.i686 available.
    Error: Nothing to do

    I explicitly did your step 2 and step 3.

  25. Rob Said,

    @ shady

    Can you please run ‘ ls /etc/yum.repos.d/ ‘

    Then ‘ cat /etc/yum.repos.d/rpmfusion-nonfree.repo ‘

    And post those outputs. Running ‘ yum update’ one more time won’t do any harm, either.

  26. ankush Said,

    hey, m havin problem … as i m new to linux i hope u will help me in this..

    [tils@tils ~]$ yum update
    Loaded plugins: presto, refresh-packagekit
    You need to be root to perform this command.

  27. Rob Said,

    @ankush you first of all need to run:
    su

    and type in your root password. Then run “yum update”

  28. Paul Said,

    Many thanks!
    Worked like a charm – output form glxgears went from approximately 790 FPS to approximately 2,600 FPS with GeForce 8600 GT video card. 3D desktop effects finally works
    uname -a output follows:
    Linux kodiak 2.6.33.6-147.2.4.fc13.x86_64 #1 SMP Fri Jul 23 17:14:44 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

  29. ankush Said,

    hey… very thanx for helping me out…. nw its working fine..
    thnx a lot again .

  30. Jrod Said,

    can I edit /ect/grub.conf with gedit?

  31. jlo Said,

    After running yum update i get this error:

    Error: Package: 1:kmod-nvidia-2.6.34.6-47.fc13.i686.PAE-256.53-1.fc13.i686 (rpmfusion-nonfree-updates)
    Requires: kernel-uname-r = 2.6.34.6-47.fc13.i686.PAE
    Installed: kernel-PAE-2.6.33.6-147.2.4.fc13.i686 (@updates)
    kernel-uname-r = 2.6.33.6-147.2.4.fc13.i686.PAE
    Installed: kernel-PAE-2.6.33.8-149.fc13.i686 (@updates)
    kernel-uname-r = 2.6.33.8-149.fc13.i686.PAE
    Installed: kernel-PAE-2.6.34.6-54.fc13.i686 (@updates)
    kernel-uname-r = 2.6.34.6-54.fc13.i686.PAE
    Available: kernel-2.6.33.3-85.fc13.i686 (fedora)
    kernel-uname-r = 2.6.33.3-85.fc13.i686
    Available: kernel-2.6.34.6-54.fc13.i686 (updates)
    kernel-uname-r = 2.6.34.6-54.fc13.i686
    Available: kernel-PAE-2.6.33.3-85.fc13.i686 (fedora)
    kernel-uname-r = 2.6.33.3-85.fc13.i686.PAE
    Available: kernel-PAEdebug-2.6.33.3-85.fc13.i686 (fedora)
    kernel-uname-r = 2.6.33.3-85.fc13.i686.PAEdebug
    Available: kernel-PAEdebug-2.6.34.6-54.fc13.i686 (updates)
    kernel-uname-r = 2.6.34.6-54.fc13.i686.PAEdebug
    Available: kernel-debug-2.6.33.3-85.fc13.i686 (fedora)
    kernel-uname-r = 2.6.33.3-85.fc13.i686.debug
    Available: kernel-debug-2.6.34.6-54.fc13.i686 (updates)
    kernel-uname-r = 2.6.34.6-54.fc13.i686.debug
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

    I don’t know what to do from there.

  32. Rob Said,

    @jlo, I suggest that you wait a few days for the kmod-nvidia packagers at rpmfusion to update to coincide with the latest kernel…

  33. Rob Said,

    @ Jrod: you can indeed:
    su -c 'gedit /etc/grub.conf'

  34. jlo Said,

    @Rob or anyone… Is there an alternative way to get my Nvidia drivers working. I’m new at this thing and thought I could just uninstall the Nvidia driver and reinstalling it, but it doesnt work. Nvidia cannot find “kernel-source-tree” when I try installing the proprietary drivers.

  35. jlo Said,

    What does my error mean? What is it saying?

    Error: Package: 1:kmod-nvidia-2.6.34.6-47.fc13.i686.PAE-256.53-1.fc13.i686 (rpmfusion-nonfree-updates)
    Requires: kernel-uname-r = 2.6.34.6-47.fc13.i686.PAE
    Installed: kernel-PAE-2.6.33.6-147.2.4.fc13.i686 (@updates)
    kernel-uname-r = 2.6.33.6-147.2.4.fc13.i686.PAE
    Installed: kernel-PAE-2.6.33.8-149.fc13.i686 (@updates)
    kernel-uname-r = 2.6.33.8-149.fc13.i686.PAE
    Installed: kernel-PAE-2.6.34.6-54.fc13.i686 (@updates)
    kernel-uname-r = 2.6.34.6-54.fc13.i686.PAE
    Available: kernel-2.6.33.3-85.fc13.i686 (fedora)
    kernel-uname-r = 2.6.33.3-85.fc13.i686
    Available: kernel-2.6.34.6-54.fc13.i686 (updates)
    kernel-uname-r = 2.6.34.6-54.fc13.i686
    Available: kernel-PAE-2.6.33.3-85.fc13.i686 (fedora)
    kernel-uname-r = 2.6.33.3-85.fc13.i686.PAE
    Available: kernel-PAEdebug-2.6.33.3-85.fc13.i686 (fedora)
    kernel-uname-r = 2.6.33.3-85.fc13.i686.PAEdebug
    Available: kernel-PAEdebug-2.6.34.6-54.fc13.i686 (updates)
    kernel-uname-r = 2.6.34.6-54.fc13.i686.PAEdebug
    Available: kernel-debug-2.6.33.3-85.fc13.i686 (fedora)
    kernel-uname-r = 2.6.33.3-85.fc13.i686.debug
    Available: kernel-debug-2.6.34.6-54.fc13.i686 (updates)
    kernel-uname-r = 2.6.34.6-54.fc13.i686.debug
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

  36. keplenk Said,

    For those who are having dependency error like the post above:

    Open Terminal and run:

    yum clean all
    yum update

    Now re-run the yum install kmod-nvidia …. command.

    This fixed mine. Thanks for the Guide BTW.

  37. jlo Said,

    Waited just like Rob said and I was able to install the nVidia drivers via RPM successfully. I still cannot start X. Xorg.0.log says Failed to load the NVIDIA kernel module!

  38. Rob Said,

    Forwarded from the Fedora 12 blog:
    ———————————–
    Ha ha thanks Rob…

    I tried this with my install and got nowhere fast….then I read this…

    The proprietary nvidia driver supports specific hardware in groups. Typically older hardware is supported through various legacy drivers. Currently there is 1 main driver for newest hardware, and 3 legacy drivers. The names of the drivers are not very informative, but according to Nvidia’s website they are provided as:

    * Latest Version
    * Legacy version (173.xx series)
    * Legacy version (96.xx series)
    * Legacy version (71.xx series)

    From here http://www.mjmwired.net/resources/mjm-fedora-nvidia.html#driver_options

    Which pointed me to my solution – my card is an old card and by default Fedora uses the newest driver – which of course wouldn’t work with my old GeForce MX2 which used the nvidia-96xx drivers kernels etc..

    So my observations are, make sure you load the correct drivers and make sure you don’t need legacy drivers if your card is old it won’t work out of the box..

    Rob a sanity check may be a good idea as I searched the blog for 96xx and didn’t find any references to it.

    Thanks

    Rob

  39. ori Said,

    thanks

  40. John Said,

    Hmm – all nice, but I have a problem…

    I have the game X3-Reunion from LGP and this game really has BIG problems with the latest nvidia 256 drivers. The only drivers really working good are the 195 range drivers. I rather not use the 173 range drivers, because they are for older hardware and I have a GeForce 250GTS.

    Unfortunately that is the only driver offered by rpmfusion (as far as I know). I really need the older 195.36.24 driver, so I am forced to install this driver by hand.

    The problem is – although I installed the driver successfully by hand on other systems (Mandriva, openSUSE, PClinuxOS etc.), it seems to go completely wrong under Fedora 13. The compile-install stage seems to run without any problem, but when I restart the system the only thing I get is a black screen. I cannot even switch to a terminal (Ctrl-Alt-F2 – or other function key) to see what error messages been shown…

    Has anybody any idea what is going on? And more important – ho to install the download nvidia (195) driver and not the one provided by rpmfusion?

  41. Lucas Arbiza » Blog Archive » Migrando para o Fedora 14 Said,

    [...] do Driver da NVidia: http://linuxsoftwareblog.com/?p=516. ATENÇÃO: Inserir “rdblacklist=nouveau vga=0×318″ no grub ocasionou problemas na [...]

  42. Arrin Salazar Said,

    Thanks for this brief tutorial. it caught my eye some months ago and has helped several new instalations of Fedora.

  43. dan Said,

    thanks, very helpful!

  44. Doug Said,

    The X in the 0×318 above is a Unicode multiply symbol and not an “x”. Impossible to paste into grub.conf

  45. Rob Said,

    @Doug,

    Thanks, fixed !

  46. nvidia fedora Said,

    [...] with their shellscript but it didn't work for lots of reasons. Has anyone done this before?: http://linuxsoftwareblog.com/?p=516 Does it work? I never used a distro with a package manager before. Aren't there several different [...]

  47. Vikram Said,

    Hi, I am using linux for the first time and I have fedora x86_64bit. I did every steps and it went smoothly as per your given steps for 64bit’s nvidia graphics. Its only the “grub.conf” file that I am not able to edit and add “rdblacklist=nouveau vga=0×318″.
    Please give the stepwise editing i.e. which editor to use, how to use editor , editing commands and saving the file.

  48. Rob Said,

    @Vikram
    First, open a terminal window. If you want to use a graphical editor, then type “su”, then your root password, then type “gedit”. You will then be able to edit the file. Otherwise, if you’re comfortable with the command line, after “su” and the password, then type “vi”, to edit the file.

  49. Mike Said,

    The solution that work!!!! Thank you very much.

  50. installing nvidia drivers in fedora 13 « C S Shyam Sundar's Thoughtpad Said,

    [...] http://linuxsoftwareblog.com/?p=516 [...]

  51. installing nvidia drivers in fedora « C S Shyam Sundar's Thoughtpad Said,

    [...] http://linuxsoftwareblog.com/?p=516 [...]

  52. installing nvidia drivers in fedora « C S Shyam Sundar's Thoughtpad Said,

    [...] http://linuxsoftwareblog.com/?p=516 [...]

  53. iideetee Said,

    2. Command: su -c “rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm”

    If you copy paste this command it will install only first one. You are going to miss non-free-release. Do it in this way:

    rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

    rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

  54. Nirmal Said,

    1-6 works fine, but there is no support for Dual monitors -no nvidia display manager either

  55. monkey243 Said,

    I got the following error for Step 2:

    su: invalid option — ‘U’

    So I became root, omitted the su -c and the quotes and it worked. The rest went exactly as described. Thanks very much :)

  56. McPants Said,

    Another very similar one left out certain steps (I’m not going to get specific). End result: deadlocked system.

    Yours worked flawlessly… thanks for making me not rageface all over the place.

  57. Devendra patel Said,

    thank you sir ……. its very nice idea ……. thanks a lot :) :):):)

  58. Kevin Said,

    Is there a way to verify they are install correctly?

  59. reply Said,

    monkey243, the website used “fancy quotes” which your shell probably ignored when you pasted the command. Replace those with regular quotes, and the command will work as written.

  60. Phil Said,

    Thank you very much for making the driver installation process almost effortless. There was a Python script available a while back called ‘Envidia’ for Nvidia driver installation but nowadays, Ubuntu makes it a simple click operation. Having switched to Fedora from Ubuntu and Mint I was hoping for an easy way to install the driver.

    Just a few pointers for newbs like myself(problems I have encountered):

    - Make sure to add the following: “rdblacklist=nouveau vga=0×318″ after the ‘kernel’ parameters line; not after the ‘initrd’ line. Use ‘gedit’ or ‘Kwrite’(if you use ‘vi’ or ‘emacs’ you’re probably not a newb) to edit the file, i.e.: $sudo kwrite /etc/grub.conf.

    - When entering the following command: su -c “rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm” use simple quotation marks(‘) instead of (”).

    - And in the command for 64-bit users omit the ‘xorg-x11-drv-nvidia-libs.i686′ and just use: ‘sudo yum install kmod-nvidia xorg-x11-drv-nvidia-libs.x86_64′.

    That’s it. Worked for me!

  61. paincore Said,

    dude great job i’ve try few guides with no success but this one kills ‘em all , Thank You!

  62. Salar Said,

    i’ve done all the steps and successfully install the K-mod nvidia but after rebooting the machine the fedora is loaded and then the display is gone and nothing displayed..i’ve nvidia Geforce 6150Le card and 1gb ddr2 ram and AMD athlon 3500+, and then i’ve to reinstall the fedora completely…what should i do? and what is this means (1. Add this to the end of the kernel line (without quotes) in /etc/grub.conf -> “rdblacklist=nouveau vga=0×318″)
    please help me…

  63. Docky und Composition Manager - Seite 2 - Linux: Linux-Forum Said,

    [...] [...]

  64. Martin Said,

    Thank you very much!!!
    I’ve tried some others explanations, but this is the only one that worked for me!

Add A Comment

By Rob