Jimmy's homepage: Installing ATI-Drivers on Debian Linux(nforce2
chipset)
Don't like this layout? Try the original one!
apt-get install kernel-source-2.4.22If you want to compile the kernel the "debian-way" you also need the debian package "kernel-package":
apt-get install kernel-package
cd /usr/src tar xjvf kernel-source-2.4.22.tar.bz2 ln -s kernel-source-2.4.22 linux cd linux make menuconfig
apt-get install kernel-packageThe most important options are:
- Processor type and features
- [*] MTRR (Memory Type Range Register) support
- Loadable module support
- [*] Enable loadable module support
- [*] Kernel module loader support
- Character devices
- <M> /dev/agpgart (AGP Support)
- [*] NVIDIA chipset support
- [ ] Direct Rendering Manager (XFree86 DRI support)
IMPORTANT: Do NOT select "Direct Rendering Manager"! It's not compatible
with ATI drivers.make-kpkg --revision=custom.1.0 --append-to-version=-ati kernel_image dpkg -i ../kernel-image-2.4.22-ati_custom.1.0_i386.deb
image=/boot/vmlinuz-2.4.22-ati label=Linux-ati read-onlyDon't forget to run Lilo afterwards!
modprobe agpgartOn my system I get the following output:
Linux agpgart interface v0.99 (c) Jeff Hartmann agpgart: Maximum main memory to use for agp memory: 439M agpgart: Detected NVIDIA nForce2 chipset agpgart: AGP aperture is 64M @ 0xe0000000To load the module automatically at boot-time add "agpgart" to /etc/modules:
echo agpgart >> /etc/modules
alien -d fglrx-glc22-4.2.0-3.2.5.i586.rpm dpkg -i fglrx-glc22_4.2.0-4.2_i386.deb
Unpacking replacement fglrx-glc22 ... dpkg: error processing fglrx-glc22_4.2.0-4.2_i386.deb (--install): trying to overwrite `/usr/X11R6/lib/libGL.so.1.2', which is also in package xlibmesa3-gl dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: fglrx-glc22_4.2.0-4.2_i386.debThis problem appears because libGL.so.1.2 is also provided by xlibmesa3-gl. The easiest way to get around is to force the package installation(Don't do it, read further before!).
dpkg --force-overwrite -i <package_filename>.deb e.g.: dpkg --force-overwrite -i fglrx-glc22_4.2.0-4.2_i386.debThis solution makes problems when upgrading or removing the xlibmesa3-gl package, so it should be avoided. Kai Weber reported this and also a better way, how to do it. Thanks a lot for this tip, Kai. The right way is to use dpkg-divert. It makes it possible that two different packages provide the same file:
dpkg-divert --package <package_name> --add /usr/X11R6/lib/libGL.so.1.2 dpkg -i <package_filename> e.g.: dpkg-divert --package fglrx-glc22 --add /usr/X11R6/lib/libGL.so.1.2 dpkg -i fglrx-glc22_4.2.0-4.2_i386.deb<package_filename> is the filename of the package (.deb file)
Unpacking replacement fglrx-glc22 ...If you want to remove the diversion and the fglrx-glc22 package:
dpkg-divert --remove /usr/X11R6/lib/libGL.so.1.2 dpkg --purge fglrx-glc22
fglrxconfigIt will prompt for some options, in most cases the default values are ok.
Do you want to use the external AGP GART module (y/n)? [n] ySay yes here to use the kernel module "agpgart".
cd /lib/modules/fglrx/build_mod chmod u+x make.sh ./make.sh cd .. chmod u+x make_install.sh ./make_install.shThe last step will also try to load and unload the module.
jimmy@reptile:~$ glxgears 9579 frames in 5.0 seconds = 1915.800 FPS 8790 frames in 5.0 seconds = 1758.000 FPS 8791 frames in 5.0 seconds = 1758.200 FPS 8728 frames in 5.0 seconds = 1745.600 FPS 8665 frames in 5.0 seconds = 1733.000 FPS 8791 frames in 5.0 seconds = 1758.200 FPS jimmy@reptile:~$ fgl_glxgears 1466 frames in 5.0 seconds = 293.200 FPS 1387 frames in 5.0 seconds = 277.400 FPS 1386 frames in 5.0 seconds = 277.200 FPS 1380 frames in 5.0 seconds = 276.000 FPS 1381 frames in 5.0 seconds = 276.200 FPS 1363 frames in 5.0 seconds = 272.600 FPS