我有一个多屏幕:
xrandr
Screen 0: minimum 8 x 8, current 3286 x 1080, maximum 16384 x 16384
eDP-1-1 connected primary 1366x768+1920+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 60.00*+
1360x768 59.80 59.96
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
960x600 60.00
960x540 59.99
800x600 60.00 60.32 56.25
840x525 60.01 59.88
800x512 60.17
700x525 59.98
640x512 60.02
720x450 59.89
640x480 60.00 59.94
680x384 59.80 59.96
576x432 60.06
512x384 60.00
400x300 60.32 56.34
320x240 60.05
HDMI-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 930mm x 530mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1600x1200 60.00
1680x1050 59.88
1280x1024 75.02
1440x900 59.90
1280x960 60.00
1360x768 59.80
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.08 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
DP-1-1 disconnected (normal left inverted right x axis y axis)
但当我尝试这样做时:
bussiere@kusanagi [22:03:53] [~/script] [master *]
-> % xrandr --output Screen\ 0 --primary
warning: output Screen 0 not found; ignoring
bussiere@kusanagi [22:04:49] [~/script] [master *]
-> % xrandr --output Screen 0 --primary
xrandr: unrecognized option '0'
Try 'xrandr --help' for more information.
它不起作用。请问如何正确输入 xrandr 的 --primary 命令的 Screen 0?
谢谢
答案1
这里的“屏幕 0”描述由这两个输出组成的整个虚拟显示:
- eDP-1-1:物理屏幕插入显示端口输出
- HDMI-1-1:物理屏幕插入 HDMI 输出
(注意屏幕 0宽度为 3286 像素,即 1366 + 1920,另外两个输出水平像素)
我猜你想用HDMI-1-1作为主要输出,以下命令将修复该问题:
xrandr --output HDMI-1-1 --primary