自定义分辨率不会添加到显示中

自定义分辨率不会添加到显示中

我正在尝试添加自定义分辨率来显示,但是却无法添加。

到目前为止我已经尝试过:

1-首先看看我目前的决心

$ xrandr

输出 :

Screen 0: minimum 8 x 8, current 1024 x 768, maximum 4096 x 4096
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+
   1360x768       60.0     59.8  
   1152x864       60.0  
   800x600        72.2     60.3     56.2  
   680x384        60.0     59.8  
   640x480        59.9  
   576x432        60.1  
   512x384        60.0  
   400x300        72.2     60.3     56.3  
   320x240        60.1  
TV-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)

2-尝试使用 cvt (1280x768) 生成“模式行”

$ cvt 1280 768 60

输出:

  # 1280x768 59.87 Hz (CVT) hsync: 47.78 kHz; pclk: 79.50 MHz
  Modeline "1280x768_60.00"   79.50  1280 1344 1472 1664  768 771 781 798 -hsync +vsync

3-现在告诉 xrandr:

$ sudo xrandr --newmode "1280x768_60.00"   79.50  1280 1344 1472 1664  768 771 781 798 -hsync +vsync

4-最后 :

$ sudo xrandr --addmode VGA-0 "1280x768_60.00"

输出 :

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  18 (RRAddOutputMode)
  Serial number of failed request:  29
  Current serial number in output stream:  30

完成上述所有步骤后,再次:

$ xrandr

输出 :

Screen 0: minimum 8 x 8, current 1024 x 768, maximum 4096 x 4096
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768       60.0*+
   1360x768       60.0     59.8  
   1152x864       60.0  
   800x600        72.2     60.3     56.2  
   680x384        60.0     59.8  
   640x480        59.9  
   576x432        60.1  
   512x384        60.0  
   400x300        72.2     60.3     56.3  
   320x240        60.1  
TV-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
  1280x768_60.00 (0x27b)   79.5MHz
        h: width  1280 start 1344 end 1472 total 1664 skew    0 clock   47.8KHz
        v: height  768 start  771 end  781 total  798           clock   59.9Hz

如您所见,我的自定义分辨率(1280x768)未添加!

任何帮助都将非常有帮助。

相关内容