参考链接:http://www.cnblogs.com/feng_013/archive/2012/03/05/2380111.html
查看显示器信息:
fdm@fdm-OptiPlex-780:~$ xrandr
设置主显示器
fdm@fdm-OptiPlex-780:~$ xrandr --output HDMI1 --auto --primary
设置副显示器在主显示器右边
fdm@fdm-OptiPlex-780:~$ xrandr --output VGA1 --right-of HDMI1 --auto
bug:在我的电脑上把外接的显示器设置为主显示器 时发现每次开机就会失效