Forrest logo
back to the xrandr tool

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

The command "xrandr --output ${DP1} --mode ${1920x1080} --rate ${60}" is used to set the display resolution and refresh rate for the specified display output.

Here's the breakdown of the command:

  1. "xrandr": It is a command-line tool in Linux used to interact with the XRandR (X Resize and Rotate) extension, which is responsible for managing screen resolution, refresh rate, and multi-monitor setup.

  2. "--output ${DP1}": This specifies the output display that you want to configure. In this case, ${DP1} is a placeholder that should be replaced with the appropriate display output identifier. For example, it could be "VGA1", "HDMI1", or "DP1" depending on your system's setup.

  3. "--mode ${1920x1080}": This sets the desired screen resolution for the specific display output. ${1920x1080} is another placeholder that should be replaced with the specific resolution you want to set. It is typically in the format of "width x height", where 1920 represents the width and 1080 represents the height of the screen.

  4. "--rate ${60}": This specifies the desired refresh rate for the display output. ${60} is a placeholder that should be replaced with the desired refresh rate (in Hz). In this case, it is set to 60 Hz.

In summary, the command is used to set the display output specified by ${DP1} to a resolution of 1920x1080 pixels and a refresh rate of 60 Hz.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xrandr tool