📅 2013-Mar-18 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ hibernation, ubuntu ⬩ 📚 Archive
It is truly surprising that Ubuntu ships with hibernation turned off. But, hibernation can be useful on notebooks where I would prefer to hibernate than to power off when the notebook runs completely out of battery.
A few steps are needed to enable hibernation in Ubuntu:
Ensure that the size of your swap partition is equal or greater than the amount of RAM in your system.
Open the following file with superuser privileges:
$ sudo vim /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
[Disable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=no
[Disable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=no
Change the value assigned to ResultActive
in both section to yes
.
Note: These steps do not enable the Hibernate option for when the laptop lid is closed. That option is not visible in the Power settings. If you use GNOME Tweak Tool, that option can be set. But, I found that my Thinkpad X201i would still not hibernate when the lid was closed. I still had to manually choose Hibernate from the Shutdown menu to put the laptop into hibernation.
A few steps are needed to enable hibernation in Ubuntu:
Ensure that the size of your swap partition is equal or greater than the amount of RAM in your system.
As sudo, open a new file /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Add these lines and save the file
[Re-enable hibernate by default]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes