https://bugs.kde.org/show_bug.cgi?id=520534

            Bug ID: 520534
           Summary: Regression: KDE defaults to refresh rate that monitor
                    does not support
    Classification: Plasma
           Product: plasma-login-manager
      Version First 6.6.4
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: critical
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
  Target Milestone: ---

Created attachment 192551
  --> https://bugs.kde.org/attachment.cgi?id=192551&action=edit
monitor showing error when system runs at 75Hz

DESCRIPTION

My workstation originally ran Fedora 39 KDE (and later Fedora KDE 40, 41, 42,
43) for years with this same Philips PHL 273V7 monitor and never had any issues
with my monitor.

A few days ago my boot drive failed, so I did a clean reinstall of Fedora 44
KDE.

Since then I have this problem where the monitor shows that system is using
unsupported resolutuion:

After running the Fedora 44 KDE - USB Live Boot, I got presented with an error
message on my monitor - "Unsupported mode 1920×1080 @ 75 Hz, change to @60HZ".

I was able to workaround this during the install by connecting very old monitor
and changing the setting from 75Hz to 60Hz.

After installing the KDE, I had exact same issue, so I had to connect old
monitor again, and force 60Hz.
I also had to go to Login Screen setting, and apply 'Plasma Settings' , so
login manager would also run at 60Hz, else I need to type the password
'blindly' to get it.

The unfortunate part is that the monitor EDID's clearly says 75Hz is supported,
while it's not.
EDID also shows that 60Hz is the preferred timing.

I think KDE should be picking preferred timing vs highest refresh rate from the
EDID.
Also, maybe we should 'blacklist' the 75Hz from this specific monitor, so it
does not get shown as a possible option in the refresh rate picker in the UI.


STEPS TO REPRODUCE
1. Boot Fedora KDE 44 either Live USB or install it (both have this issue) with
Philips PHL 273V7 connected via HDMI

OBSERVED RESULT
After the system boots - monitor will show 'Unsupported refresh rate'

EXPECTED RESULT
Monitor should work

SOFTWARE/OS VERSIONS
```
$ kinfo
Operating System: Fedora Linux 44
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.25.0
Qt Version: 6.10.2
Kernel Version: 7.0.9-205.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 96 GiB of RAM (93.3 GiB usable)
Graphics Processor 1: NVIDIA GeForce RTX 4070 Ti
Graphics Processor 2: AMD Ryzen 9 7900X 12-Core Processor
```

ADDITIONAL INFORMATION

