60
submitted 3 months ago by Mwa@thelemmy.club to c/linux@lemmy.ml

hello i want this hibernate option like in opensuse/steam os when i try googling it i cannot find anything

you are viewing a single comment's thread
view the rest of the comments
[-] PotatoesFall@discuss.tchncs.de -2 points 3 months ago

I've tried to get hibernation working on like 3 different distros. Followed tutorials exactly step by step. Never works.

Linux doesn't do hibernation. Anybody who says otherwise is not living in the same universe as me.

[-] dingdongitsabear@lemmy.ml 5 points 3 months ago

I've made it work on arch, debian and fedora, on a T420s, T480s, T14 AMD, MBPr 2012, each on luks2 + btrfs with systemd-boot, and it works flawlessly on all of them. the setup is super-involved and cumbersome though but it's easily accomplished once you get the hang of it.

the links posted here along with the arch wiki is what I used. it helps if it's not your primary and only device, so you have time to retry until you get it right.

[-] ChojinDSL@discuss.tchncs.de 2 points 3 months ago

Did you encrypt your swap as well? I used to use hibernation back in the day but without LUKS encryption. Ever since I've started using LUKS encryption, I never bothered with hibernation again, allthough I would like to.

[-] dingdongitsabear@lemmy.ml 1 points 3 months ago* (last edited 3 months ago)

a combination; some have swap as a btrfs subvolume, some as a swapfile in root and those are encrypted, when the system boots it requests the encryption passphrase, regardless if it coldboots or restores. restores from swap are way faster than coldboot plus all your stuff is how you left it.

on some systems I have a separate swap partition outside of luks2/btrfs and that one's unencrypted. when it restores from there, it doesn't request the passphrase and the boot is even faster. that's obviously less secure but my threat model is a lost/stolen laptop, I seriously doubt someone's gonna forensic the shit out of my swap, it's more likeky it's gonna get wiped and sold.

to fully utilise this tech, it's essential to set up suspend-then-hibernate, another awesome feature that's way too cumbersome to set up. the laptop suspends for like 60 minutes and if it's not woken up, it hibernates to disk.

load more comments (7 replies)
this post was submitted on 04 Aug 2024
60 points (94.1% liked)

Linux

48366 readers
1594 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

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS