Bugged HDR implementation on Raspberry Pi 4?

  • Today I downloaded and installed latest Librelec release on my Raspberry Pi 4B 2GB and tried playing something. It was an .mkv file encoded with H.265, it also was an HDR file (BT.2020) and with 10 bit color.

    The problem I have is the lack of contrast in HDR files.

    If I run with 4K resolution 30Hz refresh rate, the blacks are not true black, it has greyish tint them. But If I add "hdmi_enable_4kp60=1" in config.txt to enable 60Hz and use it, the blacks become crushed too much, waay too much. Please note that they get crushed once I'm viewing HDR content, if I stop playing and quit player screen, the blacks look normal again.

    "Use limited color range" option in the display settings change nothing for me. 0-255 or 16-235 are all the same.

    What I don't get is why does changing refresh rate plays with HDR gamma or contrast.

    TV: Samsung Q95T

    Setup: RPI 4B > Philips Hue HDMI Sync Box Hdmi #2 > TV