xrandr“找不到模式”虽然模式已添加并显示在 xrandr 上

Aat*_*ise 6 xrandr display multiple-monitors

按照 Prometheus在此处的回答,我正在尝试将平板电脑用作笔记本电脑的扩展显示器。

我已经到了应该用 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
Run Code Online (Sandbox Code Playgroud)

此时,提示$ 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
Run Code Online (Sandbox Code Playgroud)

所以有一种模式叫做1280x1024_60.00. 但是现在,尝试输出该模式,我得到

$ xrandr --output VGA-0 --mode 1280x1024_60.00
xrandr: cannot find mode 1280x1024_60.00
Run Code Online (Sandbox Code Playgroud)

我不明白,因为它看起来mode 1280x1024_60.00已成功添加。

任何建议或评论表示赞赏。提前致谢。

Sto*_*ord 3

On newmode, 1280x1024_60.00 用双引号括起来,而 onaddmodeoutputit 则没有。在这两个命令上也使用双引号。至少,这是正确的语法。另一个问题是您尝试将模式添加到断开连接的端口“ VGA-0 disconnected (normal left inverted right x axis y axis)”,但该模式不起作用。必须先连接端口。

从帖子的内容来看,您可能使用了不正确的端口。您的 VGA-0 端口用于通过 15 针 VGA 连接器连接实际显示器。