November 1st, 2024

Linux on Apple Silicon with Alyssa Rosenzweig

Alyssa Rosenzweig discusses the Asahi Linux project on the Software Engineering Daily podcast, focusing on porting Linux to Apple Silicon and the importance of open-source efforts for compatibility and performance.

Read original articleLink Icon
Linux on Apple Silicon with Alyssa Rosenzweig

Alyssa Rosenzweig, a prominent computer scientist and graphics developer, discusses the Asahi Linux project on the Software Engineering Daily podcast. This initiative aims to port Linux to Apple Silicon, which utilizes a custom ARM-based architecture. The project is significant due to the increasing popularity of Apple Silicon Macs and the challenges posed by the platform's undocumented nature. Rosenzweig, who works as a contractor at Valve focusing on open-source software for Linux gaming, contributes to Asahi Linux by reverse-engineering the Apple M1 GPU. During the podcast, she shares insights on hardware reverse engineering, advancements in gaming on Asahi, and the overall progress of the project. The conversation highlights the importance of open-source efforts in enhancing compatibility and performance for users of Apple Silicon devices.

- Asahi Linux aims to port Linux to Apple Silicon, an undocumented platform.

- Alyssa Rosenzweig is a key contributor, focusing on reverse-engineering the Apple M1 GPU.

- The project is crucial for the growing user base of Apple Silicon Macs.

- The podcast discusses advancements in gaming on the Asahi Linux platform.

- Open-source initiatives are vital for improving software compatibility and performance.

Link Icon 12 comments
By @jsheard - 3 months
I haven't listened to this podcast yet so I don't know if this comes up, but a particularly scary part of running a custom OS on Apple Silicon machines is that the internal speakers temperature is regulated in software. The Asahi devs have had to painstakingly reverse engineer and reimplement the safety DSP that macOS uses on each device, and add some safety margin, because if they get it wrong they could literally destroy the speakers (and IIRC at least one of their own MacBooks did have its speakers sacrificed along the way).

I wonder if there will be a similar issue with the displays when Asahi gets around to supporting HDR on machines equipped with FALD mini-LED backlights (or XDR, as Apple calls it). HDR displays usually regulate their brightness to keep the panel from getting too hot, and if Apple does that in software too then Asahi will need to replicate it.

By @unit149 - 3 months
Reverse engineering the first bit of Apple's flagship M1 CPU, which was implemented in the original iPhone released back in '08, through an ARM-based architectural analysis, and integrating it into Linux kernel system calls is an extreme measure. This reduplication of the original dump, checking its hex value, then altering it to see if the application is functional. Doing x,y, and z, then seeing if it works inside VM hypervisor-space.

https://softwareengineeringdaily.com/wp-content/uploads/2024...

By @chubs - 3 months
What would be possible if everyone interested in Linux-on-macOS chipped in $5 each month? I wonder if this could fund a big enough team to make this super-polished.
By @AI_beffr - 3 months
its insane to me that people are working so hard on reverse engineering apple silicon. like, the diagrams are right there in cupertino. it just seems like such a waste. its like during some kind of economic depression there are people starving and struggling while a bunch of food and resources are just sitting around not being used. existential grid-lock.
By @thefabsta - 3 months
Does anyone have experience running Asahi on a home server? Does the silicon’s power efficiency when running macOS translate to Asahi? I’d also be really curious to hear if there are any gotchas and/or reliability issues. For example, features such as hardware video decoding do not seem to be supported (yet).
By @SG- - 3 months
the negative comments in this thread are frankly disappointing especially for a place called "hacker news". like Linux doesn't have roots in reverse engineering and continued reverse engineering and people here constantly "advocating" for open source drivers from likes of Nvidia instead of the close source binary blobs.

yet here someone makes great effort and most comments are negative Nancy's asking why it's being done or bringing up support issues with newer hardware revisions from a 1-3 person outfit that everyone said would be impossible to do.

By @imiric - 3 months
Godspeed to the Asahi team, but as much as I envy the performance and efficiency of Apple silicon, I could never depend on a small group of hackers to reverse engineer every part of a closed system and to maintain it in perpetuity so that I can run free software on it. As brilliant as this team is, and as much progress as they've made, fighting against a trillion-dollar corporation that can decide to shut it down at any moment is a sisyphean endeavor. Spending thousands of dollars on that bet is a hard sell, even for tech nerds.

Not to mention that you'd be supporting a corporation that has this hostile stance towards their customers to begin with.

Meanwhile, other x86 and ARM manufacturers are making substantial improvements that are shortening Apple's lead. You're not losing much by buying a new CPU from them in 2024 or 2025, but you gain much more in return. Most importantly, the freedom to run any software you choose.

By @throwaway984393 - 3 months
What they've been able to accomplish in such a short time is nothing short of amazing, and I applaud them for their efforts.

That said, I've been using Asahi for a month, and I'm ditching it. Maybe in a year or two it'll be stable, but for now it's got too many bugs and unsupported features. A lot of the problems come down to Wayland and KDE/Gnome, as you literally have to use Wayland. But there's plenty of other buggy or challenging parts that all add up to a very difficult working experience.

One of the biggest challenges I see is support for hardware and 3rd party apps. Not only do all the apps need to support this slightly odd Arm system, but so do hardware driver developers. I never realized before just how much of a Linux system works because most people had an incredibly common platform (x86_64). Even if Linux on Mac became incredibly popular, it would actually take away development focus on x86_64, and we'd see less getting done.

(This kind of problem is totally common among Linux laptops, btw; there's a ton of hardware out there and Linux bugs may exist in each one. Adding a new model doesn't add to the number of developers supporting them all. If anything, the Mac is probably benefited by the fact that it has so few models compared to the x86_64 world. But it's still only got so many devs, and 3rd party devs aren't all going to join the party overnight)

By @grahamj - 3 months
For those who didn't get my joke, she commonly dresses up as a witch at XDC :)

https://lwn.net/SubscriberLink/995383/34dc5950cab5e739/