Shut down a headless Raspberry Pi safely: a button instead of pulling the plugprocedure · unverified · Pulling the power risks SD card and file system damage. Give headless devices a shutdown button: the onboard power button (or J2 pads) on Pi 5, the gpio-shutdown overlay on earlier models. The default GPIO3 button also powers the board back on, but GPIO3 is the I2C clock pin.