Power on and off
-
@ExarKunIv now this is right up my alley, thank you for this video going to try thiss tonight after i go through left over pc parts from a few bulds, i know thers a switch in there somewhere.
-
@relivingthepast thanks for the sponces, i guess to power on without a button just un plug then re plug, too lazy for that, gessh.
-
Interesting... but isn't your pi still technically powered on with that method? What is happening on the board while the power is still plugged in and the red light is on? I prefer the powerblock because it actually powers off the pi completely.
-
from that i have found it is in standby mode, just like a PS4 and Xboxone. those system are never truly off, and the Pi is built to run 247. so it being in a standby mode is no big deal for it
-
@ExarKunIv
Have you or anyone heard of this http://www.ebay.com/itm/IR-Remote-Control-Switch-Module-Power-Button-Module-for-Raspberry-Pi-3-2-Model-B-/222412691189?hash=item33c8d456f5:g:CaQAAOSwTuJYprud.
It looks like it should work, anyone know if it needs script? Or does anthing you do need script? Thanks again -
@relivingthepast
http://wiki.52pi.com/index.php/Power_Button_For_RPi_SKU:_EP-0077How to set it up
-
Remove your TF card and connect it to your PC or laptop with TF card adapter.
-
Modify /boot/config.txt file as following, for example, my pi is Raspberry Pi 3 model B:
device_tree=bcm2710-rpi-3-b.dtb
dtoverlay=power-off,gpiopin=26
dtoverlay=pi3-act-led,gpio=21
NOTE: device_tree=PARAMETER is depends on your Raspberry Pi's model.
more info please access this link:
[Device Tree| https://www.raspberrypi.org/documentation/configuration/device-tree.md]
Raspberry Pi model Device_Tree Info
Raspberry Pi B : device_tree=bcm2708-rpi-b.dtb
Raspberry Pi 2B : device_tree=bcm2709-rpi-2-b.dtb
Raspberry Pi B+ : device_tree=bcm2708-rpi-b-plus.dtb
Raspberry Pi 3 B: device_tree=bcm2710-rpi-3-b.dtb -
Install the library of wiringPi and Download shell script to check the GPIO pin's status:
sudo apt-get install -y wiringPi
cd ~
git clone https://github.com/yoyojacky/powerbutton.git
cd ~/powerbutton
sudo mv ~/powerbutton/gpioshutdown /etc/init.d/
sudo chmod +x /etc/init.d/gpioshutdown -
Edit the initialized file in /etc/rc.local :
sudo nano /etc/rc.local
Add those three lines before exit 0
sudo /etc/init.d/gpioshutdown
gpio mode 25 out
gpio write 25 1
After edit this file, Press "Ctrl + X" to save this file and Press "Y“ to save it. -
Reboot your Raspberry Pi and plug power button on your RPi, press the button to test.
Have fun.
-
-
@relivingthepast said in Power on and off:
@ExarKunIv
Have you or anyone heard of this http://www.ebay.com/itm/IR-Remote-Control-Switch-Module-Power-Button-Module-for-Raspberry-Pi-3-2-Model-B-/222412691189?hash=item33c8d456f5:g:CaQAAOSwTuJYprud.
It looks like it should work, anyone know if it needs script? Or does anthing you do need script? Thanks againThat looks awesome! It looks like the power on-off switch will work with a momentary switch! Thats amazing, the powerblock needs an always on toggle, this could REVOLUTIONLIZE my atari builds, hahaha. I'm going to order one and try it out.
-
... But i will need to desolder that IR sensor and put it on a wire, what an odd placement, You'd think that would come as a separately mounted piece. But still, this excites me! If it works, this will be my replacement for the powerblock, and the price is right too!
-
Here's a no-drill option:
-
@KillerQ
no drill...but solder...i dont know....on a permanent intallation, maybe, but i use my Pi for all kind of stuff.... -
Agreed, the cheap power HAT or the script/button/standby option in the earlier video seem like much less permanent options.
-
Re: Power on and off
I had a go with the last video, that with borkin button by Etaprime. It's relatively easy to solder and it doesn't need the script to power on, because it probes a pin that awakes Rpi by design. You only need the script to shutdown the Pi, but I don't think it's much needed since almost every distro, uses a safe shutdown method anyway.That's if you don't need the analog A/V out of course and you don't want to drill the case.
-
Thanks for the compliment. That button is my idea, that's why it's named after me. Glad you're getting use out of it!!
The audio and video out still works if you remove the button.
Enjoy!
-
@DorkVonWaterfall said in Power on and off:
@KillerQ
no drill...but solder...i dont know....on a permanent intallation, maybe, but i use my Pi for all kind of stuff....It's one single wire soldered completely beneath ge board. It's totally out of the way. Give it a shot!
-
@KillerQ Your idea?! Well done pal! Actually I always wanted to add a power (ON at least) button but was afraid to drill the case and break any or end up with something ugly. A few days ago I saw the video and when a nearby store dropped the price of those jacks to 2€ I grabbed one to test if was working... And it did!
Good job everyone involved.Although i don't use the A/V and the button is beautifully hardly noticeable, I still wonder if a jack splitter, although ugly, may give both power ON flexibility and A/V out but I doubt I will soon test it.
-
@zupi said in Power on and off:
@KillerQ Your idea?! Well done pal! Actually I always wanted to add a power (ON at least) button but was afraid to drill the case and break any or end up with something ugly. A few days ago I saw the video and when a nearby store dropped the price of those jacks to 2€ I grabbed one to test if was working... And it did!
Good job everyone involved.Although i don't use the A/V and the button is beautifully hardly noticeable, I still wonder if a jack splitter, although ugly, may give both power ON flexibility and A/V out but I doubt I will soon test it.
Thanks for the positive feedback, I appreciate it.
If I can get around to it, I'll try and test the splitter. If you get to it first, report your findings back here.
Thanks again!
-
@zupi said in Power on and off:
@KillerQ Your idea?! Well done pal! Actually I always wanted to add a power (ON at least) button but was afraid to drill the case and break any or end up with something ugly. A few days ago I saw the video and when a nearby store dropped the price of those jacks to 2€ I grabbed one to test if was working... And it did!
Good job everyone involved.Although i don't use the A/V and the button is beautifully hardly noticeable, I still wonder if a jack splitter, although ugly, may give both power ON flexibility and A/V out but I doubt I will soon test it.
I found a splitter. I'll test it out this evening.
-
Is there an easy way to hook up a Super Nintendo Power button to a Raspberry Pi? I know nothing about soldering.
-
Soldering is simple. Try it out on some junk components first. The worst thing that will happen is you try again. Trust me trying out a new skill is rewarding! You can pick up a simple soldering iron cheap.
-
Meh, I don't know. I'm really not old enough yet to solder by myself, and I don't think anyone I know knows how to solder.
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.