RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Shutdown via menu with the RemotePi board

    Scheduled Pinned Locked Moved Help and Support
    remotepishutdown switchscripts
    4 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PiBoy
      last edited by PiBoy

      Pi Model or other hardware: 3
      Power Supply used: What comes with the RPi3 CannaKit
      RetroPie Version Used: 4.2
      Built From: SD card image downloaded from RetroPie site
      USB Devices connected: Macintosh Keyboard, Mayflash PS3 to Controller Adapter (acts as Xbox 360 controller)
      Controller used: Mayflash PS3>Xbox 360
      Error messages received: None
      Log found in /dev/shm/runcommand.log (if relevant): not checked
      Guide used: https://www.msldigital.com/pages/support-for-remotepi-board-plus-2015
      File: /etc/shutdown.sh
      Emulator: RetroPie main menu

      I got the RemotePi Board from MSL Digital. Everything works great so far, except for one thing I need help on.

      I need the RemotePi board to be able to cut the power when I choose "Shutdown System" from EmulationStation. All of the other RemotePi board scripts work when using the button and the IR control.

      I tried locating the actual script EmulationStation uses, but I am not certain where it is, if it exists. Do I need to change an .sh file ES uses at all? How do I get the RemotePi board to recognize that ES performed a shutdown? MSL's website makes it seem easy. Just create the shutdown.sh file in /etc/ and it should work, at least that is my impression. I am pretty new to this, so I am not certain how to proceed.

      Thank you!

      meleuM 1 Reply Last reply Reply Quote 0
      • meleuM
        meleu @PiBoy
        last edited by

        @piboy the script looks quite similar to the one used by mausberry. Maybe you can try the solution we found here in your scenario too.

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        1 Reply Last reply Reply Quote 0
        • P
          PiBoy
          last edited by

          Thanks for the reply @meleu

          I looked at the link you provided and I am not certain on how to proceed. I still don't know if the location for the shutdown script provided by MSL Digital is correct. That powerblock script also places itself in the /etc/ folder, very similar to MSL. Not sure it will change anything with my configuration.

          What should I do next? Thanks!

          1 Reply Last reply Reply Quote 0
          • P
            PiBoy
            last edited by

            I figured out the issue. Problem was I got an error when I followed MSL's instructions to the letter. First time I got an error saying something like "this can not be a service", second time it said "Failed to execute operation: Bad Message". I mistyped. The script:

            [Unit]
            Description=RemotePi Board Shutdown Service
            Before=multi-user.target
            Conflicts=shutdown.target
            [Service]
            ExecStart=/bin/true
            ExecStop=/etc/shutdown.sh
            Type=oneshot
            RemainAfterExit=yes
            [Install]
            WantedBy=multi-user.target

            I had "Service" on a line by itself. Doh! It's fixed now, powering on off works perfectly now. Hooray!

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.