Volume keys

  • It seems that KODI is still hard coded to the AVR (audio system). So it requires the hacky way.

    Create the python script "/storage/.kodi/userdata/keymaps/cec-volume.py".

    And additional the "/storage/.kodi/userdata/keymaps/keyboard.xml" to override the current action mapping of the volume keys of your keyboard.

    Code: keyboard.xml
    <keymap>
      <global>
        <keyboard>
          <volume_down>RunScript(/storage/.kodi/userdata/keymaps/cec-volume.py, "down")</volume_down>
          <volume_up>RunScript(/storage/.kodi/userdata/keymaps/cec-volume.py, "up")</volume_up>
          <volume_mute>RunScript(/storage/.kodi/userdata/keymaps/cec-volume.py, "mute")</volume_mute>
        </keyboard>
      </global>
    </keymap>

    Works with a recent LE 13 nightly. That should work for you, too. But please keep in mind, that's only a workaround.

    The correct implementation would be:

    • That KODI dynamically switch between TV or AVR depending on the current state of CEC "System Audio Status".
    • Only if CEC is disabled (or remote control routing explicit deactivated), the internal volume control of KODI should be used.

    Edited once, last by HarryH (September 5, 2026 at 10:21 PM).