Bug 504412

Summary: Buggy KDE HDR support on LG 32un650 monitor + Intel Raptor Lake and AMD RX 560
Product: [Plasma] kwin Reporter: Anton Valishin <anton>
Component: colour-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nate, xaver.hugl
Priority: NOR    
Version First Reported In: 6.3.90   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: edid
INTEL HDMI HDR
intel dp hdr

Description Anton Valishin 2025-05-17 11:20:01 UTC
Created attachment 181427 [details]
edid

I have  LG 32un650 which is connected to iGPU via DP and to RX 560 via HDMI
When I enable HDR on Intel or AMD outputs I get this
https://www.youtube.com/watch?v=OWv2Jadm10g

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.11.0-25-generic (64-bit)
Graphics Platform: Wayland
Processors: 32 × 13th Gen Intel® Core™ i9-13900K
Memory: 96 GiB of RAM (94.0 GiB usable)
Graphics Processor 1: AMD Radeon RX 560 Series
Graphics Processor 2: Intel® Graphics
Manufacturer: ASUS
Comment 1 Anton Valishin 2025-05-17 11:24:25 UTC
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-S GT1 [UHD Graphics 770] (rev 04) (prog-if 00 [VGA controller])
	DeviceName: Onboard IGD
	Subsystem: ASUSTeK Computer Inc. Raptor Lake-S GT1 [UHD Graphics 770]

07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] (rev c1) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Baffin [Radeon RX 550 640SP / RX 560/560X]
Comment 2 Zamundaaa 2025-05-19 14:36:35 UTC
Please describe exactly what's wrong, and what issue is happening with which GPU.

Afaict though, the first one is fine (you just have brightness at 0%), and the second one is https://gitlab.freedesktop.org/drm/amd/-/issues/3358 ?
Comment 3 Anton Valishin 2025-05-19 15:03:33 UTC
(In reply to Zamundaaa from comment #2)
> Please describe exactly what's wrong, and what issue is happening with which
> GPU.
> 
> Afaict though, the first one is fine (you just have brightness at 0%), and
> the second one is https://gitlab.freedesktop.org/drm/amd/-/issues/3358 ?

Intel GPU via DisplayPort (DP) in HDR Mode:
It does not work properly when connected via DisplayPort in HDR mode. This is not related to the monitor's brightness settings.
It  works fine over HDMI, but there is a noticeable yellow tint in scenes that should display white.

For AMD it seems the same issue as mine 
"It's like a green-tinted overlay..."
Comment 4 Anton Valishin 2025-05-19 15:13:19 UTC
Created attachment 181517 [details]
INTEL HDMI HDR

it works but has yellow
Comment 5 Anton Valishin 2025-05-19 15:14:30 UTC
Created attachment 181518 [details]
intel dp hdr

so as you can see (HDR logo is clear) this not brightness issue
Comment 6 Anton Valishin 2025-05-19 19:03:24 UTC
(In reply to Zamundaaa from comment #2)
> Please describe exactly what's wrong, and what issue is happening with which
> GPU.
> 
> Afaict though, the first one is fine (you just have brightness at 0%), and
> the second one is https://gitlab.freedesktop.org/drm/amd/-/issues/3358 ?

Thank you for your response. While I'm not yet familiar with the KDE codebase and Linux codebase (DRM, drivers), I'm eager to help troubleshoot and debug this issue. Please let me know how I can contribute to resolving it
Comment 7 Anton Valishin 2025-05-19 20:31:33 UTC
Now I finally understand what you meant about the brightness control in the KDE UI.
However, the display still has a yellow tint when connected via HDMI.
It was misleading because it seemed to work correctly on HDMI outputs, but on DisplayPort (DP), it was too dark by default.
Comment 8 Zamundaaa 2025-05-23 15:25:30 UTC
> However, the display still has a yellow tint when connected via HDMI.
That's odd, not sure where such a tint could come from though. Perhaps the display simply selects different settings / color balance depending on the input?
Comment 9 Anton Valishin 2025-05-23 16:15:08 UTC
(In reply to Zamundaaa from comment #8)
> > However, the display still has a yellow tint when connected via HDMI.
> That's odd, not sure where such a tint could come from though. Perhaps the
> display simply selects different settings / color balance depending on the
> input?

When I set the Max SDR Brightness slider to 355 and the Brightness slider to 100%, previously white colors shift toward yellow.
This occurs on both HDMI and DisplayPort connections

The display is factory-calibrated by the manufacturer, and I'm using certified cables—both a VESA-approved DisplayPort cable and an HDMI-certified cable.
Comment 10 Zamundaaa 2025-05-26 14:00:55 UTC
(In reply to Anton Valishin from comment #9)
> When I set the Max SDR Brightness slider to 355 and the Brightness slider to
> 100%, previously white colors shift toward yellow.
Meaning that with lower brightness, it looks fine? If that's the case, then I think that's just the display clipping rgb colors in an unfortunate way, and you just have to keep brightness a bit lower