Skip to content

Instantly share code, notes, and snippets.

@2E0PGS
Last active July 13, 2021 13:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 2E0PGS/8da07a8b90ce8ac05bf83fcd6ba44890 to your computer and use it in GitHub Desktop.
Save 2E0PGS/8da07a8b90ce8ac05bf83fcd6ba44890 to your computer and use it in GitHub Desktop.
Nvidia driver wont detect correct resolution of monitor via DVI on Ubuntu

If you have a Nvidia graphics card and have the Nvidia proprietary dirver installed and notice that it wont detect monitor information over DVI then try apply this:

First run nvidia-xconfig in a terminal to generate the /etc/X11/xorg.conf file.

Then you need to lookup your monitors specifications to find its Horizontal and Vertical refresh rates.

The edit the xorg config like so:

sudo nano /etc/X11/xorg.conf

Locate the line that has this text Section "Monitor"

Correct the information under those sections. I just did the bareminimum:

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 80.0
    VertRefresh     56.0 - 76.0
    Option         "DPMS"
EndSection

save the file out with ctrl + x and then press y.

Reboot the computer and then more resolutions such as 1920x1080 will show under the display settings.

More info and references: https://askubuntu.com/questions/712896/vga-connected-display-wont-go-beyond-1360x768/713106#713106

@yavvee
Copy link

yavvee commented Aug 2, 2018

Thanks a lot for this! Fixed my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment