Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of configuring dual-head with xrandr.
# first, get the names of your displays:
$ xrandr
LVDS-1 connected 1366x768....
# modes...
HDMI-0 connected ...
# modes...
VGA0 connected...
# modes...
# LVDS is your laptop display.
# The auto flag will automatically choose the preferred resolution for your display
# Here's how to set just the flat panel to its prefered resolution:
$ xrandr --output LVDS-1 --auto
# Here's how to turn on the flat panel and the HDMI output.
# The --left-of <display> and --right-of <display> commands
# tell it where the displays are relative to each other for
# mousing purposes.
$ xrandr --output LVDS-1 --auto --output HDMI-0 --auto --left-of LVDS-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment