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

    How to wire a power button

    Scheduled Pinned Locked Moved Help and Support
    power button
    8 Posts 4 Posters 4.6k 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.
    • Z
      zq8 blazer
      last edited by

      I'm hoping someone can lead me in the right direction. I searched the forum and Google and have found several ways to do it, but not one really goes into detail. I found this video which I like the way this guy did the power button. He mentions that you can setup the power button to work in RetroPie, but doesn't say how. Does anyone know how? Here is the link:

      Pi Model: 3 B
      RetroPie Version Used: 4.01
      Built From: Pre made SD Image on Retropies site.
      USB Devices connected: Din-Mo controller.
      Controller used: dual joysticks and buttons.
      Error messages received: none.

      B 1 Reply Last reply Reply Quote 1
      • A
        acraigl
        last edited by

        Not exactly the solution you were looking for, but I just added an in-line cable power power button. When I click it on, my TV comes on as well with HDMI signal sensing. Easy, and cheap. :)

        https://www.amazon.com/gp/product/B01HEXFQTU
        alt text

        1 Reply Last reply Reply Quote 0
        • R
          rablack97
          last edited by rablack97

          A little confused.

          He's telling you how to do it in the youtube video, wire the button to the pins he's showing and then go through the script steps. It looks pretty straight forward.

          Z 1 Reply Last reply Reply Quote 0
          • Z
            zq8 blazer @rablack97
            last edited by zq8 blazer

            @rablack97 I know, he doesn't tell how to do it in RetroPie though. He says "you can do this in RetroPie", but he doesn't show how to do it.

            @acraigl thanks. I've considered this, but I printed a wall panel that is attached to the back of my arcade controls and am powering the Pi with a regular USB cable so in this case a micro USB won't work. Plus I wanted a mounted button.

            1 Reply Last reply Reply Quote 0
            • R
              rablack97
              last edited by rablack97

              did you try the steps and see if it works? i'll try it today, he's scripting and booting inside of retro pie.

              I have a buddy who builds arcades out of pi's i'll see how he does it and post it here for ya.

              1 Reply Last reply Reply Quote 1
              • B
                backstander @zq8 blazer
                last edited by backstander

                @zq8-blazer @rablack97
                I have something similar setup on my RPi. It works to shut it down but sometimes doesn't work to turn it back on (but sometimes it does).

                Also ETA PRIME's directions are a little bit old. He says to install RPi.GPIO 0.5.11 but 0.63 I believe is the newest version and the wget download points to a file that doesn't exist anymore. You might be able to install RPi.GPIO by using Apt-Get:
                sudo apt-get install python-rpi.gpio python3-rpi.gpio

                1 Reply Last reply Reply Quote 0
                • R
                  rablack97
                  last edited by rablack97

                  0_1482427608674_upload-f1abb75d-668e-4e8b-80f8-fc48514bfcf7

                  what you need is a latching panel mount button, from there its pretty simple cut your USB cable and bring your 5v from plug through the switch to the pi.

                  same thing this is doing

                  0_1482427763582_upload-e5c35f44-7704-4af8-a4f2-e3af31666276

                  0_1482428084175_upload-a8296877-ee34-4fa0-aee7-b10ad40a6357

                  make sure you get latching and not momentary

                  Z 1 Reply Last reply Reply Quote 0
                  • Z
                    zq8 blazer @rablack97
                    last edited by

                    @rablack97 I can make that work! I printed a panel for the HDMI, two USB-A, and a USB-B(power). I can cut the USB-B to micro USB (which is what is inside the arcade panel console), run a wire to that button(which I actually ordered yesterday), and then plug the other end into the pi.

                    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.