First of all hibernation via the command
sudo pm-hibernate
works fine from command line on my newly installed Ubuntu 18.04.
I've a fine gnome extension called Hibernate status button which displays an hibernate button in my system menu, as depicted in this image
But when I click on it is hibernating and power down, but when I start up the next time it opens with a completley new session.
Has anyone a working solution to this problem?
According to this document, you did right things except that you have to create the file
/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
You can do it by copy/paste the following in a termnial
This is with Nvidia's NVHDA issues ... meaning sound via HDMI. Here are the steps for the command-line - should you have Nvidia's NVHDA as I do:
If I manually disable the audio output:
I'm then able to get it to sleep. I then have to turn it on again on resume with: