User Tools

Site Tools


nvidia

nVidia Drivers

WORK IN PROGRESS

http://www.nvidia.com/linux

Permissions

Read permissions for all users are needed to access the HardwareAccelerator

#> chmod 0666 /dev/nvidia*
#> chown root /dev/nvidia*

Checking direct Rendering

Direct Rendering (3D Hardware Acceleration) is usually provided by the DRI extension. Not with nVidia binary drivers! Don't load the DRI extension instead make sure the GL library files in /usr/lib/ are the ones provided by nVidia. It should like this (6111 is the current nVidia Driver version).

#> ls -l /usr/lib/libGL.so*
lrwxr-xr-x  1 root root      17 2004-10-10 21:53 libGL.so -> libGL.so.1.0.6111
lrwxr-xr-x  1 root root      17 2004-10-10 21:53 libGL.so.1 -> libGL.so.1.0.6111
-rwxr-xr-x  1 root root  423832 2004-10-09 13:42 libGL.so.1.0.6111
-rw-r--r--  1 root root 1946800 2004-02-15 22:37 libGL.so.1.4.500
#> ls -l /usr/lib/libGLcore.so*
lrwxr-xr-x  1 root root      21 2004-10-09 13:42 libGLcore.so.1 -> libGLcore.so.1.0.6111
-rwxr-xr-x  1 root root 7132152 2004-10-09 13:42 libGLcore.so.1.0.6111
#> ls -l /usr/X11R6/lib/libGL.so*
lrwxrwxrwx  1 root root     26 2005-03-24 21:19 libGL.so.1 -> /usr/lib/libGL.so.1.0.6111

If the links are not correct replace them:

#> ln -sf /usr/lib/libGL.so.1.0.6111 /usr/lib/libGL.so
#> ln -sf /usr/lib/libGL.so.1.0.6111 /usr/lib/libGL.so.1
#> ln -sf /usr/lib/libGLcore.so.1.0.6111 /usr/lib/libGLcore.so.1
#> ln -sf /usr/lib/libGL.so.1.0.6111 /usr/X11R6/lib/libGL.so.1

You can assure hardware acceleration is enabled by running the following in X:

$> glxinfo |grep "direct rendering"

If it prints Yes everything is fine.

libgl1 dummy package

Most packages in Debian which use 3D acceleration have a dependency to the libgl1 virtual package, to satisfy this dependency you should install a dummy package which provides libgl1.

Either download it here (libgl1-dummy_0.1_all.deb) or follow the instruction below to learn how to create one yourself.

To create a dummy package you need the equivs tool:

#> apt-get install equivs

Then a controlfile like this:

Section: misc
Priority: optional
Standards-Version: 3.5.10

Package: libgl1-dummy
Version: 0.1
Maintainer: Andreas Gohr <andi@splitbrain.org>
Provides: libgl1
Architecture: all
Description: Dummy package for the libGL.so 
 This virtual package provides libgl1 the libgl1 package. It's
 useful when you use thrid party 3D drivers (like the ones from
 nvidia)
 .
 See http://www.splitbrain.org/dokuwiki/nvidia for more info

Finally run equivs on it:

$> equivs-build libgl1-dummy.control

You now can install the dummy package (deinstall existing libgl1-providing packages first)

#> dpkg --force-depends -r mesag3
#> dpkg -i libgl1-dummy_0.1_all.deb
nvidia.txt · Last modified: 2006/11/08 03:31 by 84.142.251.254