Manjaro Update, nVidia, Display resolution not quite right

Updated today (31 Dec 2020), had to move on to 5.9 or 5.10 kernel, and of course, update the nVidia drivers.

I figured out how to get nVidia’s proprietary drivers installed (I do wish to play graphically intense games), but the NVIDIA X Server Settings tool did not recognize my monitors as being 1440p displays, as they did before.

I read that I may modify /etc/X11/mhwd.d/nvidia.conf to add this line to help:

Option "ModeValidation" "AllowNonEdidModes"

This helped me gain 2048x1152, but still does not meet the upper limit of what my HPN HP 32 QHD monitors can do.

The nvidia.conf.nvidia-xconfig-original file did not have this line.

I’ve heard that sometimes nVidia has trouble reading the EDID modes properly from a monitor, and I wonder if there is something one may do to correct this.

From this command:

xrandr --verbose  | edid-decode

I get the following output:

edid-decode (hex):

00 ff ff ff ff ff ff 00 22 0e 0c 36 01 01 01 01
2b 1d 01 03 80 47 28 78 2a f8 a5 a6 56 4e a1 25
0d 50 54 a1 08 00 d1 c0 a9 c0 81 c0 d1 00 b3 00
95 00 81 80 a9 40 56 5e 00 a0 a0 a0 29 50 30 20
35 00 c5 8f 21 00 00 1a 00 00 00 fd 00 26 4c 18
70 22 00 0a 20 20 20 20 20 20 00 00 00 fc 00 48
50 20 33 32 20 51 48 44 0a 20 20 20 00 00 00 ff
00 43 4e 4b 39 34 33 31 4d 43 53 0a 20 20 01 10

02 03 2a f1 49 10 1f 04 13 03 12 02 11 01 23 09
07 07 83 01 00 00 67 03 0c 00 10 00 00 44 68 1a
00 00 01 01 26 4b ed e2 00 2b 02 3a 80 18 71 38
2d 40 58 2c 45 00 c5 8f 21 00 00 1e 02 3a 80 d0
72 38 2d 40 10 2c 45 80 c5 8f 21 00 00 1e d9 76
00 a0 a0 a0 34 50 30 20 35 00 c5 8f 21 00 00 1a
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6d

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.3
  Vendor & Product Identification:
    Manufacturer: HPN
    Model: 13836
    Serial Number: 16843009
    Made in: week 43 of 2019
  Basic Display Parameters & Features:
    Digital display
    Maximum image size: 71 cm x 40 cm
    Gamma: 2.20
    DPMS levels: Off
    RGB color display
    First detailed timing is the preferred timing
  Color Characteristics:
    Red  : 0.6513, 0.3388
    Green: 0.3066, 0.6289
    Blue : 0.1464, 0.0527
    White: 0.3134, 0.3291
  Established Timings I & II:
    IBM     :   720x400    70.082 Hz   9:5    31.467 kHz  28.320 MHz
    DMT 0x04:   640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz
    DMT 0x09:   800x600    60.317 Hz   4:3    37.879 kHz  40.000 MHz
    DMT 0x10:  1024x768    60.004 Hz   4:3    48.363 kHz  65.000 MHz
  Standard Timings:
    DMT 0x52:  1920x1080   60.000 Hz  16:9    67.500 kHz 148.500 MHz
    DMT 0x53:  1600x900    60.000 Hz  16:9    60.000 kHz 108.000 MHz (RB)
    DMT 0x55:  1280x720    60.000 Hz  16:9    45.000 kHz  74.250 MHz
    DMT 0x45:  1920x1200   59.885 Hz  16:10   74.556 kHz 193.250 MHz
    DMT 0x3a:  1680x1050   59.954 Hz  16:10   65.290 kHz 146.250 MHz
    DMT 0x2f:  1440x900    59.887 Hz  16:10   55.935 kHz 106.500 MHz
    DMT 0x23:  1280x1024   60.020 Hz   5:4    63.981 kHz 108.000 MHz
    DMT 0x33:  1600x1200   60.000 Hz   4:3    75.000 kHz 162.000 MHz
  Detailed Timing Descriptors:
    DTD 1:  2560x1440   59.951 Hz  16:9    88.787 kHz 241.500 MHz (709 mm x 399 mm)
                 Hfront   48 Hsync  32 Hback  80 Hpol P
                 Vfront    3 Vsync   5 Vback  33 Vpol N
  Display Range Limits:
    Monitor ranges (GTF): 38-76 Hz V, 24-112 kHz H, max dotclock 340 MHz
    Display Product Name: 'HP 32 QHD'
    Display Product Serial Number: 'CNK9431MCS'
  Extension blocks: 1
