by Lovechild
(Transferred from the wiki by Peter)


This requires you to use the tarred driver source, it will not work with the binary packages, since we will be editing the source a bit.
download the lastest drivers from the nvidia website:
now unpack, and enter the directory
Code:
tar xvzf NVIDIA_kernel-1.0-XXXX.tar.gz
cd NVIDIA_kernel-1.0-XXXX
now comes the fun bit, editing the source:
Code:
vim os-registery.c
(I use vim, feel free to use you favorite editor)
As you'll discover the code is very well commented. But I'll highlight the important bits:
Code:
U032 NVreg_EnableVia4x = 0;
MODULE_PARM(NVreg_EnableVia4x, "i");
change this from 0 to 1 to enable AGPx4 on VIA chipsets. This should be safe if you use the mem=nopentium workaround in grub or lilo to avoid AMD chip related crashes.
Code:
U032 NVreg_EnableALiAGP = 0;
MODULE_PARM(NVreg_EnableALiAGP, "i");
change this from 0 to 1 to enable AGPx4 on ALI chipsets. (please report the outcome of this to me - I haven't had the chance to test this one yet)
Code:
U032 NVreg_EnableAGPSBA = 0;
MODULE_PARM(NVreg_EnableAGPSBA, "i");
change from 0 to 1 to enable AGP sideband adressing. Do a cat /proc/nv/card0 to see if your card has support for this feature, if it does, by god why not enable it - this may or may not increase speeed.
Code:
Important bit of the output from /proc/nv/card0
------ AGP Info -------
AGP status: Enabled
AGP Driver: AGPGART
Bridge: Via Apollo Pro KT133
SBA: Supported [enabled] <<-- Sideband adressing
FW: Supported [enabled]  <<-- FastWrite
Rates: 4x 2x 1x [4x]     <<--- AGP speed
Registers: 0x1f000217:0x00000314
U032 NVreg_EnableAGPFW = 0;
MODULE_PARM(NVreg_EnableAGPFW, "i");
change from 0 to 1 to enable Fast Writes. Do a cat /proc/nv/card0 to see if your card has support for this feature, if it does, why not enable it - this may or may not increase speeed.
Part two will look at nvclock and how to use it to overclock your card