Incorrect monitor resolution - Ubuntu

I have an external monitor connected through HDMI with a 3440x1440 max resolution, but I’m getting 1600x900 top.

Interestingly enough, the monitor works as expected on Windows 10.

When I check the EDID value of my monitor with get-edid -b 10 | parse-edid, I get the following:

This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
Only trying 10 as per your request.
256-byte EDID successfully retrieved from i2c bus 10
Looks like i2c was successful. Have a good day.
Checksum Correct

Section "Monitor"
	Identifier "MSI MAG341CQ"
	ModelName "MSI MAG341CQ"
	VendorName "MSI"
	# Monitor Manufactured week 44 of 2018
	# EDID version 1.3
	# Digital Display
	DisplaySize 800 330
	Gamma 2.20
	Option "DPMS" "true"
	Horizsync 222-222
	VertRefresh 48-100
	# Maximum pixel clock is 10MHz
	#Not giving standard mode: 1024x768, 60Hz
	#Not giving standard mode: 1280x1024, 60Hz
	#Not giving standard mode: 1440x810, 60Hz
	#Not giving standard mode: 1680x1260, 60Hz
	#Not giving standard mode: 1280x1024, 100Hz
	#Not giving standard mode: 1920x1080, 100Hz
	#Not giving standard mode: 1680x1050, 100Hz
	#Not giving standard mode: 1920x1080, 60Hz

	#Extension block found. Parsing...
Extension block checksum failed

Having this portion of xrandr output:

xrandr 
Screen 0: minimum 8 x 8, current 3520 x 1080, maximum 32767 x 32767
HDMI-0 connected 1600x900+1920+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00 +
   1600x900      59.82* 
   1400x900      59.88  
   1368x768      59.88    59.85  
   1360x768      59.96    59.80  
   1280x800      59.91    59.81  
   1280x720      59.86    59.74  
   1152x864      60.00  
   1024x576      59.90    59.82  
   960x540       59.82    59.63  
   864x486       59.92    59.57  
   800x600       72.19    60.32    56.25  
   800x450       59.82  
   700x450       59.88  
   684x384       59.88    59.85  
   680x384       59.96    59.80  
   640x480       59.94  
   640x400       59.98    59.88  
   640x360       59.86    59.83  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.82    59.63  
   432x243       59.92    59.57  
   400x300       72.19

. . .

Trying the following:

~ # cvt 3440 1440 60
# 3440x1440 59.94 Hz (CVT) hsync: 89.48 kHz; pclk: 419.50 MHz
Modeline "3440x1440_60.00"  419.50  3440 3696 4064 4688  1440 1443 1453 1493 -hsync +vsync

~ # xrandr --newmode "3440x1440_60.00"  419.50  3440 3696 4064 4688  1440 1443 1453 1493 -hsync +vsync
~ # xrandr --addmode "HDMI-0" "3440x1440_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:  50
  Current serial number in output stream:  51

I tried creating a new mode on /usr/share/X11/xorg.conf.d/10-monitor.conf with the following content:

Section "Monitor"
  Identifier "Monitor0"
  Modeline "3440x1440_60.00"  419.11  3440 3688 4064 4688  1440 1441 1444 1490  -HSync +Vsync
EndSection
Section "Screen"
  Identifier "Screen0"
  Device "HDMI-0"
  Monitor "Monitor0"
  DefaultDepth 24
  SubSection "Display"
    Depth 24
    Modes "3440x1440_60.00"
  EndSubSection
EndSection

… but it doesn’t work. Checking /var/log/Xorg.0.log, I get the following:

[    20.677] (--) NVIDIA(GPU-0): DFP-0: connected
[    20.677] (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
[    20.677] (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
[    20.677] (--) NVIDIA(GPU-0):
[    20.682] (WW) NVIDIA(0): No valid modes for "DFP-0:3440x1440_60.00"; removing.
[    20.682] (WW) NVIDIA(0):
[    20.682] (WW) NVIDIA(0): Unable to validate any modes; falling back to the default mode
[    20.682] (WW) NVIDIA(0):     "nvidia-auto-select".
[    20.682] (WW) NVIDIA(0):
[    20.682] (II) NVIDIA(0): Validated MetaModes:
[    20.682] (II) NVIDIA(0):     "DFP-0:nvidia-auto-select"
[    20.682] (II) NVIDIA(0): Virtual screen size determined to be 1024 x 768
[    20.689] (WW) NVIDIA(0): DFP-0 does not have an EDID, or its EDID does not contain a
[    20.689] (WW) NVIDIA(0):     maximum image size; cannot compute DPI from DFP-0's EDID.

Details:

  • Ubuntu 18.04.4 LTS
  • GeForce GTX 1050 Ti
  • Nvidia driver version: 450.57

Anyone have a solution for this?