I've just bought an LG 25UM58 ultrawide monitor and set it to work with Windows (dual booting with Ubuntu 20.04). However, in Ubuntu, as I tried to add mode using the following process:
$ 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
My GPU is Nvidia Quadro K420 with 1 DP (ultrawide monitor) and 1 DVI (normal monitor). I have tried different ways (even using the noveau driver which leads to messed up resolution for DVI screen and DP screen became undetected) but the error persists.
UPDATED: Per codlord's suggestion, this is the result when I ran 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
Also, the result of 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
Any help is much appreciated.