Skip to content

Instantly share code, notes, and snippets.

@vu3rdd
Created November 16, 2011 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vu3rdd/1369265 to your computer and use it in GitHub Desktop.
Save vu3rdd/1369265 to your computer and use it in GitHub Desktop.
Add a new modeline to get native monitor resolution
#!/bin/sh
$ gtf 1920 1080 59.9
# outputs
# Modeline "1920x1080_59.90" 172.51 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
$ xrandr --newmode "1920x1080_59.90" 172.51 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
$ xrandr --addmode VGA-1 1920x1080_59.90
$ xrandr --output VGA-1 --mode 1920x1080_59.90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment