Linux Video

= Xrandr =

Xrandr is your friendly Linux Video app

Calculate VESA CVT
Calculate VESA CVT (Coordinated Video Timing) modelines for use with X.

Modeline "1920x1200_60.00" 193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync
 * 1) cvt -v 1920 1200 60
 * 2) 1920x1200 59.88 Hz (CVT 2.30MA) hsync: 74.56 kHz; pclk: 193.25 MHz

Create a New Mode
Create a new mode using the output from cvt


 * 1) xrandr --newmode "1920x1200_60.00"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync

Check the New Mode
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 2048 x 2048 VGA1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm 1920x1080     60.0*+   60.0 1680x1050     60.0 1280x1024     75.0     60.0 1440x900      59.9 1280x960      60.0 1280x720      60.0 1024x768      75.1     70.1     60.0 832x624       74.6 800x600       72.2     75.0     60.3     56.2 640x480       72.8     75.0     66.7     60.0 720x400       70.1 1280x1024_60.00  59.9 1920x1200_60.00 (0x136) 193.2MHz h: width 1920 start 2056 end 2256 total 2592 skew    0 clock   74.6KHz v: height 1200 start 1203 end 1209 total 1245          clock   59.9Hz
 * 1) xrandr

Add the New Mode to Display VGA1

 * 1) xrandr --addmode VGA1 "1920x1200_60.00"

Use the New Mode

 * 1) xrandr --output VGA1 --mode "1920x1200_60.00"

Set Display 1 to Left of Display 2
If you have multiple displays you can choose the order of them.


 * 1) xrandr --output HDMI1 --auto --left-of HDMI2 --auto

xrandr help
usage: xrandr [options] where options are: -display or -d -help -o  or --orientation  -q       or --query -s / x or --size / x   -r or --rate or --refresh -v       or --version -x       (reflect in x)   -y        (reflect in y)   --screen --verbose --current --dryrun --nograb --prop or --properties --fb x   --fbmm x    --dpi / --output --auto --mode --preferred --pos x --rate or --refresh --reflect normal,x,y,xy --rotate normal,inverted,left,right --left-of --right-of --above --below --same-as --set --scale x --transform ,,,,,,,, --off --crtc --panning x<h>[+<x>+<y>[/<track:w>x<h>+<x>+<y>[/<border:l>/<t>/<r>/<b>]]] --gamma <r>:<g>:<b> --primary --noprimary --newmode <clock MHz> <hsync-start> <hsync-end> <vsync-start> <vsync-end> [+HSync] [-HSync] [+VSync] [-VSync] --rmmode --addmode --delmode
 * 1) xrandr --help