Can't suspend because encryption

Hi! I’m new to Opensuse and I’m loving it!

I encrypted my notebook using this guide https://en.opensuse.org/SDB:Encrypted_root_file_system and it works fine!

There’s just one problem with it, is that whenever I suspend my computer, the drive gets encrypted again and acts like it was turned off.

Is there any way that the system encrypts only when I turn it off and not when I want it to suspend?

(I’m still new to this stuff so sorry if this has an obvious solution or something like that)

Thanks!

I’ll clarify this part.

The drive is always encrypted. Data on the drive is decrypted on the fly as you read it. And anything you write to the drive is encrypted on the fly as it is written.

Suspend should not affect that.

If you suspend to memory (sometimes called sleeping), the encryption key should still be retained by memory, so it should resume without an issue.

If you suspend to disk, then the machine state is saved to swap. On restart, you might need to give the encryption key before it can resume. However, if you are using UEFI with secure-boot, then system lockdown might be in effect. I’m not sure what happens in that case.

Thanks for clarifying that! I’m still new to this :o

Secure-boot is disabled on my computer. Could it be another thing that’s not allowing the computer to suspend?

Thanks for the reply

Yes, but it is hard to know what.

Hibernation is, in my opinion, an ugly hack. That’s why I usually avoid it. It depends on hardware features.

Maybe you should mention what computer this is, to see if anyone with the same model has experience with hibernation.