Recalbox Forum

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

    PIN56PUSH not working to shutdown Recalbox 8.0 Electron (CoolerMaster Pi Case 40)

    Recalbox General
    pin56push recalbox 8.0 electron coolermaster case
    3
    7
    882
    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.
    • Gorux
      Gorux last edited by

      Hi,

      First of all, Recalbox is amazing! Big shout out to the devs and other volonteers for this!

      I'm having a little issue with the shutdown script and I'm not sure what I'm doing wrong. I installed Recalbox 8.0 on my Pi4 8gb which is mounted in a CoolerMaster Pi Case 40. This case is equiped with a momentary switch shorting the GPIO3 (pin 5 and 6). Pressing the button turn ON the Pi4 and boot up Recalbox as intended.

      Then I followed this wiki page to activate the shutdown script : https://wiki.recalbox.com/en/tutorials/others/add-on-off-button-to-your-recalbox

      Following that, I uncommented the PIN56PUSH in recalbox.conf and rebooted. But the button does absolutly nothing.

      79e6bc7b-13ea-4300-930a-6f197f8ef640-image.png

      I even tried to physically short the pin #5 and #6 but still nothing.

      What am I missing here?

      Zing 1 Reply Last reply Reply Quote 0
      • Zing
        Zing Global moderator Translator @Gorux last edited by

        @gorux See if this helps:
        https://forum.recalbox.com/topic/25548/recalbox-reboot-au-lieu-de-s-arreter

        Se a minha resposta foi útil, por favor, dê um voto positivo, clicando na seta para cima logo abaixo da resposta, ao lado de "citar".
        If my answer was helpful, please give a positive feedback by clicking the up arrow below the answer, next to "quote".

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

          @Zing Thanks for your reply! I've read the different post, links and github open issues but didn't find a fix.

          I'm not a linux guru but still, is there a way for me to "trace" if something happen when I press the button. Some kind of event viewer or something? Or see if the process is actually running? I saw the command "ps -al" somewhere on this forum but it's not listing anything other than this so I guess I'm doing it wrong...

          b970e534-bb52-401a-ace2-23bf84333e37-image.png

          I'm connected as root via SSH.

          Basically, I'm trying to find if the scripts are loaded or not to try to trace the issue...

          Zing 1 Reply Last reply Reply Quote 0
          • Zing
            Zing Global moderator Translator @Gorux last edited by

            @gorux

            Basically, I'm trying to find if the scripts are loaded or not to try to trace the issue...

            I think you have not completely read the post I mentioned, please read this part where the user cites how he solved his problem:
            https://forum.recalbox.com/topic/25548/recalbox-reboot-au-lieu-de-s-arreter/8

            Se a minha resposta foi útil, por favor, dê um voto positivo, clicando na seta para cima logo abaixo da resposta, ao lado de "citar".
            If my answer was helpful, please give a positive feedback by clicking the up arrow below the answer, next to "quote".

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

              @Zing Merci de prendre le temps de me répondre, je l'apprécie.

              Cependant, je ne suis pas certain que ce soit le même problème. Le cas dans l'autre post indique que le système redémarrait au lieu de fermer. Donc le script roulait mais il y avait une erreur dans le script de RetroFlag (que je n'utilise pas car je n'ai pas ce boitier). J'ai vérifié le script que je crois utiliser, soit /recalbox/scripts/rpi-pin56-power.py, et bien que je ne sois pas un développeur Python, je ne crois pas y voir d'erreur. (Je suis développeur, mais pas sous Python/Linux). Voir ci-dessous :

              85b56e1a-694f-46a9-a010-26a922d691a7-image.png

              Lorsque je pèse sur le bouton pour faire un shutdown, il ne tente pas de rebooter à la place, il ne se passe tout simplement rien. Ceci me fait croire que le script n'est pas appelé dutout pour une raison qui m'échappe. Bien entendu, j'ai peut-être tord aussi, ça en fait du script à lire pour comprendre tout ça 😊

              J'ai tenté de voir dans les process avec la commande "ps" via un SSH mais je ne sais pas trop ce que je cherche rendu là...

              Darkneo 1 Reply Last reply Reply Quote 0
              • Darkneo
                Darkneo @Gorux last edited by

                @gorux Pour info, j'ai aussi le soucis sur le poweroff (alors que le poweron fonctionne comme il faut).

                Apparemment un correctif va arriver sur les 2 fonctions (PIN56PUSH & PIN356PUSHRESET) en version 8.0.1.

                https://gitlab.com/recalbox/recalbox/-/issues/2096

                Gorux 1 Reply Last reply Reply Quote 0
                • Gorux
                  Gorux @Darkneo last edited by

                  @darkneo Merci pour l'information!

                  Je vais arrêter de fouiller alors et simplement être patient! 🙂

                  Merci aussi @Zing pour le temps que tu m'as alloué!

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

                  Want to support us ?

                  77
                  Online

                  99.3k
                  Users

                  28.1k
                  Topics

                  187.1k
                  Posts

                  Copyright © 2021 recalbox.com