Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Nespi Case+/ safe shutdown installed / power and reset buttons not working at all

    Recalbox General
    nespi case safe installed reset
    5
    12
    2981
    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.
    • yeeshkul
      yeeshkul last edited by

      Hi guys, i am completely new to this.I have Recalbox installed on my Raspberry Pi 3B+, housed in Nespi Case+.
      It was a fresh install.
      I have installed the safe-shutdown script via PuTTY and switched the internal switch to ON.

      Issue: When i turn the Raspberry on, the Power LED goes on just for a second and then goes off. The Recalbox boots normally, but neither the Power nor the Reset button respond at all.

      When i switch the internal switch to OFF, everything works fine, it just has hard Reset and shutdown.


      Here is what i got back when installing the script, just to be sure, because i don't understand these things:

      wget -O - "https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master/recalbox_install_gpi.sh" | bash--2020-07-24 20:58:33-- https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master/recalbox_install_gpi.shResolving raw.githubusercontent.com... 199.232.16.133Connecting to raw.githubusercontent.com|199.232.16.133|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 1286 (1.3K) [text/plain]Saving to: 'STDOUT'
      
      
          100%[===================>] 1.26K --.-KB/s in 0s
      
      2020-07-24 20:58:33 (12.7 MB/s) - written to stdout [1286/1286]
      
      --2020-07-24 20:58:37-- https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master/recalbox_SafeShutdown_gpi.pyResolving raw.githubusercontent.com... 199.232.16.133Connecting to raw.githubusercontent.com|199.232.16.133|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 818 [text/plain]Saving to: '/opt/RetroFlag/SafeShutdown.py'
      
      /opt/RetroFlag/Safe 100%[===================>] 818 --.-KB/s in 0s
      
      2020-07-24 20:58:37 (6.66 MB/s) - '/opt/RetroFlag/SafeShutdown.py' saved [818/818]
      
      grep: S99RetroFlag: No such file or directoryExecutable S99RetroFlag configured.RetroFlag Pi Case Switch installation done. Will now reboot after 3 seconds.WARNING: could not determine runlevel - doing soft reboot(it's better to use shutdown instead of reboot from the command line)
      
      Broadcast message from root@RECALBOX (Fri Jul 24 20:58:42 2020):
      
      The system is going down for reboot NOW!
      
      paradadf 1 Reply Last reply Reply Quote 0
      • paradadf
        paradadf Staff @yeeshkul last edited by paradadf

        @yeeshkul there is no need to install anything. Just activate the onoffreset switch in recalbox.conf and the case will work.

        If your question was answered, please mark it as solved: Topic Tools -> Ask a question + Topic Tools -> Mark as Solved

        1 Reply Last reply Reply Quote 0
        • yeeshkul
          yeeshkul last edited by yeeshkul

          I do need to install the script. The Nespi Case+ page sais so.
          See the link
          http://download.retroflag.com/

          Scavy paradadf 2 Replies Last reply Reply Quote 0
          • Scavy
            Scavy Global moderator @yeeshkul last edited by Scavy

            @yeeshkul hi
            Go in your recalbox.conf file, open it using notepad++, check the required line :

            # System Variable
            # You can configure your recalbox from here
            # To set a variable, remove the first ; on the line
            
            # ------------ A - System Options ----------- #
            #    Uncomment the system.power.switch you use
            ;system.power.switch=ATX_RASPI_R2_6      # http://lowpowerlab.com/atxraspi/#installation
            ;system.power.switch=MAUSBERRY           # http://mausberry-circuits.myshopify.com/pages/setup
            ;system.power.switch=REMOTEPIBOARD_2003  # http://www.msldigital.com/pages/support-for-remotepi-board-2013
            ;system.power.switch=REMOTEPIBOARD_2005  # http://www.msldigital.com/pages/support-for-remotepi-board-plus-2015
            ;system.power.switch=WITTYPI             # http://www.uugear.com/witty-pi-realtime-clock-power-management-for-raspberry-pi
            ;system.power.switch=PIN56ONOFF          # https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-(EN)
            ;system.power.switch=PIN56PUSH           # https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-(EN)
            ;system.power.switch=PIN356ONOFFRESET    # https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-(EN)
            ;system.power.switch=PIN356PUSHRESET     # https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-(EN)
            

            line 14 : simply remove the ";" in front on the pin356ONOFFRESET

            Save your file, and that's all.

            Don't forget recalbox is an operating system !

            • RPi0w : GPi Case
            • RPi4-2Go : Nespi4case - SN30 pro+ & PS3 DualShock pads - Logitech M170 (BT) keyboard/mouse set
            • Odroid Go Advance & Go Super
            • PC : CPU i5 core 2.8/3.4 GHz - GPU GeForce 850M - RAM 8Go DDR3L
            yeeshkul 1 Reply Last reply Reply Quote 0
            • paradadf
              paradadf Staff @yeeshkul last edited by

              @yeeshkul I really don't understand this kind of attitude. You already tried it and it didn't work as expected. You get new instructions and you don't want to believe it.

              If your question was answered, please mark it as solved: Topic Tools -> Ask a question + Topic Tools -> Mark as Solved

              yeeshkul 1 Reply Last reply Reply Quote 0
              • yeeshkul
                yeeshkul @paradadf last edited by yeeshkul

                @paradadf I did try without the script and it didn't work. Both buttons were completely irresponsive. I installed the script - which installed well - and there was no change.

                Why would i believe something that is not even explained, when the RetroFlag company itself directs people to install the script.

                paradadf 1 Reply Last reply Reply Quote 0
                • yeeshkul
                  yeeshkul @Scavy last edited by

                  @Scavy Thank you, i will try this 🙂

                  1 Reply Last reply Reply Quote 0
                  • paradadf
                    paradadf Staff @yeeshkul last edited by

                    @yeeshkul I gave you the same instructions as scavy.
                    And you are in recalbox forum... so you better believe what recalbox people tell you or you should ask retroflag directly.

                    If your question was answered, please mark it as solved: Topic Tools -> Ask a question + Topic Tools -> Mark as Solved

                    yeeshkul 1 Reply Last reply Reply Quote 0
                    • yeeshkul
                      yeeshkul @paradadf last edited by yeeshkul

                      @paradadf I see, i am sorry, i must have missread your post. Thank you 🙂

                      1 Reply Last reply Reply Quote 0
                      • antoni
                        antoni last edited by

                        My personal recommendation is to use this version of the script, to use the reset button to reset game/exit emulator/restart emulation station.

                        https://github.com/crcerror/retroflag-picase

                        Quick Press on Game, will reset the game only
                        Long Press on Game, will quit the emulator

                        ""
                        Multi Switch Shutdown

                        with advanced shutdown features for more natural behaviour:

                        If you press restart if emulator is currently running, then you will be kicked back to ES main menu
                        If you press restart in ES main screen, ES will be restartet (no reboot!), good for quick saving metadata or internal saves.
                        If you press power-off then Raspberry will shutdown

                        All metadata is always saved
                        ""

                        1 Reply Last reply Reply Quote 0
                        • asturur
                          asturur last edited by

                          @antoni Does this script require to unflag the corresponding line in the recalbox config too? or we add the script only?

                          What i m looking for is a script that can shut down the fan of the nespi4 when it turns off the raspberry. The fan never goes off.

                          antoni 1 Reply Last reply Reply Quote 0
                          • antoni
                            antoni @asturur last edited by antoni

                            @asturur

                            Follow the instructions on this page, be sure that you enable the internal <Safe Shutdown> switch.
                            https://github.com/crcerror/retroflag-picase

                            Can you try to run this on your recalbox

                            wget -O - "https://raw.githubusercontent.com/crcerror/retroflag-picase/master/install_recalbox.sh" | bash
                            

                            it must install the following files:

                            /opt/RetroFlag/recalbox_SafeShutdown.py
                            /opt/RetroFlag/recalbox_SafeShutdown.sh

                            /etc/init.d/S99RetroFlag check for the following line

                            python /opt/RetroFlag/recalbox_SafeShutdown.sh &
                            
                            

                            /boot/config check for the following lines

                            enable_uart=1
                            # Overlay setup for proper powercut, needed for Retroflag cases
                            dtoverlay=gpio-poweroff,gpiopin=4,active_low=1,input=1
                            
                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            Want to support us ?

                            75
                            Online

                            99.6k
                            Users

                            28.1k
                            Topics

                            187.1k
                            Posts

                            Copyright © 2021 recalbox.com