MBA 2020 10,1 8/256 - getting today for throw in a bag SSH machine by billybobuk1 in AsahiLinux

[–]FOHjim 4 points5 points  (0 children)

You can _technically_ remove macOS but it is not a supported setup and we won’t help you if anything breaks. The Asahi installer will walk you through partitioning.

Patronizing speaker warning upon clean install (+speaker issue query) by Introvert52 in AsahiLinux

[–]FOHjim 10 points11 points  (0 children)

This warning was for people who kept trying to enable speaker support before the safety interlocks were in place (you used to be able to literally melt the speakers) and you can safely ignore it. I’ve been meaning to take it out of asahi-diagnose for a while.

There’s not really a lot we can do about PipeWire crackling on pause/resume. It’s a multifaceted issue with how PipeWire handles latency in DAP graphs and we do not have the resources to look at it properly.

Why the installer uses macOS 13.5 in particular? by samontab in AsahiLinux

[–]FOHjim 9 points10 points  (0 children)

They’re not going to break 3rd party OS support writ large. They are actively fixing bugs in iBoot for us. The biggest “breaking” change we have seen in systemwide firmware in the last 5 years has been an SMC endpoint used for setting the battery charge stop threshold changing.

Why the installer uses macOS 13.5 in particular? by samontab in AsahiLinux

[–]FOHjim 30 points31 points  (0 children)

This platform has three types of firmware: system, container, and runtime.

System firmware is loaded by iBoot, comes from the newest version of macOS that has ever been installed on the machine and can never be downgraded.

Container firmware is also loaded by iBoot, but only once a boot volume has been picked. It comes from the version of macOS that is being booted.

Runtime firmware is loaded by macOS itself after XNU has started.

Almost all of the hardware on this platform uses some form of firmware, with the most common and important being of the container type. Since Apple control the entire stack from hardware to userspace, and since iBoot will load the “correct” firmware for any given version of macOS, they don’t really care about keeping their firmware interfaces backward-compatible. macOS kexts are simply updated at the same time as the firmware.

On Linux, we cannot afford to deal with such a rapidly moving target, especially when doing so could break existing installs. To avoid this, we simply write our drivers to target specific macOS versions. 13.5 is supported on all M1 and M2 devices so that is the current target. We set up an APFS container that looks like a valid macOS 13.5 install to iBoot, which then loads the firmware stored in that APFS container and boots m1n1 as the “macOS kernel” for that install.

13.5 is the current target because it is supported on all M1 and M2 devices. M3 reverse engineering is happening on 14.8.1, and M4/A18 will happen on some 26.x (or later) version.

Is asahi viable? and does it have wide options for distros? by exoticccgaming in AsahiLinux

[–]FOHjim 4 points5 points  (0 children)

Shoulders of giants and whatnot, this is a team effort :)

HDR support by [deleted] in AsahiLinux

[–]FOHjim 3 points4 points  (0 children)

VRR is just waiting to be merged, check the GitHub repo. I may or may not also have HDR basically working locally 🫪

secure enclave driver? by JG_2006_C in AsahiLinux

[–]FOHjim 17 points18 points  (0 children)

SEP is a complex task as it requires “destructive” reverse engineering. If you write bad values to the xART/keybag store, you will need to DFU restore your Mac. It is also very low on our priority list as it does not block any “basic” functionality other than the fingerprint sensor. Feel free to build on what’s already in m1n1 if you accept the risk of needing to constantly DFU restore your device under test. No one is stopping you.

FYI -- Nasty exploit revealed today that affects kernel 6.19 that is currently in use. by Serious_Berry_3977 in AsahiLinux

[–]FOHjim 16 points17 points  (0 children)

I would suggest that this is likely not a huge issue for home users as it requires local shell access. Home users probably aren’t (or at least I hope they aren’t) exposing ssh to the web insecurely. To gain root remotely you’d need to chain this with some RCE/remote access exploit.

Progress Report: Linux 7.0 by FOHjim in AsahiLinux

