sudo xrandr --addmode LVDS1 1976x1080_60.00 X 请求失败的错误:BadMatch(无效的参数属性)

当我尝试更改分辨率时,出现以下内容:
$ sudo xrandr --addmode LVDS1 1976x1080_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:  32
  Current serial number in output stream:  33

请帮助我。

1个回答

我不知道你是怎么做的,但这些是我发现的应该采取的步骤:
  1. 使用xrandr确保新模式可以适应最大的帧缓冲区大小:

    xrandr | grep maximum
    
  2. 使用gtf创建一个模式行:

    gtf 1440 900 59.9
    
    • 输出将会是这样的:

      # 1440x900 @ 59.90 Hz (GTF) hsync: 55.83 kHz; pclk: 106.29 MHz
      Modeline "1440x900_59.90"  106.29  1440 1520 1672 1904  900 901 904 932  -HSync +Vsync
      
  3. 使用xrandr添加从步骤2中得到的新模式

    xrandr --newmode "1440x900_59.90"  106.29  1440 1520 1672 1904  900 901 904 932  -HSync +Vsync
    
  4. 将这个新添加的模式添加到所需的输出(VGA/LVDS等)中:

    xrandr --addmode VGA 1440x900_59.90
    
  5. 选择新模式:

    xrandr --output VGA --mode 1440x900_59.90
    
注意:
根据您的查询,请将这些数字 1440x900_59.90 更改为 1976x1080_60.00
来源:

https://ubuntuforums.org/showthread.php?t=1112186

https://wiki.ubuntu.com/X/Config/Resolution#Adding%20undetected%20resolutions


13这些是在执行“--addmode”步骤时导致错误的步骤。 - JosephK