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

    Boot on button press

    Scheduled Pinned Locked Moved Help and Support
    boot
    8 Posts 4 Posters 325 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.
    • F
      Fredthedoggy
      last edited by

      I have a raspberry pi 0, that auto-boots to pacman, and will shutdown with 1 button press.
      It is always plugged in, but stays shut down, until I unplug, and plug it back in.

      Is it possible to make it so that when I press a certain button (or any button) it will start booting up?

      My plan is to have it so that I can just press the coin button or something, and it boots up into pacman, and then I can play immediately, and dont need access to the wires.

      Thanks in advance -Fred

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @Fredthedoggy
        last edited by

        @Fredthedoggy You need a GPIO connected button to wake up the PI -

        • https://www.raspberrypi.org/forums/viewtopic.php?p=733677#p733677.
        • https://raspberrypi.stackexchange.com/questions/13203/creating-halt-wake-button
        1 Reply Last reply Reply Quote 0
        • F
          Fredthedoggy
          last edited by

          @mitu I mean and of the buttons on the control panel (Like coin)

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @Fredthedoggy
            last edited by

            @Fredthedoggy said in Boot on button press:

            @mitu I mean and of the buttons on the control panel (Like coin)

            The answer is the same - to wake up the PI (without any additional hardware like ControlBlock/ATXPi/etc.) you'd need to short 2 specific GPIO PINs and somehow this needs to be connected to a button. The PI is not a regular computer with an on/off switch - you need to add this yourself.

            1 Reply Last reply Reply Quote 0
            • ClydeC
              Clyde
              last edited by Clyde

              Another way is a remote-controlled power socket. I'm using one to power on and off the Pi 3b in my upright arcade cabinet. Not so elegant than a GPIO solution, but the Pi is really powered off this way.

              One thing to keep in mind is to wait for the Pi to be shut down completely before switching it off to avoid data loss. My cab has illuminated buttons connected to one of the Pi's usb sockets. When they go off, I know that I can cut the power. :)

              1 Reply Last reply Reply Quote 0
              • F
                Fredthedoggy
                last edited by

                @mitu When you short those pins, does it turn off too?
                and
                @Clyde I could just build a switch into the side or something.

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

                  @Fredthedoggy Yes... take a look to this script here ....
                  You can use --generic parameter for one button. But you need to install raspi-gpio with sudo apt install raspi-gpio before.

                  Shematics for wiring can be taken from here
                  https://scribles.net/adding-power-switch-on-raspberry-pi/

                  1 Reply Last reply Reply Quote 0
                  • F
                    Fredthedoggy
                    last edited by

                    So it is impossible to program it to only shutdown, but not boot? Because I have it setup so it boots into on game, then another, and then shuts down and I don't want to accedently turn it off

                    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.