Ayu*_*arg 8 xrandr display xorg display-resolution
当我尝试更改分辨率时,会出现以下情况:
$ 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
Run Code Online (Sandbox Code Playgroud)
请帮我。
我不知道你是怎么做的,但我发现应该使用以下步骤:
使用 xrandr 确保新模式可以适应最大帧缓冲区大小:
xrandr | grep maximum
Run Code Online (Sandbox Code Playgroud)使用 gtf 创建模式行:
gtf 1440 900 59.9
Run Code Online (Sandbox Code Playgroud)
输出如下所示:
# 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
Run Code Online (Sandbox Code Playgroud)step 2使用 xrandr添加新模式
xrandr --newmode "1440x900_59.90" 106.29 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
Run Code Online (Sandbox Code Playgroud)将这个新添加的模式添加到所需的输出(VGA/LVDS 等):
xrandr --addmode VGA 1440x900_59.90
Run Code Online (Sandbox Code Playgroud)选择新模式:
xrandr --output VGA --mode 1440x900_59.90
Run Code Online (Sandbox Code Playgroud)笔记:
根据您的查询更改这些1440x900_59.90数字1976x1080_60.00。
来源:
https://ubuntuforums.org/showthread.php?t=1112186
https://wiki.ubuntu.com/X/Config/Resolution#Adding%20unDetected%20resolutions