Monitor resolution problems after updating

Hello people, new linux user here.

After updating from a fresh i3 installation (kernel-headers-5.17.0 → kernel-headers-6.0.5), I’ve immediately encountered issues with my main monitor displaying black bars, flickering and weird colors. This went away after installing akmod-nvidia-3:520.

However, I’m now missing resolutions for my main monitor. For example, I had access to 2560x1440_60.00 in xrandr before. Now, my highest resolutions are either “3840x2160_30.00” or “2048x1080_60.00” with no in-between.

Another problem I have is that my 4K resolution “3840x2160_30.00” is capped at 30Hz in display port. I’m positive my main monitor can run 4K@60Hz since it’s what I’m running on Windows. I have a Philips 288P6LJ for reference.

Here is my xrandr:

Screen 0: minimum 8 x 8, current 5280 x 2560, maximum 32767 x 32767
DP-0 connected primary 3840x2160+1440+200 (normal left inverted right x axis y axis) 621mm x 341mm
   3840x2160     29.98*+  29.97    25.00    23.98  
   2048x1080     59.99  
   1920x1080     60.00    59.94    50.00  
   1680x1050     59.95  
   1440x900      74.98    59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1440x2560+0+0 left (normal left inverted right x axis y axis) 527mm x 296mm
   2560x1440     59.95*+
   1920x1080     60.00    59.94    50.00  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.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-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

Here is my /sys/class/drm/card0-DP-1/edid:

edid-decode (hex):

00 ff ff ff ff ff ff 00 41 0c f2 08 22 0a 00 00
0b 1a 01 04 b5 3e 22 78 3a 55 25 a1 57 4f a0 28
0f 50 54 bd 4b 00 d1 c0 81 80 81 40 95 0f 95 00
b3 00 81 c0 01 01 4d d0 00 a0 f0 70 3e 80 30 20
35 00 6d 55 21 00 00 1a a3 66 00 a0 f0 70 1f 80
30 20 35 00 6d 55 21 00 00 1a 00 00 00 fc 00 50
48 4c 20 32 38 38 50 36 4c 0a 20 20 00 00 00 fd
00 17 50 1e a0 3c 01 0a 20 20 20 20 20 20 01 6d

