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

    Turn off retropie safely?

    Scheduled Pinned Locked Moved Help and Support
    help
    15 Posts 7 Posters 27.2k 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.
    • T
      TheBear123
      last edited by

      Every time I turn off retropie, it doesn't work the next time I plug it in. I have to rewrite my SD-card every time, and all my saves are lost. So my question is: How do I turn off my rasberry Pi through retropie without corrupting my SD-card?

      rbakerR 1 Reply Last reply Reply Quote 0
      • rbakerR
        rbaker @TheBear123
        last edited by

        @TheBear123 Just go to the quit menu in emulationstation and choose shutdown. Pulling the card on any raspberry pi installation carries the risk of corruption.

        T 1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by

          Also, if you're using keyboard and are in ES: press F4 and type "sudo halt"

          1 Reply Last reply Reply Quote 0
          • DD-IndeedD
            DD-Indeed
            last edited by DD-Indeed

            Propably you have to do couple reboots after all of the installations to make sure that everything is on their correct places, saved and working. If that doesn't work, then I suspect a faulty SD card.

            My soul rests, when I hear the PS1 boot music

            1 Reply Last reply Reply Quote 0
            • T
              TheBear123 @rbaker
              last edited by

              @rbaker If I shutdown emulationstation, my Pi is still on, and I don't know any other way to start up retropie again than pulling in and out the poser cord

              Starcade2084S 1 Reply Last reply Reply Quote 0
              • Starcade2084S
                Starcade2084 @TheBear123
                last edited by

                @TheBear123 You have a number of options available:

                I have my RPi3 plugged into a power strip with an on/off switch so when I shut down RetroPie from the menu I can then turn it off from the power strip. Flipping the switch back on restarts the system.

                For my wireless music streamer (running Pi MusicBox) I placed a USB on/off button between the ac adapter and the RPi3 itself. If I need to power it down I shut it down via the menu (not unlike in RetroPie) then hit the switch. https://www.amazon.com/LoveRPi-MicroUSB-Switch-Raspberry-Female/dp/B018BFWLRU

                You can install a number of different buttons that via the GPIO pins and some simple scripting will power down the RPi for you though I think they still have power running into them so when you hit the button it boots up the system. Or small circuit boards like the PowerBlock: https://blog.petrockblock.com/powerblock/

                There's also the Borkin Button which uses the headphone jack, a small soldering job, and some scripting to shut down the system. @ETAPrime did a video on this:

                Ultimately, pulling the power off a running RPi is the last thing you should do as it's likely to corrupt the SD card, which sounds like you've experienced before. But with many alternative options out there to safely stop/start your system you should be right as rain in no time.

                1 Reply Last reply Reply Quote 0
                • DD-IndeedD
                  DD-Indeed
                  last edited by

                  I've had no issues with my hard shutdowns of the system, works flawlessly everytime after those. But, I myself would prefer of having this sort of safe shutdown gear, that shuts and powers the system during that process, when you cut the main power off. Is there something like that available ?

                  My soul rests, when I hear the PS1 boot music

                  O 1 Reply Last reply Reply Quote 0
                  • O
                    ortsac @DD-Indeed
                    last edited by

                    @DD-Indeed
                    see the PowerBlock:
                    https://blog.petrockblock.com/powerblock/
                    or the ControlBlock
                    https://blog.petrockblock.com/controlblock/

                    DD-IndeedD 1 Reply Last reply Reply Quote 0
                    • DD-IndeedD
                      DD-Indeed @ortsac
                      last edited by DD-Indeed

                      @ortsac

                      So those work, even when I literally shut it down hardly, meaning that the power coming from the USB cable cuts ?

                      Edit: What I have in my mind is that there should be this device, that starts the shutdown operation, whenever the main power coming to the device shuts down and would have enough power to finish the shutdown process.

                      My soul rests, when I hear the PS1 boot music

                      O 1 Reply Last reply Reply Quote 0
                      • O
                        ortsac @DD-Indeed
                        last edited by

                        @DD-Indeed The voltage from the power supply will be connected to the PowerBlock or ControlBlock. Both boards will then supply the power to the RPi via GPIO pins. Both board have a provisions to connect a switch which you can either turn the power On or Off to the RPi. When the switch is set to Off, while the Pi is on, it will complete the shutdown process.

                        If you are looking for automate the shutdown process, as for an example a power failure or blackout, then you will need to rig a UPS (Uninterruptable Power Supply). The UPS will give you a few minutes to literally shutdown the PI.

                        DD-IndeedD 1 Reply Last reply Reply Quote 0
                        • DD-IndeedD
                          DD-Indeed @ortsac
                          last edited by

                          @ortsac said in Turn off retropie safely?:

                          If you are looking for automate the shutdown process, as for an example a power failure or blackout, then you will need to rig a UPS (Uninterruptable Power Supply). The UPS will give you a few minutes to literally shutdown the PI.

                          That's exactly what should be available for these sort of devices. Meaning that whenever the main power cuts off suddenly, there would be this device, that triggers shutdown process immediately and has enough energy stored to do it.

                          My soul rests, when I hear the PS1 boot music

                          Q 1 Reply Last reply Reply Quote 0
                          • T
                            TheBear123
                            last edited by

                            When I turn it off, the SD-card gets corrupt. This happens no matter if it is by pulling the power out or shutdown it using options/quit or "sudo shutdown"

                            DD-IndeedD 1 Reply Last reply Reply Quote 0
                            • DD-IndeedD
                              DD-Indeed @TheBear123
                              last edited by

                              @TheBear123

                              Well that sounds definitely about faulty SD card. Get a new one and test it out again.

                              My soul rests, when I hear the PS1 boot music

                              1 Reply Last reply Reply Quote 1
                              • Q
                                Quatermass @DD-Indeed
                                last edited by

                                @DD-Indeed said in Turn off retropie safely?:

                                @ortsac said in Turn off retropie safely?:

                                ..for automate the shutdown process [...] then you will need to rig a UPS (Uninterruptable Power Supply). The UPS will give you a few minutes to literally shutdown the PI.

                                That's exactly what should be available for these sort of devices. Meaning that whenever the main power cuts off suddenly, there would be this device, that triggers shutdown process immediately and has enough energy stored to do it.

                                You can rig something with a bunch of supercapacitors, e.g. Juice4Halt

                                DD-IndeedD 1 Reply Last reply Reply Quote 0
                                • DD-IndeedD
                                  DD-Indeed @Quatermass
                                  last edited by DD-Indeed

                                  @Quatermass

                                  Or basically, having a small battery alongside the Raspi. Theoretically, it could be pretty simple to create:

                                  Battery, that gives exact 4.7V.

                                  Custom commands to Raspi to trigger shutdown process, once the voltage drops below 4.75V (IE, when the main power line shuts down and the voltage drops from normal 5-5.1V to the battery voltage).

                                  And Battery would charge up in every time you use/start Raspi for some time, or could be charged separately in short time.

                                  My soul rests, when I hear the PS1 boot music

                                  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.