I’ve never had an issue once its set up. Just a 16GB LUKS partition alongside my normal LUKS partition, a small edit to /etc/crontab so I only have to enter the password once, set the RESUME variable, add to fstab, and rebuild init. This method even works with suspend-then-hibernate on every laptop I’ve used it with.

This would take 5 seconds at install time, but instead you have to install, reboot to the live USB, shrink LV, shrink PV, shrink LUKS, shrink partition, repartition, grow LUKS, grow PV, grow LV, and finally set up the swap partition as above.

Am I the only one? Does anyone else use encrypted drives and hibernate?

  • axum
    link
    fedilink
    1011 months ago

    Suspend and hibernation are both cursed features due to weird nonstandard ACPI fuckery and hardware devices that don’t cleanly know how to bring itself back up.

    • fmstratOPA
      link
      English
      211 months ago

      The method that I use moves memory to the encrypted drive space, so there’s no chance of a data leak. Perhaps I should post a guide…

  • @tun@lemmy.world
    link
    fedilink
    5
    edit-2
    11 months ago

    The last time I successfully enable hibernation, it took more tike (to save and boot from hibernate) than booting fresh and restore session.

    I had 32GB of RAM and XFCE as DE.

    • fmstratOPA
      link
      English
      411 months ago

      Odd, not my experience at all.

  • @Parodper@foros.fediverso.gal
    link
    fedilink
    211 months ago

    What do you mean by «support»? In my Debian install I created an encrypted partition + LVM and I can hibernate without issue. I believe Ubuntu has an install option for encryption, so I think it should also work.

    • fmstratOPA
      link
      English
      111 months ago

      Full hibernate? Hybrid with power might work, but if the battery dies the default way doesn’t work.

  • exu
    link
    fedilink
    English
    211 months ago

    I use swapfiles, which makes hibernation slightly more difficult than a partition. Depending on the filesystem there are even different steps (btrfs).