02 03 26 f1 4b 10 1f 04 13 03 12 02 11 01 05 14
23 09 07 07 83 01 00 00 6d 03 0c 00 10 00 19 78
20 00 60 01 02 03 8c 0a d0 8a 20 e0 2d 10 10 3e
96 00 6d 55 21 00 00 18 01 1d 00 72 51 d0 1e 20
6e 28 55 00 6d 55 21 00 00 1e 02 3a 80 d0 72 38
2d 40 10 2c 45 80 6d 55 21 00 00 1e 7d 39 00 a0
80 38 1f 40 30 20 3a 00 6d 55 21 00 00 1a 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30

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

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.4
  Vendor & Product Identification:
    Manufacturer: PHL
    Model: 2290
    Serial Number: 2594
    Made in: week 11 of 2016
  Basic Display Parameters & Features:
    Digital display
    Bits per primary color channel: 10
    DisplayPort interface
    Maximum image size: 62 cm x 34 cm
    Gamma: 2.20
    DPMS levels: Off
    Supported color formats: RGB 4:4:4, YCrCb 4:4:4, YCrCb 4:2:2
    First detailed timing includes the native pixel format and preferred refresh rate
  Color Characteristics:
    Red  : 0.6298, 0.3408
    Green: 0.3095, 0.6259
    Blue : 0.1562, 0.0605
    White: 0.3134, 0.3291
  Established Timings I & II:
    IBM     :   720x400    70.081663 Hz   9:5     31.467 kHz     28.320000 MHz
    DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    Apple   :   640x480    66.666667 Hz   4:3     35.000 kHz     30.240000 MHz
    DMT 0x05:   640x480    72.808802 Hz   4:3     37.861 kHz     31.500000 MHz
    DMT 0x06:   640x480    75.000000 Hz   4:3     37.500 kHz     31.500000 MHz
    DMT 0x09:   800x600    60.316541 Hz   4:3     37.879 kHz     40.000000 MHz
    DMT 0x0b:   800x600    75.000000 Hz   4:3     46.875 kHz     49.500000 MHz
    DMT 0x10:  1024x768    60.003840 Hz   4:3     48.363 kHz     65.000000 MHz
    DMT 0x12:  1024x768    75.028582 Hz   4:3     60.023 kHz     78.750000 MHz
    DMT 0x24:  1280x1024   75.024675 Hz   5:4     79.976 kHz    135.000000 MHz
  Standard Timings:
    DMT 0x52:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
    DMT 0x23:  1280x1024   60.019740 Hz   5:4     63.981 kHz    108.000000 MHz
    DMT 0x20:  1280x960    60.000000 Hz   4:3     60.000 kHz    108.000000 MHz
    DMT 0x30:  1440x900    74.984427 Hz  16:10    70.635 kHz    136.750000 MHz
    DMT 0x2f:  1440x900    59.887445 Hz  16:10    55.935 kHz    106.500000 MHz
    DMT 0x3a:  1680x1050   59.954250 Hz  16:10    65.290 kHz    146.250000 MHz
    DMT 0x55:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
  Detailed Timing Descriptors:
    DTD 1:  3840x2160   59.996625 Hz  16:9    133.312 kHz    533.250000 MHz (621 mm x 341 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   5 Vback   54 Vpol N
    DTD 2:  3840x2160   29.980602 Hz  16:9     65.688 kHz    262.750000 MHz (621 mm x 341 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync   5 Vback   23 Vpol N
    Display Product Name: 'PHL 288P6L'
    Display Range Limits:
      Monitor ranges (Bare Limits): 23-80 Hz V, 30-160 kHz H, max dotclock 600 MHz
  Extension blocks: 1
Checksum: 0x6d

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

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.000000 Hz  16:9     67.500 kHz    148.500000 MHz
    VIC  31:  1920x1080   50.000000 Hz  16:9     56.250 kHz    148.500000 MHz
    VIC   4:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz
    VIC  19:  1280x720    50.000000 Hz  16:9     37.500 kHz     74.250000 MHz
    VIC   3:   720x480    59.940060 Hz  16:9     31.469 kHz     27.000000 MHz
    VIC  18:   720x576    50.000000 Hz  16:9     31.250 kHz     27.000000 MHz
    VIC   2:   720x480    59.940060 Hz   4:3     31.469 kHz     27.000000 MHz
    VIC  17:   720x576    50.000000 Hz   4:3     31.250 kHz     27.000000 MHz
    VIC   1:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    VIC   5:  1920x1080i  60.000000 Hz  16:9     33.750 kHz     74.250000 MHz
    VIC  20:  1920x1080i  50.000000 Hz  16:9     28.125 kHz     74.250000 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
    DC_30bit
    DC_Y444
    DVI_Dual
    Maximum TMDS clock: 600 MHz
    Extended HDMI video details:
      HDMI VICs:
        HDMI VIC 1:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
        HDMI VIC 2:  3840x2160   25.000000 Hz  16:9     56.250 kHz    297.000000 MHz
        HDMI VIC 3:  3840x2160   24.000000 Hz  16:9     54.000 kHz    297.000000 MHz
  Detailed Timing Descriptors:
    DTD 3:   720x480    59.940060 Hz   3:2     31.469 kHz     27.000000 MHz (621 mm x 341 mm)
                 Hfront   16 Hsync  62 Hback   60 Hpol N
                 Vfront    9 Vsync   6 Vback   30 Vpol N
    DTD 4:  1280x720    60.000000 Hz  16:9     45.000 kHz     74.250000 MHz (621 mm x 341 mm)
                 Hfront  110 Hsync  40 Hback  220 Hpol P
                 Vfront    5 Vsync   5 Vback   20 Vpol P
    DTD 5:  1920x1080   50.000000 Hz  16:9     56.250 kHz    148.500000 MHz (621 mm x 341 mm)
                 Hfront  528 Hsync  44 Hback  148 Hpol P
                 Vfront    4 Vsync   5 Vback   36 Vpol P
    DTD 6:  2048x1080   59.993771 Hz 256:135   66.653 kHz    147.170000 MHz (621 mm x 341 mm)
                 Hfront   48 Hsync  32 Hback   80 Hpol P
                 Vfront    3 Vsync  10 Vback   18 Vpol N
Checksum: 0x30  Unused space in Extension Block: 17 bytes

I’ve tried adding new modes in xrandr using gtf and the modeline from the edid. Despite that, every time I enter xrandr --addmode DP-0 “2560x1440_60.00”, I’d get an error such as this one:

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:  43
  Current serial number in output stream:  44

I’m running X11. Any help would be much appreciated.

The monitor is capable of that, but is the GPU?
The system picks a value that is supported by both GPU and monitor.

I’d be surprised if the display card is that limited. But I can’t know for sure from a distance.

I have a much older nvidia GPU and no problems spanning two displays each 1620x2880_60, so a combined display area of 3840x2880_60

There is lots of online info on a variety of methods to coerce X11 into modes it thinks the display can’t support. Coercing into modes it thinks the card can’t handle or it thinks the connector type can’t handle is quite a bit harder.

I would expect a lot of the info on what is going wrong with display modes would be in /var/log/Xorg.0.log but may be hard to spot in that verbose and confusing mess.

Mine gives (confusing) info on the maximum pixel clock for various components, including each port of the display card. That text might be worth searching for and maybe quote it and some of the surrounding lines.

You also probably should search for nouveau to make sure either it is really blacklisted (fails to load) or at least semi-blacklisted (loads and then unloads without getting used).