Skip to content

Instantly share code, notes, and snippets.

@leomelzer
Created January 5, 2012 05:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leomelzer/1563873 to your computer and use it in GitHub Desktop.
Save leomelzer/1563873 to your computer and use it in GitHub Desktop.
Set proper Resolution on Linux for "Unknown Display"

The following is for the AOC 931sn.

  • Find the Recommended Resolution for your Display (on Manufacturer Website or similar)
  • Run the following in you shell
  • Press the "Auto Adjust" Button on your Display
leomelzer@linuxmint ~ $ gtf 1366 768 60
# 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
Modeline "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
leomelzer@linuxmint ~ $ xrandr --newmode "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
leomelzer@linuxmint ~ $ xrandr --addmode VGA1 "1368x768_60.00"
leomelzer@linuxmint ~ $ xrandr --output VGA1 --mode "1368x768_60.00"
@sushantalex
Copy link

i tried but got this error

**> xrandr --addmode VGA1 "1368x768_60.00"

xrandr: cannot find output "VGA1"**

@VADemon
Copy link

VADemon commented Aug 23, 2018

"AutoAdjust" is needed for any display that's connected with VGA (that's analog). DVI and later (digital) have solved this issue

@sushantalex if it shows no "output" names then try "default" instead of VGA. However my install is so broken that the resolution I set doesn't matter.

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