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

    Simple 'power on' switch?

    Scheduled Pinned Locked Moved Help and Support
    powerswitchgpiotogglepush button
    34 Posts 17 Posters 22.4k 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
      Zigurana @pc4life0427
      last edited by

      @pc4life0427, using this switch is the same thing as pulling the plug.

      If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

      P 1 Reply Last reply Reply Quote 0
      • P
        pc4life0427 @Zigurana
        last edited by

        @Zigurana yes I know that.. that is why I was asking about the code.. if I add the right code will that work? I am looking at doing a switch from GPIO.. but if I can run the code then shutdown from start menu etc..

        Z 1 Reply Last reply Reply Quote 0
        • Z
          Zigurana @pc4life0427
          last edited by

          @pc4life0427 I do not understand your question. Do you mean to use two buttons, one on the usb cable, and one on the gpio's?

          If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

          P 1 Reply Last reply Reply Quote 0
          • P
            pc4life0427 @Zigurana
            last edited by

            @Zigurana I want to stop using the USB.. yes.. that is why I was asking about GPIO...

            But I have seen code for proper shutting down.. then I can use the USB switch I have to then turn off completely

            Z 1 Reply Last reply Reply Quote 0
            • Z
              Zigurana @pc4life0427
              last edited by

              @pc4life0427 Yes. For that you can use the script I linked to above.
              Regarding using the cable switch as well, unless you are operating on battery power, I dont see the point. The remaining <1 Watt (120mA @ 5V) (source) is negligible otherwise.

              If tetris has thought me anything, it's that errors pile up and that accomplishments dissappear.

              P 1 Reply Last reply Reply Quote 1
              • B
                Brewskii
                last edited by BuZz

                [removed]

                P 1 Reply Last reply Reply Quote 2
                • P
                  pc4life0427 @Zigurana
                  last edited by

                  @Zigurana thanks..

                  1 Reply Last reply Reply Quote 0
                  • P
                    pc4life0427 @Brewskii
                    last edited by

                    @Brewskii yes I am subbed to him.. he makes great videos...I watched it.. being in Japan it's hard to get cheap switches... I did find this one on Amazon.. was thinking about putting on top of case.. 0_1480982756957_IMG_7892.PNG

                    FlyingTomahawkF 1 Reply Last reply Reply Quote 0
                    • FlyingTomahawkF
                      FlyingTomahawk @pc4life0427
                      last edited by

                      @pc4life0427

                      Hi fellow Gaijin.
                      Old topic I know but regarding the switch. Here a couple sites that sell all kinds of switches and parts here in Japan.
                      I thought I leave this here for others to find.

                      https://www.sengoku.co.jp/

                      http://www.marutsu.co.jp/

                      https://www.monotaro.com

                      http://www.robotshop.com/jp/ja/

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        pc4life0427 @FlyingTomahawk
                        last edited by

                        @FlyingTomahawk thanks! πŸ‘πŸ»

                        1 Reply Last reply Reply Quote 0
                        • S
                          smartpig @SloTayHolmes
                          last edited by

                          @SloTayHolmes I second the Power Block (new version of the Control Block I am using). Not only does it do what the OP is asking for powering up the Pi, but it's great when something goes wrong and you can't exit an emulator or need to shut down but can't get to emulatorstation.

                          1 Reply Last reply Reply Quote 0
                          • Raider2747R
                            Raider2747
                            last edited by

                            pc4life0427 i'm getting the switch you posted a picture of soon how do you attach the button to the raspberry pi 3 because I have a Pi 3 in a Tinytendo64 case, with a red status LED replacing the already 3D printed red part. How do you use the button and where do you put it in the case. Also, how do you put a script to the button to serve as a safe On/Off switch?

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              pc4life0427 @Raider2747
                              last edited by

                              @raider2747 sorry I never installed. I bought a Nespi case and used code to shut down from forums

                              1 Reply Last reply Reply Quote 0
                              • soggypeteS
                                soggypete
                                last edited by

                                Try following this video tutorial. Worked wonders for me.

                                1 Reply Last reply Reply Quote 0
                                • Raider2747R
                                  Raider2747
                                  last edited by

                                  Nah I'm not going to get that case and LED and the power button I'm getting the Element14 Pi Desktop case now it has a safe shutdown power button u should get it watch the ETA Prime video on it

                                  1 Reply Last reply Reply Quote 0
                                  • E
                                    edale
                                    last edited by edale

                                    Go to this website: http://www.makeuseof.com/tag/add-reset-switch-raspberry-pi/
                                    And look for this section: "Give Your Raspberry Pi A PC-Style Soft Reset Switch" It's about 1/3 of the way down the page. (the entire page has relavent info though)
                                    The section I'm talking about has this video:

                                    As long as you have a rev2 or newer Pi, you can add a simple reset switch that'll work how you want.

                                    Minor soldering (adding a 2-pin header) involved. You can just solder the switch directly to the header if you need to.

                                    Note, I've never actually done this myself.

                                    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.