Manually adding the Safe Shutdown Script

Manually adding the Safe Shutdown Script

This process works for all devices.
All pre-made images available to download are already configured with this script
1. Login to your Raspberry Pi via Putty

2. Edit the config.txt file
sudo nano /boot/config.txt

3. Add the following lines to the end of your config.txt file:
#Shutdown Button
dtoverlay=gpio-shutdown,gpiopin=3
#Poweroff Trigger
dtoverlay=gpio-poweroff,gpiopin=4

4. Save your changes

5. Reboot with:
sudo reboot



    • Related Articles

    • Safe Shutdown GPIO Module

      The Raspberry Pi Safe Shutdown Module is designed to be plugged into the 40 Pin header of your Raspberry PI. An 8 pin header block is provided that needs soldering to the Safe Shutdown board. Alternatively you can wire the board manually if you need ...
    • Manually Installing I2S Digital Audio

      This process will work on all devices I have created. All pre-made images available to download are already configured with this driver 1. Login into your Raspberry Pi via Putty 2. Edit the raspi blacklist with: sudo nano ...
    • Desktop Arcade - What is it?

      A custom miniature arcade kit. Runs on a Raspberry Pi and allows you to play thousands of retro games using Retropie. Uses rechargeable lithium batteries which can be recharged via USB-C or runs on mains power. Includes safe shut-down and power-off ...
    • Zega Mame Boy Advance Solder Guide

      Top Side PWR: LED (RED) ACT: LED (GREEN) Bottom Side LED1 - LED (RED) LED2, LED3, LED4: LED (GREEN) SW1, SW2: Trigger R1: 1MΩ R2, R6, R7: 2KΩ R3, R4: 2Ω R5: 10Ω C1, C2, C7, C8, C9, C10: 10uF C3: 100nF C4, C5, C6: 22uF Q1: SS (Safe Shutdown) IC Q2: ...
    • Zega Mame Gear Pre-install Checks

      Power Board Connect the power board to a USB-C power source Ensure the battery level LEDs illuminate Mainboard Disconnect the USB-C power supply Connect the Power Board to the Mainboard using the supplied 4 pin connector Toggle the power switch ...