Skip to content

Power off after hibernating on MacBookPro11,1 - #14961

Open
omarchybot wants to merge 1 commit into
quattrofrom
fix/issue-10038
Open

omarchybot wants to merge 1 commit into
quattrofrom
fix/issue-10038

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

On a MacBookPro11,1, hibernate writes the image and enters ACPI S4 in systemd's default platform mode, and the machine then comes straight back on instead of staying off. Two owners of this model report it in #10038, one with a measured before and after: with HibernateMode=shutdown it stays off until the power button and resumes into the same boot. Shutdown mode powers the machine off the same way a normal shutdown does, and the kernel's PM debugging docs recommend it for firmware whose platform S4 path is broken.

This adds the quirk as install/hardware/apple/fix-macbookpro11-1-hibernate.sh, wired into install/hardware/all.sh, writing /etc/systemd/sleep.conf.d/hibernatemode.conf. It is gated on exactly MacBookPro11,1, not on every pre-T2 Mac: a MacBookPro11,5 owner in the same issue found it powers off fine in platform mode (its resume problem is #11351), which is why the all-pre-T2 version in #11345 was withdrawn. The migration applies it to existing installs and skips only a drop-in that already says exactly this, so a second user on the machine is not asked for a password and a contradicted setting gets rewritten. #8017 writes the same drop-in for the ThinkBook X IMH; the two gates never overlap.

test/shell.d/macbookpro11-1-hibernate-test.sh fails on quattro and passes with this change, on an Omarchy worker, and fails again if the gate loses its anchors and starts matching other models. A worker has no MacBookPro11,1, so whether the machine now stays off is for the reporter to confirm on their hardware. Reviewed by Claude Opus 5.5 and by Codex Medium as a second opinion, whose findings on the migration's guard and the test's isolation are folded in and whose last round found nothing open; its independence from the first review is not guaranteed.

Fixes #10038

Hibernate in systemd's default platform mode writes the image and enters ACPI S4, and on this model the machine then comes straight back on instead of staying off. Two owners measured it: with HibernateMode=shutdown it stays off until the power button and resumes into the same boot. The MacBookPro11,5 powers off fine in platform mode, so the quirk is gated on this model alone rather than on every pre-T2 Mac.

The migration applies it to existing installs and skips only a drop-in that already says exactly this, so a second user is not asked for a password and a contradicted setting is rewritten.

Co-Authored-By: Codex Medium <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds HibernateMode=shutdown for MacBookPro11,1 during hardware setup and migration.

  • MacBookPro11,1 hibernation now uses shutdown mode.

omarchybot explicitly described skipping only the exact expected file contents and rewriting other contents, so the whole-file comparison and rewrite were treated as intentional.

Reviews (1) · Last reviewed commit: "Power off after hibernating on MacBookPr..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator Author

Claude Opus 5.5 read this change at 8e6a533b against current quattro. It still merges cleanly. The quirk is gated on exactly MacBookPro11,1 through omarchy-hw-match, and the migration skips a drop-in that already says the same thing. I'd call it a hardware compatibility bug fix.

That classification isn't settled yet. Every item is classified by two models separately, and the second, Codex Medium, didn't run: the reviewer is up and answers a ping, but today's review budget was already spent. So this has no class label yet, and nothing was re-run on a worker this round. It goes round again when the budget resets.

Apart from that, this is still waiting on the real machine. A worker has no MacBookPro11,1, so the fix counts as verified only once @animadito confirms commit 8e6a533bfb9c81b9f62db1623916e91d0ae2b904 on theirs, as asked in #10038.

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

Successfully merging this pull request may close these issues.

Hibernate on pre-T2 Intel Macs reboots instead of powering off

1 participant