Output from `monitor-edid` command:
```
$ monitor-edid
Name: PHL 273V7
EISA ID: PHLc156
EDID version: 1.4
EDID extension blocks: 1
Screen size: 59.8 cm x 33.6 cm (27.01 inches, aspect ratio 16/9 = 1.78)
Gamma: 2.2
Digital signal
Max video bandwidth: 170 MHz

        HorizSync 30-83
        VertRefresh 50-76

        # Monitor preferred modeline (60.0 Hz vsync, 67.5 kHz hsync, ratio
16/9, 81 dpi)
        ModeLine "1920x1080" 148.5 1920 2008 2052 2200 1080 1084 1089 1125
+hsync +vsync

        # Monitor supported modeline (75.0 Hz vsync, 83.9 kHz hsync, ratio
16/9, 81 dpi)
        ModeLine "1920x1080" 174.5 1920 1968 2000 2080 1080 1083 1088 1119
-hsync +vsync

        # Monitor supported CEA modeline (60.0 Hz vsync, 67.5 kHz hsync, ratio
16/9, 81 dpi)
        ModeLine "1920x1080" 148.5 1920 2008 2052 2200 1080 1084 1089 1125
+hsync +vsync

        # Monitor supported CEA modeline (50.0 Hz vsync, 56.2 kHz hsync, ratio
16/9, 81 dpi)
        ModeLine "1920x1080" 148.5 1920 2448 2492 2640 1080 1084 1089 1125
+hsync +vsync

        # Monitor supported CEA modeline (60.0 Hz vsync, 33.8 kHz hsync,
interlaced, ratio 16/9, 81 dpi)
        ModeLine "1920x1080" 74.25 1920 2008 2052 2200 1080 1084 1094 1125
+hsync +vsync Interlace

        # Monitor supported CEA modeline (50.0 Hz vsync, 28.1 kHz hsync,
interlaced, ratio 16/9, 81 dpi)
        ModeLine "1920x1080" 74.25 1920 2448 2492 2640 1080 1084 1094 1125
+hsync +vsync Interlace

        # Monitor supported CEA modeline (60.0 Hz vsync, 45.0 kHz hsync, ratio
16/9, 54 dpi)
        ModeLine "1280x720" 74.25 1280 1390 1430 1650 720 725 730 750 +hsync
+vsync

        # Monitor supported CEA modeline (50.0 Hz vsync, 37.5 kHz hsync, ratio
16/9, 54 dpi)
        ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750 +hsync
+vsync

        # Monitor supported CEA modeline (59.9 Hz vsync, 31.5 kHz hsync, ratio
3/2, 30x36 dpi) (bad ratio)
        ModeLine "720x480" 27 720 736 798 858 480 489 495 525 -hsync -vsync

        # Monitor supported CEA modeline (50.0 Hz vsync, 31.2 kHz hsync, ratio
5/4, 30x43 dpi) (bad ratio)
        ModeLine "720x576" 27 720 732 796 864 576 581 586 625 -hsync -vsync

        # Monitor supported CEA modeline (59.9 Hz vsync, 31.5 kHz hsync, ratio
3/2, 30x36 dpi) (bad ratio)
        ModeLine "720x480" 27 720 736 798 858 480 489 495 525 -hsync -vsync

        # Monitor supported CEA modeline (50.0 Hz vsync, 31.2 kHz hsync, ratio
5/4, 30x43 dpi) (bad ratio)
        ModeLine "720x576" 27 720 732 796 864 576 581 586 625 -hsync -vsync

        # Monitor supported CEA modeline (59.9 Hz vsync, 31.5 kHz hsync, ratio
4/3, 27x36 dpi) (bad ratio)
        ModeLine "640x480" 25.175 640 656 752 800 480 490 492 525 -hsync -vsync

        # Monitor supported modeline (59.9 Hz vsync, 31.5 kHz hsync, ratio 3/2,
30x36 dpi) (bad ratio)
        ModeLine "720x480" 27 720 736 798 858 480 489 495 525 -hsync -vsync

        # Monitor supported modeline (60.0 Hz vsync, 45.0 kHz hsync, ratio
16/9, 54 dpi)
        ModeLine "1280x720" 74.25 1280 1390 1430 1650 720 725 730 750 +hsync
+vsync

        # Monitor supported modeline (59.9 Hz vsync, 31.5 kHz hsync, ratio 3/2,
30x36 dpi) (bad ratio)
        ModeLine "720x480" 27 720 736 798 858 480 489 495 525 -hsync -vsync

        # Monitor supported modeline (50.0 Hz vsync, 31.2 kHz hsync, ratio 5/4,
30x43 dpi) (bad ratio)
        ModeLine "720x576" 27 720 732 796 864 576 581 586 625 -hsync -vsync
```

plasma-login settings file:
```
$ sudo cat /var/lib/plasmalogin/.config/kwinoutputconfig.json
[
    {
        "data": [
            {
                "allowDdcCi": true,
                "allowSdrSoftwareBrightness": true,
                "autoBrightnessCurve": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "autoRotation": "InTabletMode",
                "automaticBrightness": false,
                "brightness": 1,
                "colorPowerTradeoff": "PreferEfficiency",
                "colorProfileSource": "sRGB",
                "connectorName": "DP-4",
                "detectedDdcCi": false,
                "edidHash": "2141223c137c5d9f9aa33288e8ad329f",
                "edidIdentifier": "PHL 49494 14440 41 2020 0",
                "edrPolicy": "always",
                "highDynamicRange": false,
                "iccProfilePath": "",
                "maxBitsPerColor": 0,
                "mode": {
                    "height": 1080,
                    "refreshRate": 74973,
                    "width": 1920
                },
                "overscan": 0,
                "rgbRange": "Automatic",
                "scale": 1,
                "sdrBrightness": 200,
                "sdrGamutWideness": 0,
                "sharpness": 0,
                "transform": "Normal",
                "uuid": "e99843cf-becb-467d-af20-b34312641a97",
                "vrrPolicy": "Never",
                "wideColorGamut": false
            },
            {
                "allowDdcCi": true,
                "allowSdrSoftwareBrightness": true,
                "autoBrightnessCurve": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "autoRotation": "InTabletMode",
                "automaticBrightness": false,
                "brightness": 1,
                "colorPowerTradeoff": "PreferEfficiency",
                "colorProfileSource": "sRGB",
                "connectorName": "HDMI-A-2",
                "detectedDdcCi": false,
                "edidHash": "4c5562c4606b24da42b1df41fd83f45a",
                "edidIdentifier": "MPI 28674 1 1 2007 0",
                "edrPolicy": "always",
                "highDynamicRange": false,
                "iccProfilePath": "",
                "mode": {
                    "height": 600,
                    "refreshRate": 60044,
                    "width": 1024
                },
                "overscan": 0,
                "rgbRange": "Automatic",
                "scale": 1,
                "sdrBrightness": 200,
                "sdrGamutWideness": 0,
                "sharpness": 0,
                "transform": "Normal",
                "uuid": "18b3bdc6-3233-43a3-9f96-83f1914c8d72",
                "vrrPolicy": "Never",
                "wideColorGamut": false
            }
        ],
        "name": "outputs"
    },
    {
        "data": [
            {
                "lidClosed": false,
                "outputs": [
                    {
                        "enabled": true,
                        "outputIndex": 0,
                        "position": {
                            "x": 0,
                            "y": 0
                        },
                        "priority": 0,
                        "replicationSource": ""
                    }
                ]
            },
            {
                "lidClosed": false,
                "outputs": [
                    {
                        "enabled": true,
                        "outputIndex": 0,
                        "position": {
                            "x": 0,
                            "y": 0
                        },
                        "priority": 0,
                        "replicationSource": ""
                    },
                    {
                        "enabled": true,
                        "outputIndex": 1,
                        "position": {
                            "x": 1920,
                            "y": 0
                        },
                        "priority": 1,
                        "replicationSource": ""
                    }
                ]
            }
        ],
        "name": "setups"
    }
]
```

