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

    Superpi case - shutdown script not working.

    Scheduled Pinned Locked Moved Help and Support
    superpi
    26 Posts 3 Posters 5.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.
    • cyperghostC
      cyperghost @campbell87
      last edited by

      @campbell87 Hmmmm. Last chance, try to install the original script from retroflag. Then shutdown with software command, after that push the button, the light have to go off! If not your case is faulty then!

      C 1 Reply Last reply Reply Quote 0
      • C
        campbell87 @cyperghost
        last edited by

        @cyperghost so I've done a fresh install of retropie. You want me to try and install the original script from retroflag and perform a shutdown from emulation station?

        When I set up the pi case, I have the safe shutdown switch to on, and leave the power switch in the on position, then I plug in the power.

        I will give it one last go and report back.

        1 Reply Last reply Reply Quote 0
        • cyperghostC
          cyperghost
          last edited by

          @campbell87 Yes, you power on with the switch, then perform a shutdown via EmulationStation, the Pi should still show a red light. The you press the Power Button and the LED light should go off. If not then it's the case.

          C 1 Reply Last reply Reply Quote 0
          • C
            campbell87 @cyperghost
            last edited by

            @cyperghost so i did a shutdown via emulation station, and the picase light went off, but the pi stayed on. I then used the power switch to turn if off, but instead it boots it back up.

            cyperghostC 1 Reply Last reply Reply Quote 0
            • cyperghostC
              cyperghost @campbell87
              last edited by cyperghost

              @campbell87 This is impossible! I have the impression that your case is faulty. There is never a powercut done in this constellation!

              Everything worked as suggested:

              1. Picase light goes off
              2. Pie stays on (red light) Important and correct behaviour
              3. You press the powerswitch and it boots???? That's wrong - it should go off then

              This is telling me that GPIO4 was never set to off and the whole thing still keeps powered on.

              C 1 Reply Last reply Reply Quote 0
              • C
                campbell87 @cyperghost
                last edited by

                @cyperghost Yea, so i connected the power when the picase swtich was on, and the safe shutdown switch was on. I then shut down emulation station. The case light went off, and there was a steady red light on the pi.

                I then turned the power switch on the picase to off, and it booted up and loaded into emulation station.

                2nd thing i tried was leave the picase on and safe shutdown switch on, and then connect the power. Once i was in emulation station, i turned off the power switch on the case, the light on the case was flashing, script ran, and case went off for a few seconds, then booted back up again.

                Tried same on both my pi devices.

                1 Reply Last reply Reply Quote 0
                • cyperghostC
                  cyperghost
                  last edited by cyperghost

                  @campbell87 Okay then please do following
                  edit sudo nano /opt/RetroFlag/SafeShutdown.py

                  Then on Line 31 is os.system("sudo shutdown -r now")
                  Just write os.system("sudo poweroff") instead

                  Reboot and let ES boot up, press then the power button - if then there is still a light on the Pi then you can easily get a new housing, it's defnitly wrecked then.

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    campbell87 @cyperghost
                    last edited by

                    @cyperghost made the change, but still same behaviour :(.

                    1 Reply Last reply Reply Quote 0
                    • cyperghostC
                      cyperghost
                      last edited by

                      @campbell87 Okay then it's a faulty unit. Get an exchange

                      C 1 Reply Last reply Reply Quote 1
                      • C
                        campbell87 @cyperghost
                        last edited by

                        @cyperghost I'm expecting a new case, tomorrow. Can I ask how I should install the script.

                        Do I connect it all up, leave the safe shutdown switch in 'on' position and the power switch in the on position, then turn power on at the socket?

                        Or do I install the script on the pi, then connect the case?

                        Thanks

                        Dan

                        cyperghostC 1 Reply Last reply Reply Quote 0
                        • cyperghostC
                          cyperghost @campbell87
                          last edited by

                          @campbell87 It does not matter. Usually you set the Pi in the case, set the SafeShutdown switch to ON and start the Raspberry with Retropie.

                          You establish a internet connection and then type in the command by terminal or SSH. Reboot and it should work then.

                          C 2 Replies Last reply Reply Quote 0
                          • C
                            campbell87 @cyperghost
                            last edited by

                            @cyperghost thanks. I will report back tomorrow.

                            1 Reply Last reply Reply Quote 0
                            • C
                              campbell87 @cyperghost
                              last edited by

                              @cyperghost got the new case, ran the shutdown script and it works as expected!

                              the only difference on this case, is that the pi is powered by the case, so my power cable goes direct into the case, and not the pi.

                              thanks for the support!

                              Dan

                              cyperghostC 1 Reply Last reply Reply Quote 0
                              • cyperghostC
                                cyperghost @campbell87
                                last edited by cyperghost

                                @campbell87 said in Superpi case - shutdown script not working.:

                                the only difference on this case, is that the pi is powered by the case, so my power cable goes direct into the case, and not the pi.

                                Sorry did not get this.... The old case was not directly wired, so there was no plug to put on the GPIO header of the Pie?
                                Can you send a picture of the old case please?

                                Your description of the new housing is the usual wiring. But nice you get it working now :-D
                                Which script did you use now? If you use the crcerror script then you can terminate any running emulator by pressing reset button.

                                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.