Bug 501670

Summary: KDE randomly connects external display either using RGB or YCBCR420 colorspace
Product: [Plasma] kwin Reporter: Sergei Danilov <sergeidanilov>
Component: colour-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: major CC: nate, xaver.hugl
Priority: NOR    
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: YCBCR420 picture
RGB 8 bit picture

Description Sergei Danilov 2025-03-18 02:41:54 UTC
Created attachment 179523 [details]
YCBCR420 picture

I'm using LG C2 TV as monitor with KDE Plasma 6.3
My Lenovo X1 carbon Gen9 laptop allows using it with 4K@120HZ over type C with cable matters typec->hdmi adapter. 

Half of time KDE connects to the monitor using RGB 8 bit , which is looking totally fine. 
But another half connects with YCBCR420 8bit , which provides bad rainbow effect and makes text unreadable.
The fact it there is no consistency makes me puzzled that that color space selection is not really controlled.
I checked on Windows 11, it consistenly using RGB 8bit, so problem is specific to Linux.

Problem is reproduced only with 4K@120HZ, 4K@60HZ Consistently using RGB.


Hardware:
Lenovo X1 carbon Gen9
cable matters typec->hdmi 4k 120Hz adapter
LG C2 42" as monitor
Software:
Debian 12 Testing
Kde Plasma 6.3 Wayland (But also was present with 5.27)
Qt 6.7.2
Kernel 6.12
Comment 1 Sergei Danilov 2025-03-18 02:43:10 UTC
Created attachment 179524 [details]
RGB 8 bit picture
Comment 2 Zamundaaa 2025-03-19 20:44:54 UTC
KWin doesn't decide the encoding, there is sadly no API to do that. Please report this to at https://gitlab.freedesktop.org/drm/intel/-/issues
Comment 3 Sergei Danilov 2025-04-15 21:05:24 UTC
Opened bug in i915 kernel issues
https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/14112