[x86-64] After Flatpak add-on execution Kodi no longer outputs 10 bit when required

  • Hardware: Intel NUC 13, i5-1350p, iGPU (i915), LG C5

    Build: Generic.x86_64-13.0-nightly-20261107

    Log shows the following:

    1. Play a 24p HDR10 video, HDMI mode correctly switches to RGB 10 bit HDR. Stop playback.
    2. Open VacuumTube flatpak app and close it immediately.
    3. Return to Kodi, Play same HDR10 video as step 1, HDMI mode incorrectly stays at RGB 8 bit HDR.

    https://paste.libreelec.tv/unapproving-brady.log

    Seems the Flatpak Wayland session has some persistent effects on future HDMI mode selections in Kodi. A reboot is required to return to the expected behaviour.

    Edited once, last by nissel (November 8, 2026 at 1:36 AM).

  • As a simple workaround you can just add a systemd dropin to set "max bpc" for now. eg

    /storage/.config/system.d/kodi.service.d/maxbpc.conf:

    Code
    [Service]
    ExecStartPre=/usr/bin/kmstest -c HDMI-A-1 -P "max bpc=12"

    check with kmsprint -p to find the correct connector name (it could be HDMI-A-2 or something else) and the default/maximum "max bpc" value.

    so long,

    Hias

  • Thank you, i was trying to find a way of resetting max bpc via the command line and your suggestion works.


    I managed to do a similar trick with modetest, so I don't get the test image flashing up, also disabled VRR (which I enabled for Moonlight) with a similar trick. Thanks again.

    If anyone else wants my script it's:

    Bash
    #!/bin/sh
    for c in $(modetest -M amdgpu -p | awk '/^CRTCs:/{f=1;next} /^Planes:/{f=0} f&&/^[0-9]+[ \t]/{print $1}'); do
        modetest -M amdgpu -a -w $c:VRR_ENABLED:0
    done
    
    # "max bpc" is a connector property (listed by modetest -c)
    for c in $(modetest -M amdgpu -c | awk '/^Connectors:/{f=1;next} f&&/^[0-9]+[ \t]/&&$3=="connected"{print $1}'); do
        modetest -M amdgpu -a -w "$c:max bpc:12"
    done

    This is for AMD, but you can probably adjust it for intel / Nvidia if needed.

    Edited 2 times, last by nissel: Merged a post created by nissel into this post. (November 14, 2026 at 1:03 AM).