Open thomas-zimmerman opened 3 years ago
This looks like a guide (and is well-written.) Would this be something to have a support doc for, or is it here as a feature request to have this configured out-of-the-box?
Carl asked me to document this as I got this working on an lemp9. I think this would be something that we may want to build in as out-of-box use. We likely will be turning this into a support article to cover for users that want to enable this when hibernation would be a better fit for their use case.
I plan on creating a support article on this today or tomorrow. :)
Can also confirm that we've got this working on the Oryx 6, and my Oryx 1.
Distribution (run
cat /etc/os-release
): Should work on all supported releases of Pop!OSIssue/Bug Description: Hibernation is not currently enabled on Pop!OS given partition layout, use of a non persistent encryption key on swap, and the additional drive IO used on solid state drives. This is a requested feature where intermittent use of suspend uses a significant percentage of the overall battery. Depending on memory size of the system and size of NVMe/SSD drive, hibernation could add notable delay on resuming a hibernation session and wear out the OS drive prematurely.
Steps to convert a encrypted install to enable hibernation:
gparted
swapoff and than remove the swap partition. Extend theluks
partition to end of drivecrypttab
andfstab
to update for the new swap location:/etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
with content of:[Enable hibernate 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 ResultActive=yes