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



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.
Josh
Did you create the new initrd file?
“where do i put that line in?”
What line are you referring to
this one “# mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)”
let me re explain the error again it might help..
it was ( /etc/rc.d/init.d/functions: line 513: 1345 aborted “$@” FAILED )
Josh
Type the following line on the command line as the root user.
mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)
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.
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
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]
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
Jon
Try the solution in this post
http://forums.fedoraforum.org/showthread.php?t=211626&page=4
[...] http://www.kernelhardware.org/fedora-11-install-nvidia-driver-kmod-nvidia/ [...]
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…
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]
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
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!!!
What is your video card model number ?
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…
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
Thank you Fabio
That xorg file worked for me, no more nvidia errors.
Thank you thank you!
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 ?
see http://forums.fedoraforum.org/showthread.php?t=218794&page=2 post #21
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/
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!
could anyone help me please….
when i type “yum install akmod-nvidia” it shows me: no package AKMOD-NVIDIA available!!!
what can i do ….???
Did you install the RPMFusion repo ?
yes i have
What output do you get from
# rpm -qa *kmod*
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.
yaa, i agree