Repository navigation
Description
Purpose
Track the second Apple SMC fan-control mechanism by runtime capability fingerprint, not by T1/T2 generation labels or an exact-model runtime whitelist.
The product goal is generation-neutral fan control on supported Apple Intel Macs: detect the live SMC schema, fan count and hardware-defined limits, then select only a previously verified bounded writer.
Physical read-only evidence
PerFanModeFloat32 control
MacBookPro16,1 physically produced:
FNum = 2,F{i}Mx/Ac/Tg:flt/ 4 bytes,F{i}Md: present /ui8,FS!: absent,- classifier:
PerFanModeFloat32, - zero SMC writes,
- profiler PASS.
GlobalMaskFpe2 control
MacBookPro12,1 physically produced:
FNum = 1,F0Mn:fpe2, len 2, attrs0xC0, raw144C,F0Mx:fpe2, len 2, attrs0xC0, raw60DC,F0Ac:fpe2, len 2, attrs0x90, raw2404,F0Tg:fpe2, len 2, attrs0xD0, raw248C,F0Md: absent,FS!:ui16, len 2, attrs0xC0, raw0000,- classifier:
GlobalMaskFpe2, - zero SMC writes,
- profiler PASS.
The physical F0Mx = 0x60DC = 24796 matches the previously observed 6199 RPM maximum at raw / 4, confirming the known big-endian fpe2 scale for this family without guessing.
PR #50, the generic read-only SMC fan profiler, has been merged to main as d0c5c4644c24c6f703dcf3d541c15ac0f35f6377.
A T1-era physical machine is temporarily unavailable. T1 validation is deferred and is not a blocker for implementing the capability-driven architecture; no T1-specific compatibility claim should be made until physically tested.
Product runtime contract
- Apple + Intel is the platform gate.
FNumis authoritative for dynamic topology.FNum = 0is a valid passive/fanless topology: CPU profile remains available, zero fan writes, clear fan-not-applicable status.- Exact model/year/T1/T2 labels are not the fan-writer selector.
- A recognized live capability fingerprint selects its bounded writer.
- Unknown/mixed fingerprints remain read-only and issue zero fan writes.
- Maximum Safe RPM is always fresh live per-fan
F{i}Mx. - Tester diagnostics should expose enough sanitized capability metadata to triage a new fingerprint.
GlobalMaskFpe2 implementation requirements
- Add a family-aware capability model/classifier without regressing
PerFanModeFloat32. - Add safe
fpe2decoding based on the physically confirmed big-endian unsigned value divided by 4. - Treat the global
FS!mask as the mode authority for this family; do not invent per-fanMdkeys. - Derive the manual mask dynamically from discovered fan count only within a proven representable/safe bound. Known semantics:
00 00Auto,00 01fan 0 manual,00 02fan 1 manual,00 03both manual. - Write Maximum Safe targets only from fresh live
F{i}Mx; prefer exact source rawfpe2bytes when the target schema matches, avoiding unnecessary conversion/rounding. - Verify every hardware transition by fresh readback.
- Apple Auto rollback/recovery is a global
FS! = 00 00transition followed by readback verification. - Ownership/recovery persistence must identify the capability family and remain compatible with existing PerFan ownership schemas.
- A current model mismatch may still block recovery of a persisted ownership marker because that marker belongs to a specific physical machine; this is ownership safety, not a compatibility whitelist.
- No arbitrary SMC write surface, RPM slider, minimum-RPM write or guessed key/value.
Safety boundary
- No physical SMC write from CI/unit tests.
- No production write enablement for unknown fingerprints.
- No hard-coded fan count.
- No hard-coded maximum RPM values.
- No T1/T2-generation switch as runtime permission gate.
- Do not guess missing key metadata, mask layout beyond the proven bound, byte order, or write timing.
Activity
[-]research: define safe T1 and classic Intel fan-control family[/-][+]research: define safe global-mask fpe2 fan-control family[/+]mksolutionsuniversal commentedon Sep 6, 2026
Physical GlobalMaskFpe2 evidence: MacBookPro12,1 — PASS
The generic read-only profiler from draft PR #50 was run on physical
MacBookPro12,1hardware and classified the machine asGlobalMaskFpe2from live SMC metadata, with zero writes.Observed fingerprint:
MmioFNum = 1F0Mn/Mx/Ac/Tg:fpe2, len 2F0Md: unavailableFS!: present, len 2, typeui16, raw00 00GlobalMaskFpe2Live
F0Mxraw bytes were60 DC. Interpreted big-endian,0x60DC = 24796; using the historical MFC maximum for this exact machine (6199 RPM) gives24796 / 4 = 6199. This resolves the fpe2 encoding for this family as big-endian fixed-point with two fractional bits (raw / 4) from physical evidence rather than assumption.This supports mechanism/capability-based routing (
GlobalMaskFpe2) rather than T1/T2 generation or exact-model runtime gates. No production writer has been enabled yet; Adrian's physical machine remains the final planned read-only checkpoint before bounded writer work.[-]research: define safe global-mask fpe2 fan-control family[/-][+]fan: implement bounded global-mask fpe2 capability family[/+]mksolutionsuniversal commentedon Sep 6, 2026
Architecture contract merged via PR #51 as
eea7c53c5f96dc3fa87b28ebc83cfee287767d22after CI #168 passed.mainnow documents capability-driven routing, FNum=0 passive/fanless semantics, model-validation vs runtime-compatibility separation, and family-neutral UI wording. No hardware-write sequence was broadened by PR #51. Next implementation target is the boundedGlobalMaskFpe2family plus family-aware probe/preflight/recovery/diagnostics, preserving the existingPerFanModeFloat32path.mksolutionsuniversal commentedon Sep 8, 2026
Physical write qualification update — one-fan GlobalMaskFpe2 PASS
On 2026-09-08, the bounded one-fan
GlobalMaskFpe2mechanism completed its first BCPC-owned physical write/readback/Apple Auto round trip onMacBookPro12,1.Fresh pre-write fingerprint:
Protocol = Mmio (1)FNum = 1Family = GlobalMaskFpe2FS! = ui16 / len2 / attrs 0xC0 / raw 0000F0Md = ConfirmedAbsentF0Mx = fpe2 / len2 / attrs 0xC0 / raw 60DC / 6199 RPMExact physical transaction:
Final probe remained
GlobalMaskFpe2,FS!was exactly0000, the hardware safety gate remained satisfied, and the qualifier reported:The wrapper restored the AppleSMC service to its original
Stoppedstate after PASS.Repository validation record:
docs/0.5.0-rc.2-GLOBALMASK-FPE2-HARDWARE-VALIDATION.mdon PR #52.Qualification boundary remains explicit: this PASS covers the observed one-fan mechanism only. Two-fan
FS! = 0003, generic T1 support, and nativeBootCampSmcphysical writes remain unqualified by this test.mksolutionsuniversal commentedon Sep 8, 2026
GlobalMaskFpe2 implementation checkpoint — completed
PR #52 has been squash-merged to
mainas:3389f716c961e31bfb4996bc400214777b158878—fan: add global-mask fpe2 capability family (#52)Completed scope:
GlobalMaskFpe2classification,Available/ConfirmedAbsent/ReadFailedobservation model,fpe2Maximum Safe RPM writer,FS!mode authority with verified readback,GlobalMaskFpe2write/readback/Apple Auto qualification onMacBookPro12,1.Physical one-fan transaction PASS:
Qualification boundary intentionally retained:
GlobalMaskFpe2/FS! = 0003is implemented only within the bounded proven software contract but has not received a BCPC-owned physical write qualification,BootCampSmcwrite qualification remains a separate research track.CI #176 passed on the final PR head before merge: Gate 5D-B, restore, build, tests, and release packaging all SUCCESS.