I read that the Pi 3 B can be turned on by shorting physical pins 5 and 6 but mine doesn't respond to this. It powers on if I disconnect and reconnect power but that's a bit less convenient and I wanted to use a momentary switch to trigger the power-on.
Edit: I don't want to use the button to shutdown the Pi and I don't want to use the "run" header because pressing that accidentally while powered on could corrupt the file system and lose unsaved data.
-
- Posts: 196
- Joined: Tue May 22, 2012 11:19 pm
Pi doesn't boot when pins 5 and 6 are momentarily shorted
Last edited by seanspotatobusiness on Sat Sep 01, 2018 2:42 pm, edited 1 time in total.
Raspberry Pi 3 B and B+
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
It may need to be enabled by simply adding the following line to /boot/config.txt:
dtoverlay=gpio-shutdown
dtoverlay=gpio-shutdown
-
- Posts: 196
- Joined: Tue May 22, 2012 11:19 pm
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
Is that for shutting down the Pi or turning it on? I'm only trying to get a button to turn on the Pi. I don't want the button to also trigger shutdown.
Raspberry Pi 3 B and B+
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
I believe it will do both, don't know if they can be separated.
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
How can it do startup if the Pi is not running?
From the overlays readme (/boot/overlays/README):
This overlay only handles shutdown. After shutdown, the system
can be powered up again by driving GPIO3 low. The default
configuration uses GPIO3 with a pullup, so if you connect a
button between GPIO3 and GND (pin 5 and 6 on the 40-pin header),
you get a shutdown and power-up button.
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
I stand corrected. I think I mixed up the old and new operations.
Shorting pins 5 & 6 on my Pi3B+ causes it to boot up, if powered and previously shutdown. no change in settings required
To shutdown you can set
21 is the chosen GPIO , strangely 3 doesn't seem to work
Shorting pins 5 & 6 on my Pi3B+ causes it to boot up, if powered and previously shutdown. no change in settings required
To shutdown you can set
Code: Select all
dtoverlay=gpio-shutdown,gpio_pin=21
-
- Posts: 7545
- Joined: Sat Jan 12, 2013 3:01 am
- Location: Grants Pass, OR, USA
- Contact: Website
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
The overlay is only required to add shutdown function to pins 5 (GPIO3) & 6.
Startup from pins 5 and 6 is always enabled.
OP are you sure you are using the correct pins?
Type pinout at the command line.
Be sure not to connect the wrong pins else your RPi3B+ could be instantly destroyed.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
I couldn't get dtoverlay=gpio-shutdown,gpio_pin=3 (PIN 5&6)to shutdown BUT dtoverlay=gpio-shutdown,gpio_pin=21 (PIN39&40)does.klricks wrote: ↑Sat Sep 01, 2018 3:02 pmThe overlay is only required to add shutdown function to pins 5 (GPIO3) & 6.
Startup from pins 5 and 6 is always enabled.
OP are you sure you are using the correct pins?
Type pinout at the command line.
Be sure not to connect the wrong pins else your RPi3B+ could be instantly destroyed.
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
Thanks. It was the I2C conflict stopping GPIO 3 from shutting it down. Disabling I2C (Preferences, Pi Configuration,Interfaces etc...) and it now performs as it used to on the old OS. Connecting 5&6 shuts it down, and again boots it up.
-
- Posts: 196
- Joined: Tue May 22, 2012 11:19 pm
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
I'm sure I have the right pins. It's pins 5 and 6 on this image:


Raspberry Pi 3 B and B+
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
- AdamStanislav
- Posts: 150
- Joined: Sun Mar 10, 2019 2:44 am
- Location: Wisconsin
- Contact: YouTube
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
So, am I right in assuming shorting pins 5 and 9 momentarily would accomplish the same? Because my RPi is in an acryllic case that uses pins 4 and 6 to power up the cooling fan.seanspotatobusiness wrote: ↑Sun Sep 02, 2018 10:10 amI'm sure I have the right pins. It's pins 5 and 6 on this image:
![]()
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
You can short Pin 5 to any ground point, which includes all metal ports on the Pi. As long as you have the dtoverlay in config.txt
55:55:44:44:4C
52:4C:52:42:41
Rose tinted glasses are difficult to see through.
52:4C:52:42:41
Rose tinted glasses are difficult to see through.
- AdamStanislav
- Posts: 150
- Joined: Sun Mar 10, 2019 2:44 am
- Location: Wisconsin
- Contact: YouTube
-
- Posts: 56
- Joined: Tue Feb 26, 2019 6:45 am
- Location: texas usa
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
i use 1 &9 for fan and just did 5/6 for switch,works like a charm ,no more using pwr switch on pwr strip or unplugging/pluggingAdamStanislav wrote: ↑Sun Mar 31, 2019 11:26 pmSo, am I right in assuming shorting pins 5 and 9 momentarily would accomplish the same? Because my RPi is in an acryllic case that uses pins 4 and 6 to power up the cooling fan.seanspotatobusiness wrote: ↑Sun Sep 02, 2018 10:10 amI'm sure I have the right pins. It's pins 5 and 6 on this image:
![]()
remember ,never approach a computer thinking this will only take a minute
~~pi zero w and a 3b+
~~pi zero w and a 3b+
Re: Pi doesn't boot when pins 5 and 6 are momentarily shorted
Quick question to calrify another possible way to use this.
If I connect pin 5 & 6 and leave them connected - Pi Powers on?
If I shut down the pi while they are still connected and after shutdown disconnect pin 5 & 6 - Does this also turn the pi on or would I need to short them again?
If I connect pin 5 & 6 and leave them connected - Pi Powers on?
If I shut down the pi while they are still connected and after shutdown disconnect pin 5 & 6 - Does this also turn the pi on or would I need to short them again?