Kill cvs keyword
[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 .TH XRANDR __appmansuffix__ __vendorversion__
23 .SH NAME
24 xrandr \- primitive command line interface to RandR extension
25 .SH SYNOPSIS
26 .B "xrandr"
27 [\-help]  [\-display \fIdisplay\fP]
28 [\-q] [\-v]
29 [\-\-verbose]
30 [\-\-dryrun]
31 [\-\-screen \fIsnum\fP]
32 [\-\-q1]
33 [\-\-q12]
34 .br
35 .B RandR version 1.3 options
36 .br
37 [\-\-current]
38 [\-\-noprimary]
39 .br
40 .B Per-output options
41 .br
42 [\-\-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]]]]
43 [\-\-scale \fIx\fPx\fIy\fP]
44 [\-\-transform \fIa\fP,\fIb\fP,\fIc\fP,\fId\fP,\fIe\fP,\fIf\fP,\fIg\fP,\fIh\fP,\fIi\fP]
45 [\-\-primary]
46 .br
47 .B RandR version 1.2 options
48 .br
49 [\-\-prop]
50 [\-\-fb \fIwidth\fPx\fIheight\fP]
51 [\-\-fbmm \fIwidth\fPx\fIheight\fP]
52 [\-\-dpi \fIdpi\fP]
53 [\-\-newmode \fIname\fP \fImode\fP]
54 [\-\-rmmode \fIname\fP]
55 [\-\-addmode \fIoutput\fP \fIname\fP]
56 [\-\-delmode \fIoutput\fP \fIname\fP]
57 .br
58 .B Per-output options
59 .br
60 [\-\-output \fIoutput\fP]
61 [\-\-auto]
62 [\-\-mode \fImode\fP]
63 [\-\-preferred]
64 [\-\-pos \fIx\fPx\fIy\fP]
65 [\-\-rate \fIrate\fP]
66 [\-\-reflect \fIreflection\fP]
67 [\-\-rotate \fIorientation\fP]
68 [\-\-left\-of \fIoutput\fP\]
69 [\-\-right\-of \fIoutput\fP\]
70 [\-\-above \fIoutput\fP\]
71 [\-\-below \fIoutput\fP\]
72 [\-\-same-as \fIoutput\fP\]
73 [\-\-set \fIproperty\fP \fIvalue\fP]
74 [\-\-off]
75 [\-\-crtc \fIcrtc\fP]
76 [\-\-gamma \fIred\fP:\fIgreen\fP:\fIblue\fP]
77 [\-\-brightness \fIbrightness\fP]
78
79 .br
80 .B RandR version 1.0 and version 1.1 options
81 .br
82 [\-o \fIorientation\fP]
83 [\-s \fIsize\fP]
84 [\-r \fIrate\fP]
85 [\-x] [\-y]
86 .SH DESCRIPTION
87 .I Xrandr
88 is used to set the size, orientation and/or reflection of the outputs for a
89 screen. It can also set the screen size.
90
91 If invoked without any option, it will dump the state of the outputs,
92 showing the existing modes for each of them, with a '+' after the preferred
93 mode and a '*' after the current mode.
94
95 There are a few global options. Other options modify the last output that is
96 specified in earlier parameters in the command line. Multiple outputs may
97 be modified at the same time by passing multiple \-\-output options followed
98 immediately by their corresponding modifying options.
99 .IP \-help
100 Print out a summary of the usage and exit.
101 .IP "\-v, \-\-version"
102 Print out the RandR version reported by the X server and exit.
103 .IP \-\-verbose
104 Causes xrandr to be more verbose. When used with \-q (or without other
105 options), xrandr will display more information about the server state. Please
106 note that the gamma and brightness informations are only approximations of the
107 complete color profile stored in the server. 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 is based on homogeneous coordinates. The matrix multiplied
162 by the coordinate vector of a pixel of the output gives the transformed
163 coordinate vector of a pixel in the graphic buffer.  More precisely, the vector
164 .RI "(x y)"
165 of the output pixel is extended to 3 values
166 .RI "(x y w),"
167 with 1 as the w coordinate and multiplied against the matrix. The final device
168 coordinates of the pixel are then calculated with the so-called homogenic
169 division by the transformed w coordinate.  In other words, the device
170 coordinates
171 .RI "(x' y')"
172 of the transformed pixel are:
173 .RS
174 x' = (ax + by + c) / w'   and
175 .br
176 y' = (dx + ey + f) / w'   ,
177 .br
178 with  w' = (gx + hy + i)  .
179 .RE
180 Typically, \fIa\fP and
181 \fIe\fP corresponds to the scaling on the X and Y axes, \fIc\fP and \fIf\fP
182 corresponds to the translation on those axes, and \fIg\fP, \fIh\fP, and \fIi\fP
183 are respectively 0, 0 and 1. The matrix can also be used to express more
184 complex transformations such as keystone correction, or rotation.  For a
185 rotation of an angle T, this formula can be used:
186 .RS
187 cos T  -sin T   0
188 .br
189 sin T   cos T   0
190 .br
191  0       0      1
192 .RE
193 As a special argument, instead of
194 passing a matrix, one can pass the string \fInone\fP, in which case the default
195 values are used (a unit matrix without filter).
196 .RE
197 .IP "\-\-scale \fIx\fPx\fIy\fP"
198 Changes the dimensions of the output picture. Values superior to 1 will lead to
199 a compressed screen (screen dimension bigger than the dimension of the output
200 mode), and values below 1 leads to a zoom in on the output. This option is
201 actually a shortcut version of the \fI\-\-transform\fP option.
202 .IP \-\-primary
203 Set the output as primary.
204 It will be sorted first in Xinerama and RANDR geometry requests.
205 .PP
206 .SH "RandR version 1.2 options"
207 These options are only available for X server supporting RandR version 1.2
208 or newer.
209 .IP "\-\-prop, \-\-properties"
210 This option causes xrandr to display the contents of properties for each
211 output. \-\-verbose also enables \-\-prop.
212 .IP "\-\-fb \fIwidth\fPx\fIheight\fP"
213 Reconfigures the screen to the specified size. All configured monitors must
214 fit within this size. When this option is not provided, xrandr computes the
215 smallest screen size that will hold the set of configured outputs; this
216 option provides a way to override that behaviour.
217 .IP "\-\-fbmm \fIwidth\fPx\fIheight\fP"
218 Sets the reported values for the physical size of the screen. Normally,
219 xrandr resets the reported physical size values to keep the DPI constant.
220 This overrides that computation.
221 .IP "\-\-dpi \fIdpi\fP"
222 This also sets the reported physical size values of the screen, it uses the
223 specified DPI value to compute an appropriate physical size using whatever
224 pixel size will be set.
225 .IP "\-\-newmode \fIname\fP \fImode\fP"
226 New modelines can be added to the server and then associated with outputs.
227 This option does the former. The \fImode\fP is specified using the ModeLine
228 syntax for xorg.conf: hdisp hsyncstart hsyncend htotal vdisp vsyncstart
229 vsyncend vtotal \fIflags\fP. \fIflags\fP can be zero or more of +HSync,
230 -HSync, +VSync, -VSync, Interlace, DoubleScan, CSync, +CSync, -CSync. Several
231 tools permit to compute the usual modeline from a height, width, and refresh
232 rate, for instance you can use \fBcvt\fR.
233 .IP "\-\-rmmode \fIname\fP"
234 This removes a mode from the server if it is otherwise unused.
235 .IP "\-\-addmode \fIoutput\fP \fIname\fP"
236 Add a mode to the set of valid modes for an output.
237 .IP "\-\-delmode \fIoutput\fP \fIname\fP"
238 Remove a mode from the set of valid modes for an output.
239 .PP
240 .B "Per-output options"
241 .IP "\-\-output \fIoutput\fP"
242 Selects an output to reconfigure. Use either the name of the output or the
243 XID.
244 .IP \-\-auto
245 For connected but disabled outputs, this will enable them using their
246 preferred mode (or, something close to 96dpi if they have no preferred
247 mode). For disconnected but enabled outputs, this will disable them.
248 .IP "\-\-mode \fImode\fP"
249 This selects a mode. Use either the name or the XID for \fImode\fP
250 .IP "\-\-preferred"
251 This selects the same mode as \-\-auto, but it doesn't automatically enable or
252 disable the output.
253 .IP "\-\-pos \fIx\fPx\fIy\fP"
254 Position the output within the screen using pixel coordinates. In case reflection
255 or rotation is applied, the translation is applied after the effects.
256 .IP "\-\-rate \fIrate\fP"
257 This marks a preference for refresh rates close to the specified value, when
258 multiple modes have the same name, this will select the one with the nearest
259 refresh rate.
260 .IP "\-\-reflect \fIreflection\fP"
261 Reflection can be one of 'normal' 'x', 'y' or 'xy'. This causes the output
262 contents to be reflected across the specified axes.
263 .IP "\-\-rotate \fIrotation\fP"
264 Rotation can be one of 'normal', 'left', 'right' or 'inverted'. This causes
265 the output contents to be rotated in the specified direction. 'right' specifies
266 a clockwise rotation of the picture and 'left' specifies a counter-clockwise
267 rotation.
268 .IP "\-\-left\-of, \-\-right\-of, \-\-above, \-\-below, \-\-same-as \fIanother-output\fP"
269 Use one of these options to position the output relative to the position of
270 another output. This allows convenient tiling of outputs within the screen.
271 The position is always computed relative to the new position of the other
272 output, so it is not valid to say \-\-output a \-\-left\-of b \-\-output 
273 b \-\-left\-of a.
274 .IP "\-\-set \fIproperty\fP \fIvalue\fP"
275 Sets an output property. Integer properties may be specified as a valid
276 (see \-\-prop) decimal or hexadecimal (with a leading 0x) value. Atom properties
277 may be set to any of the valid atoms (see \-\-prop). String properties may be
278 set to any value.
279 .IP "\-\-off"
280 Disables the output.
281 .IP "\-\-crtc \fIcrtc\fP"
282 Uses the specified crtc (either as an index in the list of CRTCs or XID).
283 In normal usage, this option is not required as xrandr tries to make
284 sensible choices about which crtc to use with each output. When that fails
285 for some reason, this option can override the normal selection.
286 .IP "\-\-gamma \fIred\fP:\fIgreen\fP:\fIblue\fP"
287 Set the specified floating point values as gamma correction on the crtc 
288 currently attached to this output. Note that you cannot get two different values
289 for cloned outputs (i.e.: which share the same crtc) and that switching an output to another crtc doesn't change
290 the crtc gamma corrections at all.
291 .IP "\-\-brightness \fIbrightness\fP"
292 Multiply the gamma values on the crtc currently attached to the output to
293 specified floating value. Useful for overly bright or overly dim outputs.
294 However, this is a software only modification, if your hardware has support to
295 actually change the brightness, you will probably prefer to use \fBxbacklight\fR.
296 .PP
297 .SH "RandR version 1.1 options"
298 These options are available for X servers supporting RandR version 1.1 or
299 older. They are still valid for newer X servers, but they don't interact
300 sensibly with version 1.2 options on the same command line.
301 .IP "\-s, \-\-size \fIsize-index\fP or \-\-size \fIwidth\fPx\fIheight\fP"
302 This sets the screen size, either matching by size or using the index into
303 the list of available sizes.
304 .IP "\-r, \-\-rate, \-\-refresh \fIrate\fP"
305 This sets the refresh rate closest to the specified value.
306 .IP "\-o, \-\-orientation \fIrotation\fP"
307 This specifies the orientation of the screen,
308 and can be one of normal, inverted, left or right.
309 .IP \-x
310 Reflect across the X axis.
311 .IP \-y
312 Reflect across the Y axis.
313 .SH EXAMPLES
314 Sets an output called LVDS to its preferred mode, and on its right put an
315 output called VGA to preferred mode of a screen which has been physically rotated clockwise:
316 .RS 
317 xrandr --output LVDS --auto --rotate normal --pos 0x0 --output VGA --auto --rotate left --right-of LVDS
318 .RE
319 .PP
320 Forces to use a 1024x768 mode on an output called VGA:
321 .RS 
322 xrandr --newmode "1024x768" 63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
323 .br
324 xrandr --addmode VGA 1024x768
325 .br
326 xrandr --output VGA --mode 1024x768
327 .RE
328 .PP
329 Enables panning on a 1600x768 desktop while displaying 1024x768 mode on an output called VGA:
330 .RS 
331 xrandr --fb 1600x768 --output VGA --mode 1024x768 --panning 1600x0
332 .RE
333 .PP
334 Have one small 1280x800 LVDS screen showing a small version of a huge 3200x2000 desktop, and have a
335 big VGA screen display the surrounding of the mouse at normal size.
336 .RS 
337 xrandr --fb 3200x2000 --output LVDS --scale 2.5x2.5 --output VGA --pos 0x0 --panning 3200x2000+0+0/3200x2000+0+0/64/64/64/64
338 .RE
339 .PP
340 Displays the VGA output in trapezoid shape so that it is keystone corrected
341 when the projector is slightly above the screen:
342 .RS 
343 xrandr --fb 1024x768 --output VGA --transform 1.24,0.16,-124,0,1.24,0,0,0.000316,1
344 .RE
345 .SH "SEE ALSO"
346 Xrandr(3), cvt(1), xkeystone(1), xbacklight(1)
347 .SH AUTHORS
348 Keith Packard,
349 Open Source Technology Center, Intel Corporation.
350 and
351 Jim Gettys, 
352 Cambridge Research Laboratory, HP Labs, HP.