nVidia release their own Linux drivers which provide good performance and full
3D acceleration. The driver releases are split up into two parts:
As well as the kernel driver, you need to install the X11 GLX layer
(
As mentioned above, the nVidia kernel driver installs and runs against your
current kernel. It builds as a module, so it makes sense that your kernel must
support the loading of kernel modules. If you used
Loadable module support ---> [*] Enable loadable module support
You also need to enable
Processor and Features ---> [*] MTRR (Memory Type Range Register) support
nVidia's modules and libraries are combined in two packages:
The nvidia-kernel ebuild auto discovers your kernel version based on the
If you are using gentoo-sources-2.6.11-r6, your
# cd /usr/src # ls -l(Check that linux points to the right directory) lrwxrwxrwx 1 root root 22 Apr 23 18:33 linux -> linux-2.6.11-gentoo-r6 drwxr-xr-x 4 root root 120 Apr 8 18:56 linux-2.4.26-gentoo-r4 drwxr-xr-x 18 root root 664 Dec 31 16:09 linux-2.6.10 drwxr-xr-x 18 root root 632 Mar 3 12:27 linux-2.6.11 drwxr-xr-x 19 root root 4096 Mar 16 22:00 linux-2.6.11-gentoo-r6
In the above output, you'll notice that the
If the symlink is not pointing to the correct sources, you must update the link like this:
# cd /usr/src # ln -snf linux-2.6.11-gentoo-r6 linux
The following is a list of unsupported legacy video cards:
TNT2 TNT2 Pro TNT2 Ultra TNT2 Model 64 (M64) TNT2 Model 64 (M64) Pro Vanta Vanta LT GeForce 256 GeForce DDR GeForce2 GTS GeForce2 Pro GeForce2 Ti GeForce2 Ultra GeForce2 MX Integrated graphics Quadro Quadro2 Pro Quadro2 EX
If you own one of these cards, you will have to mask the newer versions of the nVidia drivers, and install an older version:
# echo ">media-video/nvidia-kernel-1.0.6629-r4" >> /etc/portage/package.mask # echo ">media-video/nvidia-glx-1.0.6629-r7" >> /etc/portage/package.mask
Now it's time to install
# emerge nvidia-glx
Once the installation has finished, run
# modprobe nvidia
To prevent you having to manually load the module on every bootup, you probably
want to have this done automatically each time you boot your system, so edit
# modules-update
Once the appropriate drivers are installed you need to configure your X Server
(XFree86 or Xorg) to use the
Open
Section "Device" Identifier "nVidia Inc. GeForce2" Driver "nvidia" VideoRam 65536 EndSection
Then go to the
Section "Module"(...) # Load "dri" Load "glx"(...) EndSection
Next, in section
Section "Screen"(...) DefaultDepth 16 Subsection "Display"(...) EndSection
Run
# opengl-update nvidia
You have to add your user to the
# gpasswd -a youruser video
This might not be totally necessary if you aren't using
To test your nVidia card, fire up X and run the
$ glxinfo | grep direct direct rendering: Yes
To monitor your FPS, run
Some tools, such as
Then, run
Since NVidia released version 1.0.6106 it also provides you with a settings
tool. This tool allows you to change graphical settings without restarting the X
server and is available through Portage as
If you are having troubles with the nVidia 2D acceleration it is likely that you
are unable to set up a write-combining range with MTRR. To verify, check the
contents of
# cat /proc/mtrr
Every line should contain "write-back" or "write-combining". If you see a line with "uncachable" in it you will need to change a BIOS setting to fix this.
Reboot and enter the BIOS, then find the MTRR settings (probably under "CPU Settings"). Change the setting from "continuous" to "discrete" and boot back into Linux. You will now find out that there is no "uncachable" entry anymore and 2D acceleration now works without any glitches.
This usually occurs when you don't have a matching video card. Make sure that
you have an nVidia-powered graphical card (you can double-check this using
If you are confident that you have an nVidia card, check your BIOS and see if
the directive
The nVidia driver package also comes with comprehensive documentation. This is
installed into
# less /usr/share/doc/nvidia-glx-*/README.txt.gz
The
(Edit /etc/modules.d/nvidia in your favourite editor) # nano -w /etc/modules.d/nvidia(Update module information) # modules-update(Unload the nvidia module...) # modprobe -r nvidia(...and load it once again) # modprobe nvidia
The GLX layer also has a plethora of options which can be configured. These control the configuration of TV out, dual displays, monitor frequency detection, etc. Again, all of the available options are detailed in the documentation.
If you wish to use any of these options, you need to list them in the relevant
Device section of your X config file (usually
Section "Device" Identifier "nVidia Inc. GeForce2" Driver "nvidia" Option "NoLogo" "true" VideoRam 65536 EndSection