toffuuu3050

Untitled

Nov 8th, 2026 (edited)
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 17.60 KB | Software | 0 0
  1. [anyuser@cachyosAndAnyOtherDistro-x8664 Documents]$ man xrandr | col -b > xrandr_manpage.txt
  2.  
  3. [anyuser@cachyosAndAnyOtherDistro-x8664 Documents]$ cat xrandr_manpage.txt
  4.  
  5.  
  6. XRANDR(1)                           X Version 11               XRANDR(1)                    
  7.  
  8. NAME
  9.      xrandr - adjust size, orientation, reflection of a screen (using RandR extension)
  10.  
  11. SYNOPSIS
  12.      xrandr [--help] [--display display] [-q] [-v] [--verbose] [--dryrun]
  13.         [--screen snum] [--q1] [--q12] [--current] [--noprimary]
  14.         [--panning widthxheight[+x+y[/track_widthxtrack_height+track_x+track_y[/border_left/border_top/border_right/border_bottom]]]]
  15.         [--scale x[xy]] [--scale-from wxh] [--transform a,b,c,d,e,f,g,h,i]
  16.         [--primary] [--prop] [--fb widthxheight] [--fbmm widthxheight]
  17.         [--dpi dpi] [--dpi from-output]
  18.         [--newmode name mode] [--rmmode name] [--addmode output name]
  19.         [--delmode output name] [--output output] [--auto] [--mode mode]
  20.         [--preferred] [--pos xxy] [--rate rate]
  21.         [--reflect reflection] [--rotate orientation]
  22.         [--left-of output] [--right-of output]
  23.         [--above output] [--below output] [--same-as output]
  24.         [--set property value] [--off] [--crtc crtc]
  25.         [--gamma red[:green:blue]] [--brightness brightness]
  26.         [-o orientation] [-s size] [-r rate] [-x] [-y]
  27.         [--listproviders] [--setprovideroutputsource provider source]
  28.         [--setprovideroffloadsink provider sink]
  29.         [--listmonitors] [--listactivemonitors]
  30.         [--setmonitor name geometry outputs] [--delmonitor name]
  31.  
  32. DESCRIPTION
  33.      Xrandr is used to set the size, orientation, and/or reflection of the outputs for a screen.  It can also set the size
  34.      of the overall screen.
  35.  
  36.      If  invoked  without  any option, it will dump the state of the outputs, showing the existing modes for each of them,
  37.      with a '+' after the preferred modes and a '*' after the current mode.
  38.  
  39.      There are a few global options.  Other options modify the last output that is specified in earlier parameters in  the
  40.      command  line.  Multiple outputs may be modified at the same time by passing multiple --output options followed imme‐
  41.      diately by their corresponding modifying options.
  42.  
  43.      --help Print out a summary of the usage and exit.
  44.  
  45.      -v, --version
  46.         Print out the RandR version reported by the X server and exit.
  47.  
  48.      --verbose
  49.         Causes xrandr to be more verbose. When used with -q (or without other options), xrandr will display  more  in‐
  50.         formation  about  the server state.  Please note that the gamma and brightness information are only approxima‐
  51.         tions of the complete color profile stored in the server.  When used along with options that  reconfigure  the
  52.         system, progress will be reported while executing the configuration changes.
  53.  
  54.      -q, --query
  55.         When  this  option is present, or when no configuration changes are requested, xrandr will display the current
  56.         state of the system.
  57.  
  58.      --dryrun
  59.         Performs all the actions specified except that no changes are made.
  60.  
  61.      --nograb
  62.         Apply the modifications without grabbing the screen.  It avoids blocking other applications during the  update
  63.         but it might also cause some applications that detect screen resize to receive old values.
  64.  
  65.      -d, --display name
  66.         This  option  selects the X display to use.  Note this refers to the X screen abstraction, not the monitor (or
  67.         output).
  68.  
  69.      --screen snum
  70.         This option selects which screen to manipulate.  Note this refers to the X screen abstraction, not the monitor
  71.         (or output).
  72.  
  73.      --q1   Forces the usage of the RandR version 1.1 protocol, even if a higher version is available.
  74.  
  75.      --q12  Forces the usage of the RandR version 1.2 protocol, even if the display does not report it as supported  or  a
  76.         higher version is available.
  77.  
  78. RandR version 1.5 options
  79.      Options for RandR 1.5 are used as a superset of the options for RandR 1.4.
  80.  
  81.      --listmonitors
  82.         Report information about all defined monitors.
  83.  
  84.      --listactivemonitors
  85.         Report information about currently active monitors.
  86.  
  87.      --setmonitor name geometry output-list
  88.         Define  a  new monitor with the given geometry and associated to the given outputs.  The output-list is either
  89.         the keyword none or a comma-separated list of outputs.  The geometry is either the keyword auto, in which case
  90.         the monitor will automatically track the geometry of the associated outputs, or a manual specification in  the
  91.         form w/mmwxh/mmh+x+y where w, h, x, y are in pixels and mmw, mmh are the physical dimensions of the monitor.
  92.  
  93.      --delmonitor name
  94.         Delete the given user-defined monitor.
  95.  
  96. RandR version 1.4 options
  97.      Options for RandR 1.4 are used as a superset of the options for RandR 1.3.
  98.  
  99.      --listproviders
  100.         Report information about the providers available.
  101.  
  102.      --setprovideroutputsource provider source
  103.         Set  source as the source of display output images for provider.  This is only possible if source and provider
  104.         have the Source Output and Sink Output capabilities, respectively.  If source is 0x0, then provider is discon‐
  105.         nected from its current output source.
  106.  
  107.      --setprovideroffloadsink provider sink
  108.         Set provider as a render offload device for sink.  This is only possible if provider and sink have the  Source
  109.         Offload  and  Sink Offload capabilities, respectively.  If sink is 0x0, then provider is disconnected from its
  110.         current render offload sink.
  111.  
  112. RandR version 1.3 options
  113.      Options for RandR 1.3 are used as a superset of the options for RandR 1.2.
  114.  
  115.      --current
  116.         Return the current screen configuration, without polling for hardware changes.
  117.  
  118.      --noprimary
  119.         Don't define a primary output.
  120.  
  121.     Per-output options
  122.  
  123.     --panning widthxheight[+x+y[/track_widthxtrack_height+track_x+track_y[/border_left/border_top/border_right/bor‐
  124.     der_bottom]]]
  125.         This option sets the panning parameters.  As soon as panning is enabled, the CRTC  position  can  change  with
  126.         every  pointer  move.   The  first  four  parameters specify the total panning area, the next four the pointer
  127.         tracking area (which defaults to the same area).  The last four parameters specify the border and  default  to
  128.         0.   A  width  or  height  set  to zero disables panning on the according axis.  You typically have to set the
  129.         screen size with --fb simultaneously.
  130.  
  131.     --transform a,b,c,d,e,f,g,h,i
  132.         Specifies a transformation matrix to apply on the output.  A bilinear filter is selected automatically  unless
  133.         the --filter parameter is also specified.  The mathematical form corresponds to:
  134.            a b c
  135.            d e f
  136.            g h i
  137.         The  transformation  is based on homogeneous coordinates.  The matrix multiplied by the coordinate vector of a
  138.         pixel of the output gives the transformed coordinate vector of a pixel in the graphic buffer.  More precisely,
  139.         the vector (x y) of the output pixel is extended to 3 values (x y w), with 1 as the w  coordinate  and  multi‐
  140.         plied  against  the  matrix.  The final device coordinates of the pixel are then calculated with the so-called
  141.         homogenic division by the transformed w coordinate.  In other words, the device coordinates  (x'  y')  of  the
  142.         transformed pixel are:
  143.            x' = (ax + by + c) / w'   and
  144.            y' = (dx + ey + f) / w'   ,
  145.            with  w' = (gx + hy + i)  .
  146.         Typically,  a  and e corresponds to the scaling on the X and Y axes, c and f corresponds to the translation on
  147.         those axes, and g, h, and i are respectively 0, 0 and 1.  The matrix can also be used to express more  complex
  148.         transformations  such  as keystone correction, or rotation.  For a rotation of an angle T, this formula can be
  149.         used:
  150.            cos T  -sin T   0
  151.            sin T   cos T   0
  152.             0       0      1
  153.         As a special argument, instead of passing a matrix, one can pass the string none, in which  case  the  default
  154.         values are used (a unit matrix without filter).
  155.  
  156.      --filter filtermode
  157.         Chooses  the scaling filter method to be applied when the screen is scaled or transformed.  Can be either 'bi‐
  158.         linear' or 'nearest'.
  159.  
  160.      --scale x[xy]
  161.         Changes the dimensions of the output picture.  If the y value is omitted, the x value will be  used  for  both
  162.         dimensions.   Values  larger than 1 lead to a compressed screen (screen dimension bigger than the dimension of
  163.         the output mode), and values less than 1 lead to a zoom in on the output.  This option is actually a  shortcut
  164.         version of the --transform option.
  165.  
  166.      --scale-from wxh
  167.         Specifies  the  size  in pixels of the area of the framebuffer to be displayed on this output.  This option is
  168.         actually a shortcut version of the --transform option.
  169.  
  170.      --primary
  171.         Set the output as primary.  It will be sorted first in Xinerama and RANDR geometry requests.
  172.  
  173. RandR version 1.2 options
  174.      These options are only available for X server supporting RandR version 1.2 or newer.
  175.  
  176.      --prop, --properties
  177.         This option causes xrandr to display the contents of properties  for  each  output.   --verbose  also  enables
  178.         --prop.
  179.  
  180.      --fb widthxheight
  181.         Reconfigures  the screen to the specified size.  All configured monitors must fit within this size.  When this
  182.         option is not provided, xrandr computes the smallest screen size that will hold the set of configured outputs;
  183.         this option provides a way to override that behaviour.
  184.  
  185.      --fbmm widthxheight
  186.         Sets the value reported as physical size of the X screen as a whole (union of all  configured  monitors).   In
  187.         configurations  with  multiple  monitors with different DPIs, the value has no physical meaning, but it may be
  188.         used by some legacy clients which do not support RandR version 1.2 to compute a reference font scaling.   Nor‐
  189.         mally, xrandr resets the reported physical size values to keep the DPI constant.  This overrides that computa‐
  190.         tion.  Default DPI value is 96.
  191.  
  192.      --dpi dpi
  193.  
  194.      --dpi from-output
  195.         This  also  sets the value reported as physical size of the X screen as a whole (union of all configured moni‐
  196.         tors).  In configurations with multiple monitors with different DPIs, the value has no physical  meaning,  but
  197.         it may be used by some legacy clients which do not support RandR version 1.2 to compute a reference font scal‐
  198.         ing.  This option uses either the specified DPI value, or the DPI of the given output, to compute an appropri‐
  199.         ate  physical size using whatever pixel size will be set.  Typical values are the default (96 DPI), the DPI of
  200.         the only monitor in single-monitor configurations, or the DPI of the primary monitor in multi-monitor configu‐
  201.         rations.
  202.  
  203.      --newmode name mode
  204.         New modelines can be added to the server and then associated with outputs.  This option does the former.   The
  205.         mode is specified using the ModeLine syntax for xorg.conf: clock hdisp hsyncstart hsyncend htotal vdisp vsync‐
  206.         start vsyncend vtotal flags.  flags can be zero or more of +HSync, -HSync, +VSync, -VSync, Interlace, DoubleS‐
  207.         can,  CSync, +CSync, -CSync.  Several tools compute the usual modeline from a height, width, and refresh rate,
  208.         for instance you can use cvt(1).
  209.  
  210.      --rmmode name
  211.         This removes a mode from the server if it is otherwise unused.
  212.  
  213.      --addmode output name
  214.         Add a mode to the set of valid modes for an output.
  215.  
  216.      --delmode output name
  217.         Remove a mode from the set of valid modes for an output.
  218.  
  219.      Per-output options
  220.  
  221.      --output output
  222.         Selects an output to reconfigure. Use either the name of the output or the XID.
  223.  
  224.      --auto For connected but disabled outputs, this will enable them using their first preferred mode (or something close
  225.         to 96 dpi if they have no preferred mode).  For disconnected but enabled outputs, this will disable them.
  226.  
  227.      --mode mode
  228.         This selects a mode.  Use either the name or the XID for mode.
  229.  
  230.      --preferred
  231.         This selects the same mode as --auto, but it doesn't automatically enable or disable the output.
  232.  
  233.     --pos xxy
  234.         Position the output within the screen using pixel coordinates.  In case reflection or rotation is applied, the
  235.         translation is applied after the effects.
  236.  
  237.     --rate rate
  238.         This marks a preference for refresh rates close to the specified value.  When multiple  modes  have  the  same
  239.         name, this will select the one with the nearest refresh rate.
  240.  
  241.     --reflect reflection
  242.         Reflection  can  be  one  of  normal, x, y, or xy.  This causes the output contents to be reflected across the
  243.         specified axes.
  244.  
  245.     --rotate rotation
  246.         Rotation can be one of normal, left, right, or inverted.  This causes the output contents to be rotated in the
  247.         specified direction.  right specifies a clockwise rotation of the picture and left specifies a  counter-clock‐
  248.         wise rotation.
  249.  
  250.     --left-of, --right-of, --above, --below, --same-as another-output
  251.         Use  one of these options to position the output relative to the position of another output.  This allows con‐
  252.         venient tiling of outputs within the screen.  The position is always computed relative to the new position  of
  253.         the other output, so it is not valid to say --output a --left-of b --output b --left-of a.
  254.  
  255.     --set property value
  256.         Sets  an output property.  Integer properties may be specified as a valid (see --prop) comma-separated list of
  257.         decimal or hexadecimal (with a leading 0x) values.  Atom properties may be set to any of the valid atoms  (see
  258.         --prop).  String properties may be set to any value.
  259.  
  260.     --off  Disables the output.
  261.  
  262.     --crtc crtc
  263.         Uses the specified crtc (either as an index in the list of CRTCs or XID).  In normal usage, this option is not
  264.         required  as  xrandr tries to make sensible choices about which crtc to use with each output.  When that fails
  265.         for some reason, this option can override the normal selection.
  266.  
  267.     --gamma red[:green:blue]
  268.         Set the specified floating point values as gamma correction on the crtc currently attached to this output.  If
  269.         green and blue are not specified, the red value will be used for all three components.  Note that  you  cannot
  270.         get  two  different  values for cloned outputs (i.e., outputs which share the same crtc) and that switching an
  271.         output to another crtc doesn't change the crtc gamma corrections at all.
  272.  
  273.      --brightness brightness
  274.         Multiply the gamma values on the crtc currently attached to the output to specified  floating  value.   Useful
  275.         for  overly bright or overly dim outputs.  However, this is a software only modification, if your hardware has
  276.         support to actually change the brightness, you will probably prefer to use xbacklight(1).
  277.  
  278. RandR version 1.1 options
  279.      These options are available for X servers supporting RandR version 1.1 or older.  They are still valid  for  newer  X
  280.      servers, but they don't interact sensibly with version 1.2 options on the same command line.
  281.  
  282.     -s, --size size-index or --size widthxheight
  283.         This sets the screen size, either matching by size or using the index into the list of available sizes.
  284.  
  285.     -r, --rate, --refresh rate
  286.         This sets the refresh rate closest to the specified value.
  287.  
  288.     -o, --orientation rotation
  289.         This specifies the orientation of the screen, and can be one of normal, inverted, left,  or right.
  290.  
  291.      -x     Reflect across the X axis.
  292.  
  293.      -y     Reflect across the Y axis.
  294.  
  295. EXAMPLES
  296.     Sets  an  output called LVDS to its preferred mode, and on its right put an output called VGA to set to the preferred
  297.     mode of a screen which has been physically rotated clockwise:
  298.         xrandr --output LVDS --auto --rotate normal --pos 0x0 \
  299.            --output VGA --auto --rotate left --right-of LVDS
  300.  
  301.     Forces to use a 1024x768 mode on an output called VGA:
  302.         xrandr --newmode "1024x768" \
  303.            63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync
  304.         xrandr --addmode VGA 1024x768
  305.         xrandr --output VGA --mode 1024x768
  306.  
  307.     Enables panning on a 1600x768 desktop while displaying 1024x768 mode on an output called VGA:
  308.         xrandr --fb 1600x768 --output VGA --mode 1024x768 \
  309.            --panning 1600x0
  310.  
  311.     Have one small 1280x800 LVDS screen showing a small version of a huge 3200x2000 desktop, and have a  big  VGA  screen
  312.     display the surrounding of the mouse at normal size.
  313.         xrandr --fb 3200x2000 --output LVDS --scale 2.5x2.5 \
  314.            --output VGA --pos 0x0 \
  315.                --panning 3200x2000+0+0/3200x2000+0+0/64/64/64/64
  316.  
  317.     Displays  the VGA output in trapezoid shape so that it is keystone corrected when the projector is slightly above the
  318.     screen:
  319.         xrandr --fb 1024x768 --output VGA \
  320.            --transform 1.24,0.16,-124,0,1.24,0,0,0.000316,1
  321.  
  322. XWAYLAND
  323.     Xwayland(1) is an X server that uses a Wayland Compositor as backend.  Xwayland acts as translation layer between the
  324.     X protocol and the Wayland protocol but does not have direct access to the hardware.  With Xwayland rootless (the de‐
  325.     fault with most Wayland compositors), RandR is emulated and only available read-only to report the current status and
  326.     configuration of the outputs as exposed to X11 clients.  As a result, it is not possible to change the  configuration
  327.     of the outputs using xrandr on a Wayland environment with Xwayland running rootless.
  328.  
  329. SEE ALSO
  330.     Xrandr(3), cvt(1), xkeystone(1), xbacklight(1)
  331.  
  332. AUTHORS
  333.      Keith  Packard,  Open Source Technology Center, Intel Corporation.  and Jim Gettys, Cambridge Research Laboratory, HP
  334.     Labs, HP.
  335.  
  336. xrandr 1.5.4                        2025-04-15                       XRANDR(1)
Advertisement
Add Comment
Please, Sign In to add comment