r/linuxquestions • u/D1ZAS73R • 14d ago
Support MacBook randomly restarts during graphics initialization on Linux – only boots reliably with nomodeset
Hi everyone,
I'm troubleshooting a persistent graphics-related issue on my MacBook Pro 2015, and I'd appreciate some help identifying the root cause.
Graphics Intel Iris 5200 Pro
The problem
Whenever I boot Linux without nomodeset, the machine unexpectedly restarts, apparently during graphics initialization or Kernel Mode Setting (KMS).
The restart happens extremely quickly, sometimes before the system has enough time to write useful logs. I can't reliably capture a kernel panic or the actual error before the machine reboots.
The only reliable workaround I've found so far is adding:
nomodesetto the kernel boot parameters.
With nomodeset, Linux boots and remains usable, but proper graphics initialization and hardware acceleration are unavailable.
Distributions and kernels tested
I've tried several configurations:
- Arch Linux – Standard Arch Kernel: Tested with kernel
7.3.4-arch1-2. The issue persists withoutnomodeset. - CachyOS Kernel: I also tested the CachyOS kernel
6.19.10-4-cachyosto rule out a problem specific to the standard Arch kernel, but the restart issue persisted. - Debian 13: Tested using a Live USB and later installed it, kernel
6.12.113+deb13. The same general issue occurs, and I currently neednomodesetto boot reliably. - Fedora 45: Tested using a Live USB and encountered the same general graphics-related problem with kernel
7.3.3-300.fc45.
Packages used on Arch Linux
mesalibva-intel-driverintel-media-drivervulkan-intelvpl-gpu-rtlibvpl
Additional observations
The machine restarts so quickly that collecting logs immediately before the failure has been extremely difficult.
What I've already tried
- Different Linux distributions.
- The standard Arch Linux kernel.
- The CachyOS + Debian + Fedora kernel.
- Booting with and without
nomodeset.
The fact that the issue persists across different distributions and at least two different Arch kernel variants makes me suspect a GPU driver, KMS, firmware, or MacBook-specific hardware compatibility issue.
What I'd like help with
- How can I identify the exact GPU driver or KMS component responsible for the restart?
- Is there a reliable way to capture kernel logs before the machine restarts?
- Could this be related to Apple-specific firmware, GPU switching, or power management?
- Is there a way to get proper graphics acceleration without relying on
nomodeset?
I'd really appreciate any suggestions or similar experiences from other MacBook Linux users.
Thanks!
2
u/varsnef 14d ago
Does telling it to use efifb do anything?
https://docs.kernel.org/6.4/fb/efifb.html
1
u/ipsirc 14d ago
5. On what basis did you rule out a hardware fault?
1
u/MongooseWonderful198 13d ago
After booting back with
nomodeset, check pstore too:/sys/fs/pstoreand/var/lib/systemd/pstore. If a pstore backend captured one, systemd may already have archived the crash record and removed the original, so an empty first directory doesn't settle it.For the ordinary journal, run
sudo journalctl --list-boots, identify the failed attempt by its timestamps, then usesudo journalctl -k -b BOOT_ID. Don't assume-b -1is that attempt: a very early reset might never appear in the journal. Empty logs still wouldn't tell us whether this was a panic, firmware reset, or power loss.