I have managed to get hibernate working in neon, and have the hibernate button on the start menu and the I get the option to set hibernate in the power management page in ksettings, but the option to sleep and then hibernate after a certain period of time seems to be missing. How would I go about enabling that?
Also, I discovered we need to install polkitd-pkla to get the buttons to show up in the start menu and the hiberate option in ksettings, but it does not trigger the “allow suspend and resume” option.
sudo apt install polkitd-pkla
You also need to touch and edit
/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
and add:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
However I have seen variations of this entry so it may be wrong, but it seems to work for hibernate at least. Hibernate does work. Just not the suspend then hibernate.