Hi stablgr,
stablgr wrote:This is getting frustrating. I tried using GPIO pins 7, 21, 22, and 29 all without success. When I pull the input low I can see it is being read as it changes from 1 to 0 when I run 'gpio readall'.
I don’t understand why is wont work or why the gpio pins are different from those expected, I do understand the frustration.
You could try something different from the 'dtoverlay=gpio-shutdown,gpio_pin' method, this looks promising:
https://github.com/ali1234/systemd-gpioThis looks far better than the python based routines, which loop in the background testing the gpio status. The documentation claims that it does not to use any resources.
This would also enable rune to do its internal shutdown as well, the 'command: ' should be something like this:
- Code: Select all
command: /srv/http/command/rune_shutdown ; /usr/bin/shutdown -P now
It is worth taking the time to understand how it works. It uses the gpio utility, so the detected pin state changes which you have seen should trigger it.
janui
Edited 15-04-2019, the link provided was wrong, the correct link is now shown.