Properly handle setting "Power Button Action" to "hibernate"
Suspend and hibernate have distinct purposes. I suspend when laptop is in general use, & hibernate when I need to keep state on my laptop but may not be returning to it for a while.
I have hibernate working via
systemctl hibernate, but cannot make this happen through GNOME. I want to suspend simply by closing the lid (done), but hibernate when I press the power button. It appears the hibernate option is deliberately not in the "Settings > Power > Power Button Action" list, and when I manually enter it via Gsettings the list item value changes to "2 seconds" & power button still acts as 'interactive'.
Steps to reproduce:
- Manually set Power Button Action to hibernate via:
gsettings set org.gnome.settings-daemon.plugins.power power-button-action hibernate
- Open GNOME Settings, and look at the selected value in "Settings > Power > Power Button Action"
- Try pressing the power button, see the interactive menu with no hibernate option
Every Ubuntu upgrade has introduced all sorts of pain points around just getting the machine to hibernate through GNOME. Is there a reason it is not integrated into the menu as seamlessly as suspend is?