Recalbox Forum

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

    Power on/off button on OKDO Power-HAT Case

    GamePad/GPIO/USB encoder
    onoff button okdo power-hat case
    2
    5
    252
    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.
    • NGC2264
      NGC2264 last edited by

      Hi all,

      I'm trying to get the power button working of the OKDO Power-HAT Case on the RPi4.

      On Raspberry Pi OS works with:

      dtoverlay=gpio-poweroff,gpiopin=18,active_low=0
      dtoverlay=gpio-shutdown,gpio_pin=17,active_low=1,gpio_pull=up
      

      I tried to put these lines in config.txt but does not work.
      An help would be appreciated, I'm not so expert on this kind of stuff.

      Thanks!

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

        @NGC2264 I don't know if this model is compatible, see if it helps:

        https://recalbox.gitbook.io/documentation/v/francais/tutoriels/autres/ajouter-un-bouton-on-off-a-votre-recalbox

        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
        • NGC2264
          NGC2264 last edited by

          @Zing I saw that and works fine with a generic push button, the problem is with this power hat.
          I think I have to edit something in /recalbox/scripts/rpi-pin56-power.py but I have no idea of what to change.

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

            @NGC2264 Sorry, but I don't have enough technical knowledge to help, the only content regarding this rpi-pin56-power.py script that I found was:
            https://forum.recalbox.com/topic/22366/carte-wm8960-et-bouton-on-off-pin56push

            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
            • NGC2264
              NGC2264 last edited by

              Small step forward, in /recalbox/scripts/rpi-pin56-power.py I replaced GPIO from pin 5 to 17 and now by pressing the power button the RPi4 shutdown.

              Now would need to setup the power on and LEDs behavior.

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

              Want to support us ?

              113
              Online

              89.8k
              Users

              26.1k
              Topics

              181.0k
              Posts

              Copyright © 2021 recalbox.com