Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iBoot Panic on next macOS startup after using asahi-bless while macOS was hibernated #17

Open
rxhfcy opened this issue Feb 13, 2024 · 1 comment

Comments

@rxhfcy
Copy link

rxhfcy commented Feb 13, 2024

If I use asahi-bless to change the default boot disk to macOS while macOS is hibernated, macOS shows an error "SOCD report detected: (iBoot Panic)" on the next startup (this is a follow-up to #15).

PS. While repeatedly retesting these steps, I didn't want to hibernate by actually running out of battery, so I temporarily used pmset -a hibernatemode 25 to manipulate sleep mode.

To change the setting back to normal after testing, pmset -a hibernatemode 3 is the default for laptops and 0 for desktops, I believe.

Steps to reproduce:

  1. startup disk -> Asahi Linux
  2. in macOS, hibernate (I used sudo pmset -a hibernatemode 25 && pmset sleepnow)
  3. wait a couple of seconds and then press the power button to start up the laptop (loads Linux because of step 0)
  4. in Linux: shutdown -h now
  5. long press the power button, boot from "Macintosh HD"

As expected, no error in macOS (yet).
Let's do the same thing again but now with asahi-bless:

  1. (startup disk is still Asahi Linux)
  2. in macOS, hibernate (I used sudo pmset -a hibernatemode 25 && pmset sleepnow)
  3. wait a couple of seconds and then press the power button to start up the laptop (loads Linux because of step 0)
  4. in Linux: use sudo asahi-bless to set the startup disk -> "Macintosh HD"
  5. reboot

What happens: when starting up, macOS shows an error, see screen shots below (I used TinkerTool to "Display crash report" when applications crash)

Your computer was restarted because of a problem iBoot Panic

Expected: don't show an error

I'm using an M1 MacBook Air, macOS 14.3.1 (23D60), the latest version of Fedora Asahi Remix and the latest Git tip of asahi-bless

@WhatAmISupposedToPutHere
Copy link
Collaborator

Unfortunately, for now the solution is "well, do not do that then", reliably detecting if there is a hibernated macos requires parsing too many apfs structures to be practical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants