Bug 487604 - built-in option for color correction doesn't work with custom EDID override
Summary: built-in option for color correction doesn't work with custom EDID override
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: colour-management (show other bugs)
Version: git-stable-Plasma/6.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-27 00:11 UTC by tempel.julian
Modified: 2024-07-11 18:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
example custom EDID 2560x1440 60Hz (278 bytes, application/x-compressed)
2024-05-27 00:11 UTC, tempel.julian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tempel.julian 2024-05-27 00:11:05 UTC
Created attachment 169864 [details]
example custom EDID 2560x1440 60Hz

SUMMARY
According to AW EDID Editor (Windows), the attached EDID contains chromaticity information, but no color correction happens when selecting built-in color correction on KWin display settings KCM. It works with the display's default EDID when no EDID override is in effect. 

STEPS TO REPRODUCE
1. Configure to use a custom EDID as e.g. described in Arch wiki via drm.edid_firmware=edid/your_edid.bin: 
https://wiki.archlinux.org/title/kernel_mode_setting#Forcing_modes_and_EDID
(See the note about necessity to include it in initramfs, can be tricky on other distributions.)

2. Go to KWin's display settings and choose built-in color correction values.

OBSERVED RESULT
Nothing happens vs. no calibration, unlike with default EDID.

EXPECTED RESULT
It should pick up the chromaticity values provided by the custom EDID. It seems to work on Windows 11 with ACM feature or Radeon driver clamp also with custom EDID.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.9.2
KDE Plasma Version: 6.1 beta 1 Arch
KDE Frameworks Version: 6.2
Qt Version: 6.7.1

ADDITIONAL INFORMATION
Radeon RX 7800 XT
Comment 1 Zamundaaa 2024-07-10 15:48:16 UTC
If you check the /sys/class/drm/card1/card1-DP-2/edid (card and connector numbers may need adjusting) file, does that match the EDID override? Also, if you check drm_info, does the drm driver expose the EDID to userspace at all?
Comment 2 tempel.julian 2024-07-11 18:24:25 UTC
Yes, the correct custom EDID is exposed under /sys/class/drm/card1/card1-DP-2/edid . Though good news: I am not able to reproduce anymore, so apparently something's fixed it (in KWin 6.1.2?).