1:檢視顯示器連接配接
因為我是筆記本外接顯示器的,一般都隻用外接顯示器的,是以嘗試去關閉筆記本的顯示屏
[email protected]:~$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected (normal left inverted right x axis y axis)
1366x768 60.0 +
1360x768 59.8 60.0
1280x720 60.0
1024x768 60.0
1024x576 60.0
960x540 60.0
800x600 60.3 56.2
864x486 60.0
640x480 59.9
720x405 60.0
680x384 60.0
640x360 60.0
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
1920x1080 60.0*+
1600x900 60.0
1280x1024 75.0 60.0
1152x864 75.0
1024x768 75.1 60.0
800x600 75.0 60.3
640x480 75.0 60.0
720x400 70.1
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
[email protected]:~$
可以看到是連接配接了倆個顯示器的
2:設定雙螢幕顯示:
(1)打開外接顯示器,雙螢幕顯示相同的内容--克隆,(auto為最高分辨率)
xrandr --output VGA-0 --same-as DVI-D-0 --auto
(2)若要指定外接顯示器的分辨率可以使用下面的指令(1280*1024):
xrandr --output VGA-0 --same-as DVI-D-0 --mode 1280x1024
(3)打開外接顯示器,設定為右側擴充
xrandr --output VGA-0 --right-of DVI-D-0 --auto
(4)關閉顯示器
xrandr --output VGA-0 --off
(5)打開VGA-0接口顯示器,關閉DVI-D-0接口顯示器
xrandr --output VGA-0 --auto --output DVI-D-0 --off