How do I set the correct monitor resolution with Nvidia drivers for a monitor that does not send EDID?
Follow these steps.
Note that steps 6 and 7 are not usually necessary; try skipping them and if that does not work, repeat all steps and include these two. Some monitors don't send EDID information to the computer, so Ubuntu can't know what the monitor is capable of and only offers safe (low) resolutions. Those two steps resolve that problem.
- Reboot and restart in
Recovery Mode
. - Type
rm /etc/X11/xorg.xonf
(Enter) - Type
reboot
(Enter) - Once you're at the normal Ubuntu desktop again, press Alt + F2 and type
terminal
(Enter) - In the terminal, type
sudo nvidia-xconfig
(Enter). This will write a newxorg.conf
file. - Press Alt + F2 and type
gksu gedit /etc/X11/xorg.conf
(Enter). - Look for the part beginning with
Section "Monitor"
and there enter the correctHorizSync
andVertRefresh
values. (See How do I look up the hsync/vsync values for my monitor?) - Restart.
- Once you're at the normal Ubuntu desktop again, find "Nvidia X Server Settings" in the "start menu" and start that.
- In the section
X Server Display Configuration
, set the desired resolution and press the buttonSave to X Configuration File
. - Reboot.
You should now have the proper resolution!
Finally, copy the file /etc/X11/xorg.conf
to a safe place in case you mess it up later and need to restore it.
Using nVidia settings application
If your computer has the nvidia propietary drivers, you should have nvidia-settings
installed and ready.
Command-line method
Run the following command:
nvidia-settings --query FlatpanelNativeResolution
If this returns nothing, or an error, try to look for valid attributes with:
nvidia-settings --query all | grep -i resolution
Then try the first command with one of the found attributes that sounds adequate.
GUI method
- Open
nvidia-settings
, either by looking for its launcher or running it as a command. - In the section tree, go to your GPU.
- Now either browse all the items or look for an item which sounds like a device name, in my case I see
DFP-0 (AUO)
. - You will now see under Flatpanel Information a list of resolutions.