我的PC有两个显示接口,一个VGA一个DVI接口,我接了两个显示器,默认情况下我发现电脑会将VGA接口看作主显示器,我想让DVI接口的显示器作为主显示器,设置方法如下:
1 显示显示器的详细信息:
xrandr
steven@steven:~$ xrandr
Screen 0: minimum 320 x 200, current 3120 x 1050, maximum 8192 x 8192
VGA-0 connected 1440x900+0+0 (normal left inverted right x axis y axis) 410mm x 256mm
1440x900 59.9*+
1280x1024 75.0 60.0
1280x960 60.0
1152x864 75.0
1152x720 60.0
1024x768 75.1 60.0
832x624 74.6
800x600 75.0 60.3
640x480 75.0 60.0
720x400 70.1
S-video disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
DVI-1 connected 1680x1050+1440+0 (normal left inverted right x axis y axis) 408mm x 255mm
1680x1050 60.0*+
1600x1200 60.0
1400x1050 60.0
1280x1024 75.0 60.0
1440x900 59.9
1280x960 60.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
640x400 70.0
2 将DVI-1接口设置成主显示器: --auto使用最大分辨率
xrandr --output DVI-1 --auto --primary
3 将VGA-0接口输出到主显示器的左边:
xrandr --output VGA-0 --left-of DVI-1 --auto
参考:
http://dpinglee.blog.163.com/blog/static/1440977532010488594461/
http://hankgong.javaeye.com/blog/667022