Bug 501670 - KDE randomly connects external display either using RGB or YCBCR420 colorspace
Summary: KDE randomly connects external display either using RGB or YCBCR420 colorspace
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: colour-management (show other bugs)
Version: 6.3.0
Platform: Debian testing Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-18 02:41 UTC by Sergei Danilov
Modified: 2025-03-19 20:44 UTC (History)
2 users (show)

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


Attachments
YCBCR420 picture (3.76 MB, image/jpeg)
2025-03-18 02:41 UTC, Sergei Danilov
Details
RGB 8 bit picture (3.56 MB, image/jpeg)
2025-03-18 02:43 UTC, Sergei Danilov
Details

Note You need to log in before you can comment on or make changes to this bug.
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