RetroPie Add A Power Button / Switch Raspberry Pi 1 2 3

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • HOW TO ADD A LED - • How To Add A Power LED...
    In this video, i show you how to add a power button / Switch to your Raspberry pi 1 2 or 3 Running Retropie
    TEXT FILE V1.1"added sudo apt-get install update"-
    mega.nz/#!ppdy...
    Barry Hubbard Website -www.barryhubbar...
    pi/howto-raspberry-pi-raspbian-power-on-off-gpio-button/▼Do you run an AdBlocker? Consider donating-
    bit.ly/2gy2ffr
    ▼GET A RASPBERRY PI3 ON AMAZON HERE-
    amzn.to/2ea3zAQ
    ▼ GET A FULL RASPBERRY PI 3 KIT HERE- amzn.to/2gPNJ1F
    Buy A Button On Amazon Raspberry Squid Button Twin Pack-
    amzn.to/2fTAVmg
    VIDEO HOW TO ADD A POWER BUTTON TO RECALBOX- • Recalbox Add A Power B...
    DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. DISCLAIMER: Under section 107 of the Copyright Act 1976, allowance is made for “fair use” for purposes such as criticism, comment, news reporting, teaching, scholarship, education, and research. No Games Or Applications Are Included Or Added On Or To Any Device In This Video

