- Display the current state of the system (known screens, resolutions, ...):xrandr --query- Disable disconnected outputs and enable connected ones with default settings:xrandr --auto- Change the resolution and update frequency of DisplayPort 1 to 1920x1080, 60Hz:xrandr --output [DP1] --mode [1920x1080] --rate - Set the resolution of HDMI2 to 1280x1024 and put it on the right of DP1:xrandr --output [HDMI2] --mode [1280x1024] --right-of [DP1]- Disable the VGA1 output:xrandr --output [VGA1] --off
xrandr [--help] [--display display] [-q] [-v] [--verbose] [--dryrun] [--screen snum] [--q1] [--q12] [--current] [--noprimary] [--panning widthxheight[+x+y[/track_widthxtrack_height+track_x+track_y[/border_left/border_top/border_right/border_bottom]]]] [--scale xxy] [--scale-from wxh] [--transform a,b,c,d,e,f,g,h,i] [--primary] [--prop] [--fb widthxheight] [--fbmm widthxheight] [--dpi dpi] [--newmode name mode] [--rmmode name] [--addmode output name] [--delmode output name] [--output output] [--auto] [--mode mode] [--preferred] [--pos xxy] [--rate rate] [--reflect reflection] [--rotate orientation] [--left-of output] [--right-of output] [--above output] [--below output] [--same-as output] [--set property value] [--off] [--crtc crtc] [--gamma red:green:blue] [--brightness brightness] [-o orientation] [-s size] [-r rate] [-x] [-y] [--listproviders] [--setprovideroutputsource provider source] [--setprovideroffloadsink provider sink]
Xrandr is used to set the size, orientation and/or reflection of the outputs for a screen. It can also set the screen size.
If invoked without any option, it will dump the state of the outputs, showing the existing modes for each of them, with a '+' after the preferred modes and a '*' after the current mode.
There are a few global options. Other options modify the last output that is specified in earlier parameters in the command line. Multiple outputs may be modified at the same time by passing multiple --output options followed immediately by their corresponding modifying options.
Options for RandR 1.4 are used as a superset of the options for RandR 1.3.
Options for RandR 1.3 are used as a superset of the options for RandR 1.2.
These options are only available for X server supporting RandR version 1.2 or newer.
These options are available for X servers supporting RandR version 1.1 or older. They are still valid for newer X servers, but they don't interact sensibly with version 1.2 options on the same command line.
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:
Forces to use a 1024x768 mode on an output called VGA:
Enables panning on a 1600x768 desktop while displaying 1024x768 mode on an output called VGA:
Have one small 1280x800 LVDS screen showing a small version of a huge 3200x2000 desktop, and have a big VGA screen display the surrounding of the mouse at normal size.
Displays the VGA output in trapezoid shape so that it is keystone corrected when the projector is slightly above the screen:
Xrandr(3), cvt(1), xkeystone(1), xbacklight(1)
Keith Packard, Open Source Technology Center, Intel Corporation. and Jim Gettys, Cambridge Research Laboratory, HP Labs, HP.