Skip to content

Power off pre-T2 Apple Macs after writing the hibernate image - #11345

Closed
rand0mdud3 wants to merge 1 commit into
omacom:quattrofrom
rand0mdud3:fix-apple-pre-t2-hibernate
Closed

rand0mdud3 wants to merge 1 commit into
omacom:quattrofrom
rand0mdud3:fix-apple-pre-t2-hibernate

Conversation

@rand0mdud3

Copy link
Copy Markdown

Fixes #10038.

Hibernate on pre-T2 Intel Macs writes the image but then reboots instead of powering off: systemd tries the platform (ACPI S4) mode first, which fails on this hardware, while the shutdown power-off path works fine. Kernel docs recommend shutdown mode for exactly this case, and resume still works from the swap signature on next boot.

  • install/hardware/apple/fix-pre-t2-hibernate.sh: gated on Apple DMI vendor plus absence of the T2 PCI ID (same probe as fix-t2.sh), writes /etc/systemd/sleep.conf.d/hibernatemode.conf with HibernateMode=shutdown. Same drop-in path and content as the open ThinkBook PR Hibernate with shutdown mode on ThinkBook X IMH so the machine powers off #8017, so the two converge harmlessly.
  • Wired into install/hardware/all.sh alongside the other Apple quirks.
  • migrations/1789095456.sh sources the leaf so existing installs heal on omarchy update (idempotent, per-user safe).
  • test/shell.d/apple-pre-t2-hibernate-test.sh: 9/9 pass.

Verified on MacBookPro11,5 (Apple Inc., no T2, /sys/power/disk defaults to [platform]): the real DMI+lspci gate fires, the drop-in lands, systemd-analyze cat-config shows HibernateMode=shutdown, and a second run no-ops. Live hibernate cycle not run here: this machine has no resume= target configured yet, so a real cycle could not restore the session.

@rand0mdud3

Copy link
Copy Markdown
Author

Withdrawing: live A/B test on MacBookPro11,5 showed this quirk targets a symptom this model does not have, and cannot fix what is actually broken. Baseline (stock platform mode) powered off correctly with no reboot, but resume hangs with dead input (details in the new resume-hang issue + #10038). Hibernate on this model needs resume fixed first; a power-mode quirk alone would only make session loss quieter. Happy to re-propose scoped to confirmed-affected models if an 11,1 tester verifies the reboot symptom with working resume.

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

2 participants