Sunday, December 05, 2010

Missing screen resolution using Nvidia driver

When I get a new PC it invariably has an Nvidia card in it and I use it with my old SVGA 19" screen. I install Ubuntu and I always seem run up against problems when I switch to the Nvidia driver . I install the driver using the additional drivers menu option, reboot and NOT AGAIN! I get a screen resolution of 1024x768 or 800x600.

Ok, that's easy, I can fix it with Nvidia X-Server setting preferences. Nope! It only offers a few low resolutions and that's it!

The solution? You need to add some options that tell the driver to ignore refresh rates etc and to offer you everything. You need to add the following line to your configuration file /etc/X11/xorg.conf, this is a single line, not split as it is in this post:

Option "ModeValidation" "AllowNon60HzDFPModes, NoVertRefreshCheck,
NoEdidMaxPClkCheck, NoHorizSyncCheck"

Here is my complete xorg.conf file:

Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
EndSection

Section "Module"
Load "glx"
EndSection

Section "Device"
Identifier "Default Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "ModeValidation" "AllowNon60HzDFPModes, NoVertRefreshCheck,
NoEdidMaxPClkCheck, NoHorizSyncCheck"

EndSection