You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bypass KDE HDR-SDR Brightness slider. Patch attached. #18857
I’m sure I’m not the only one with this issue since a google search turns up countless people asking for it.
Those of us who watch films on a calibrated display in a light controlled room have had to set KDE’s SDR brightness to 203 nits to see HDR content as it was mastered. The unwanted side effect is that the desktop becomes far too bright. The attached patch fixes this by adding a new option, --bypass-kde-scaling=yes/no
PQ is only reproduced correctly at exactly 203. Tested on KDE Plasma 6 with KWin 6.8.3 (measured with a meter).
This is a proof of concept. I'm not a dev. There's probably a better way to do this but I just wanted to show it is possible.
Chromium was just fixed to not do this complete and utter nonsense anymore, please don't introduce it in mpv.
I already discussed this matter with you until the cows come home, PLEASE, don't force your ideas on this.
There are users like me who want this available as a option, it's not to be enabled by default but available.
Your patch misdescribes the content mpv is showing, it inherently can't be correct.
I don't understand your problem statement, so I don't know what option you want.
C'mon, I said I'm not a dev and surely there is a better way but the patch was just a proof of concept to correct the following behaviour.
With KDE HDR - SDR value set to 94 so the desktop does not blind me, HDR content will be darker.
With SDR Value set to 203 we now have the correct output.
The patch makes hdr content reproduce like SDR value is set to 203 ! This way we can have the desktop at a comfortable level but hdr content will not be affected. The graphs show the problem clearly ! The point is not having to constantly change SDR to 203 when going to watch a movie.
Your goal is to be able to adjust reference white for transfer functions whose nominal peak is reference white, while having it not affect transfer functions whose nominal peak is above reference white. This is a feature request for the compositor or the protocol itself, I don't think there's anything actionable here. It's not a good idea to have workarounds for specific compositors
Your goal is to be able to adjust reference white for transfer functions whose nominal peak is reference white, while having it not affect transfer functions whose nominal peak is above reference white. This is a feature request for the compositor or the protocol itself, I don't think there's anything actionable here. It's not a good idea to have workarounds for specific compositors
A lot of people tried, they refused to give us the option. There is zero harm in having this as a option in mpv since basically it's our last option. Like @kasper93 said, it's too late.
@adolfotregosa: This might help in your case #18917, but only in =target mode, in =source, it's up to compositor what they want to do with the signal. With =target and HDR will be rendered with proper PQ scale.
@adolfotregosa: This might help in your case #18917, but only in =target mode, in =source, it's up to compositor what they want to do with the signal. With =target and HDR will be rendered with proper PQ scale.
Activity
[-]bypass KDE HDR Brightness slider. Patch attached.[/-][+]bypass KDE HDR-SDR Brightness slider. Patch attached.[/+]kasper93 commentedon Nov 19, 2026
I will fix that, I have some patches locally, but still haven't decided on some things.
Zamundaaa commentedon Nov 27, 2026
Chromium was just fixed to not do this complete and utter nonsense anymore, please don't introduce it in mpv.
adolfotregosa commentedon Nov 27, 2026
I already discussed this matter with you until the cows come home, PLEASE, don't force your ideas on this.
There are users like me who want this available as a option, it's not to be enabled by default but available.
llyyr commentedon Nov 27, 2026
Your patch misdescribes the content mpv is showing, it inherently can't be correct.
I don't understand your problem statement, so I don't know what option you want.
adolfotregosa commentedon Nov 27, 2026
C'mon, I said I'm not a dev and surely there is a better way but the patch was just a proof of concept to correct the following behaviour.
With KDE HDR - SDR value set to 94 so the desktop does not blind me, HDR content will be darker.

With SDR Value set to 203 we now have the correct output.
The patch makes hdr content reproduce like SDR value is set to 203 ! This way we can have the desktop at a comfortable level but hdr content will not be affected. The graphs show the problem clearly ! The point is not having to constantly change SDR to 203 when going to watch a movie.
kasper93 commentedon Nov 27, 2026
Yes, this is unfortunate result on how Wayland redefined PQ transfer. Let's not start the discussion again, it's too late.
I will send patches to resolve those issues, and unless someone else wants to work on this, until then there is no point in dry discussion.
llyyr commentedon Nov 27, 2026
Your goal is to be able to adjust reference white for transfer functions whose nominal peak is reference white, while having it not affect transfer functions whose nominal peak is above reference white. This is a feature request for the compositor or the protocol itself, I don't think there's anything actionable here. It's not a good idea to have workarounds for specific compositors
adolfotregosa commentedon Nov 27, 2026
A lot of people tried, they refused to give us the option. There is zero harm in having this as a option in mpv since basically it's our last option. Like @kasper93 said, it's too late.
kasper93 commentedon Nov 27, 2026
@adolfotregosa: This might help in your case #18917, but only in =target mode, in =source, it's up to compositor what they want to do with the signal. With =target and HDR will be rendered with proper PQ scale.
adolfotregosa commentedon Nov 27, 2026
Tested. Working beautifully! Thank you.