如何解决“ xrandr:找不到输出的crtc”?


16

每当我上班时,我都会输入

xrandr --auto
xrandr --output VGA1 --right-of LVDS1

这使我的第二个显示器正常工作,但是现在我得到了

xrandr: cannot find crtc for output VGA1

作为参考,这里是xrandr的输出,

Screen 0: minimum 320 x 200, current 3286 x 1080, maximum 8192 x 8192
LVDS1 connected 1366x768+1920+0 (normal left inverted right x axis y axis) 277mm x 156mm
   1366x768       60.0*+
   1360x768       59.8     60.0  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 connected (normal left inverted right x axis y axis)
   1680x1050      59.9 +
   1600x1200      60.0  
   1680x945       60.0  
   1400x1050      74.9     60.0  
   1600x900       60.0  
   1280x1024      75.0     60.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       74.9     59.8  
   1152x864       75.0  
   1280x768       74.9     59.9  
   1280x720       60.0  
   1024x768       75.1     70.1     60.0  
   1024x576       60.0  
   832x624        74.6  
   800x600        72.2     75.0     60.3     56.2  
   848x480        60.0  
   640x480        72.8     75.0     66.7     60.0  
   720x400        70.1  
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
DP2 disconnected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
DP3 disconnected (normal left inverted right x axis y axis)
  1920x1080 (0x1df)  148.5MHz
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock   67.5KHz
        v: height 1080 start 1084 end 1089 total 1125           clock   60.0Hz

Answers:


15

发生这种情况的原因是,在这种情况下,您已经激活了另一个屏幕DP2DP2这是从DisplayPort运行的监视器。该笔记本电脑是Lenovo x230,并通过Ultrabase 3扩展坞启动。

您只需使用以下方法关闭屏幕,即可解决此问题:

xrandr --output DP2 --off

现在,在XFCE或类似的工作站中,您应该看到桌面区域缩小了。然后,您可以xrandr像往常一样继续运行命令,

xrandr --auto
xrandr ...

3
您有更多信息的来源吗?或者,您是否知道解决此问题而不断开第二个显示器的连接(我喜欢设置三个显示器)?谢谢
RSFalcon7 2014年

1
我发现这有助于关闭断开的输出。有时候,我不得不将其关闭独立,开启新的输出之前,以避免错误“无法找到CRTC输出”。更多信息:github.com/wertarbyte/autorandr/pull/16
seanf
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.