Configuring xorg.conf for nvidia driver
I tried installing nvidia GeForce Fx Go5200 32Mb graphics card on my Dell 8600 running gentoo linux. It took a while to find the right instructions in setting up the GUI work with screen resolution 1280x800. The following instructions should also work for other screen resolutions.
Installing X-orgInstall Xorg by emerging xorg-x11. This process will take some time to compile.Since xorg-x11 is a huge file, it can be downloaded first and emerged later.
After the installation is complete you might want to reinitialize some environment variables before you continue.
Configuring the X ServerA couple of tools are available for configuring xorg.conf but we shall use xorgcfg.
You will be greeted by a screen. Press OK and configure a monitor.(Hint: choose 1024x768 @ 70Hz for a WXGA)
Configure your video card. Leave the default card name as 'card 0'. Choose a card from the card database. In my case, i chose nv GeForce FX Go5200 32M/64M. Press next and choose "nv" for now.
Choose apt screen resolutions that work on your windows OS(Dont worry if you dont find your highest resolution. It can be configured later on). Write it to /etc/X11/xorg.conf and quit.
Emerging nVidia driversIf you had used genkernel double check to see if the proper modules have been loaded.
Make sure to enable the following as a ‘*’ and not as ‘M’. Please note that after you set the options it’ll take genkernel a while to complete with the compilation.
If you have a x86 or AMD processor you will have to remove the in-kernel nVidia driver since it conflicts with the nvidia driver we would emerge.
Enable VESA support,
The nvidia-kernel ebuild auto discovers your kernel version based on the /usr/src/linux symlink. Please ensure that you have this symlink pointing to the correct sources and that your kernel is correctly configured.
Make sure your simlink is pointing to the correct kernel version. The following has the kernel 2.6.15-gentoo-r1
Your output must be something like:
If the symlink is not pointing to the correct sources, you must update the link like this:
Now it's time to install nvidia-kernel and nvidia-glx. Since nvidia-glx depends on nvidia-kernel, installing nvidia-glx is sufficient:
Note: You will have to run nvidia-kernel everytime you recompile your kernel. Once the installation has finished, run modprobe nvidia to load the kernel module into memory.
Edit /etc/modules.autoload.update/rc.conf and include nvidia so that you need not update the modules everytime you boot the system. Run modules-update.
Open xorg.conf and make the following changes to get 1280x800 working.
#nano -w /etc/X11/xorg.conf
Under Section "Module", # dri, xtt & speedo. Make sure Load "glx" is not commented.
Add the following to the end of your file:Section "Modes"
# I would recommend this site to calculate your ModeLine
ModeLine "1280x800" 83.5 1280 1344 1480 1680 800 801 804 828
In your monitor section change your UseModes to "16:9" if you have a wide screen display
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 70.0
Under "Device" , change the driver name to "nvidia".Add "1280x800" next to modes along with the other values.
Viewport 0 0
Modes "1280x800" "1024x768" "800x600" "640x480"
Run opengl-update so that the X Server uses the nVidia GLX libraries:
Make changes as follows
Save the file and Reboot the system. Start gnome session(hoping you have already emerged gnome) by using startx.
Mouse and other io devices should work by default. If not refer gentoo.org for tweaking your xorg.conf even further.
If you still can't load your "nvidia" driver try the troubleshooting page.