ความคิดเห็น • 853

  • @sandydog00
    @sandydog00 4 วันที่ผ่านมา

    Sorry to post on such an old video, but your tutorials have REALLY helped me in building my retropie arcade1up cabinet.
    I have a latched (NC/NO) LED power switch that I originally used and it worked great. I recently had to do a fresh install and can not find the info on what script I used to use to get it to work properly again. I have it so that it powers on and the LED turns on, but I can't get it to do a safe shutdown no matter what I try. I hit the button when the Pi is on, and nothing happens. I'm currently using GPIO3, GPIO14 and GND. Could you please help me?

  • @robertkennion9020
    @robertkennion9020 3 ปีที่แล้ว +2

    Is this still valid for pi4??

  • @Oxy-uu5rj
    @Oxy-uu5rj 11 วันที่ผ่านมา

    Hi ETA PRIME, congratulations on your work, it works great on my Raspberry Pi 3 model B ! I wanted to ask you, how can I turn off my fan that has 3 cables (power pin2 - ground pin9 - gpio pin8) during shutdown? The fan turns on correctly during boot, but when I turn it off via the button it stays on and continues to spin. It only stops if I turn off the power by unplugging the power cable. Is there a mod to do this? Can you help me? Thanks, best regards from Italy

  • @erraddict
    @erraddict 5 หลายเดือนก่อน +1

    Do you have instructions on how to add a power switch like this but for Batocera?

  • @benr.3009
    @benr.3009 2 ปีที่แล้ว +1

    2022 update: all installs in first few steps error 404 cant find the files. im gonna have to look for updated info

  • @ien2023
    @ien2023 5 ปีที่แล้ว +1

    This video is dated and the link code doesn't work anymore. This link works for me:
    pie.8bitjunkie.net/retropie-shutdown-and-startup-switch-the-easy-way
    It's a one line that install the package for you. Pin setting is still the same.

  • @rinzebloemenkamp8602
    @rinzebloemenkamp8602 3 ปีที่แล้ว +1

    i did al the steps but now my pi is stuck on a black screen after booting

  • @tusabez1
    @tusabez1 3 ปีที่แล้ว +14

    For those of you that have a Raspberry Pi 4, replace step 6, 7, and 8 with the ones below and it will work.
    Next you need to get RPi.GPIO:
    6. wget pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.7.0.tar.gz
    Uncompress the packages:
    7. sudo tar -zxvf RPi.GPIO-0.7.0.tar.gz
    move into the newly created directory:
    8. cd RPi.GPIO-0.7.0

    • @lukli425
      @lukli425 ปีที่แล้ว +1

      Thank you

    • @funkymonk4688
      @funkymonk4688 ปีที่แล้ว +1

      Thank you!! You solved my problem!!

    • @jarrod8461
      @jarrod8461 9 หลายเดือนก่อน

      Thanks. Works like a charm. Previously I could power up the PI but the shutdown did not work

  • @UncleCatfish
    @UncleCatfish 3 ปีที่แล้ว +1

    does this work for the pi4 with the same steps?

  • @zeful
    @zeful 4 ปีที่แล้ว +1

    For anyone trying this in 2020+ you just need to use one line of script to get the on/off button to work. pie.8bitjunkie.net/retropie-shutdown-and-startup-switch-the-easy-way#testing

    • @danscarola6410
      @danscarola6410 3 ปีที่แล้ว

      all I get with putty when I enter host name is a black screen and a green curser top left corner. cannot type

  • @spyroskatt
    @spyroskatt 4 ปีที่แล้ว +1

    Now the pi never starts it's only showings the start-up screen and then shuts down

  • @huy_ngo
    @huy_ngo 3 ปีที่แล้ว

    Thank you! For the latest RPi.GPIO version, go to pypi.org/project/RPi.GPIO/

  • @playmaker5601
    @playmaker5601 7 ปีที่แล้ว

    Always check your eggs!!!!

  • @Zetiarcade
    @Zetiarcade 4 ปีที่แล้ว

    Thanks you!!! my hero!!

  • @HousewerkRecords
    @HousewerkRecords 6 หลายเดือนก่อน

    Hey there, I’m using one of these goop pins for the fan. Will this work on any other pins or can the fans be moved. I guess they’d need to be reprogrammed.

  • @rmsamonte
    @rmsamonte 3 ปีที่แล้ว

    Flawless Victory!

  • @Jaimo.87
    @Jaimo.87 11 หลายเดือนก่อน

    I just installed this now in 2023 and it works. it is amazing! Thank you for this tutorial.

  • @btmiller14
    @btmiller14 6 ปีที่แล้ว

    fantastic video works like a charm

  • @devbloggs
    @devbloggs 3 ปีที่แล้ว

    is this still a working tutorial??

  • @hopperdropper7137
    @hopperdropper7137 6 ปีที่แล้ว

    Great stuff thank you

  • @postgrungelord
    @postgrungelord 3 ปีที่แล้ว +1

    Hi, does this work on a Pi 4?

    • @ROCKY44
      @ROCKY44 2 ปีที่แล้ว

      Some Q, did you get it to work on a Pi4 Solomon?

  • @GASH_one
    @GASH_one 7 ปีที่แล้ว

    THANK YOU SO FUCKING MUCH BRO!!!

  • @retrox684
    @retrox684 7 ปีที่แล้ว

    Does this work with ubuntu mate

  • @julionogueira8507
    @julionogueira8507 5 ปีที่แล้ว

    No corrupted sdcard?

  • @STARSCREAMx22
    @STARSCREAMx22 2 ปีที่แล้ว

    dude my Raspberry Pi 3 Model B wont connect with PuTTY

  • @RafaelKassier
    @RafaelKassier 4 ปีที่แล้ว

    the v1.1 script is wrong
    first command should be "sudo apt-get update" not "sudo apt-get install update"

  • @Lawthugg
    @Lawthugg 6 ปีที่แล้ว

    Does anyone know the name the proper name for the white pin connector attached to the buttons

  • @potatobro7
    @potatobro7 6 ปีที่แล้ว

    awesome thanks!

  • @marcoburningblue
    @marcoburningblue ปีที่แล้ว

    ETA can I exchange the script so instead of Shut down it would reboot the pi?, Thanks

  • @shaggyjd2314
    @shaggyjd2314 5 ปีที่แล้ว

    Still works 01/18/2019

  • @lukli425
    @lukli425 ปีที่แล้ว

    Does this work on Raspberry pi 4?

  • @knightrider4352
    @knightrider4352 6 ปีที่แล้ว

    please update. the wget line is broken.

  • @69ballpython
    @69ballpython 3 ปีที่แล้ว +1

    how todo this on a Pi 4? is it the same?

  • @jarrod8461
    @jarrod8461 9 หลายเดือนก่อน

    I have a RPi 4, pin 4 and 6 is used for the fan. Can I use any other ground pin for the switch?

  • @don091
    @don091 3 ปีที่แล้ว

    will this work with rpi4?

  • @kevinespino7590
    @kevinespino7590 7 ปีที่แล้ว

    Will this work with Kodi LibreElec?

  • @Retrobution
    @Retrobution 5 ปีที่แล้ว

    Anyone able to help me on this - Im building the NeoGeo X case with a pi, but id like the button on the top (menu) to make the pi quit retropie and go back to the game select menu (as if you press a hotkey combo to quit the game).
    Anyone know how to do this? Its pretty much these steps but instead of it running a power down command, it would act as a keyboard key button that id press when configuring the controllers.

  • @charliemakescartoons
    @charliemakescartoons 5 ปีที่แล้ว

    Great tutorial. However at 12:14 it looks like it just powers off the pi. Is there a way to configure it so it does the safe shutdown with the button?

  • @joaquindayrit5746
    @joaquindayrit5746 7 ปีที่แล้ว

    Would this work with any distro?

  • @Gadgets4you
    @Gadgets4you 2 ปีที่แล้ว

    Thank you so much man, it worked at my rasp pi 3b+ wirth running magic mirror os

  • @dmbudinich
    @dmbudinich 5 ปีที่แล้ว

    Why not just add “dtoverlay=gpio-shutdown” to the config.txt?? Done without having to do anything else!!!!!!

  • @emilyjunior
    @emilyjunior 5 ปีที่แล้ว

    Top

  • @Hippie459MN
    @Hippie459MN 4 ปีที่แล้ว +1

    This doesnt work at all anymore. I get a lot of failures and unable to loacte packages and 404 not found. This used to work and sadly now it doesnt. Anyone have a working script for this?

    • @Hippie459MN
      @Hippie459MN 4 ปีที่แล้ว

      Never mind. I figured it out. Your first command should be "sudo apt-get update" Not "sudo apt-get install update"

    • @secretsather
      @secretsather 4 ปีที่แล้ว

      I had to do a "sudo apt-get udpate" then "sudo apt-get upgrage" first to get it to work

  • @beaulieuRule
    @beaulieuRule 7 ปีที่แล้ว

    Again clear,ty

  • @megasizer5119
    @megasizer5119 ปีที่แล้ว

    It works perfectly, thank you.

  • @therexershow
    @therexershow 4 ปีที่แล้ว

    My fan still runs after shutdown, any way to stop this? Only want to it to run when fully powered.

  • @brianlicitra7824
    @brianlicitra7824 6 ปีที่แล้ว

    Thanks!

  • @SquallDNA
    @SquallDNA 6 ปีที่แล้ว

    WORKED!

  • @sethgibbons80
    @sethgibbons80 6 ปีที่แล้ว

    ETA can you wire the fan and led in parallel and have the fan shut off when the pie shuts off and the led?

  • @Murlockingqc
    @Murlockingqc 6 ปีที่แล้ว

    How do you boot in RetroPie ?

  • @corysmith6990
    @corysmith6990 5 ปีที่แล้ว

    So the script to install Python doesn't work anymore. Keep getting errors and "failed to fetch" along with "404 not found"

  • @MidwestVillain_Z
    @MidwestVillain_Z 4 ปีที่แล้ว

    should I not use the piswitch that comes with the canakit?

  • @InFlamesWeTrust420
    @InFlamesWeTrust420 7 ปีที่แล้ว

    My pi keeps shutting down after I connect the power switch. Led is fine but the button is killing the power

  • @Jthemadtube
    @Jthemadtube 7 ปีที่แล้ว

    Hi @etaprime, do this script save metadata when shutdown? Thanks

  • @antprintdesignprint5003
    @antprintdesignprint5003 3 ปีที่แล้ว

    Is this still current? will this work on a raspberry pi 4 running retropie ,also will it work on a slide switch?

  • @michaelodonnell4467
    @michaelodonnell4467 7 ปีที่แล้ว

    Great video, just did it worked great

  • @squirralien1863
    @squirralien1863 2 ปีที่แล้ว

    Barry Hubbard's page doesn't seem to work for me.
    Do you know if this would work with Fruitbox, ?
    Can you add fruitbox to retropie as an option just like a game console ?

  • @pipesfranco
    @pipesfranco 4 ปีที่แล้ว

    Does this work on pi4?

  • @paulofonseca7634
    @paulofonseca7634 7 ปีที่แล้ว +1

    Hi, can you help me out? In my case, I can only power on with the button. The power off isn't happening..

    • @nicholasschoepp1791
      @nicholasschoepp1791 7 ปีที่แล้ว +1

      I'm having the same issue! My momentary switch isn't shutting the RPi down. Does anybody have any insight on what Paulo and I can do to fix this?

    • @rinzebloemenkamp8602
      @rinzebloemenkamp8602 3 ปีที่แล้ว +1

      did you ever fix it? i have the same problem :(

    • @rinzebloemenkamp8602
      @rinzebloemenkamp8602 3 ปีที่แล้ว

      @@nicholasschoepp1791 did you ever fix it?

  • @mariodorrico9165
    @mariodorrico9165 4 ปีที่แล้ว

    Hi, I have followed you instruction but at last reboot retropie shutdowns automatically first to launch emulation station, why? I have retropie 4.6 on pi 4 thanks

  • @otakuwolf
    @otakuwolf ปีที่แล้ว

    So this should work for a pi 4 right?

  • @zacharybrown4323
    @zacharybrown4323 7 ปีที่แล้ว

    Hey ETA! Is it possible to connect this to the Joystick board that runs USB to the Raspberry Pi. Like, if i'm using an Arcade controller build that doesnt have Pi inside it...

  • @Theshrimpzoo
    @Theshrimpzoo 7 ปีที่แล้ว

    Are there smaller buttons . Something that would fit a pie 3 case

  • @Allstabor1075
    @Allstabor1075 7 ปีที่แล้ว

    Does it shutdown xbmc too like this?

  • @TheREALBadpun
    @TheREALBadpun ปีที่แล้ว

    Hello, I'm not sure if you still check this video anymore but I need some help. Is there any way to do this in retropie 4.8? I'm trying to make an off button for a retropie machine for my father and this doesn't work. Is there anything I can do? Thank you.

  • @ch41ky822
    @ch41ky822 3 ปีที่แล้ว

    Does this script still work? I'm looking to add a power button to my cabinet i have a raspberry pi 4 8gb

  • @xpectz
    @xpectz 5 ปีที่แล้ว

    Is this on and off method "safe" should be because of the script, correct?

  • @robhopper5729
    @robhopper5729 3 ปีที่แล้ว

    this doesn't seem to work for me. I followed every step to the "T" and yet my button doesn't do anything. I swapped the button with another and still nothing

  • @chuckthetekkie
    @chuckthetekkie 7 ปีที่แล้ว

    The reason it shouldn't ever corrupt the SD Card is because the script calls the proper linux shutdown command "shutdown -h now" and therefore shuts down and unmounts the SD card.

  • @mikelunsford2587
    @mikelunsford2587 2 ปีที่แล้ว

    Does it shut down or go to standby?

  • @MrHurricaneFloyd
    @MrHurricaneFloyd 7 ปีที่แล้ว

    Weird that the script has buttonState1 = GPIO.input(5) in it yet the actual Pin5 is GPIO3.

  • @erick_bst
    @erick_bst 7 ปีที่แล้ว

    Does this work for the raspberry pi zero?

  • @sliturarse
    @sliturarse 6 ปีที่แล้ว

    To copy & paste text from notepad to putty. (Copy whatever text you need) Hit Shift button, then INSERT button on your keyboard.

  • @TrashPandamonium
    @TrashPandamonium 5 ปีที่แล้ว

    FYI, it seems nowadays you don't have to setup a script to handle the poweroff!
    Nowadays, all you need to do is setup a dtoverlay, by setting "dtoverlay=gpio-shutdown,gpio_pin=3
    " in /boot/config.txt.
    You can find more information here:
    www.stderr.nl/Blog/Hardware/RaspberryPi/PowerButton.html

  • @Semper_5
    @Semper_5 6 ปีที่แล้ว

    any update to script to shut fan down as well?

  • @hermesalvarenga
    @hermesalvarenga 4 ปีที่แล้ว

    I tried adding a power button but that just caused my pi to shut down and wont turn back on. Stays on the red light... I guess I have to buy a new Raspeberry Pi 3 B+...

  • @PoontangFunch
    @PoontangFunch 7 ปีที่แล้ว

    is it possible to change the pins around to trigger the script. currently i have a fan plugged into pins 4 and 6. or could i just solder the fan to 4 and 6 and the switch to 5 and 6?

  • @defiant3636
    @defiant3636 4 ปีที่แล้ว

    Putty is a nightmare on a macbook and confusing. Has anyone managed to do this with a Mac?

  • @xorben1981
    @xorben1981 7 ปีที่แล้ว

    How does the Linux unter Retropie flush data etc.? You just pull the plug, or does it boot down in the background?
    [edit] Just saw, that you call a shutdown. Now I am asking my selfe, how does this corrupt a SD Card? AFAIK Retropie calls a shutdown, while klicking on the shutdown button in the menu [/edit]

  • @charissaanola4356
    @charissaanola4356 2 ปีที่แล้ว

    What if GPIO 6 is already occupied, can you move it to another one and still use the same scripts that you provided?

  • @daniel2000dn
    @daniel2000dn 7 ปีที่แล้ว

    tnx

  • @SPRTN085
    @SPRTN085 3 ปีที่แล้ว

    I had followed your tutorial on this, and sometimes my Raspberry Pi turns on by itself with no real indication why. Can you help me understand if this is just something I will have to deal with? or is it something I can fix? Thank you.

  • @JustAFatGuyInTX
    @JustAFatGuyInTX 6 ปีที่แล้ว

    The Amazon link is showing unavailable. Is there a similar button we can use?

  • @billto6773
    @billto6773 7 ปีที่แล้ว

    Lover your work, I would like it if you could make an updated about accessing the Retropie3 - 4.2 with putty. You have to enable the SSH in Retropie3 - 4.2. found infor on www.raspberrypi.org/documentation/remote-access/ssh/
    ENABLE SSH
    As of the November 2016 release, Raspbian has the SSH server disabled by default. It can be enabled manually from the desktop:
    Launch Raspberry Pi Configuration from the Preferences menu>Navigate to the Interfaces tab>Select Enabled next to SSH>Click OK

  • @GyanVriksha996
    @GyanVriksha996 5 ปีที่แล้ว

    ETA, you r the man

  • @lukejones4245
    @lukejones4245 6 ปีที่แล้ว

    I’m building a super pi boy and I have the power button connected but I need to add a switch for the speaker, I’m using a powerboost 1000 and an 2.5 w class d amp

  • @dragonascension
    @dragonascension 7 ปีที่แล้ว

    i followed your instructions and i guess i messed up somewhere... the button wakes up the pi but doesn't shut it down when pressed and the pie is on... Where did i mess up?

  • @Boz-vf5my
    @Boz-vf5my 7 ปีที่แล้ว

    Hi, I have a hifiberry dac attached to my pi and because of this I can't use pin 5 (GPIO3). GPIO2 and 18-21 also can't used. Can I use a different pin? and if so what changes do I need to do to the script?

  • @jny78
    @jny78 7 ปีที่แล้ว

    Hey eta. How do you rotate a monitor screen

  • @Redmongames
    @Redmongames 7 ปีที่แล้ว

    I was wondering at 5:34 you moved your window and the borders only moved I like it how do you do that?

  • @SommaRain
    @SommaRain ปีที่แล้ว

    What should i do if i want to use 37 Pin (GPIO 26) instead of pin 5?

  • @sm9226_1
    @sm9226_1 2 ปีที่แล้ว

    is there a script that will cut power to the pi completely with the power button? this script only works to turn the pi on it doesnt shut it down and doesnt cut power like i want it to

  • @jullebulle69
    @jullebulle69 4 ปีที่แล้ว

    Hello i just done all the steps on my raspberry 3b+ and every time I start it I just go through the start things and then shutdowns and now it don’t starts

  • @mikemoss6045
    @mikemoss6045 3 ปีที่แล้ว

    so is there something i missed? only if i test the script (sudo python .../shutdown.py) does it function as intended until it boots back up.. then the script never loads for some reason.

  • @tornay131
    @tornay131 5 ปีที่แล้ว

    Can I connect the arcade 1up switch to the raspberry pi 3 b+?

  • @JP-vz2qn
    @JP-vz2qn 5 ปีที่แล้ว

    Hey ETA. Looking for some help. I am trying to use Arcade 1UP with on/off switch. It was working yesterday and then when I went to do all my tie downs, reverse the orientation of the switch and clean up wiring, I can no longer get the switch to do anything. Using Wolfanoz 32 GB image. I did the programming steps in this video and nothing seems to work. The button no longer does anything. When I remove the pin connector from pins 5&6, the pi does shut off. When I replace the pin connector, the pi turns on. Any ideas?

  • @danielchung7067
    @danielchung7067 7 ปีที่แล้ว

    I have the Raspberry Pi 1 Model B, but no matter what I do this script will not run. Any suggestions?

  • @alap4381
    @alap4381 4 ปีที่แล้ว

    It was working with rpi 3 B+, but it does not work with rpi 4 B. When I press the button in turns on but it does not turn of on button pressed! I am using Moode Audio. Any suggestion please.

  • @metrocity4117
    @metrocity4117 4 ปีที่แล้ว

    Great work eta, you can help me? I use case neo geo x, and I used the power button of ngx and installed on the pi3 but red goes to the button while the black on the sk usb ports, do you know how fast can solve it? Post this photo fyi, thanks ibb.co/cJ0DyFG