Desktop settings file (after I've manually forced to run at @60HZ):
```
$ cat ~/.config/kwinoutputconfig.json
[
    {
        "data": [
            {
                "allowDdcCi": true,
                "allowSdrSoftwareBrightness": true,
                "autoBrightnessCurve": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "autoRotation": "InTabletMode",
                "automaticBrightness": false,
                "brightness": 1,
                "colorPowerTradeoff": "PreferEfficiency",
                "colorProfileSource": "sRGB",
                "connectorName": "DP-4",
                "detectedDdcCi": false,
                "edidHash": "2141223c137c5d9f9aa33288e8ad329f",
                "edidIdentifier": "PHL 49494 14440 41 2020 0",
                "edrPolicy": "always",
                "highDynamicRange": false,
                "iccProfilePath": "",
                "maxBitsPerColor": 0,
                "mode": {
                    "height": 1080,
                    "refreshRate": 60000,
                    "width": 1920
                },
                "overscan": 0,
                "rgbRange": "Automatic",
                "scale": 1,
                "sdrBrightness": 200,
                "sdrGamutWideness": 0,
                "sharpness": 0,
                "transform": "Normal",
                "uuid": "7f4a0b75-30c6-4fac-a35e-c1103b9444d7",
                "vrrPolicy": "Never",
                "wideColorGamut": false
            },
            {
                "allowDdcCi": true,
                "allowSdrSoftwareBrightness": true,
                "autoBrightnessCurve": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "autoRotation": "InTabletMode",
                "automaticBrightness": false,
                "brightness": 1,
                "colorPowerTradeoff": "PreferEfficiency",
                "colorProfileSource": "sRGB",
                "connectorName": "HDMI-A-2",
                "detectedDdcCi": false,
                "edidHash": "4c5562c4606b24da42b1df41fd83f45a",
                "edidIdentifier": "MPI 28674 1 1 2007 0",
                "edrPolicy": "always",
                "highDynamicRange": false,
                "iccProfilePath": "",
                "mode": {
                    "height": 600,
                    "refreshRate": 60044,
                    "width": 1024
                },
                "overscan": 0,
                "rgbRange": "Automatic",
                "scale": 1,
                "sdrBrightness": 200,
                "sdrGamutWideness": 0,
                "sharpness": 0,
                "transform": "Normal",
                "uuid": "832a9f6f-3da2-48fb-bc40-780deb286f3d",
                "vrrPolicy": "Never",
                "wideColorGamut": false
            }
        ],
        "name": "outputs"
    },
    {
        "data": [
            {
                "lidClosed": false,
                "outputs": [
                    {
                        "enabled": true,
                        "outputIndex": 0,
                        "position": {
                            "x": 0,
                            "y": 0
                        },
                        "priority": 0,
                        "replicationSource": ""
                    }
                ]
            },
            {
                "lidClosed": false,
                "outputs": [
                    {
                        "enabled": true,
                        "outputIndex": 0,
                        "position": {
                            "x": 0,
                            "y": 0
                        },
                        "priority": 1,
                        "replicationSource": ""
                    },
                    {
                        "enabled": true,
                        "outputIndex": 1,
                        "position": {
                            "x": 1920,
                            "y": 0
                        },
                        "priority": 2,
                        "replicationSource": ""
                    }
                ]
            }
        ],
        "name": "setups"
    }
]
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to