I've just installed Debian Jessie and I'm trying to get systemd to do basic power management.
systemctl suspend
and systemctl hibernate
works well to suspend and hibernate the system.
Now, I want the computer to hibernate when I press the power button so I've edited /etc/systemd/logind.conf to contain:
HandlePowerKey=hibernate
Pressing the power button works to hibernate and if I press again the system resumes. But after resume tint2, tilda (that are always open) and any other applications that were open before hibernation are completely frozen. The mouse still works and I can open new applications but the applications that are frozen can't even be killed.
To test whether hibernation is the problem I've tried pressing the power button with this in logind.conf:
HandlePowerKey=ignore
The computer doesn't hibernate but the applications freeze the moment I press the button!
I've also tried with the line "HandlePowerKey" line commented out (the default option). That just causes the computer to shut down instantly.
I'm guessing that either:
a. logind.conf does more that the specified action (eg. hibernate, ignore) or:
b. Something else registers that I press the power button and meshes things up. Note that I don't have acpid installed.
What is at fault? How do I troubleshot the issue further?