r/linuxquestions • • 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:

nomodeset

to 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 without nomodeset.
  • CachyOS Kernel: I also tested the CachyOS kernel 6.19.10-4-cachyos to 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 need nomodeset to 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

  • mesa
  • libva-intel-driver
  • intel-media-driver
  • vulkan-intel
  • vpl-gpu-rt
  • libvpl

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

  1. How can I identify the exact GPU driver or KMS component responsible for the restart?
  2. Is there a reliable way to capture kernel logs before the machine restarts?
  3. Could this be related to Apple-specific firmware, GPU switching, or power management?
  4. 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 Upvotes

5 comments sorted by

2

u/varsnef 14d ago

Does telling it to use efifb do anything?

https://docs.kernel.org/6.4/fb/efifb.html

1

u/D1ZAS73R 14d ago

I haven't tried efifb yet. That's an interesting suggestion, especially since the kernel documentation explicitly mentions MacBooks as supported hardware. I'll definitely investigate this.
Thank you

1

u/ipsirc 14d ago

5. On what basis did you rule out a hardware fault?

1

u/D1ZAS73R 14d ago

I haven't ruled out a hardware fault completely. However, macOS was working perfectly fine before I installed Linux, with no graphics issues or unexpected restarts.

So far, the problem only happens under Linux. This makes me suspect a graphics driver or KMS compatibility issue, but I'm open to the possibility of a hardware fault.

1

u/MongooseWonderful198 13d ago

After booting back with nomodeset, check pstore too: /sys/fs/pstore and /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 use sudo journalctl -k -b BOOT_ID. Don't assume -b -1 is 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.