ubuntu下双显示器设置
第一步: 打开终端,输入指令:xrandr 查看显示器链接端口名称
我的两个屏幕分别是DVI-I-1 和 DVI-D-1
- 第二步: xrandr --output DVI-D-1 --auto --primary
这里是选择其中一个显示器(我选的HDMI-0),将其设置为主屏幕(primary是设置主屏幕的意思)
- 第三步:xrandr --output DVI-I-1 --right-of DVI-D-1 --auto
这里是将另一个显示器(DP-4)设置在主屏幕的左边.(可以改为right设置为右边)
trp@trp-Default-string:~$ xrandr
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
DVI-I-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 74.97*+ 60.01 59.97 59.96 60.00 59.94 59.93
1680x1050 74.89 69.88 59.95 59.88
1600x1024 60.17
1400x1050 74.76 70.00 59.98
1600x900 59.99 59.94 59.95 60.00 59.82
1280x1024 75.02 60.02
1440x900 59.89 59.90
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1366x768 59.79
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 75.00 75.00 70.00 60.00
1280x720 60.00 59.99 59.86 60.00 50.00 59.94 59.74
1024x768 75.05 60.04 75.03 70.07 60.00
960x720 75.00 60.00
1440x480 60.00 59.94
928x696 75.00 60.05
896x672 75.05 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
832x624 74.55
960x540 59.96 59.99 59.63 59.82
800x600 75.00 70.00 65.00 60.00 72.19 75.00 60.32 56.25
840x525 74.96 69.88 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 74.76 70.06 59.98
800x450 59.95 59.82
720x480 60.00 59.94 59.94
640x512 75.02 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 75.00 72.81 75.00 60.00 59.94
720x405 59.51 58.99
720x400 70.08
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 75.00 75.00 70.00 60.06
640x360 59.86 59.83 59.84 59.32
512x384 75.03 70.07 60.00
512x288 60.00 59.92
416x312 74.66
480x270 59.63 59.82
400x300 72.19 75.12 60.32 56.34
432x243 59.92 59.57
320x240 72.81 75.00 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DVI-D-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 74.97*+ 60.01 59.97 59.96 60.00 59.94 59.93
1680x1050 74.89 69.88 59.95 59.88
1600x1024 60.17
1400x1050 74.76 70.00 59.98
1600x900 59.99 59.94 59.95 60.00 59.82
1280x1024 75.02 60.02
1440x900 59.89 59.90
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1366x768 59.79
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 75.00 75.00 70.00 60.00
1280x720 60.00 59.99 59.86 60.00 50.00 59.94 59.74
1024x768 75.05 60.04 75.03 70.07 60.00
960x720 75.00 60.00
1440x480 60.00 59.94
928x696 75.00 60.05
896x672 75.05 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
832x624 74.55
960x540 59.96 59.99 59.63 59.82
800x600 75.00 70.00 65.00 60.00 72.19 75.00 60.32 56.25
840x525 74.96 69.88 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 74.76 70.06 59.98
800x450 59.95 59.82
720x480 60.00 59.94 59.94
640x512 75.02 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 75.00 72.81 75.00 60.00 59.94
720x405 59.51 58.99
720x400 70.08
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 75.00 75.00 70.00 60.06
640x360 59.86 59.83 59.84 59.32
512x384 75.03 70.07 60.00
512x288 60.00 59.92
416x312 74.66
480x270 59.63 59.82
400x300 72.19 75.12 60.32 56.34
432x243 59.92 59.57
320x240 72.81 75.00 60.05
360x202 59.51 59.13
320x180 59.84 59.32
HDMI-1 disconnected (normal left inverted right x axis y axis)
trp@trp-Default-string:~$ xrandr --output DVI-D-1 --auto --primary
trp@trp-Default-string:~$ xrandr --output DVI-I-1 --right-of DVI-D-1 --auto