I've been doing some research on power buttons for the Raspberry Pi, but I'm having quite a hard time finding information. Right now, I have button working on GPIO5, and when I connect it to the opposing GND pin, the Pi boots up. I added the line
dtoverlay=gpio-shutdown to my
/boot/config.txt, so that I can shutdown with this connection as well. However, I have a couple of questions that I'm having a hard time finding answers to.
- Is the shutdown initiated with connecting the GPIO3 pin and the GND pin considered a safe shutdown? Will the system finish writing to memory, etc, just like with
- I know that I can change the pin for shutdown, by changing
dtoverlay=gpio-shutdown,gpio-pin=X, but is there a way to change the pin for boot up as well? Considering GPIO3 is normally used for I2C.