Appearance
Kernel Panic
If your Mac restarts on its own and shows "Your computer was restarted because of a problem":
- Update macOS: This fixes most kernel panics
- Disconnect external devices: Reconnect one at a time to find the culprit
- Run Apple Diagnostics: Shut down, then hold the power button. When options appear, press
Cmd + D - Safe Mode: If it happens repeatedly, boot into Safe Mode to isolate the issue
Apple Diagnostics
Run built-in hardware tests:
- Shut down your Mac
- Press and hold the power button until you see startup options
- Press
Cmd + D - Follow the on-screen instructions
Reference codes: If you get an error, note the code and look it up at support.apple.com or contact Apple Support.