Skip to content

bypass KDE HDR-SDR Brightness slider. Patch attached. #18857

Description

@adolfotregosa

Expected behavior of the wanted feature

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.

mpv-0.42-bypass-kde-scaling.patch

Small video showing it working.
https://youtu.be/lnr4iYJzauw

Alternative behavior of the wanted feature

No response

Log File

No response

Sample Files

No response

Activity

  1. changed the title [-]bypass KDE HDR Brightness slider. Patch attached.[/-] [+]bypass KDE HDR-SDR Brightness slider. Patch attached.[/+] on Nov 19, 2026
  2. kasper93 commented on Nov 19, 2026

    @kasper93
    Member

    I will fix that, I have some patches locally, but still haven't decided on some things.

  3. Zamundaaa commented on Nov 27, 2026

    @Zamundaaa
    Contributor

    Chromium was just fixed to not do this complete and utter nonsense anymore, please don't introduce it in mpv.

  4. adolfotregosa commented on Nov 27, 2026

    @adolfotregosa
    Author

    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.

  5. llyyr commented on Nov 27, 2026

    @llyyr
    Contributor

    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.

  6. adolfotregosa commented on Nov 27, 2026

    @adolfotregosa
    Author

    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.
    KDE_94_SDR

    With SDR Value set to 203 we now have the correct output.

    KDE_Bypass

    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.

  7. kasper93 commented on Nov 27, 2026

    @kasper93
    Member

    With KDE HDR - SDR value set to 94 so the desktop does not blind me, HDR content will be darker.

    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.

  8. llyyr commented on Nov 27, 2026

    @llyyr
    Contributor

    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

  9. adolfotregosa commented on Nov 27, 2026

    @adolfotregosa
    Author

    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.

  10. kasper93 commented on Nov 27, 2026

    @kasper93
    Member

    @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.

  11. adolfotregosa commented on Nov 27, 2026

    @adolfotregosa
    Author

    @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.

    Tested. Working beautifully! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions