1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# 如果显示双栏,关闭虚拟显示器,例如:
export DISPLAY=:0
xrandr
<<'CONTENT'
Screen 0: minimum 8 x 8, current 2944 x 1080, maximum 32767 x 32767
eDP1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*+
800x600 60.32 56.25
640x480 59.94
512x384 60.00
DP1 disconnected (normal left inverted right x axis y axis)
DP2 connected 1920x1080+1024+0 (normal left inverted right x axis y axis) 509mm x 286mm
1920x1080 60.00*+
1680x1050 59.95
1600x900 60.00
1280x1024 60.02
1440x900 59.89
1024x768 60.00
800x600 60.32
640x480 60.00
720x400 70.08
DP3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
CONTENT
# eDP1 是笔记本的内置屏幕,DP2 是一个外接显示器。
# 连接状态:eDP1 显示 primary(主屏幕),DP2 没有 primary 标记
# 虽然有内置显示器,但是实际是一个机箱,没有物理显示器对应内置主屏幕,因此可以关掉,对关闭eDP1,而DP2对应外接显示器则不进行操作
ubt@ubt:~$ xrandr --output eDP1 --off
|