Bug 490871 - Monitor turns into SDR mode after kscreen-doctor --dpms off
Summary: Monitor turns into SDR mode after kscreen-doctor --dpms off
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: colour-management (show other bugs)
Version: 6.1.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-27 01:50 UTC by laichiaheng
Modified: 2024-07-30 13:35 UTC (History)
3 users (show)

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


Attachments
drm_info before (120.32 KB, text/plain)
2024-07-27 13:19 UTC, laichiaheng
Details
kscreen-doctor -o before (1.69 KB, text/plain)
2024-07-27 13:20 UTC, laichiaheng
Details
drm_info after (120.32 KB, text/plain)
2024-07-27 13:20 UTC, laichiaheng
Details
kscreen-doctor -o after (1.69 KB, text/plain)
2024-07-27 13:21 UTC, laichiaheng
Details

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