Start/Stop kodi using bluetooth

  • Hi,

    Just migrating from my previous rpi2 to a fresh rpi3.
    On my rpi2, I was using a MCE remote and irexec to trigger a start/stop kodi script when media key was pressed.
    I can't find a way to achieve the same using bluetooth.

    The best approach I found (but not tested yet) is to use cec-client to get the TV status, coupled with a cron job.
    If the tv is on, I start kodi service (otherwize I stop it)

    Is there a simplier way to do it?

  • My RPi is running both Kodi and MPD.
    So it's better to shutdown kodi when not used, to give MPD full access to the soundcard.

    Or just suspend audioengine