68
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 27 Aug 2024
68 points (98.6% liked)
Linux
47293 readers
707 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
You have to turn off Secure Boot to enable hibernation, and I value hibernation enough to do so.
This is patently false. Secure boot and hibernation are not mutually exclusive.
Not mutually exclusive, but it's highly probable that if you're running a mainstream distro, the default kernel is in lockdown mode, preventing hibernation while secure boot is enabled.
On Linux there have been some challenges. Lockdown mode and hibernation don't play nice. This isn't to do with secure boot (you can also disable lockdown mode individually) but to prevent kernel access to processes that can edit the hibernation image last-minute (to bypass SELinux, for instance, which shouldn't be possible even as root), lockdown mode has prevented hibernation for the longest time. I don't know if it's been fixed yet, it's been a while since I last checked.
Disabling secure boot makes the kernel go "whelp, looks like there's no way to secure the boot process anyway" and will disable lockdown mode by default. If your device is free from other lockdown mode issues, this'll seem to turn secure boot into a lockdown mode toggle, even though it's just a side effect.
While I believe you, I haven't been able to enable hibernation with it on.
It's a kernel build config. Debian for one ships with support disabled due to security concerns.
So I'd have to rebuild the kernel, not just provide a kernel argument? That's definitely not a step I'm ready for.
Correct
I believe if your swap partition is on an encrypted LVM, you can still hibernate with kernel lockdown enabled.
This is my setup on debian. Works without any issues.