Forrest logo
back to the xrandr tool

xrandr:tldr:c64c0

xrandr: Disable the VGA1 output.
$ xrandr --output ${VGA1} --off
try on your machine

The command "xrandr --output ${VGA1} --off" is used to turn off the output of a display connected to the VGA1 port.

Here's the breakdown of each part of the command:

  • "xrandr" is a command-line tool in Linux used to configure the resolution, refresh rate, and other display settings.
  • "--output" specifies that we want to modify the settings for a specific display output.
  • "${VGA1}" is a variable that represents the name of the output port. In this case, it is set to VGA1, which is commonly used to connect external monitors through a VGA port. You can replace it with the desired output name, such as HDMI1 or DP1, depending on the specific port you want to turn off.
  • "--off" is an argument that tells xrandr to turn off the specified display output.

So, when you run this command, it will instruct xrandr to disable the output for the display connected to the VGA1 port. This will result in the connected monitor being turned off and no longer displaying any content.

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