Bug 487979

Summary: Enabling HDR causes entire display to have a green tint
Product: [Plasma] kwin Reporter: Bart Ribbers <bribbers>
Component: colour-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: xaver.hugl
Priority: NOR    
Version First Reported In: 6.0.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Picture of a HDR-enabled TV showing a green tint

Description Bart Ribbers 2024-06-03 17:49:27 UTC
Created attachment 170103 [details]
Picture of a HDR-enabled TV showing a green tint

SUMMARY
My TV has HDR support so I enabled it in plasma settings, however doing that causes the complete display to show a green tint over everything.

STEPS TO REPRODUCE
1. Enable HDR

OBSERVED RESULT
The display is tinted entirely green

EXPECTED RESULT
The display to show as normal until HDR content is being shown

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Alpine Linux edge
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.6.3
Comment 1 Bart Ribbers 2024-06-03 17:51:01 UTC
Ah forgot to enable but obviously relevant, the GPU is an AMD GPU, RX580, using Mesa 24.1.0
Comment 2 Zamundaaa 2024-06-03 18:22:35 UTC
That looks like it's reinterpreting YUV as RGB. What kernel version is that on?
Comment 3 Bart Ribbers 2024-06-03 18:23:07 UTC
6.6.32, latest LTS.
Comment 4 Zamundaaa 2024-06-03 18:46:24 UTC
hmm, should be new enough for things to work correctly with HDMI. Most testing so far has been on RDNA2 or newer though, it's possible there's a bug with the rx 500 series.
I recommend looking for a bug report about this at https://gitlab.freedesktop.org/drm/amd/-/issues and creating one if none exists, once Freedesktop Gitlab is up again