i want to shutdown my system on POWER_KEY event.
but i recognized that there was a patch from nxp called: 0020-logind.conf-Set-HandlePowerKey-to-ignore.patch
Subject: [PATCH] logind.conf: Set HandlePowerKey to ignore
For i.MX, we don't want systemd to handle the power key.
what is the correct way to shutdown instead?
i tried HandlePowerKey=poweroff, what worked as expected, but if there is a better way, please let me know.
Best regards
Ralf