I keep having trouble getting the correct monitor resolution - every time I reinstall, I happen to use a newer Ubuntu release and the old tricks I used to know no longer work. Instead of leaving a long trail of questions for every new release, I am looking for a more universal and timeless solution.
What's the correct way to set the correct monitor resolution with an Nvidia GPU for a screen that does not send EDID values?
Note: This is a "dummy" question -- with the help from the chat, I already found the answer, and I am now going to add my own answer to document a solution that is hopefully universal.
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.
Recovery Mode
.rm /etc/X11/xorg.xonf
(Enter)reboot
(Enter)terminal
(Enter)sudo nvidia-xconfig
(Enter). This will write a newxorg.conf
file.gksu gedit /etc/X11/xorg.conf
(Enter).Section "Monitor"
and there enter the correctHorizSync
andVertRefresh
values. (See How do I look up the hsync/vsync values for my monitor?)X Server Display Configuration
, set the desired resolution and press the buttonSave to X Configuration File
.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:
If this returns nothing, or an error, try to look for valid attributes with:
Then try the first command with one of the found attributes that sounds adequate.
GUI method
nvidia-settings
, either by looking for its launcher or running it as a command.DFP-0 (AUO)
.