tldr/pages/linux/xrandr.md

24 lines
631 B
Markdown
Raw Normal View History

2015-12-31 09:43:10 +00:00
# xrandr
> Set the size, orientation and/or reflection of the outputs for a screen.
2015-12-31 09:43:10 +00:00
- Display the current state of the system (known screens, resolutions, ...):
2015-12-31 09:43:10 +00:00
`xrandr --query`
- Disable disconnected outputs and enable connected ones with default settings:
2015-12-31 09:43:10 +00:00
`xrandr --auto`
- Change the resolution and update frequency of DisplayPort 1 to 1920x1080, 60Hz:
2015-12-31 09:43:10 +00:00
`xrandr --output {{DP1}} --mode {{1920x1080}} --rate {{60}}`
- Set the resolution of HDMI2 to 1280x1024 and put it on the right of DP1:
2015-12-31 09:43:10 +00:00
`xrandr --output {{HDMI2}} --mode {{1280x1024}} --right-of {{DP1}}`
- Disable the VGA1 output:
2015-12-31 09:43:10 +00:00
`xrandr --output {{VGA1}} --off`