Created
November 16, 2016 13:30
-
-
Save dchapkine/d6432be27f001c4dc0d03d645f141a8d to your computer and use it in GitHub Desktop.
Add custom 16/9 resolution ubuntu 14.04/16.04
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
## generate modeline | |
``` | |
cvt 1600 900 60 | |
``` | |
outputs: | |
``` | |
Modeline "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync | |
``` | |
## apply modeline | |
sudo xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync | |
## add resolution | |
sudo xrandr --addmode eDP1 1600x900_60.00 | |
Instead of eDP1 you may want to put something else. | |
To get list of connected display IDs: | |
``` | |
xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/" | |
``` | |
## set a previously specified resolution | |
xrandr -s 1600x900_60.00 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! It worked on my Ubuntu 16.04.2 LTS 64-bit