Platform: Intel NUC NUC5CPYH
OS: Centos 7 with 3.10.0-327.22.2.el7.x86_64
When I press the chassis power button, the system goes in to suspend mode instead of the expected poweroff. This seems pretty simple and is the default action from logind
grep Power /etc/systemd/logind.conf
#HandlePowerKey=poweroff
#PowerKeyIgnoreInhibited=no
But when I push the power button, I see this in the logs
Aug 6 15:33:45 localhost systemd-logind: Power key pressed.
Aug 6 15:33:50 localhost systemd-logind: Delay lock is active (UID 1000/testuser, PID 1762/gnome-shell) but inhibitor timeout is reached.
Aug 6 15:33:50 localhost systemd: Reached target Sleep.
Aug 6 15:33:50 localhost systemd: Starting Sleep.
Aug 6 15:33:50 localhost systemd: Starting Suspend...
Aug 6 15:33:50 localhost systemd-sleep: Suspending system...
I've tried setting debug level logging on systemd and logind, but didn't get any more information.
Why does the "poweroff" action end up at the Sleep target?
systemctl start poweroff.target
work as expected? Does settingHandlePowerKey=poweroff
and toignore
make a difference?