[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:

dtoverlay=gpio-shutdown,gpio_pin=17

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?

Thanks!

Try this,
dtoverlay=gpio-shutdown,gpio_pin=17,active_low=1,gpio_pull=up
or
dtoverlay=gpio-shutdown,gpio_pin=4,active_low=1,gpio_pull=up

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