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?

Thank’s

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 shutdown.sh in the .config folder and copy and paste the following contents
    #!/bin/bash
    if [ "$1" != "reboot" ]; then
      sleep 3
      GPIOpin=15
      GPIOpin1=14
      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 irswitch.sh 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
    fi
    After saving the file, mark it as executable with
    chmod +x shutdown.sh
    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 shutdown.sh to complete before halting.

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

Thank’s

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?

Thank’s

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.