Last active
May 27, 2016 13:37
-
-
Save sz3n/cc59c282051aab0b386c97f813dad18e to your computer and use it in GitHub Desktop.
add custom X screen resolution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use CVT to generate standard X config line | |
cvt -v 1366 768 60 | |
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz | |
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync | |
// use xrandr | |
sudo xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync | |
// identify the correct "screen" identifier | |
xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/" | |
LVDS-1 | |
VGA-1 | |
// add the newly created resolution | |
sudo xrandr --addmode VGA-1 1368x768_60.00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment