2015-12-31 10:43:10 +01:00
|
|
|
# xrandr
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Set the size, orientation and/or reflection of the outputs for a screen.
|
2021-10-09 20:56:21 +00:00
|
|
|
> More information: <https://www.x.org/releases/current/doc/man/man1/xrandr.1.xhtml>.
|
2015-12-31 10:43:10 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Display the current state of the system (known screens, resolutions, ...):
|
2015-12-31 10:43:10 +01:00
|
|
|
|
2025-03-07 13:14:54 +02:00
|
|
|
`xrandr {{[-q|--query]}}`
|
2015-12-31 10:43:10 +01:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Disable disconnected outputs and enable connected ones with default settings:
|
2015-12-31 10:43:10 +01:00
|
|
|
|
|
|
|
`xrandr --auto`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Change the resolution and update frequency of DisplayPort 1 to 1920x1080, 60Hz:
|
2015-12-31 10:43:10 +01:00
|
|
|
|
|
|
|
`xrandr --output {{DP1}} --mode {{1920x1080}} --rate {{60}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Set the resolution of HDMI2 to 1280x1024 and put it on the right of DP1:
|
2015-12-31 10:43:10 +01:00
|
|
|
|
|
|
|
`xrandr --output {{HDMI2}} --mode {{1280x1024}} --right-of {{DP1}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Disable the VGA1 output:
|
2015-12-31 10:43:10 +01:00
|
|
|
|
|
|
|
`xrandr --output {{VGA1}} --off`
|
2020-10-03 07:33:51 +05:00
|
|
|
|
2021-11-08 17:48:32 +01:00
|
|
|
- Set the brightness for LVDS1 to 50%:
|
2020-10-03 07:33:51 +05:00
|
|
|
|
|
|
|
`xrandr --output {{LVDS1}} --brightness {{0.5}}`
|
2024-05-22 23:17:44 +03:00
|
|
|
|
|
|
|
- Display the current state of any X server:
|
|
|
|
|
2025-03-07 13:14:54 +02:00
|
|
|
`xrandr {{[-d|--display]}} :{{0}} {{[-q|--query]}}`
|