主要用的就是xrandr
guo@drguo:~$ xrandr#先看一下当前连接的屏幕有什么 Screen 0: minimum 320 x 200, current 1366 x 768, maximum 16384 x 16384 eDP connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 193mm 1366x768 60.06*+ 1280x720 59.86 1152x768 59.78 1024x768 59.92 800x600 59.86 848x480 59.66 720x480 59.71 640x480 59.38 VGA-0 connected (normal left inverted right x axis y axis) 1920x1080 60.00 + 1600x900 60.00 1280x1024 75.02 60.02 1152x864 75.00 1024x768 75.08 60.00 800x600 75.00 60.32 640x480 75.00 60.00 720x400 70.08 HDMI-0 disconnected (normal left inverted right x axis y axis) guo@drguo:~$ xrandr --output VGA-0 --right-of eDP --auto#一个左一个右,自己试试吧 guo@drguo:~$ xrandr --output VGA-0 --left-of eDP --auto
可以自己看一下帮助 xrandr -help
参考网址:http://linux.it.net.cn/CentOS/fast/2015/0126/12675.html | http://blog.chinaunix.net/uid-170694-id-2833685.html