CSUF LogoCSUF Site Navigation
optics.csufresno.edu

FC5 Multimedia-Based Applications & Setup Nvidia Driver

Department of Electrical and Computer Engineering
Assistant Professor Gregory R. Kriehn
Forums
Wiki
FC5 Nvidia Driver
If you have an Nvidia graphics card, I strongly suggest replacing the default "nv" driver that comes bundled with FC5 with a secondary driver that allows for graphics acceleration. However, before you go trotting off to www.nvidia.com, there is an important warning that has been given with respect to third party proprietary video drivers:

https://www.redhat.com/archives/fedora-test-list/2006-February/msg01565.html

As a result of this, it is strongly advisable that you do not install a driver directly from nvidia. Instead, this is one of the few times that you can use the livna repository:

~> sudo yum install kmod-nvidia --enablerepo livna
Hit Enter, and and 'y' when asked if you want to install the rpm packages. If you have the smp kernel instead, type:
~> sudo yum install kmod-nvidia-smp --enablerepo livna
If you get an error, it is probably because your kernel is more recent than the kernels for which livna has built its nvidia kernel modules. If this is the case, simply switch back to an older kernel on your Fedora boot menu (I typically keep 2 kernels around), or wait a few days until livna builds the most recent graphics acceleration module rpm for your respective kernel. Please note that every time that you update your kernel, you will have to update your nvidia driver as well. Simply re-run the command listed above, install the new kernel module, and reboot the computer. Since you have already setup SELinux properly, it should not prevent the kernel module from loading. If you have not setup SELinux yet, please see the SELinux page first.

After a while you will start to accumulate a number of older nvidia kernel modules. To check how many you have on your system, type:

~> rpm -q kmod-nvidia
or
~> rpm -q kmod-nvidia-smp
Compare these against the kernels installed under /boot, or against the kernel you are currently running:
~> ls /boot
Any kernel modules that are installed that no longer correspond to kernels on your system can be deleted. For example, if I wanted to delete the kernel module associated with the 2.6.18_1.2200.fc5 smp kernel, I would type:
~> sudo rpm -e kmod-nvidia-smp-1.0.8776-1.2.6.18_1.2200.fc5
Repeat this process for all of your old nvidia kernel modules to keep your system clean. That's about it. The next time you reboot, your nvidia driver should load. To verify, take a look at /etc/X11/xorg.conf, and look for a line that says:
Driver    "nvidia"
If you want to get a feel for how well it performs, there is a nifty little program called glxgears that draws three rotating gears and prints out frame rate information based upon its performance. It is a nice way to get a feel for how fast your graphics card is working. I typically only get about 1100 FPS or so, but that is because I am using a single video card to drive both an analog and digital monitor simultaneously (I've setup a dual head system on my server). On other computers, I've seen it reach as high as 10,000 or so. To use the program, type:
~> glxgears
Close the window when finished. On the whole, you should notice X responding much more quickly than it was before.