ubuntu主屏/副屏设置

Ubuntu可以用xrandr进行屏幕设置。

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
33
# 查看显示屏幕设置
~$xrandr
# 可以看到主屏幕eDP-1,副屏幕DP-3,默认在主屏幕的右侧,显示如下内容:
Screen 0: minimum 320 x 200, current 3360 x 1080, maximum 16384 x 16384
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1440x900+1920+0 (normal left inverted right x axis y axis) 408mm x 255mm
1440x900 59.89*+ 74.98
1280x800 59.81
1152x864 75.00
1280x720 60.00
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 59.94
720x400 70.08
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 345mm x 194mm
1920x1080 60.02*+
1680x1050 60.00
1400x1050 60.00
1280x1024 59.95
1280x960 59.99
1152x864 59.97
1024x768 59.95
800x600 59.96
640x480 59.94
720x400 59.97
640x400 59.96
640x350 59.84
# 将DP-3设置为主屏(auto:自动分辨率,primary:主屏,--left-of DP-3:放在显示屏DP-3的右边)
~$xrandr --output DP-3 --auto --primary
# 将eDP-1设置为在DP-3的左侧
~$xrandr --output eDP-1 --left-of DP-3 --auto