After installing 'hibernate'
sudo apt install hibernate
Hibernate works
sudo hibernate
But pm-hibernate does not
sudo pm-hibernate
It blacks for a few second and is back on. After adding
[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
ResultActive=yes
to
/var/lib/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
The hibernate buttons do not work. Is it possible to modify their action to 'hibernate' or re-enable 'pm-hibernate'?