Skip to main content

Xrandr

XRandR

--query -> details about grapics adapter
--output LVDS|LCD|VGA|HDMI --mode 800x600 -> change resolution
--output LVDS|LCD|VGA|HDMI --auto -> restore resolution
--output LVDS|LCD|VGA|HDMI --rate 60

connecting a projector

clone VGA and LVDS outputs:

xrandr --output VGA --mode 1024x768 --same-as LVDS --output LVDS --mode 1024x768

switch off projector:

xrandr --output VGA --off
xrandr --output LVDS --auto

switch off internal display and use external display:

xrandr --output LVDS --off --output VGA --auto

multi-head

xrandr --output LVDS --auto --left-of VGA --output VGA --auto

rotation

xrandr --output LVDS --rotate left|right|normal|invert