我刚买了一台 LG 25UM58 超宽显示器,并将其设置为与 Windows 配合使用(与 Ubuntu 20.04 双启动)。然而,在 Ubuntu 中,当我尝试使用以下过程添加模式时:
$ cvt 2560 1080 50
# 2560x1080 49.95 Hz (CVT) hsync: 55.65 kHz; pclk: 188.75 MHz
Modeline "2560x1080_50.00" 188.75 2560 2712 2976 3392 1080 1083 1093 1114 -hsync +vsync
$ xrandr --newmode "2560x1080_50.00" 188.75 2560 2712 2976 3392 1080 1083 1093 1114 -hsync +vsync
$ xrandr --addmode DP-0 2560x1080_50.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: 37
Current serial number in output stream: 38
我的 GPU 是 Nvidia Quadro K420,带有 1 个 DP(超宽显示器)和 1 个 DVI(普通显示器)。我尝试了不同的方法(甚至使用 noveau 驱动程序,这会导致 DVI 屏幕的分辨率混乱,并且无法检测到 DP 屏幕),但错误仍然存在。
更新:根据 codlord 的建议,这是我运行时的结果lshw -c video
:
*-display
description: VGA compatible controller
product: GK107GL [Quadro K420]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:128 memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:c0000-dffff
此外,结果如下xrandr
:
Screen 0: minimum 8 x 8, current 3840 x 1162, maximum 16384 x 16384
DVI-I-0 connected 1920x1080+1920+82 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.00*+
1680x1050 59.95
1600x900 60.00
1440x900 59.89
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 673mm x 284mm
1920x1080 60.00*+ 59.94 50.00 60.05 60.00 50.04
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
DP-1 disconnected (normal left inverted right x axis y axis)
2560x1080_60.00 (0x31c) 230.000MHz -HSync +VSync
h: width 2560 start 2720 end 2992 total 3424 skew 0 clock 67.17KHz
v: height 1080 start 1083 end 1093 total 1120 clock 59.98Hz
2560x1080_50.00 (0x326) 188.750MHz -HSync +VSync
h: width 2560 start 2712 end 2976 total 3392 skew 0 clock 55.65KHz
v: height 1080 start 1083 end 1093 total 1114 clock 49.95Hz
任何帮助深表感谢。
答案1
我会根据您的运行结果编辑您的问题xrandr
,lshw -c video
以便人们可以看到有关您的设置的更多详细信息。
我在一台电脑上安装了 2 个这种 LG 超宽屏幕(不确定具体型号),但在使用 Ubuntu 时从未出现过任何问题(我个人不使用任何专有驱动程序),它们只是被检测到并且可以正常工作,无需任何自定义设置。
我不知道 xrandr 显示的两个 LG 显示器的输出是否有助于您确定添加自定义模式的兼容设置?
HDMI-1 connected 2560x1080+0+1080 (normal left inverted right x axis y axis) 673mm x 284mm
2560x1080 60.00*+
1920x1080 60.00 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
DP-1 connected primary 2560x1080+0+0 (normal left inverted right x axis y axis) 798mm x 334mm
2560x1080 60.00*+
1920x1080 60.00 60.00 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
答案2
我必须安装驱动程序。“Windows”键 -> 输入“驱动程序”并选择“其他驱动程序”。然后选择显示“已测试”的驱动程序(链接中的屏幕截图)。然后重新启动。