turn on second monitor by command line (linux)

xrandr --output HDMI1 --auto --right-of eDP1
--right-of can be --left-of or --same-as. The HDMI1 is the monitor that you want to turn on, and d eDP1 is the primary monitor.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.