Checksum: 0x10

----------------

Block 1, CTA-861 Extension Block:
  Revision: 3
  Underscans IT Video Formats by default
  Basic audio support
  Supports YCbCr 4:4:4
  Supports YCbCr 4:2:2
  Native detailed modes: 1
  Video Data Block:
    VIC  16:  1920x1080   60.000 Hz  16:9    67.500 kHz 148.500 MHz
    VIC  31:  1920x1080   50.000 Hz  16:9    56.250 kHz 148.500 MHz
    VIC   4:  1280x720    60.000 Hz  16:9    45.000 kHz  74.250 MHz
    VIC  19:  1280x720    50.000 Hz  16:9    37.500 kHz  74.250 MHz
    VIC   3:   720x480    59.940 Hz  16:9    31.469 kHz  27.000 MHz
    VIC  18:   720x576    50.000 Hz  16:9    31.250 kHz  27.000 MHz
    VIC   2:   720x480    59.940 Hz   4:3    31.469 kHz  27.000 MHz
    VIC  17:   720x576    50.000 Hz   4:3    31.250 kHz  27.000 MHz
    VIC   1:   640x480    59.940 Hz   4:3    31.469 kHz  25.175 MHz
  Audio Data Block:
    Linear PCM:
      Max channels: 2
      Supported sample rates (kHz): 48 44.1 32
      Supported sample sizes (bits): 24 20 16
  Speaker Allocation Data Block:
    FL/FR - Front Left/Right
  Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
    Source physical address: 1.0.0.0
    Maximum TMDS clock: 340 MHz
  Vendor-Specific Data Block (AMD), OUI 00-00-1A:
    01 01 26 4b ed                                  '..&K.'
  Video Capability Data Block:
    YCbCr quantization: No Data
    RGB quantization: No Data
    PT scan behavior: Always Underscanned
    IT scan behavior: Always Underscanned
    CE scan behavior: Supports both over- and underscan
  Detailed Timing Descriptors:
    DTD 2:  1920x1080   60.000 Hz  16:9    67.500 kHz 148.500 MHz (709 mm x 399 mm)
                 Hfront   88 Hsync  44 Hback 148 Hpol P
                 Vfront    4 Vsync   5 Vback  36 Vpol P
    DTD 3:  1920x1080   50.000 Hz  16:9    56.250 kHz 148.500 MHz (709 mm x 399 mm)
                 Hfront  528 Hsync  44 Hback 148 Hpol P
                 Vfront    4 Vsync   5 Vback  36 Vpol P
    DTD 4:  2560x1440   74.971 Hz  16:9   111.857 kHz 304.250 MHz (709 mm x 399 mm)
                 Hfront   48 Hsync  32 Hback  80 Hpol P
                 Vfront    3 Vsync   5 Vback  44 Vpol N
Checksum: 0x6d

I feel I must be close to some kind of solution, but I haven’t quite figured out how to get this EDID recognized properly.

I’ve tried using some output from cvt for the desired resolution and incorporating that into the nvidia.conf file, or using xrandr to do stuff with it, but it doesn’t work… when I try to use the 2560x1440 mode with the monitor, I get an error:

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

(And for the curious:)

