Forrest logo
tool overview
On this page you find all important commands for the CLI tool xrandr. If the command you are looking for is missing please ask our AI.

xrandr

xrandr is a powerful command line tool used for managing display settings in the X Window System. It stands for X Resize, Rotate and Reflect. The tool allows users to configure and alter screen resolutions, refresh rates, and display orientations on the fly, using a variety of options and parameters.

With xrandr, users can easily add or remove monitors, adjust their position and relative positioning, enable or disable displays, and mirror or extend their desktops. It supports multiple output devices, such as monitors and projectors, and provides a flexible way to configure their display properties.

xrandr can also be used to change the screen size, adjust the screen's aspect ratio, and set the display mode to clone, extended, or single display. It can be particularly useful for multi-monitor setups, presentations, and situations where a quick display adjustment is required.

This command line tool not only provides a textual interface to configure display settings but also allows users to create scripts and set up custom display profiles. Overall, xrandr is a handy utility for efficiently managing and customizing display configurations in the X Window System.

List of commands for xrandr:

  • xrandr:tldr:23929 xrandr: Disable disconnected outputs and enable connected ones with default settings.
    $ xrandr --auto
    try on your machine
    explain this command
  • xrandr:tldr:4b3c8 xrandr: Set the brightness for LVDS1 to 50%.
    $ xrandr --output ${LVDS1} --brightness ${0-5}
    try on your machine
    explain this command
  • xrandr:tldr:4bfdf xrandr: Change the resolution and update frequency of DisplayPort 1 to 1920x1080, 60Hz.
    $ xrandr --output ${DP1} --mode ${1920x1080} --rate ${60}
    try on your machine
    explain this command
  • xrandr:tldr:75584 xrandr: Set the resolution of HDMI2 to 1280x1024 and put it on the right of DP1.
    $ xrandr --output ${HDMI2} --mode ${1280x1024} --right-of ${DP1}
    try on your machine
    explain this command
  • xrandr:tldr:a76ad xrandr: Display the current state of the system (known screens, resolutions, ...).
    $ xrandr --query
    try on your machine
    explain this command
  • xrandr:tldr:c64c0 xrandr: Disable the VGA1 output.
    $ xrandr --output ${VGA1} --off
    try on your machine
    explain this command
tool overview