| ▲ | maverwa 9 hours ago |
| The complaint about power usage in suspend is especially sad because it’s pretty much a common problem for Linux on laptops. Not sure if that’s what applies here, but the numbers about match what I see with my Framework. Basically: if you want to use secure boot you usually also want kernel lockdown mode, and you cannot hibernate a lockdowned kernel. At least not without out-of-tree patches. IMHO that’s a giant issue. If you can’t hibernate (aka suspend to disk) you will never be able to get that power consumption low. And telling people to not run secure boot or lockdown is not really a good answer either. Especially since the default installer already sets those things up.
I get that „Linux on laptops“ is not a priority big enough to get a proper fix for that. And that it’s not an easy issue to fix. But the current state is really really sad. |
|
| ▲ | fpoling an hour ago | parent | next [-] |
| I really do not understand why hibernate under secure boot is not implemented on Linux and this continues for years. It is as if the features are implemented by completely different people. But this is not obviously the case since systemd supports both and actively improving both. Note for me hibernation is a security measure and not about saving battery. I am traveling sometimes with the laptop and risk of theft is non-trivial. If it is hibernated, then it is just a property loss. But with just suspend there is a chance that the data can be extracted. So I configured it to hibernate automatically after 15 minutes in suspension. Surprisingly it has been working reliably with Linux. |
| |
| ▲ | beeflet 11 minutes ago | parent | next [-] | | I have secure boot, hibernation, and full disk encryption working fine on linux, but I have never heard of kernel lockdown. The solution I found involves making a custom initramfs to support hibernation and compiling the kernel into a signed EFI stub. | | |
| ▲ | fpoling 5 minutes ago | parent [-] | | Does the system use a boot loader? Or does it boot directly into kernel bypassing bootloaders? |
| |
| ▲ | anon7000 13 minutes ago | parent | prev [-] | | > It is as if the features are implemented by completely different people This is almost definitely true considering it’s an massive open source project |
|
|
| ▲ | 0x38B 2 hours ago | parent | prev | next [-] |
| I was excited to see news about AMD beginning work on ACPI C4 in the Linux kernel (1) – my Framework loses about 10% a day in suspend, sometimes more, which is OK for me but of course I’d love for it to be better! 1: https://www.phoronix.com/news/AMD-ACPI-C4-Linux-Kernel-Code |
|
| ▲ | jjice 9 hours ago | parent | prev | next [-] |
| My personal machine is a Framework 13 AMD (first gen of AMD for them) and my work machine is a MB Pro M4. The Mac Book just keeps battery _forever_ while suspended, where as I've found the Framework (running Ubuntu 24) loses about 1% an hour while suspended. 1% per hour is acceptable for me, but the Mac Book's power to performance ration is just insane. I can't blame Framework, of course. Upstart laptop manufacturer that is open about repair vs tech giant who's spent years optimizing hardware and batteries. All that said, I'm optimistic for better batteries, better suspend software/hardware support, and more efficient mobile processors outside of the Apple ecosystem in the coming years. The M-series Apple processors are definitely kicking others in the industry into gear. |
|
| ▲ | worble 18 minutes ago | parent | prev | next [-] |
| While I don't deny that suspend is an issue on Linux I've just never seen this as a major problem? I simply turn off my laptop and turn it on when I need it - boot times are less than a minute so it really isn't a issue for me, just flick the power switch, wait for a bit then I'm good to go. |
| |
| ▲ | fizwidget 2 minutes ago | parent | next [-] | | “Less than a minute” is going to feel horribly slow to people that are used to instant-resume and not having to think about shutdown vs. sleep. You might be okay with it, but I suspect most consumers today won’t be. | |
| ▲ | GZGavinZhao 14 minutes ago | parent | prev [-] | | There are often browser tabs and other documents windows I would like to keep openers and I want to jump back to exactly where I left off as soon as possible. | | |
| ▲ | worble 2 minutes ago | parent [-] | | Let me preface this reply with that I'm not trying to preach or tell you how to live your digital life - everyone is different and if you have setup that works for you then great, keep on trucking. That said, I worked the same way many years ago, with browser tabs and desktop sessions that were precious and I didn't want to drop them. But what I ended up realizing was that the stress of losing that state due to random power failures or software bugs was too much. I found it far better for my sanity and actual productivity to instead make sure I had a sane note taking system, where I could track what was actually important to me. It was a great relief to my mental state and general stress to allow myself to shut down all processes and start clean every day. |
|
|
|
| ▲ | billfor 28 minutes ago | parent | prev | next [-] |
| I thought the issue with suspend on Linux was that swap had to be encrypted, but you could do it without kernel changes. There are some instructions here:
https://techblog.dev/posts/2023/08/encrypted-swap-partition-... |
|
| ▲ | deepsun an hour ago | parent | prev | next [-] |
| No, Linux is not the issue -- my System76 Lemur holds 14+ hours. Haven't used X1 Carbon for a while, but it also held way longer than Framework. |
| |
|
| ▲ | izacus 9 hours ago | parent | prev | next [-] |
| The thing is - a lot if power saving is achieved by hybrid sleep (computer hibernating after a timeout). Setting that up is pure hell on Linux, with poor documentation and security people actively fighting against making this easy. On Windows/macOS it just works, on Linux you'll probably break secure boot with it. |
| |
| ▲ | ndiddy 7 minutes ago | parent | next [-] | | > On Windows/macOS it just works, on Linux you'll probably break secure boot with it. The way it works on my Windows laptop is it’ll stay in sleep overnight, then when I open the laptop in the morning it’ll wake up, then hibernate itself, then I have to wait for the computer to turn itself back on. Thankfully this feature can be turned off. | |
| ▲ | terribleperson 2 hours ago | parent | prev [-] | | Maybe it just works on MacOS, but it's prone to all kinds of breakage on Windows. | | |
| ▲ | saratogacx an hour ago | parent [-] | | That's because MSFT doesn't really do hibernate any more but does "modern sleep" where it functions like a phone with the screen off. It keeps active network connections, downloads patches and keeps checking for notifications and other such nonsense. BIOS support for proper hibernation has been getting worse too because with MSFT demanding it, there is little reason to continue support. I've had older laptops that do the sleep->hibernate setup without too much issue but now it is a crap-shoot on if it is even supported in the hardware. | | |
| ▲ | izacus 32 minutes ago | parent | next [-] | | No, Hybrid Sleep is when the Windows machine goes from Modern Standy to full shutdown and power off. All laptops support that though it's not always enabled as a feature by default. | |
| ▲ | Grazester 26 minutes ago | parent | prev [-] | | Interesting. I have yet to come across a computer that I couldn't hibernate in Window. |
|
|
|
|
| ▲ | jeffbee 9 hours ago | parent | prev [-] |
| > If you can’t hibernate (aka suspend to disk) you will never be able to get that power consumption low. This is cope. An Apple Silicon Macbook does not need to suspend to block devices to save energy (they only do this when the battery is empty). ChromeOS doesn't offer hibernate at all. The only reason that a Framework can't have good battery life in an operating state is that nobody is paying attention to the details. |
| |
| ▲ | maverwa 9 hours ago | parent | next [-] | | Thanks, I did not knew that. My understanding was that keeping the memory alive for suspend-to-idle was the main issue here. But that also might be something a vertically integrated Apple Silicon can win vs. that x86 madness there every day. And to be sure, I do not claim that there is nothing to gain in s2idle. I bet theres still a lot of headroom to safe energy. Its just that it would be easy to safe a lot of power if s2disk "just worked". | |
| ▲ | N-Krause 9 hours ago | parent | prev [-] | | And what are those details? Sounds like you know specifics that I'd like to also know. If you're claiming it is just an oversight, then please back it up. | | |
| ▲ | nagisa an hour ago | parent [-] | | While I don't have any suggestions on how to look at the relevant metrics, a big part of the issue is the parts selection and having them power off properly. 1%/h is just 0.5W (for a 50Wh battery) which isn't a lot, but fail to bring a component or two to shutdown or sufficiently low power state and you'll observe exactly this behaviour. Of course some drain is going to be almost inevitable just to keep memory contents sufficiently refreshed, but with proper power-saving states memory can go appreciably below 0.5W. |
|
|