Skip to content

Instantly share code, notes, and snippets.

Created February 5, 2014 23:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mansam/8835572 to your computer and use it in GitHub Desktop.
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