//關閉顯示器VGA1
xrandr --output VGA1 --off
//開啟顯示器VGA1
xrandr --output VGA1 --auto
//關閉顯示器LVDS1
xrandr --output LVDS1 --off
//開啟顯示器LVDS1
xrandr --output LVDS1 --auto
//打開VGA1,同時關閉LVDS1
xrandr --output VGA1 --auto --output LVDS1 --off
//關閉VGA1,同時打開LVDS1
xrandr --output VGA1 --off --output LVDS1 --auto
//擴展模式時,將LVDS1顯示在VGA1的左側
xrandr --output LVDS1 --left-of VGA1 --auto
//擴展模式時,將LVDS1顯示在VGA1右側.
xrandr --output LVDS1 --right-of VGA1 --auto
//從擴展模式變成復制模式.
xrandr --output LVDS1 --same-as VGA1 --auto
//設定主顯示器.
xrandr --output HDMI1 --auto --primary