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'?
/etc/initramfs-tools/conf.d/resumeand put in itRESUME=UUID=swapfile_idwhere the swap file id can be obtained with this commandsudo swaplabel /swapfile. I also had to do modify the filecom.ubuntu.enable-hibernate.pklalike you did. – Sidahmed May 10 '17 at 21:26