I am currently working on a VPN router using a Raspberry Pi 3 and wish to add a power button to turn it off with a little grace. I found the gpio-shutdown overlay in the overlays folder and have been trying to make it work without success.
I have already added the dtoverlay=gpio-shutdown on /boot/config.txt without it having any effect. After I installed the kmod-input-gpio-keys package, the kernel shows a message saying that the button is now being recognized, but still nothing happens when I press it.
Any ideas about what I am missing?