(no title)
maverwa | 5 months ago
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.
Throwaway123129|5 months ago
PC as a laptop platform is a complete joke.
goku12|5 months ago
whyoh|5 months ago
On Windows, network connectivity in S0 standby is optional: https://www.tenforums.com/tutorials/146593-enable-disable-ne...
>Which means it's impossible to turn off the CPU during suspend. it's always on.
Hibernation is still an option, if you don't mind a slower resume.
UK-Al05|5 months ago
l11r|5 months ago
The real problem is that both AMD and Intel S0 implementations are mediocre at best and this is what they should fix. Also most vendors are dickheads and cannot even verify that their system even goes to S0ix states without any problem before releasing it. Because of their laziness you can buy brand new certified "Linux ready" machine which won't even achieve S0ix states out of the box.
teekert|5 months ago
port11|5 months ago
aiisthefiture|5 months ago
koolala|5 months ago
jjice|5 months ago
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.
vladvasiliu|5 months ago
We used to have better suspend before, when s3 was thing, on both Linux and windows. Maybe not as great as Macs, but way better than the current shitshow. Now I’m not saying pcs are great hardware, but I think this particular issue should be pinned on Microsoft, who tried to copy apple’s power nap, only doing it halfassedly as they usually do.
fpoling|5 months ago
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|5 months ago
The solution I found involves making a custom initramfs to support hibernation and compiling the kernel into a signed EFI stub.
anon7000|5 months ago
This is almost definitely true considering it’s an massive open source project
orbisvicis|5 months ago
0x38B|5 months ago
1: https://www.phoronix.com/news/AMD-ACPI-C4-Linux-Kernel-Code
kelvie|5 months ago
I authored a patch (I still use it to this day, and I think others do too) that allows this, and sent it to the LKML as an RFC, and was rejected, for some background.
someguyiguess|5 months ago
Proceeds to continue enforcing objectively worse solution (evidenced by the existence of this entire thread).
nrp|5 months ago
chatmasta|5 months ago
I’m torn between my instinct to classify anything from DHH as mostly hype, my faith in Linux kernel developers, and my cynicism toward Linux kernel developers.
izacus|5 months ago
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|5 months ago
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|5 months ago
heavyset_go|5 months ago
AllowHybridSleep=true
Your Linux installer will also set everything up needed for it.
It's also a GUI option in KDE's System Settings.
astrange|5 months ago
It will do it eventually, though if you don't have enough free disk space it'll fail.
gwd|5 months ago
> Pretty much exactly 19 years ago I got on a train to Oxford and made Mark Shuttleworth's laptop successfully suspend and resume using ACPI and that was the turning point in my entire career [1]
[1] https://nondeterministic.computer/@mjg59/111249766634985812
10 years after that I bought a Macbook Air, and haven't gone back to Linux on a laptop since.
pjmlp|5 months ago
While I can understand random Joe and Jane are at the mercy of reverse engineering while installing a Linux distro over the weekend, I expect that anyone selling Linux laptops as OEM, to actually get the specifications and have everything working as any other hardware vendor.
fooker|5 months ago
It does not make any sense to write 32 or 64G data to secondary memory every time you close your laptop lid, that will accelerate the lifespan of most SSDs.
lenkite|5 months ago
didibus|5 months ago
Does Mac hibernate? Because if it does, the wake up is literally under 100ms, it's just imperceptible. You open the lid and it's already awake.
acchow|5 months ago
Not by default. If you just shut the lid on your macbook and put it in your backpack for 2 days, it does not hibernate.
Which is why waking is instant.
bzzzt|5 months ago
deepsun|5 months ago
devjab|5 months ago
I'm not sure if that's possible on windows. I know my work laptop doesn't work that way, but then, it probably runs all sorts of enterprise settings.
mort96|5 months ago
mbac32768|5 months ago
jeffbee|5 months ago
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.
hackyhacky|5 months ago
maverwa|5 months ago
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|5 months ago
If you're claiming it is just an oversight, then please back it up.
jes5199|5 months ago
billfor|5 months ago
heavyset_go|5 months ago
heavyset_go|5 months ago
You're already relying on the hardware platform for Secure Boot, it's not far fetched to apply the same view to hibernate if the platform protects memory and disk.
That said, S3 is still a viable option, and IMO, the best option. Some hardware vendors still implement S3 sleep for their Linux laptops.
osigurdson|5 months ago
saagarjha|5 months ago
acchow|5 months ago
Why do you need hibernation? Apple gets the ultra low power without suspending to disk?
fsckboy|5 months ago
I don't know what you're talking about, is this an apple Silcon marketing ploy? my linux laptops lose less battery in suspend than my macbooks do powered down
acchow|5 months ago
worble|5 months ago
fizwidget|5 months ago
You might be okay with it, but I suspect most consumers today won’t be.
heavyset_go|5 months ago
The issue is that firmware vendors disable S3 sleep in favor of s0ix/Modern Standby instead, which just puts hardware into low power states instead of stopping them entirely. This will inherently drain more power over time than just keeping memory powered in S3 sleep.
Modern Standby requires heavy integration with the OS to be power efficient. Turns out that takes a lot of reverse engineering because vendors will not release documentation or tune the kernel for their firmware.
lukeschlather|5 months ago
And I often use my laptop for things where seconds matter. I've got things on the stove that could burn, I may not have 5 seconds to spare locating the next step in the recipe.
GZGavinZhao|5 months ago