We are trying to have the Pi shut down gracefully when power is removed. We have a battery connected so that it will have time to shut down. So far, our attempts to use gpio-shutdown have been unsuccessful. We're running Raspbian Stretch.
In /boot/config.txt we have the following line:
systemd --version reports
When we connect pin 22 to 5V (for now we're manually shorting it with a wire), the Pi doesn't react.
The instructions on GitHub say
The Advanced Options section of the raspi-config utility can enable and disable Device Tree use, as well as toggling the I2C and SPI interfaces.
There are seven options under Advanced Options but none of them have to do with Device Tree, I2C, or SPI so I'm not sure Device Tree is enabled.
Is there something else we need to do to get gpio-shutdown to work?