Screen 0: minimum 8 x 8, current 4096 x 1152, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected primary 2048x1152+2048+0 (normal left inverted right x axis y axis) 710mm x 400mm
   1920x1080     60.00 +  59.94    59.93    50.00  
   2048x1152     59.91* 
   1920x1200     59.95  
   1680x1050     59.95    59.88  
   1600x1200     60.00  
   1600x900      60.00    59.95    59.82  
   1440x900      59.89  
   1440x810      59.97  
   1400x1050     74.76    59.98  
   1400x900      59.96    59.88  
   1368x768      59.88    59.85  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.91    59.81    59.97  
   1280x720      60.00    59.94    59.86    59.74    50.00    60.00    59.99  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00    60.04  
   1024x576      59.90    59.82    59.96    59.95  
   960x720       75.00    60.00  
   960x600       60.00    59.93  
   960x540       59.82    59.63    59.99    59.96  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   864x486       59.92    59.57  
   840x525       60.01    59.88  
   832x624       74.55  
   800x600       75.00    72.19    60.32    56.25    75.00    70.00    65.00    60.00  
   800x450       59.95    59.82  
   720x576       50.00  
   720x480       59.94  
   720x405       59.51    58.99  
   700x525       74.76    59.98  
   700x450       59.96    59.88  
   684x384       59.88    59.85  
   640x512       75.02    60.02  
   640x480       75.00    72.81    59.93    59.94    60.00  
   640x400       59.98    59.88  
   640x360       59.86    59.83  
   576x432       75.00  
   512x384       75.03    70.07    60.00  
   512x288       60.00    59.92  
   480x270       59.82    59.63  
   432x243       59.92    59.57  
   416x312       74.66  
   400x300       75.12    72.19    60.32    56.34  
   360x202       59.51    59.13  
   320x240       75.00    72.81    60.05  
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 connected 2048x1152+0+0 (normal left inverted right x axis y axis) 710mm x 400mm
   1920x1080     60.00 +  59.94    59.93    50.00  
   2048x1152     59.91* 
   1920x1200     59.95  
   1680x1050     59.95    59.88  
   1600x1200     60.00  
   1600x900      60.00    59.95    59.82  
   1440x900      59.89  
   1440x810      59.97  
   1400x1050     74.76    59.98  
   1400x900      59.96    59.88  
   1368x768      59.88    59.85  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.91    59.81    59.97  
   1280x720      60.00    59.94    59.86    59.74    50.00    60.00    59.99  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00    60.04  
   1024x576      59.90    59.82    59.96    59.95  
   960x720       75.00    60.00  
   960x600       60.00    59.93  
   960x540       59.82    59.63    59.99    59.96  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   864x486       59.92    59.57  
   840x525       60.01    59.88  
   832x624       74.55  
   800x600       75.00    72.19    60.32    56.25    75.00    70.00    65.00    60.00  
   800x450       59.95    59.82  
   720x576       50.00  
   720x480       59.94  
   720x405       59.51    58.99  
   700x525       74.76    59.98  
   700x450       59.96    59.88  
   684x384       59.88    59.85  
   640x512       75.02    60.02  
   640x480       75.00    72.81    59.93    59.94    60.00  
   640x400       59.98    59.88  
   640x360       59.86    59.83  
   576x432       75.00  
   512x384       75.03    70.07    60.00  
   512x288       60.00    59.92  
   480x270       59.82    59.63  
   432x243       59.92    59.57  
   416x312       74.66  
   400x300       75.12    72.19    60.32    56.34  
   360x202       59.51    59.13  
   320x240       75.00    72.81    60.05  
USB-C-0 disconnected (normal left inverted right x axis y axis)
  2560x1440_60.00 (0x288) 312.250MHz -HSync +VSync
        h: width  2560 start 2752 end 3024 total 3488 skew    0 clock  89.52KHz
        v: height 1440 start 1443 end 1448 total 1493           clock  59.96Hz

So… any ideas?

I’m moving on… the problem has nothing to do with nVidia, as I replaced the card with a Radeon 5700 XT, but still have this problem.

I have a different thread where I’ve focused on Xorg, adding more logging related to the issue as I try to figure it out.