Fedora 12 + Nvidia

By default Fedora 12 comes with the nouveau driver.. which is awesome, but my machine at work needed a bit more video card grunt so I needed to install the Nvidia driver.

Now I’m new to Fedora.. as in installed it an hour before I wrote this post, so thought I’d document here how to do it.
It wasn’t as straight forward as it _should_ have been, as apparently there is a bug in the current (at time of writing) version of Xorg, which causes X to run really slow. Anyway this is what you do:

  1. Add the rpmfusion repositories (to gain access to proprietary and other packages not supported by Fedora).
    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'
  2. Update yum:
    sudo yum update
  3. Now install the Nvidia drivers:
    sudo yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64
  4. This should blacklist the nouveau, but doesn’t remove it from the initrd, so we run:
    sudo dracut -f /boot/initramfs-$(uname -r).img $(uname -r)
  5. Then we can restart, or just restart X (sudo pkill kdm) to see the new Nvidia card in action.

You should now been using the new nvidia module, however on my Fedora 12 KDE installation the X response time was really slow. However on a friends Fedora 12 Gnome installation there wasn’t an issue.
Apparently it is a bug in Xorg, but seeing as it doesn’t effect a friend it makes me wonder if it is a KDE/Xorg/Nvidia bug.

Anyway to fix it up we need to install a patched Xorg:

  1. First we need to add a repository:
    sudo vim /etc/yum.repos.d/xorgFix.repo
    And paste the contents:
    [rdieter]
    name=xorg-x11-server rebuilds for nvidia users
    baseurl=http://rdieter.fedorapeople.org/repo/fedora/$releasever/$basearch/
    enabled=1
    gpgcheck=0
  2. Run ‘yum update’  again, and it should need to update Xorg. Update it then restart X.

X should now run correctly. Phew.. not too hard right.

7 Comments

  1. [...] has a post over on his blog about how to get the NVIDIA driver working under Fedora 12. I currently use the Nouveau driver, but I’m sure it’ll come in handy in the future. [...]

  2. Slash says:

    Thanks a lot! This worked like a charm, I now have the nvidia drivers running! :)

  3. orowatun says:

    It worked on my nvidia geforce 100.

    Thank you.

    [newt@komo ~]$ uname -r
    2.6.31.6-162.fc12.x86_64

  4. Rudy Rodriguez says:

    LIFE SAVER!!!! Thanks!!

    AMD Athlon Thunderbird / Asus A7N8X / GeForce 6200

  5. dudko says:

    This totorial helped me to. Thanks.

  6. NejiHyuga says:

    Excellent tutorial. My Geforce 6600 now works great, no choppy movements,

    Best guide i’ve foound and there are a lot on the web which get it wrong, ths doesnt.
    :¬)

  7. [...] after switching to the NVIDIA driver, the laptop brightness was immutable until I discovered a post with the solution. Simply adding the [...]

Leave a Reply