通过 VGA 连接辅助显示器后,我尝试更改该显示器的分辨率,使其更接近我的主(笔记本电脑)显示器的尺寸。为此,我想尝试--size
xrandr 的选项:
-s <size>/<width>x<height> or --size <size>/<width>x<height>
所以我尝试了这两个命令,但是这两个命令都没有任何改变。因为这可能意味着我用--size
错了,我的问题是:有什么作用--size
?
命令和输出:
[Me ~]$ xrandr --output LVDS --auto --primary --output VGA-0 --size 1366x768 --left-of LVDS
[Me ~]$ xrandr -q
Screen 0: minimum 320 x 200, current 2966 x 1200, maximum 8192 x 8192
LVDS connected primary 1366x768+1600+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 59.97*+
1280x720 59.86
1152x768 59.78
1024x768 59.92
800x600 59.86
848x480 59.66
720x480 59.71
640x480 59.38
VGA-0 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 367mm x 275mm
1600x1200 60.00*+
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.08 60.00
800x600 75.00 60.32
640x480 75.00 60.00
720x400 70.08
HDMI-0 disconnected (normal left inverted right x axis y axis)
[Me ~]$ xrandr --output LVDS --auto --primary --output VGA-0 --size 1280x1024 --left-of LVDS
[Me ~]$ xrandr -q
Screen 0: minimum 320 x 200, current 2966 x 1200, maximum 8192 x 8192
LVDS connected primary 1366x768+1600+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 59.97*+
1280x720 59.86
1152x768 59.78
1024x768 59.92
800x600 59.86
848x480 59.66
720x480 59.71
640x480 59.38
VGA-0 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 367mm x 275mm
1600x1200 60.00*+
1280x1024 75.02 60.02
1152x864 75.00
1024x768 75.08 60.00
800x600 75.00 60.32
640x480 75.00 60.00
720x400 70.08
HDMI-0 disconnected (normal left inverted right x axis y axis)
[Me ~]$ lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV730/M96 [Mobility Radeon HD 4650/5165]
答案1
您需要为您想要的分辨率创建一个新模式。
使用cvt 1366 768
,输出是这样的:
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
然后使用:
> xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
> xrandr --addmode VGA-0 "1368x768_60.00"
最后你可以设置它:
xrandr --output VGA-0 --mode "1368x768_60.00"