Skip to content

xrandr: Your Key to Display Configuration Mastery

Explore the power of xrandr with this comprehensive guide, enabling you to unleash the full potential of your monitor setup. From setting resolutions and managing displays to rotating screens, adjusting refresh rates, and fine-tuning screen positioning, master every aspect of display configuration with xrandr.


Display Current Monitor Settings

xrandr --current

Set Display Resolution

xrandr --output <display> --mode <resolution>

Add New Mode (Resolution)

cvt 1920 1080 60
xrandr --newmode <Modeline>
xrandr --addmode <display> <mode>

Turn off a Display

xrandr --output <display> --off

Rotate Display

xrandr --output <display> --rotate <orientation>

Reflect Display

xrandr --output <display> --reflect <axis>

Resets all the settings to their defaults.

xrandr --auto

Set Refresh Rate

xrandr --output <display> --rate <rate>

Set Primary Monitor

xrandr --output <display> --primary

Scale Display

xrandr --output <display> --scale 1.25x1.25

Panning

xrandr --output <display> --panning 1920x1080

Screen Positioning

xrandr --output <display1> --left-of <display2>
xrandr --output <display1> --right-of <display2>
xrandr --output <display1> --above <display2>
xrandr --output <display1> --below <display2>