In case it helps, here is the procedure I followed on Ubuntu 14.04. I have not tried it on 16.04 yet but it worked like a charm on my hardware with 14.04:
Save your work and use the command line to test if hibernate works on your computer: open the Terminal by pressing Ctrl+Alt+T or by searching for terminal in the Dash. Type sudo pm-hibernate
into the terminal and press Enter. Enter your password when prompted, and press Enter again. After your computer turns off, switch it back on. Are the applications that were running before hibernate still running? If hibernate doesn't work, check if your swap partition is at least as large as your available RAM.
If the hibernate test works, you can continue to use the sudo pm-hibernate
command when you want to hibernate.
You can also enable the hibernate option in the user menus. To do that, use your favorite text editor to create /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
. Add the following to the file and save:
[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.hibernate-multiple-sessions
ResultActive=yes
(Source: https://help.ubuntu.com/14.04/ubuntu-help/power-hibernate.html)
S3
suspend instead of a more power efficient suspend likeS5
. – You'reAGitForNotUsingGit Aug 30 '16 at 18:14dmesg|grep 'boot\|hib\|shut\|swap\|image'
. The documentation for hibernate does say that swap size should be at least as much as ram. Maybe just as much is not enough in all cases. – R.S. Oct 09 '16 at 05:16