Fedora 11 install Nvidia Driver Kmod-Nvidia

Scenario / Question:

How do I install the nvidia drivers on Fedora 11 instead of using the nouveau driver

Solution / Answer:

Install the rpmfusion repo and the akmod-nvidia drivers

Install rpmfusion repo

Free rpmfusion Repo:

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

Non-Free rpmfusion Repo:

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

Install akmod-nvidia

Install the akmod-nvidia package:

# yum install akmod-nvidia

Force akmod to build kmod-nvidia driver:

# service akmods restart

Reboot System:

# shutdown -r now

Check that kmod-nvidia is installed:

# rpm -qa kmod-nvidia\*
kmod-nvidia-2.6.29.4-167.fc11.x86_64-185.18.14-1.fc11.x86_64

Verify Kernel Module is functioning:

# glxinfo | grep direct
GL_EXT_depth_bounds_test, GL_EXT_direct_state_access,

Create nvidia Xorg file:

# nvidia-xconfig

Disable Nouveau driver

Check that the file /etc/modprobe.d/blacklist-nouveau.conf exists

If not create it:

# vi /etc/modprobe.d/blacklist-nouveau.conf

Add:

#RPM Fusion blacklist for nouveau driver - you need to run as root:
# mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)
# if nouveau is loaded despite this file
blacklist nouveau

Create new initrd. On the command line type:

# mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)

Reboot System:

# shutdown -r now

Configure Nvidia Display Settings:

Main Menu in Fedora 11

Applications > System Tools > nVidia Display Settings

