I'm running Ubuntu 16.10 Desktop on a Lenovo Ideapad Z510, with the Gnome 3.22 desktop environment.
While I can manage to get the power button to suspend by setting
org.gnome.settings-daemon.plugins.power, power-button-action = suspend, setting the
hibernate does not work.
In investigating the issue, it seems that there are three possible systems that may be responsible for the issue here (in no particular order):
I can confirm that the lid switch of my system is handled through systemd (setting
logind.conf), but editing
HandlePowerKey does not appear to do anything.
Can someone please suggest how to set the power button to hibernate on button press? Or how best to troubleshoot this issue?