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.
How can it do startup if the Pi is not running?
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.
Code: Select all
The overlay is only required to add shutdown function to pins 5 (GPIO3) & 6.
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.
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.
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.