Using GPIO4 (physical pin 7) instead of UART TX and adding the following into /boot/config.txt reduces the time on bootup from 8-10 seconds to 5 seconds. This means you only have to wait half the time after powering on before switching off to ensure a graceful shutdown.
Code: Select all
dtoverlay=gpio-poweroff,gpiopin=4,active_low="y"