28 Comments so far

  1. Josh on June 29th, 2009

    everything worked perfect (except) I get the error
    when it gets to the login..

    /etc/rc.d/init.d/functions failed to load

    I know your instructions said to create new initrd but it shows up in the blacklist-nouveau.conf file .. where do i put that line in? Thanks.

  2. Fabio Milano on June 29th, 2009

    Josh

    Did you create the new initrd file?

    “where do i put that line in?”

    What line are you referring to

  3. Josh on June 30th, 2009

    this one “# mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)”

  4. Josh on June 30th, 2009

    let me re explain the error again it might help..
    it was ( /etc/rc.d/init.d/functions: line 513: 1345 aborted “$@” FAILED )

  5. Fabio Milano on June 30th, 2009

    Josh

    Type the following line on the command line as the root user.

    mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)

  6. Jon Hatch on July 1st, 2009

    I tried this – apparently I had the rpms already installed, and when I did the “yum install akmos” everything seemed fine, but when I try “service akmods restart” I get the following:

    Checking kmods exist for 2.6.29.4-167.fc11.i586 [ OK ]
    Files needed for building modules against kernel
    2.6.29.4-167.fc11.i586 could not be found as the following
    directories are missing:
    /usr/src/kernels/2.6.29.4-167.fc11.i586/
    /lib/modules/2.6.29.4-167.fc11.i586/build/ [FAILED]

    and I don’t know which files are missing. Please forgive my newbage.

  7. Fabio Milano on July 1st, 2009

    Jon

    You are most likely missing the kernel-devel package that has the required files for building the kmod module against your kernel.

    Try installing the following packages:

    # yum install kernel-devel kernel-headers

  8. Jon Hatch on July 2nd, 2009

    Done, same error. Here’s the text from the terminal

    # yum install kernel-devel kernel-headers
    Loaded plugins: protectbase, refresh-packagekit
    adobe-linux-i386 | 951 B 00:00
    livna | 2.4 kB 00:00
    rpmfusion-free | 3.3 kB 00:00
    rpmfusion-free-updates | 3.8 kB 00:00
    rpmfusion-nonfree-updates | 3.8 kB 00:00
    rpmfusion-nonfree-updates/primary_db | 42 kB 00:00
    updates/metalink | 8.9 kB 00:00
    updates | 4.4 kB 00:00
    updates/primary_db | 1.9 MB 00:01
    1 packages excluded due to repository protections
    Setting up Install Process
    Package kernel-devel-2.6.29.5-191.fc11.i586 already installed and latest version
    Package kernel-headers-2.6.29.5-191.fc11.i586 already installed and latest version
    Nothing to do
    [root@cpe-075-177-089-182 Jon]# yum install akmod-nvidia
    Loaded plugins: protectbase, refresh-packagekit
    1 packages excluded due to repository protections
    Setting up Install Process
    Package akmod-nvidia-185.18.14-1.fc11.i686 already installed and latest version
    Nothing to do
    [root@cpe-075-177-089-182 Jon]# service akmods restart
    Checking kmods exist for 2.6.29.4-167.fc11.i586 [ OK ]
    Files needed for building modules against kernel
    2.6.29.4-167.fc11.i586 could not be found as the following
    directories are missing:
    /usr/src/kernels/2.6.29.4-167.fc11.i586/
    /lib/modules/2.6.29.4-167.fc11.i586/build/ [FAILED]

  9. Jon Hatch on July 2nd, 2009

    If it helps, I went to where the missing directory should be and found these files:

    drwxr-xr-x. 20 root root 4096 2009-06-22 22:47 2.6.29.4-167.fc11.i686.PAE
    drwxr-xr-x. 20 root root 4096 2009-07-02 00:10 2.6.29.5-191.fc11.i586
    drwxr-xr-x. 20 root root 4096 2009-07-02 00:16 2.6.29.5-191.fc11.i686.PAE

  10. Fabio Milano on July 2nd, 2009
  11. AnotherJosh on July 7th, 2009

    Similar to the other Josh, I’m getting this at boot:

    Enabling the nvidia driver: /etc/rc.d/init.d/functions: line 513: 1262 Segmentation fault “$@” [FAILED]

    Slightly different than his…

  12. goude on July 17th, 2009

    I get exactly the same error at boot up. :( ((

    Enabling the nvidia driver: /etc/rc.d/init.d/functions: line 513: 1262 Segmentation fault “$@” [FAILED]

  13. Fabio Milano on July 17th, 2009

    Goude

    I do not know exactly what is causing problem, but it may be your xorg.conf settings.

    Try adding the following to Xorg.conf:
    http://www.linuxquestions.org/questions/fedora-35/compiz-0.7.8-fedora-core-10-replace-fatal-glxcreatecontext-failed-686923/

    32bit:

    Section “Files”
    ModulePath “/usr/lib/xorg/modules/extensions/nvidia”
    ModulePath “/usr/lib/xorg/modules/drivers”
    ModulePath “/usr/lib/xorg/modules”
    EndSection

    64bit:

    Section “Files”
    ModulePath “/usr/lib64/xorg/modules/extensions/nvidia”
    ModulePath “/usr/lib64/xorg/modules/drivers”
    ModulePath “/usr/lib64/xorg/modules”
    EndSection

  14. linx on July 18th, 2009

    heihei,

    Fabio Milano, thanks for your guide and help, but i have same problems that Josh had and maybe have.

    boottime, before logging in, i get notified that
    “/etc/rc.d/init.d/functions: line 513: 1131 aborted “$@” [FAILED]”

    I added thes lines that you suggested to xconf, but the problem is still there.

    maybe just try to modify functions line 513 or smth ;P dont know to what tho.

    anyway thanks for the guide and help once again!!!

  15. Fabio Milano on July 18th, 2009

    What is your video card model number ?

  16. linx on July 19th, 2009

    If u meant me, then i have nvidia geforce 6600 gt (or did u mean some other model nr?), old machine.

    this error at the boot time, havent seen any system instability, i just wonder is there anyway to get rid of it or what may cause it… :)

  17. Fabio Milano on July 19th, 2009

    Linx

    Wanted to make sure you are not using a legacy card.

    http://www.nvidia.com/object/IO_32667.html

    But it doesn’t appear you are.

    Do you get the error if you run:

    # modprobe nvidia

    If so can you run:

    # strace -o strace-output.txt modprobe nvidia

    Email file strace-output.txt to: support at kernelhardware.org

  18. goude on July 20th, 2009

    Thank you Fabio

    That xorg file worked for me, no more nvidia errors.

    Thank you thank you!

  19. linx on July 20th, 2009

    hmm,

    ill send the email soon too, just wanted to replay lil info here…

    # modprobe nvidia

    WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/

    http://www.hot.ee/linuxconf/strace-output.txt

    This is my gf’s computer, mine got fried last night when lightning stroke in my house >:)

    btw, should i care abt this error?to me it seems that system is running fine.
    Maybe installing nvidia drivers from their website would make any differents?
    Or is it some kind of bug or smth ?

  20. timm on September 1st, 2009
  21. Fabio Milano on September 17th, 2009

    thanks timm,

    The suggestion in the link above works.

    Remove any reference to Keyboard input devices in xorg.conf

    http://www.kernelhardware.org/fedora-11-nvidia-segmentation-fault/

  22. HanDoble on October 16th, 2009

    I had the same error as Jon (above). In my case what solved it was that I had a PAE kernel and needed the kernel-PAE-devel headers. I messed around with the stuff at FedoraForum’s Nvidia link but this was far clearer and (once I had that PAE package installed) right on target. Thanks!

  23. bjm1985 on October 25th, 2009

    could anyone help me please….

    when i type “yum install akmod-nvidia” it shows me: no package AKMOD-NVIDIA available!!!

    what can i do ….???

  24. Fabio Milano on October 26th, 2009

    Did you install the RPMFusion repo ?

  25. bjm1985 on October 26th, 2009

    yes i have

  26. Fabio Milano on October 27th, 2009

    What output do you get from

    # rpm -qa *kmod*

  27. William Foster on October 28th, 2009

    1) I lost fedora Fedora 11 partitions after trying to change size with gpart live CD: Therefor had to reinstall.
    2)On four installation attempts Procedure on this page failed. (note virtualization was not installed)
    Procedure on this page did work, after installing fedora native virtualization pack. It appears this procedure only works if virtualization is installed.

Leave a reply