I have an issue with my MacBook Air M2 (2022) that results in kernel panics that I can't fix without your help. Few more facts that we should consider to be on the same page:
In January 2023 I got caught by heavy rain with my brand new MacBook Air in Asia so as a result:
- A small amount of liquid damaged the screen
- A small amount of liquid got inside near an ESC button area and USB-C ports
I talked with Apple Center but due to water damage there is no way for Apple to fix damaged parts only so they suggested replacing almost everything which means it costs about 95% of a brand-new laptop
- I declined this solution because by the time the laptop runs successfully without any errors
- The only thing that logically required a replacement at that time was a lid: screen because it had that common "dark areas" for water damage in there and a webcam that tried to start but apparently can't
- Apple Diagnostic report: camera issue, with a code like NDC00x from Apple Diagnostics reference codes + one of the guys from Apple center said that there was an issue with a wrong frame rate
6 months later: The screen seems ok and doesn't bother me: it still reminds me that it was damaged but it works, all the "dark dots" have gone away, so screen health is about 95%
- One day I had a few kernel panics that I managed to debug perfectly well - thanks to my developer background. I realized that it was a "time of the day specific issue" so I turned off screen dimming and night shift feature and it worked. The webcam doesn't work. It tries to turn it on but can't, only the green LED is working.
A month ago:
- Something new happened one day when I opened the lid. After that laptop tried to load but a purple screen occurred.
- Sometimes I notice that if I run Apple Diagnostics from Recovery Mode and then try to boot into Safe Mode, it loads perfectly. Works for a few days but then something happens again. And if I repeat the previous scenario then it helps again
A week ago I tried to debug the issue, and reproduced it a few times when I tried to use a webcam but for now the scenario from above doesn't work as before. So when I try to boot into OS/safe mode - it ends in a purple screen and then reboots.
- I tried to install Ventura, Sonoma, and Monterey, but it doesn't help
- I tried to clear some caches from the recovery OS, and turn Panic Medic on - it helped a month ago but not today
God bless Asahi Linux - It runs perfectly well. I mean that despite some driver issues that is a question of time - the laptop is working and nothing crashes.
- It is usable for me so if nothing works to fix booting into macOS - I'll use it
Things I'm trying to mix up together and find a solution:
- I think that if Asahi Linux doesn't crash then it is probably "not a real hardware issue". I mean if there were something critical for boot and it was failing to start then Asahi Linux won't boot too
- Something fails in the last stage of booting to macOS: sometimes I can close the lid during boot with a progress bar and open it a bit later - I see a login screen for a second and then it turns into a purple screen
- Something in the macOS is trying to access the camera or some sensors right before showing the login screen
- If I manage to disable this behaviour then macOS will boot successfully
- I don't think that the camera is crucial for macOS to boot or that it requires a complete hardware setup to boot
- I have a few panic reports, and most of them have a message like
AOP panic - no pulse
. some of these log files have a backtrace with processes and threads, but every time it reports that panicked thread was something like thisRTBuddyCrashReportEndpoint(AOP)
Questions for the community:
- Is there a way to configure macOS to ignore some hardware? (tried to remove some kexts but macOS restores them after reboot). I want to disable the Apple camera, for example
- Are there ways or tools to test potential issues with hardware on Linux?
- Is there something I should try to debug or do that I missed?
- Is there a config file in the system that can be related to cameras or sensors?
So it is probably better to let the community decide instead of believing in your own opinion only, right?
– yTko Nov 05 '23 at 16:36