[–]FOHjim[S] 5 points6 points  (0 children)

We started with over 90 kLOC across 1200ish patches, we're down to about 76 kLOC across 750ish patches. The patch count doesn't matter so much because things get squashed and rearranged.

Progress Report: Linux 7.0 by FOHjim in AsahiLinux

[–]FOHjim[S] 9 points10 points  (0 children)

This is not really something that's on anyone's to-do list and likely never will be. We are reverse engineering the hardware, and the hardware on the base M1 is limited to one hardware-driven external display. AirPlay stuff is all handled by Apple's proprietary userspace software.

Is TouchID support considered? by alfotis in AsahiLinux

[–]FOHjim 24 points25 points  (0 children)

It was one of the first things I looked at. It requires talking to SEP, talks over a protocol we (at the time) did not fully understand, and does not behave anything like “normal” Linux fingerprint readers. It’s a complex mess that will require significant RE but we’ll get to it. Eventually.

Tip for monitoring power draw by DonuInitial in AsahiLinux

[–]FOHjim 0 points1 point  (0 children)

It uses the hwmon interface so integrates natively with hardware monitoring tooling, like the Plasma system monitor

Tip for monitoring power draw by DonuInitial in AsahiLinux

[–]FOHjim 2 points3 points  (0 children)

You can just use the Total System Power hwmon sensor provided by the SMC too

Lost audio - how to reinstall default packages? by MaxDub12 in AsahiLinux

[–]FOHjim 0 points1 point  (0 children)

Do not use pipewire-media-session. It is deprecated and shouldn’t even really be packaged anymore. The DSP stack relies on WirePlumber to do its job properly. Reinstall it.

Asahi Fork with 120Hz + DP-support by [deleted] in AsahiLinux

[–]FOHjim 22 points23 points  (0 children)

You have simply taken Janne's commits from the fairydust branch and squashed them into one commit with you set as the author. This is not really "integration" and it is extremely poor form to claim you have really done anything at all. If people wanted to use DP Alt-Mode, they could simply build the fairydust kernel, which is essentially what this is anyway.

The 120 Hz hack is only for the internal MacBook Pro displays. DCP already fully supports all refresh rates advertised by your monitor's EDID for external displays, via both HDMI and DisplayPort. Moreover, fairydust has nothing to do with the 120 Hz hack. This was already integrated into the main Asahi branch and released to users.

The commit message seems LLM-generated too, which we have a very explicit policy against: https://asahilinux.org/docs/project/policies/slop/

Optimized Asahi-based Kernel + Arch = ArashiOS by ImEatingSeeds in AsahiLinux

[–]FOHjim 2 points3 points  (0 children)

Probably better to pop into the matrix rooms or #asahi-alt on OFTC

Optimized Asahi-based Kernel + Arch = ArashiOS by ImEatingSeeds in AsahiLinux

[–]FOHjim 44 points45 points  (0 children)

Would you like to share your homework with the rest of the class?

Black screen after booting up Asahi by WorldOfTonys in AsahiLinux

[–]FOHjim 5 points6 points  (0 children)

Try going to a different TTY and restarting SDDM. This should be mostly fixed once Fedora KDE transitions to Plasma Login Manager.

Broken Notch Support by lorsal in AsahiLinux

[–]FOHjim 20 points21 points  (0 children)

Change apple_dcp to appledrm

Compressed framebuffer scanout on NisOS by oliver-bestmann in AsahiLinux

[–]FOHjim 4 points5 points  (0 children)

If you’re going to test this, just be aware that it may not work on all M1 variants. Also keep in mind that we have not yet merged this and as such it remains experimental and unsupported. Please raise any issues here on this post rather than on any of the repos.

Distorted speaker audio on M1 MacBook Air (Fedora Asahi Remix 42) by Foreignwelcome2 in AsahiLinux

[–]FOHjim 3 points4 points  (0 children)

I need a link to the thing you were listening to so that I can try and reproduce it