xrandr command_examples

xrandr command_examples

xrandr – primitive command line interface to RandR extension

Sets an output called LVDS to its preferred mode, and on its right put an output called VGA to preferred mode of a screen which has been physically rotated clockwise:

xrandr --output LVDS --auto --rotate normal --pos 0x0 --output VGA --auto --rotate left --right-of LVDS

Forces to use a 1024×768 mode on an output called VGA:

xrandr --newmode "1024x768" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
xrandr --addmode VGA 1024x768
xrandr --output VGA --mode 1024x768

Enables panning on a 1600×768 desktop while displaying 1024×768 mode on an output called VGA:

xrandr --fb 1600x768 --output VGA --mode 1024x768 --panning 1600x0

Have one small 1280×800 LVDS screen showing a small version of a huge 3200×2000 desktop, and have a big VGA screen display the surrounding of the mouse at normal size.

xrandr --fb 3200x2000 --output LVDS --scale 2.5x2.5 --output VGA --pos 0x0 --panning 3200x2000+0+0/3200x2000+0+0/64/64/64/64

Displays the VGA output in trapezoid shape so that it is keystone corrected when the projector is slightly above the screen:

xrandr --fb 1024x768 --output VGA --transform 1.24,0.16,-124,0,1.24,0,0,0.000316,1


Leave a Reply

Your email address will not be published. Required fields are marked *