我已经在 ubuntu 论坛上问过这个问题,但无法找到解决方案,请参阅: https://ubuntuforums.org/showthread.php?t=2341827
我的 1080p 显示器在 ubuntu 16.04 中卡在 1360x768 分辨率。我尝试向 xrandr 添加新模式,但最终出现此错误:
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: 45
Current serial number in output stream: 46
眼镜
显示器:华硕 VS247H-P
电缆:亚马逊基础 HDMI
显卡:技嘉windforce gtx970
驱动程序:nvidia-367(已尝试使用多个 nvidia 驱动程序)
这是我正在尝试的完整方法。
xrandr
Screen 0: minimum 8 x 8, current 1360 x 768, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00 +
1360x768 59.96* 59.80
1152x864 60.00
800x600 72.19 60.32 56.25
680x384 59.96 59.80
640x480 59.94
512x384 60.00
400x300 72.19
320x240 60.05
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
cvt 1920 1080# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode HDMI-0 "1920x1080_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: 45
Current serial number in output stream: 46
我对 ubuntu 还不熟悉,所以不确定哪些参数无效。另外,如果我让它工作,我该如何让它在启动时持续存在?
答案1
尝试:
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
或者:
xrandr --newmode "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -hsync +vsync
其次是:
xrandr --addmode HDMI-0 1920x1080_60.00
xrandr --output HDMI-0 --mode 1920x1080_60.00
--addmode
语法差异在于模式 for和周围的引号--output
。
否则 - 请参阅此处的相关答案:https://askubuntu.com/a/334404/73056并编辑 xorg.conf 以添加 Modlines。