[SOLVED] PiCade Hat power button on Raspberry Pi OS

Hi there,

I have everything working on the Picade-Hat on my own RaspberryPi OS based system, except for the power-off functionality of the power button.

I have this on config.txt:


And I can see the keycode 116 is being sent when I push the button, according to showkey:

keycode 116 press
keycode 116 release

I must be missing some small detail, can you please point me on the right direction?


Try this,

I was missing the systemd-logind service on the system. That made it work, it was the missing piece. Thanks! :)