OSMC raspDAC overlays gpio-shutdown pin 17 &22

I assume that it detects a change in the state of the pin. It’s not crashing the system, since this appears in the log when I run the command:

Dec 27 16:44:31 osmc systemd-logind[330]: Power key pressed.
Dec 27 16:44:31 osmc systemd-logind[330]: Powering Off...
Dec 27 16:44:31 osmc systemd-logind[330]: System is powering down.

You haven’t said whether removing active_low=0 or using active_low=1 makes a difference.

As I mentioned, I don’t have any jump wires right now, so can’t test by physically shorting pins. You’ll have to do that yourself to confirm that it works. I’d suggest that you start with the default (BCM 3 → GND) and work up from there.

Hope you enjoy what’s left of the festive holiday!

Update: I came across this thread on GitHub Gpio-shutdown overlay not working on pi 3b or 3b+ · Issue #434 · osmc/osmc · GitHub where it was suggested that Kodi was (still is?) capturing the events and doing nothing with them. What’s the current state of play @sam_nazarko?

@oliv1 What happens if mediacenter is shut down first? Does it then work?