Bug 490871

Summary: Monitor turns into SDR mode after kscreen-doctor --dpms off
Product: [Plasma] kwin Reporter: laichiaheng
Component: colour-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: natalie_clarius, nate, xaver.hugl
Priority: NOR    
Version First Reported In: 6.1.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: drm_info before
kscreen-doctor -o before
drm_info after
kscreen-doctor -o after

Description laichiaheng 2024-07-27 01:50:41 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
Every time my monitor is suspended, it will wake up in SDR mode.
I tested it with kscreen-doctor --dpms off, it didn’t happen to the Gnome experimental HDR, I saw the problem only on KDE Plasma.

STEPS TO REPRODUCE
1. kscreen-doctor --dpms off
2. Wake up the monitor.

OBSERVED RESULT
The monitor turns into SDR mode.

EXPECTED RESULT
It should remains in HDR mode.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 6.1.3
(available in About System)
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Comment 1 Zamundaaa 2024-07-27 11:05:43 UTC
Please attach the output of kscreen-doctor -o and drm_info, once from before the issue and once after triggering it
Comment 2 laichiaheng 2024-07-27 13:19:55 UTC
Created attachment 172031 [details]
drm_info before
Comment 3 laichiaheng 2024-07-27 13:20:17 UTC
Created attachment 172032 [details]
kscreen-doctor -o before
Comment 4 laichiaheng 2024-07-27 13:20:36 UTC
Created attachment 172033 [details]
drm_info after
Comment 5 laichiaheng 2024-07-27 13:21:27 UTC
Created attachment 172034 [details]
kscreen-doctor -o after
Comment 6 laichiaheng 2024-07-27 13:22:18 UTC
(In reply to Zamundaaa from comment #1)
> Please attach the output of kscreen-doctor -o and drm_info, once from before
> the issue and once after triggering it

Done.
Comment 7 Zamundaaa 2024-07-27 13:28:21 UTC
KWin says HDR is still enabled, and the kernel agrees. This is some sort of driver bug, please report it to https://gitlab.freedesktop.org/drm/amd/-/issues
Comment 8 laichiaheng 2024-07-30 11:19:02 UTC
(In reply to Zamundaaa from comment #7)
> KWin says HDR is still enabled, and the kernel agrees. This is some sort of
> driver bug, please report it to
> https://gitlab.freedesktop.org/drm/amd/-/issues

Nobody responses there.
Comment 9 laichiaheng 2024-07-30 11:24:13 UTC
(In reply to laichiaheng from comment #8)
> (In reply to Zamundaaa from comment #7)
> > KWin says HDR is still enabled, and the kernel agrees. This is some sort of
> > driver bug, please report it to
> > https://gitlab.freedesktop.org/drm/amd/-/issues
> 
> Nobody responses there.

https://gitlab.freedesktop.org/drm/amd/-/issues/3514
Comment 10 Zamundaaa 2024-07-30 13:35:31 UTC
We can't do anything about the problem, but you need to have some patience. The issue has been open for just a single day.