Add README with pointers to mailing lists, bugzilla, & git
[xorg/xrandr] / xrandr.man
1 .\"
2 .\" Copyright 2001 Keith Packard
3 .\"
4 .\" Permission to use, copy, modify, distribute, and sell this software and its
5 .\" documentation for any purpose is hereby granted without fee, provided that
6 .\" the above copyright notice appear in all copies and that both that
7 .\" copyright notice and this permission notice appear in supporting
8 .\" documentation, and that the name of Keith Packard not be used in
9 .\" advertising or publicity pertaining to distribution of the software without
10 .\" specific, written prior permission.  Keith Packard makes no
11 .\" representations about the suitability of this software for any purpose.  It
12 .\" is provided "as is" without express or implied warranty.
13 .\"
14 .\" KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 .\" INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 .\" EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 .\" CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 .\" DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 .\" TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 .\" PERFORMANCE OF THIS SOFTWARE.
21 .\"
22 .\"
23 .\" $XFree86: xc/programs/xrandr/xrandr.man,v 1.6 2003/06/12 14:12:39 eich Exp $
24 .\"
25 .TH XRANDR __appmansuffix__ __vendorversion__
26 .SH NAME
27 xrandr \- primitive command line interface to RandR extension
28 .SH SYNOPSIS
29 .B "xrandr"
30 [\-help]  [\-display \fIdisplay\fP]
31 [\-q] [\-v]
32 [\-\-verbose]
33 [\-\-dryrun]
34 [\-\-screen \fIsnum\fP]
35 [\-\-q1]
36 [\-\-q12]
37 .br
38 .B RandR version 1.3 options
39 .br
40 [\-\-current]
41 [\-\-noprimary]
42 .br
43 .B Per-output options
44 .br
45 [\-\-panning \fIwidth\fPx\fIheight\fP[+\fIx\fP+\fIy\fP[/\fItrack_width\fPx\fItrack_height\fP+\fItrack_x\fP+\fItrack_y\fP[/\fIborder_left\fP/\fIborder_top\fP/\fIborder_right\fP/\fIborder_bottom\fP]]]]
46 [\-\-scale \fIx\fPx\fIy\fP]
47 [\-\-transform \fIa\fP,\fIb\fP,\fIc\fP,\fId\fP,\fIe\fP,\fIf\fP,\fIg\fP,\fIh\fP,\fIi\fP]
48 [\-\-primary]
49 .br
50 .B RandR version 1.2 options
51 .br
52 [\-\-prop]
53 [\-\-fb \fIwidth\fPx\fIheight\fP]
54 [\-\-fbmm \fIwidth\fPx\fIheight\fP]
55 [\-\-dpi \fIdpi\fP]
56 [\-\-newmode \fIname\fP \fImode\fP]
57 [\-\-rmmode \fIname\fP]
58 [\-\-addmode \fIoutput\fP \fIname\fP]
59 [\-\-delmode \fIoutput\fP \fIname\fP]
60 .br
61 .B Per-output options
62 .br
63 [\-\-output \fIoutput\fP]
64 [\-\-auto]
65 [\-\-mode \fImode\fP]
66 [\-\-preferred]
67 [\-\-pos \fIx\fPx\fIy\fP]
68 [\-\-rate \fIrate\fP]
69 [\-\-reflect \fIreflection\fP]
70 [\-\-rotate \fIorientation\fP]
71 [\-\-left\-of \fIoutput\fP\]
72 [\-\-right\-of \fIoutput\fP\]
73 [\-\-above \fIoutput\fP\]
74 [\-\-below \fIoutput\fP\]
75 [\-\-same-as \fIoutput\fP\]
76 [\-\-set \fIproperty\fP \fIvalue\fP]
77 [\-\-off]
78 [\-\-crtc \fIcrtc\fP]
79 [\-\-gamma \fIred\fP:\fIgreen\fP:\fIblue\fP]
80
81 .br
82 .B RandR version 1.0 and version 1.1 options
83 .br
84 [\-o \fIorientation\fP]
85 [\-s \fIsize\fP]
86 [\-r \fIrate\fP]
87 [\-x] [\-y]
88 .SH DESCRIPTION
89 .I Xrandr
90 is used to set the size, orientation and/or reflection of the outputs for a
91 screen. It can also set the screen size.
92
93 If invoked without any option, it will dump the state of the outputs,
94 showing the existing modes for each of them, with a '+' after the preferred
95 mode and a '*' after the current mode.
96
97 There are a few global options. Other options modify the last output that is
98 specified in earlier parameters in the command line. Multiple outputs may
99 be modified at the same time by passing multiple \-\-output options followed
100 immediately by their corresponding modifying options.
101 .IP \-help
102 Print out a summary of the usage and exit.
103 .IP "\-v, \-\-version"
104 Print out the RandR version reported by the X server and exit.
105 .IP \-\-verbose
106 Causes xrandr to be more verbose. When used with \-q (or without other
107 options), xrandr will display more information about the server state. When
108 used along with options that reconfigure the system, progress will be
109 reported while executing the configuration changes.
110 .IP "\-q, \-\-query"
111 When this option is present, or when no configuration changes are requested,
112 xrandr will display the current state of the system. 
113 .IP "\-\-dryrun"
114 Performs all the actions specified except that no changes are made.
115 .IP "\-\-nograb"
116 Apply the modifications without grabbing the screen. It avoids to block other
117 applications during the update but it might also cause some applications that
118 detect screen resize to receive old values.
119 .IP "\-d, \-display \fIname\fP"
120 This option selects the X display to use. Note this refers to the X
121 screen abstraction, not the monitor (or output).
122 .IP "\-\-screen \fIsnum\fP"
123 This option selects which screen to manipulate. Note this refers to the X
124 screen abstraction, not the monitor (or output).
125 .IP \-\-q1
126 Forces the usage of the RandR version 1.1 protocol, even if a higher version
127 is available.
128 .IP \-\-q12
129 Forces the usage of the RandR version 1.2 protocol, even if the display does
130 not report it as supported or a higher version is available.
131 .PP
132 .SH "RandR version 1.3 options"
133 .PP
134 Options for RandR 1.3 are used as a superset of the options for RandR 1.2.
135 .PP
136 .IP \-\-current
137 Return the current screen configuration, without polling for hardware changes.
138 .IP \-\-noprimary
139 Don't define a primary output.
140 .PP
141 .B "Per-output options"
142 .IP "\-\-panning \fIwidth\fPx\fIheight\fP[+\fIx\fP+\fIy\fP[/\fItrack_width\fPx\fItrack_height\fP+\fItrack_x\fP+\fItrack_y\fP[/\fIborder_left\fP/\fIborder_top\fP/\fIborder_right\fP/\fIborder_bottom\fP]]]"
143 This option sets the panning parameters.  As soon as panning is
144 enabled, the CRTC position can change with every pointer move.
145 The first four parameters specify the total panning area, the next four the
146 pointer tracking area (which defaults to the same area). The last four
147 parameters specify the border and default to 0. A width or height set to zero
148 disables panning on the according axis. You typically have to set the screen
149 size with \fI--fb\fP simultaneously.
150 .IP "\-\-transform \fIa\fP,\fIb\fP,\fIc\fP,\fId\fP,\fIe\fP,\fIf\fP,\fIg\fP,\fIh\fP,\fIi\fP"
151 Specifies a transformation matrix to apply on the output. Automatically a bilinear filter is selected.
152 The mathematical form corresponds to:
153 .RS 
154 .RS 
155 a b c
156 .br
157 d e f
158 .br
159 g h i
160 .RE
161 The transformation matrix multiplied by a coordinate vector of a pixel of the
162 output (extended to 3 values) gives the approximate coordinate vector of a pixel
163 in the graphic buffer. Typically, \fIa\fP and
164 \fIe\fP corresponds to the scaling on the X and Y axes, \fIc\fP and \fIf\fP
165 corresponds to the tranlastion on those axes, and \fIg\fP, \fIh\fP, and \fIi\fP
166 are respectively 0, 0 and 1. It also allows to express a rotation of an angle T
167 with:
168 .RS 
169 cos T  -sin T   0
170 .br
171 sin T   cos T   0
172 .br
173  0       0      1
174 .RE
175 As a special argument, instead of
176 passing a matrix, one can pass the string \fInone\fP, in which case the default
177 values are used (a unit matrix without filter).
178 .RE
179 .IP "\-\-scale \fIx\fPx\fIy\fP"
180 Changes the dimensions of the output picture. Values superior to 1 will lead to
181 a compressed screen (screen dimension bigger than the dimension of the output
182 mode), and values below 1 leads to a zoom in on the output. This option is
183 actually a shortcut version of the \fI\-\-transform\fP option.
184 .IP \-\-primary
185 Set the output as primary.
186 It will be sorted first in Xinerama and RANDR geometry requests.
187 .PP
188 .SH "RandR version 1.2 options"
189 These options are only available for X server supporting RandR version 1.2
190 or newer.
191 .IP "\-\-prop, \-\-properties"
192 This option causes xrandr to display the contents of properties for each
193 output. \-\-verbose also enables \-\-prop.
194 .IP "\-\-fb \fIwidth\fPx\fIheight\fP"
195 Reconfigures the screen to the specified size. All configured monitors must
196 fit within this size. When this option is not provided, xrandr computes the
197 smallest screen size that will hold the set of configured outputs; this
198 option provides a way to override that behaviour.
199 .IP "\-\-fbmm \fIwidth\fPx\fIheight\fP"
200 Sets the reported values for the physical size of the screen. Normally,
201 xrandr resets the reported physical size values to keep the DPI constant.
202 This overrides that computation.
203 .IP "\-\-dpi \fIdpi\fP"
204 This also sets the reported physical size values of the screen, it uses the
205 specified DPI value to compute an appropriate physical size using whatever
206 pixel size will be set.
207 .IP "\-\-newmode \fIname\fP \fImode\fP"
208 New modelines can be added to the server and then associated with outputs.
209 This option does the former. The \fImode\fP is specified using the ModeLine
210 syntax for xorg.conf: hdisp hsyncstart hsyncend htotal vdisp vsyncstart
211 vsyncend vtotal \fIflags\fP. \fIflags\fP can be zero or more of +HSync,
212 -HSync, +VSync, -VSync, Interlace, DoubleScan, CSync, +CSync, -CSync. Several
213 tools permit to compute the usual modeline from a height, width, and refresh
214 rate, for instance you can use \fBcvt\fR.
215 .IP "\-\-rmmode \fIname\fP"
216 This removes a mode from the server if it is otherwise unused.
217 .IP "\-\-addmode \fIoutput\fP \fIname\fP"
218 Add a mode to the set of valid modes for an output.
219 .IP "\-\-delmode \fIoutput\fP \fIname\fP"
220 Remove a mode from the set of valid modes for an output.
221 .PP
222 .B "Per-output options"
223 .IP "\-\-output \fIoutput\fP"
224 Selects an output to reconfigure. Use either the name of the output or the
225 XID.
226 .IP \-\-auto
227 For connected but disabled outputs, this will enable them using their
228 preferred mode (or, something close to 96dpi if they have no preferred
229 mode). For disconnected but enabled outputs, this will disable them.
230 .IP "\-\-mode \fImode\fP"
231 This selects a mode. Use either the name or the XID for \fImode\fP
232 .IP "\-\-preferred"
233 This selects the same mode as \-\-auto, but it doesn't automatically enable or
234 disable the output.
235 .IP "\-\-pos \fIx\fPx\fIy\fP"
236 Position the output within the screen using pixel coordinates. In case reflection
237 or rotation is applied, the translation is applied after the effects.
238 .IP "\-\-rate \fIrate\fP"
239 This marks a preference for refresh rates close to the specified value, when
240 multiple modes have the same name, this will select the one with the nearest
241 refresh rate.
242 .IP "\-\-reflect \fIreflection\fP"
243 Reflection can be one of 'normal' 'x', 'y' or 'xy'. This causes the output
244 contents to be reflected across the specified axes.
245 .IP "\-\-rotate \fIrotation\fP"
246 Rotation can be one of 'normal', 'left', 'right' or 'inverted'. This causes
247 the output contents to be rotated in the specified direction. 'right' specifies
248 a clockwise rotation of the picture and 'left' specifies a counter-clockwise
249 rotation.
250 .IP "\-\-left\-of, \-\-right\-of, \-\-above, \-\-below, \-\-same-as \fIanother-output\fP"
251 Use one of these options to position the output relative to the position of
252 another output. This allows convenient tiling of outputs within the screen.
253 The position is always computed relative to the new position of the other
254 output, so it is not valid to say \-\-output a \-\-left\-of b \-\-output 
255 b \-\-left\-of a.
256 .IP "\-\-set \fIproperty\fP \fIvalue\fP"
257 Sets an output property. Integer properties may be specified as a valid
258 (see \-\-prop) decimal or hexadecimal (with a leading 0x) value. Atom properties
259 may be set to any of the valid atoms (see \-\-prop). String properties may be
260 set to any value.
261 .IP "\-\-off"
262 Disables the output.
263 .IP "\-\-crtc \fIcrtc\fP"
264 Uses the specified crtc (either as an index in the list of CRTCs or XID).
265 In normal usage, this option is not required as xrandr tries to make
266 sensible choices about which crtc to use with each output. When that fails
267 for some reason, this option can override the normal selection.
268 .IP "\-\-gamma \fIred\fP:\fIgreen\fP:\fIblue\fP"
269 Set the specified floating point values as gamma correction on the crtc 
270 currently attached to this output. Note that you cannot get two different values
271 for cloned outputs and that switching an output to another crtc doesn't change
272 the crtc gamma corrections at all.
273 .PP
274 .SH "RandR version 1.1 options"
275 These options are available for X servers supporting RandR version 1.1 or
276 older. They are still valid for newer X servers, but they don't interact
277 sensibly with version 1.2 options on the same command line.
278 .IP "\-s, \-\-size \fIsize-index\fP or \-\-size \fIwidth\fPx\fIheight\fP"
279 This sets the screen size, either matching by size or using the index into
280 the list of available sizes.
281 .IP "\-r, \-\-rate, \-\-refresh \fIrate\fP"
282 This sets the refresh rate closest to the specified value.
283 .IP "\-o, \-\-orientation \fIrotation\fP"
284 This specifies the orientation of the screen,
285 and can be one of normal, inverted, left or right.
286 .IP \-x
287 Reflect across the X axis.
288 .IP \-y
289 Reflect across the Y axis.
290 .SH EXAMPLES
291 Sets an output called LVDS to its preferred mode, and on its right put an
292 output called VGA to preferred mode of a screen which has been physically rotated clockwise:
293 .RS 
294 xrandr --output LVDS --auto --rotate normal --pos 0x0 --output VGA --auto --rotate left --right-of LVDS
295 .RE
296 .PP
297 Forces to use a 1024x768 mode on an output called VGA:
298 .RS 
299 xrandr --newmode "1024x768" 63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
300 .br
301 xrandr --addmode VGA 1024x768
302 .br
303 xrandr --output VGA --mode 1024x768
304 .RE
305 .PP
306 Enables panning on a 1600x768 desktop while displaying 1024x768 mode on an output called VGA:
307 .RS 
308 xrandr --fb 1600x768 --output VGA --mode 1024x768 --panning 1600x0
309 .RE
310 .PP
311 Have one small 1280x800 LVDS screen showing a small version of a huge 3200x2000 desktop, and have a
312 big VGA screen display the surrounding of the mouse at normal size.
313 .RS 
314 xrandr --fb 3200x2000 --output LVDS --scale 2.5x2.5 --output VGA --pos 0x0 --panning 3200x2000+0+0/3200x2000+0+0/64/64/64/64
315 .RE
316 .SH "SEE ALSO"
317 Xrandr(3), cvt(1)
318 .SH AUTHORS
319 Keith Packard,
320 Open Source Technology Center, Intel Corporation.
321 and
322 Jim Gettys, 
323 Cambridge Research Laboratory, HP Labs, HP.