Hi there !
Both "pm-hibernate" and "systemctl hibernate" works great on my machine but I didn't have a hibernate option in KDE menu, only "Suspend", "Reboot" and "Power off".
So, Googling returned a instruction to put the following content to "/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla":
Code:
[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
Indeed, now I have a "Hibernate" option along "Suspend/reboot/poweroff" but that menu entry does not hibernate.
Instead, looks like it simply poweroff the machine, although as I already mentioned, "sudo pm-hibernate" and "sudo systemctl hibernate" works just as expected.
I am running Ubuntu 18.10 (KUbuntu/KDE Plasma).
PS1: I founded a more updated procedure
here but with the same results.
PS2: I just tried the GNOME DE and on GNOME hibernate works as expected. Kinda. I didn't find a menu entry to hibernate, but in Configuration/Power I change the default behavior for the power button to Hibernate. Than, pressing the power button less than 2 s, successfully hibernate the machine. So I think it is a KDE issue only.