Created
March 14, 2019 10:54
-
-
Save Trip09/ecc6e94fb7d0f159f51152ab9735479e to your computer and use it in GitHub Desktop.
XRANDR - Monitor Resolution
This file contains hidden or 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 mode based on screen resolution | |
[10:48 AM]-[trip@trip-t440]-[~] | |
$ cvt 1920 1080 60 | |
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz | |
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
# add mew mode in xrandr | |
[10:48 AM]-[trip@trip-t440]-[~] | |
$ xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
# add mode to output | |
[10:49 AM]-[trip@trip-t440]-[~] | |
$ xrandr --addmode DP-2 1920x1080_60.00 | |
# set resolution | |
[10:49 AM]-[trip@trip-t440]-[~] | |
$ xrandr --output DP-2 --mode 1920x1080_60.00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment