You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 23.04下DisplayPort无法添加自定义分辨率的问题求助

Ubuntu 23.04下DisplayPort无法添加自定义分辨率的问题求助

大家好,我刚安装了Ubuntu 23.04,发现没法在显示设置里把默认分辨率改成1920x1080之外的选项。尝试用xrandr --addmode添加自定义分辨率时遇到了报错,具体情况如下:

报错信息

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:  41
Current serial number in output stream:  42

我执行的操作步骤

  • 生成自定义分辨率的Modeline:
cvt 3840 2160 144

输出结果:

# 3840x2160 143.94 Hz (CVT) hsync: 338.25 kHz; pclk: 1829.25 MHz
Modeline "3840x2160_144.00"  1829.25  3840 4200 4624 5408  2160 2163 2168 2350 -hsync +vsync
  • 添加新的分辨率模式:
xrandr --newmode "3840x2160_144.00"  1829.25  3840 4200 4624 5408  2160 2163 2168 2350 -hsync +vsync
  • 将模式绑定到DP-0接口:
xrandr --addmode DP-0 3840x2160_144.00

执行这一步时就出现了上面的BadMatch报错。

当前xrandr输出信息

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 299mm
   1920x1080     60.00 + 144.00*  119.98    99.93    84.90
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)
HDMI-1 disconnected (normal left inverted right x axis y axis)
USB-C-0 disconnected (normal left inverted right x axis y axis)

补充信息

  • 不管是调高还是调低分辨率,都会遇到这个问题,系统里只有1920x1080这一个预设选项可用。但同样的硬件在Windows下可以正常设置4K@144。
  • 我的显示器是BenQ XL2420G,开启了G-SYNC,通过DisplayPort 1.4直连电脑,这个接口本身支持4K@144输出。
  • 当前使用的是NVIDIA官方闭源驱动nvidia-driver-535(最新测试版),试过切换到X.Org Nouveau开源驱动,但问题更糟:显示设置里分辨率选项直接锁定,用xrandr操作时又出现新报错:
    xrandr: Failed to get size of gamma for output default
    
  • 尝试过换HDMI线连接,但HDMI不支持G-SYNC,最高只能到1080P@60Hz,不符合需求。

有没有大佬能帮忙看看怎么解决这个问题?

备注:内容来源于stack exchange,提问作者SlareJ

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 08:23:11