Installing NVIDIA on Fedora 11

This guide will enable you to configure your nvidia card on fedora 11 with 3d acceleration (64bit-version)

Fedora have now Nouveau as a default driver, this is a new driver with good new improvements. However, if you need to use the 3d acceleration, you must activate an experimental option on the Nouveau driver, the Randr 1.2. But, according to the same page of nouveau, this could be unstable.


If you like the private Nvidia (r) software, you can use the RPMFUSION repositories to install it.

In order to install the RPMFUSION repository, run this command as root:

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

Next, install the nvidia driver also as root:

yum install akmod-nvidia xorg-x11-drv-nvidia-libs xorg-x11-drv-nvidia

However, after you reboot the Xorg server, you may check that 3d acceleration could not be working at all:

$ glxinfo
name of display: :0.0
Error: glXCreateContext failed

The solution to enjoy all the power of the NVIDIA card, is fixing your /etc/X11/xorg.conf configuration:

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

This means that the xorg configuration will look for modules on some new specific directories:

“/usr/lib64/xorg/modules/extensions/nvidia”
y
“/usr/lib64/xorg/modules/extensions”

——————

My complete configuration:

Section “ServerLayout”
Identifier “Default Layout”
Screen “Default Screen” 0 0
InputDevice “Keyboard0” “CoreKeyboard”
InputDevice “Mouse0” “CorePointer”
EndSection
Section “Files”
ModulePath “/usr/lib64/xorg/modules/extensions/nvidia”
ModulePath “/usr/lib64/xorg/modules/extensions”
ModulePath “/usr/lib64/xorg/modules”
EndSectionSection “ServerFlags”
Option “AIGLX” “off”
EndSection

Section “InputDevice”
# generated from data in “/etc/sysconfig/keyboard”
Identifier “Keyboard0”
Driver “keyboard”
Option “XkbLayout” “la”
Option “XkbModel” “pc105”
EndSection

Section “InputDevice”
# generated from default
Identifier “Mouse0”
Driver “mouse”
Option “Protocol” “auto”
Option “Device” “/dev/input/mice”
Option “Emulate3Buttons” “no”
Option “ZAxisMapping” “4 5”
EndSection

Section “Device”
Identifier “Videocard0”
Driver “nvidia”
EndSection

Section “Screen”
Identifier “Default Screen”
Device “Videocard0”

DefaultDepth 24
Option “AddARGBGLXVisuals” “True”
Option “NoLogo” “False”

SubSection “Display”
Modes “nvidia-auto-select”
EndSubSection
EndSection

Section “Extensions”
Option “Composite” “Enable”
EndSection

And the results:

$ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately 1/1872 the monitor refresh rate.
26510 frames in 5.0 seconds = 5301.816 FPS
26649 frames in 5.0 seconds = 5329.781 FPS

Hope it helps!

Running: NVIDIA GeForce 7600 Gs.


PD: remember run nvidia-xconfig if you dont have /etc/X11/xorg.conf before you proceed to modify anything.

Leave a Reply