RemotePi Board

Hello, for remote ON/OFF of my Raspberry Pi 2 i use a the “RemotePi Baord” from here:

But it doesn’t work correctly with osmc. I have installed the RemotePi Board with this scripts:

Osmc doesn’t switch of complete and i don’t know where is the error.

With openelec and the scripts it works.

I hope, someone can help me?


The command they are using to exit Kodi is out of date. Adjust the line in the script that says ‘sudo initctl stop xbmc’ to ‘sudo systemctl stop mediacenter’

OK, but it doesn’t work :frowning:

For openelec this script is needed to shutdown complete:

OpenElec and RasPlex

    Note : For RasPlex 0.6.0 and newer this script does not need to be installed, RasPlex 0.6.0 has this functionality already built-in.
    Log on using PuTTY and create a script called in the .config folder and copy and paste the following contents
    if [ "$1" != "reboot" ]; then
      sleep 3
      echo "$GPIOpin" > /sys/class/gpio/export
      # execute shutdown sequence on pin
      echo "out" > /sys/class/gpio/gpio$GPIOpin/direction
      echo "1" > /sys/class/gpio/gpio$GPIOpin/value
      usleep 125000
      echo "0" > /sys/class/gpio/gpio$GPIOpin/value
      usleep 200000
      echo "1" > /sys/class/gpio/gpio$GPIOpin/value
      usleep 400000
      echo "0" > /sys/class/gpio/gpio$GPIOpin/value
      # set GPIO 14 high to feedback shutdown to RemotePi Board
      # because the has already been terminated
      echo "$GPIOpin1" > /sys/class/gpio/export
      echo "out" > /sys/class/gpio/gpio$GPIOpin1/direction
      echo "1" > /sys/class/gpio/gpio$GPIOpin1/value
      sleep 3
    After saving the file, mark it as executable with
    chmod +x
    When you now select the 'Power off system' from the menu in OpenElec or RasPlex, the RemotePi Board will cut the power after the system was shut down.
    Please note that the above script works only with newer versions of OpenElec (tested with 4.2.1), earlier versions of OpenElec did not wait for to complete before halting.

You see this at the end of the instructions.
And for osmc?


Are you using the same script as for OpenElec? OSMC needs a different script according to the msldigital website.

No, what script is the correct script for osmc?


It’s on the page you linked to (Support for RemotePi Board for Pi 4, RemotePi Board for Pi 3 B+, Pi 3, – MSL Digital Solutions). The first script is for OpenElec, the next 2 entries talk about RasPlex and then you get to OSMC.