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

    Way to shutdown secondary pi when quit emulationstation?

    Scheduled Pinned Locked Moved Help and Support
    severserviceshutdownrpi4
    5 Posts 3 Posters 651 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.
    • R
      retroguy
      last edited by

      I have just set up my retropie on an ubuntu pc and have configured a secondary rpi4 to run my digital marquee. The secondary marquee runs on simpleServer from Visual-RetroPie-Control-Maps and LCDMarqueeUpdate. I got it working and everything looks good there.

      My issue is having a nice way to properly shut down both computers without using a hard power off (which is my current setup). I was thinking there is probably a way to use a similar service to control the rpi4 - where ubuntu would shut down using emulationsstation option but then send a signal to the rpi to shut down.

      Has anyone got something like this to work, or any ideas on how to do it. I imagine it would be pretty simple if one knew what they were doing (as I do not).

      1 Reply Last reply Reply Quote 0
      • AddisonA
        Addison
        last edited by

        Immediate shutdown

        sudo shutdown -h now
        

        Shutdown in 20 minutes

        sudo shutdown -h 20
        

        Shutdown at 5:30 pm

        sudo shutdown -h 17:30
        

        Cancel shutdown

        sudo shutdown -c
        
        R 1 Reply Last reply Reply Quote 1
        • R
          retroguy @Addison
          last edited by

          @addison said in Way to shutdown secondary pi when quit emulationstation?:

          Immediate shutdown

          sudo shutdown -h now
          

          Shutdown in 20 minutes

          sudo shutdown -h 20
          

          Shutdown at 5:30 pm

          sudo shutdown -h 17:30
          

          Cancel shutdown

          sudo shutdown -c
          

          Thanks, Addison. This shows me how to shut it down through the cmd line or ssh. What I really would like to do is have no interaction with the rpi that runs the marquee. I would like to have a signal sent to it from the main computer (Ubuntu) which makes it shut down, and I want this automatically sent when I shut down the main computer through emulation station.

          Do you have any thoughts on how to do this?

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by mitu

            You can run a command via ssh from your Ubuntu system on the pi

            ssh user@<pi> sudo shutdown -h now
            

            You'll have to setup a passwordless ssh login from the Ubuntu to the Pi, you can use a key-based login (as shown here). This way you can run commands on the Pi without providing a user/pass to ssh.

            The command to shutdown your Pi can be hooked up to the EmulationStation shutdown event, in a script - see https://retropie.org.uk/docs/EmulationStation/#scripting.

            R 1 Reply Last reply Reply Quote 1
            • R
              retroguy @mitu
              last edited by

              @mitu Thanks...this just might work. I'll give it a go and let you know.

              I appreciate the support.

              1 Reply Last reply Reply Quote 0
              • 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.