Distros: Debian (3.1) Sarge, Debian (4.0) Etch, Debian (5.x) Lenny; Ubuntu & Kubuntu (6.06) Dapper Drake, (7.04) Feisty Fawn, (7.10) Gusty Gibbon;
One quick note for those of you who are interested: This guide will get your Nvidia drivers working with Beryl, Compiz and Compiz Fusion!!!
When I first tried getting my Nvidia card working in Linux it was a nightmare. This guide will definitly work for all Nvidia Cards but I have added extra information on the Nvidia Geforce FX go5700 video card. For some reason there are consistent problems specifically with the Geforce FX go5700 video card in Linux. There is a very simple way to get it working properly though! It is more simple then you would think. All that is required are a few extra edits of your xorg.conf file.
This guide is mainly targeted for those running Debian based distributions and distributions which use xorg but the information provided here still may be of help if you are using this graphics card. For those running other distributions or who have already installed the drivers, it may be a good idea for you to skim over the article to make sure you haven’t missed an important steps, then go to the section titled “Odd Screen Issues.”
Installing Nvidia Drivers
There are a few different drivers out there, depending on the type of processor you have. I have linked to a couple of them but if you want to make sure of which one you need all of the Linux Nvidia drivers are located at www.nvidia.com/object/unix.html. However, here are the links, direct links, to the drivers provided by Nvidia.
- NVIDIA-Linux-x86-1.0-9639-pkg1.run
- This is for most x86 distributions.
- NVIDIA-Linux-x86-100.14.19-pkg1.run
- This is for those running Debian Lenny or Debian Sid (with kernel version 2.6.22-2) which are in testing right now. I do not know which other distributions this would be for but it is probably for those versions which are in testing or experimental.
- NVIDIA-Linux-x86-14.23-pkg1.run
- This is for those running Debian Lenny or Debian Sid who are using kernel version 2.6.22-3. If you just did a kernel upgrade you will need to re-build the Nvidia module with this.
- NVIDIA-Linux-x86_64-100.14.19-pkg2.run
- This is for those running 64 bit processors.
Before we run the file we just downloaded we must stop Gnome display manager (gdm). Doing this will bring you to a shell so read the rest of this section before stopping gdm:
sudo /etc/init.d/gdm stop
Once gdm is stopped run the file we just downloaded by entering:
sh NVIDIA-Linux-x86-YOUR-VERSION
You may get a message from the compiler, looking something like the quote below. Just choose No when this dialogue appears.
The CC version check failed:
The compiler used to compile the kernel (gcc 4.1) does not exactly match the
current compiler (gcc 4.2). The Linux 2.6 kernel module loader rejects…
And once everything is installed you will be asked if you want files configured automatically. We will be configuring things manually, the safe way. Once you exit the compiler type startx and read the next section of this guide.
Configuring xorg.conf
There are only two necessary changes required to make the Nvidia card work with Linux now. Simply edit your xorg.conf, located in /etc/X11/. It should look something like:
Section "Device"
Identifier "nVidia Corporation NV36 [GeForce FX Go5700]"
Driver "nvidia"
...
#Option "ModeValidation" "NoVertRefreshCheck"
EndSection
The last Option, above, is for those users running the Geforce FX go5700 card. The # in front of the line means it’s commented out. If everything boots up fine but you get a blank screen or crazy lines accross the screen this commented line will save you. If you have any odd screen issues simply uncomment the line from the shell and restart X server by pressing Ctrl+Alt+Backspace.
Also, under Section “Module” add the following line:
Load "glx"
If Section “Module” does not exist, simply create it. If you have to create it, it should look like:
Section "Module"
Load "glx"
EndSection
Save the file and exit your text editor. Now save any other work you need saved and hit Ctrl+Alt+Backspace, this will restart X server. You should see the Nvidia logo appear and then you will be brought to the login screen. If you get a blank screen or any odd screen problems press Ctrl+Alt+F1 login with your username and uncomment the line we added in Section “Device”. Save the file, and restart gdm by typing:
sudo /etc/init.d/gdm start
Odd Screen Issues
This is mainly why I wrote this article. Many of us with the go5700 card encounter a black screen or lines accross the entire screen. This may be encountered with other cards but I have only used this model. To fix this add one line to the device section in your xorg.conf file or if you followed the instructions in the previous section just remove the # from the line we commented out. It should look like:
Section "Device"
Identifier "nVidia Corporation NV36 [GeForce FX Go5700]"
Driver "nvidia"
...
Option "ModeValidation" "NoVertRefreshCheck"
EndSection
Once you save the file simply reset X server by pressing Ctrl+Alt+Backspace or restart Linux by typing shutdown -r now. If this guide worked for you don’t forget to Digg it, thanks!