Switching Hyperion on/off via keyboard/remote?!

  • Next time just don't post images.

    Anyway, your keyboard.xml is wrong. Try this.

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <keymap>
    3. <global>
    4. <keyboard>
    5. <doublequote>XBMC.RunScript(/storage/.kodi/userdata/addon_data/service.hyperion/hyperion_switch.py)</doublequote>
    6. </keyboard>
    7. </global>
    8. </keymap>


  • Thank you at least I get a reaction from the key now. This is what the Log says. (switching Hyperion on & off still not working)

  • Now run in console and post the result what you get:

    1. ps
    2. python /storage/.kodi/userdata/addon_data/service.hyperion/hyperion_switch.py
    3. ps
    4. python /storage/.kodi/userdata/addon_data/service.hyperion/hyperion_switch.py
    5. ps


  • Seems you don't use hyperion from libreelec because there is no service file.

    Try this hyperion_switch.sh then

    1. #!/bin/sh
    2. if ps | grep -v grep | grep hyperiond > /dev/null
    3. then
    4. killall hyperiond
    5. else
    6. /storage/hyperion/bin/hyperiond.sh &
    7. fi


  • We're getting closer :) The script stops Hyperion but doesn't open it on keypress again.

  • How do you start hyperion now? From autostart? What is the command line there (if even)?

    Just replace line

    1. /storage/hyperion/bin/hyperiond.sh &

    with whatever you have to start hyperion.


  • Hyperion is automatically started when I start the rpi. All files I ever layed hands on were the ones in the zip.

    The hyperiond.sh is present in the folder of your code. I don't know why it does not start...

  • And how did you install hyperion? Because I think it is not libreelec addon but something else - because there is no service.

    Try using in file hyperion_switch.sh

    1. /bin/sh /storage/hyperion/bin/hyperiond.sh &


  • YES!!! Did it :))) I just added the directory to the config file into your link now it works like a charm! THANK YOU!!!

    1. /bin/sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json