Custom resolutions with xrandr

Published (last updated )

Add custom resolution to X11 and use it:

cvt 2256 1504 60
xrandr --newmode "2256x1504_60.00"  287.00  2256 2424 2664 3072  1504 1507 1517 1559 -hsync +vsync
xrandr --addmode qxl-0 2256x1504_60.00
xrandr -s 2256x1504

Another one, half the size:

cvt 1128 752 60
xrandr --newmode  "1128x752_60.00"   68.50  1128 1184 1296 1464  752 755 765 781 -hsync +vsync
xrandr --addmode qxl-0 1128x752_60.00
xrandr -s 1128x752