Repository navigation
[Intel Mac P10] Real S3 suspend with Bluetooth and Wi-Fi recovery on MacBookAir9,1 - #5
Open
iJustinCabral wants to merge 11 commits into
Conversation
MacBookAir9,1 brings the controller up before combo firmware is ready, so BlueZ reports powered with an empty class. Gate module load and desktop startup on Wi-Fi readiness. Follow-up to intel-mac/p10-broadcom-wifi. Taken from fix-t2-vintage-mac-support at 3063fa2.
The gate and eligibility check waited for Wi-Fi at the fixed PCI address 0000:73:00.0, so a different bus enumeration would leave Bluetooth unloaded for that boot. Discover the single 14e4:4488 function on every poll, keeping the MacBookAir9,1 and T2 guards. Installed gates record the helper's exact bytes and refuse a different revision, so recognize the previous helper by SHA-256 and replace it in place with rollback preserved. A migration upgrades installed gates only, leaving absent or rolled-back setups alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BCM4377 on MacBookAir9,1 aborts suspend in brcmfmac D3. Ship the tested DKMS mailbox and transport series for that model, include Apple Wi-Fi firmware in the boot image, and disable the exact unload-around-sleep unit that broke Bluetooth resume. The pre-T2 brcmfmac rebind is unchanged. This follows intel-mac/p10/t2-bluetooth-startup because the installer uses that gate's file helpers and model check. Hibernation callbacks, candidate images, and speaker DSP are not included. Source revision 3063fa2 on fix-t2-vintage-mac-support.
Preparation and deployment rename a 0700 TemporaryDirectory into place, and copytree preserves that mode into /usr/src, so unprivileged DKMS inspection cannot traverse the registered source. Publish the source root as 0755 and repair it on repeated setup without rebuilding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The docs said the Wi-Fi firmware-stall watcher remained on this branch, but it lives on the sibling t2-wifi-recovery contribution. State the actual stack and merge order, mark the hardware ledger as combined-machine evidence, and record the standalone offline checks separately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Suspend eligibility checked Bluetooth at the fixed address 0000:73:00.1. Require 14e4:5fa0 as function 1 of the same chip as the Wi-Fi function the Bluetooth gate discovers by ID. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bump omarchy-t2-radio to 1.1. DKMS builds only for kernels whose stock radio srcversions match installer/qualified-radio.conf (PRE_BUILD gate, reading the DKMS original_module archive after install); other kernels keep stock drivers. Install decides qualification before mutating, records it, and refuses when no kernel qualifies. The initcpio hook and verify refuse any t2bce_* module outside the stock kernel tree and apply an explicit radio policy. Adds gate/hook/archive tests and docs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Read the installed version from the receipt: install of an older installed version rolls that version back (dkms remove, source removal, stock image) before installing the new one, rollback removes whichever version the receipt names, and verify on a version mismatch asks for omarchy setup t2-suspend. Adds 1.0 upgrade tests and states the upgrade entry point in the installation doc. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
iJustinCabral
marked this pull request as ready for review
September 30, 2026 17:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to [Intel Mac P10] Consolidate Broadcom calibration and sleep recovery (omacom#12688). Part of the Intel Mac series.
Stacked on #4 (Bluetooth startup), which depends on #1. Merge order: #1 → #4 → this PR. Until #4 merges, this diff also shows its commits; the suspend-specific commits start at "Install scoped T2 S3 radio drivers". #3 (Wi-Fi recovery) is independent and is not included here.
What this achieves
On the tested MacBookAir9,1 with BCM4377, real ACPI S3 (deep) suspend and resume with working Bluetooth/AirPods audio and Wi-Fi. Stock Wi-Fi failed to acknowledge its D3 request, so suspend aborted. The old workaround, unloading
brcmfmacaround sleep, broke Bluetooth and is retired here.Change
linux-t2headers. The kernel image stays stock.ResumeDelay = 5so AirPods reconnect automatically after the rebuild.omarchy setup t2-suspend [--verify|--rollback]), a fresh hardware leaf, and migration1789256882. An initcpio guard refuses to publish a boot image with the wrong radio modules or missing Apple firmware.0700(from a renamedTemporaryDirectory). It is now0755, and repeat setup repairs it without rebuilding.0000:73:00.1: it must be function 1 of the same chip as the Wi-Fi function discovered by ID.installer/qualified-radio.conf: 7.2.6 and 7.2.7, byte-identical). PreviouslyBUILD_EXCLUSIVE_KERNEL="-t2$"rebuilt the pinned 7.2.4-era source for every future linux-t2 kernel. An unqualified kernel is skipped cleanly by a DKMSPRE_BUILDgate: the update succeeds and the stock radio drivers stay in use (the old Wi-Fi suspend abort returns until the table is requalified, but boot and input are never at risk)./var/lib/dkms/<pkg>/original_module/…, verified by.originnotes), so post-install verification sees the true stock fingerprint.omarchy setup t2-suspendupgrades an older installed package version by its normal rollback, then a transactional install of 1.1;verifyreports a version mismatch clearly. 1.0 was never released, so no extra migration is added: the existing one-time migration installs 1.1 on first rollout.verifyrefuse any mixed or non-stockt2bce_*family and any mixed radio set. This package never replaces BCE, but a related working branch did, and on linux-t2 7.2.7 a DKMSt2bce_corenext to in-treet2bce_dma/t2bce_vhcikilled the internal keyboard and trackpad. The guard makes that class of failure impossible to publish.Validation
docs/t2-suspend/VALIDATION.md, which also keeps the failures (including one unexplained reboot on an earlier candidate).omarchy updatea real ACPI S3 lid-close cycle passed on 7.2.7 with the working branch's radio-only package (which additionally carries a hibernation-era Wi-Fi patch). That evidence is from the working branch, not from this PR's 1.1 build.Not claimed: other Intel/T2 models, overnight battery drain, and hibernation/S4 (see the follow-up hibernation PR). s2idle is a separate suspend mode and wasn't the subject of this work.
Open questions for review
omarchy updateon supported hardware. Should the first release be opt-in (omarchy setup t2-suspend) rather than automatic?omarchy-pkgs(anomarchy-t2-radio-dkmsrecipe, like the P08/P11/P12 companions) may fit the repo's conventions better.🤖 Generated with Claude Code