There's an older guide here, that might be of use to you.
https://www.youtube.com/watch?v=wVnMZ4DXDNo&t=305s
It shows how to use a momentary switch to turn on a RPi 4B, and use a script and the same momentary switch to turn off.
That could be supplemented with the gpio-poweroff overlay described here:
https://github.com/raspberrypi/firmware ... ays/README
Also have a look at the gpio-shutdown overlay.
https://www.youtube.com/watch?v=wVnMZ4DXDNo&t=305s
It shows how to use a momentary switch to turn on a RPi 4B, and use a script and the same momentary switch to turn off.
That could be supplemented with the gpio-poweroff overlay described here:
https://github.com/raspberrypi/firmware ... ays/README
Also have a look at the gpio-shutdown overlay.
Statistics: Posted by deepo — Fri Jun 06, 2025 7:43 am