News for hackers. Stuff that matters.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by rjdj377dhabsn on Friday October 24, 2025 @11:08AM (#45695440)
Why not just suspend to disk?

My Asus laptop with 32 GB of RAM is 4 years old, but resumes from the encrypted swap partition in under 5 seconds, which is fast enough for me.

Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by mort96 on Friday October 24, 2025 @11:32AM (#45695673)
I don't think suspend to disk is properly supported in Asahi. I remember looking into it a couple of years ago and found that it wasn't a solution, and a quick Google search now indicates that it's still not implemented.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by cmurf on Friday October 24, 2025 @11:26AM (#45695631)
If UEFI Secure Boot is enabled, Fedora kernels detect this and lockdown. And hibernation is then disabled. The reason is lack of an autheticated hibernation image. This work has had several proposals but still isn't implemented.

I'm not sure of the status on other distro kernels but allowing it would be a significant bypass of Secure Boot's purpose.

Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by fluoridation on Friday October 24, 2025 @11:54AM (#45695894)
Can secure boot be disabled on Macs?
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by GeekyBear on Friday October 24, 2025 @05:04PM (#45699065)
Macs allow the device owner to install an OS that isn't signed at all, without having it degrade the security of the system when you do boot into MacOS.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by fluoridation on Friday October 24, 2025 @06:06PM (#45699588)
Fine, but can it be disabled? If secure boot is interfering with another function of the computer, the owner might decide they prefer hibernation over secure boot.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by wtallis on Friday October 24, 2025 @07:16PM (#45700060)
I think what you're missing is that "secure boot" isn't a system-wide on/off thing on a Mac, it's a per-OS thing. And UEFI Secure Boot specifically is something that only exists on a Mac to the extent that Asahi shoehorns it into a system that doesn't natively do anything UEFI-related. It would be very surprising if Asahi Linux didn't still provide a way to skip their UEFI Secure Boot code paths and just plain boot.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by bigyabai on Saturday October 25, 2025 @12:42AM (#45701405)
Yes, but that's not a perfect excuse since OpenCore (and Clover) exists. macOS very well can boot without iBoot's opaque "man behind the curtain" blobs, Apple simply never entertained it as an option on their chips. Apparently important stuff is happening in that boot process and they can't have you emulating it for fun or profit.

That is worth discussing though, as it's a marked departure from old Macbooks that did support the UEFI method.

Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by bri3d on Friday October 24, 2025 @12:37PM (#45696324)
This exact thing is irrelevant to Asahi; the reason they don't support suspend-to-disk is that their drivers don't support full reconfiguration. This is a difficult task, as is "true suspend," because Macs have tons and tons of peripheral SoCs running firmware with their own SRAM, so resuming from suspend or hibernate creates a delta between the firmware state and the system state. (and, before the usual Apple trolls show up, this is true on x86 lately too, but on x86 the driver and platform interface is more standardized to support these kind of state changes without as much OS support).

Needing a way to securely verify the hibernate image is ALSO a problem, and one of the reasons Asahi haven't focused on suspend-to-disk, but it's not the first-order issue.

Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by zozbot234 on Friday October 24, 2025 @12:54PM (#45696516)
You can always set the system up to boot in insecure mode via shim, even if UEFI Secure Boot is active. It requires an explicit configuration step with physical presence, but it's doable.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by izacus on Friday October 24, 2025 @01:35PM (#45697049)
Yeah, the security freaks basically broke hibernation across Linux ecosystem.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by jorvi on Friday October 24, 2025 @12:35PM (#45696293)
Suspend-to-disk (or rather, suspend-then-hibernate) is notoriously unreliable on Linux. Hell, its occasionally unreliable on Windows and OEMs taper their firmware to Microsoft's spec and quirks.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by rjdj377dhabsn on Friday October 24, 2025 @01:26PM (#45696925)
I think buying a year old laptop helps give time for the quirks to get worked out in the kernel.

I was able to follow a fairly standard NixOS config with lvm and encrypted swap. I've never had any issues after hibernating a couple times a day for 3 years.

Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by array_key_first on Friday October 24, 2025 @01:58PM (#45697312)
It's very reliable on normal desktop hardware.

I don't know what the fuck is going on with laptop hardware. That stuff seems to barely work, despite the chips and stuff being off the shelf. Most windows laptops cannot handle sleep correctly either.

Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by kiwijamo on Friday October 24, 2025 @03:22PM (#45698183)
All the Lenvo laptops I've bought for personal use and the HPs my work gets have fully functional sleep under windows. The Lenovos also sleeps just fine under Linux. Wonder if its really specific brands that don't put the effort into their HW or drivers support for sleep?
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by devilbunny on Friday October 24, 2025 @04:07PM (#45698577)
My Lenovo would just randomly kill its battery even when it was supposed to be full suspend-to-disk - under Windows.

Setting the BIOS option to "Linux-compatible sleep mode" fixed this, but it took me FOREVER to figure this out and I'm reasonably certain I first heard about this fix in a comment here.

Not a bit of a problem since.

Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by wtallis on Friday October 24, 2025 @07:03PM (#45699981)
The existence of a BIOS option called "Linux-compatible sleep mode" is a dead giveaway that the default behavior is enshittified sleep that wakes up your system periodically so it can check your email, phone home to Microsoft, and maybe fail to go back to sleep.

Having such an obvious name like that is a gift, because otherwise you have to start decoding Intel Marketing names for their features to figure out which are actually anti-features.

Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by devilbunny on Friday October 24, 2025 @09:54PM (#45700801)
Much as I might wish this were really the case, the truth is that it wasn't Windows' fault - IIRC from the explanation, Windows supports sleep modes that Linux doesn't, but it doesn't support them very well, and it's apparently not a rare issue. Something to do with S3 sleep mode IIRC.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by wtallis on Friday October 24, 2025 @10:16PM (#45700883)
The blame is shared between Microsoft and Intel. It's not really that Windows supports sleep modes that Linux doesn't, but that Microsoft and Intel conspired to get rid of S3 sleep mode entirely.

The intention was to replace S3 with fine-grained per-device sleep modes that would in aggregate lead to idle power that is almost as good as S3 while allowing for the "wake up and check email" kind of features. But to the surprise of approximately nobody, this complex multi-vendor strategy relying on high-quality drivers for every single peripheral in the machine did not work out as well as planned. The plan also did not in any way require that S3 sleep be eliminated from newer hardware platforms; that was just malicious behavior from the Wintel conspiracy.

Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by ZiiS on Saturday October 25, 2025 @12:12AM (#45701315)
Tbf forcing though a very complex buggy feature no one wanted did _require_ that you couldn't just use the better working existing solution.
Re:Asahi Linux Still Working on Apple M3 Support, M1n1 Bootl... by kstenerud on Friday October 24, 2025 @11:53PM (#45701249)
https://web.archive.org/web/20241219125418/https://social.tr...

In a nutshell:

> Getting hibernate to work would mean a metric truckload of work on the drivers to support restoring firmware state. Not happening any time soon, it's basically forever the bottom of the priority list and we're unlikely to ever run out of other things to work on first.

> Fixing PM with no documentation is a game of trial and error. You do "more things" like macOS and hope that one of them reduces power consumption.

> It definitely isn't obvious what we're missing, and we don't know what the real answer is going to be. If we did, it would already be fixed.