325
System76 or Framework laptop?
(lemmy.fmhy.ml)
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.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
One solution I've seen has been to enable "hybrid sleep", where you can have it sleep for some period of time (30m) and afterward go to hibernate.
I still need to check in on it, but one of the biggest issues with sleep on Framework laptop is that the usb-c adapters (like HDMI) passively draw power. If you use 4 usb-c (or just leave it empty), you have better sleep experience.
Hibernate is it's own challenge in Linux right now as lockdown mode doesn't work with hibernate (and I think a lot of distros use lockdown mode by default for security). I had to patch the kernel to enable this: https://gist.github.com/kelvie/917d456cb572325aae8e3bd94a9c1350
I was able to get hibernate working on Ubuntu with a few config changes. I'm using a swapfile which is the default these days and it takes care of security when used with disk encryption.
Given that Intel no longer supports S3, hybrid sleep or suspend-then-hibernate is the solution indeed. It works pretty well on my end. I'm using the latter with a 3-hour suspend window. Very rarely I end up cold-booting. Hybrid-sleep is foolproof for those that absolutely can't tolerate lost state.