尽管已添加并在xrandr上显示,但xrandr仍然显示“无法找到模式”。

我正在尝试将我的平板电脑作为我的笔记本电脑的扩展显示器使用,按照Prometheus在这里的回答here
我已经到了应该使用VGA-0输出模式的步骤,但是xrandr却显示"找不到模式"。
$ gtf 1280 1024 60
    # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
  Modeline "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync
$ xrandr newmode "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync
$ xrandr --addmode VGA-0 1280x1024_60.00

此时,输入$ xrandr会返回以下内容
Screen 0: minimum 8 x 8, current 1366 x 768, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
LVDS-0 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768       60.0*+
HDMI-0 disconnected (normal left inverted right x axis y axis)
  1280x1024_60.00 (0x2a6)  108.9MHz
        h: width  1280 start 1360 end 1496 total 1712 skew    0 clock   63.6KHz
        v: height 1024 start 1025 end 1028 total 1060           clock   60.0Hz

所以有一个称为 1280x1024_60.00 的模式。但现在,尝试输出该模式,我得到

$ xrandr --output VGA-0 --mode 1280x1024_60.00
xrandr: cannot find mode 1280x1024_60.00

我不太明白,因为它看起来像是已经成功添加了mode 1280x1024_60.00

非常感谢您提供的任何建议或评论。提前致谢。

1个回答

newmode上,1280x1024_60.00被用双引号括起来,而在addmodeoutput上则没有。请在这两个命令中也使用双引号。至少,这是正确的语法。另一个问题是你试图向一个断开连接的端口"VGA-0 disconnected (normal left inverted right x axis y axis)"添加模式,这是行不通的。首先必须连接该端口。
根据帖子所说,你可能正在使用错误的端口。你的VGA-0端口是用于通过15针VGA连接器连接实际显示器的。

明白了。我猜我得用另一种方式了。谢谢! - Aatlantise