r/bootcamp • • 10d ago

I built a predictive AI thermal controller for Apple T2 MacBooks in Windows Boot Camp — it spins up fans BEFORE the CPU throttles (WMF Control v1.3.0)

Post image

Standard MacBook fan controllers in Windows are purely reactive - they wait until your CPU hits 95°C and starts throttling before ramping up the fans. Because copper heat pipes take seconds to catch up, you always get heat spikes and stuttering.

So I updated my open-source WMF Control (Apple T2 Edition) to v1.3.0 with a Feedforward Predictive Cooling Engine and 1-Click Smart Setup.

How it works:

- Predictive Thermal Boost: Reads instantaneous CPU Package Power (Watts directly from SMC), CPU load (<0.01% overhead), and heating rate (dT/dt) to calculate a predicted temperature and spin up the fans before the silicon spikes.

- Silent Idle & Acoustic Curve: Ignores short browser micro-spikes and power draw under 20W, using a non-linear acoustic curve so it stays quiet during everyday tasks and only ramps up when you game or render.

- 1-Click Smart Setup: Automatically finds the best T2 SMC sensors (TCXC PECI / TC0E Die / discrete GPU) and configures tailored curves in one click.

- Full Apple T2 Support: Fixes the dual-fan 0x86 SMC error on 2018-2020 MacBooks without needing blocked drivers like WinRing0.

Link to the GitHub repo and v1.3.0 release is in the comments. Would love to hear how it runs on your 13", 15", or 16" MacBook Pros!

11 Upvotes

15 comments sorted by

1

u/Clean_Moose_3328 10d ago

It's nice to see a solution that prevents overheating instead of just reacting when it happens. I'd be interested to see how well it holds up during heavy gaming or rendering.

1

u/AdWaste1735 10d ago

Thanks! Heavy gaming and rendering are actually where it makes the biggest difference. Instead of hitting 95-100°C and throttling for the first 5-10 seconds while the fans try to catch up, the feedforward loop ramps them up as soon as package power spikes. If you switch the profile to Aggressive, it cuts the attack delay down to ~0.8s and holds the fans for a few seconds after load drops to flush out residual heat from the heatsink. Let me know if you test it out on your rig!

1

u/AdWaste1735 10d ago

Here is the GitHub repo and pre-built v1.3.0 release:

https://github.com/Gleb200/WMF-Control-T2-Edition

Just extract, run as Administrator, and hit Smart Setup in the top bar. Feedback and bug reports are super welcome!

1

u/Separate_Quarter_314 10d ago

Hey a insain idea

What if you make a app wich uses intel speedstep technology When the cpu temp is high the clock speed gets lowered according to the cpu temp and the min is the base clock of the cpu and when the cpu temp is ok the clock speed gets higher I have to do all this manually rn 😭 in games I have my clock speed to 2.4ghz-2.6ghz and when I am using apps like photoshop aftereffects etc i increase my clock speed to somewhere around 3.7ghz to 4.2ghz Just wondering if this can be automated

0

u/AdWaste1735 4d ago

That's actually a super practical idea and definitely doable! Instead of Apple's harsh thermal throttling slamming the CPU down to 800 MHz, smoothly scaling the max clock cap keeps frame times consistent in games while unlocking full boost for Adobe apps.

It can be automated right inside WMF Control in two ways:

  1. Thermal Clock Scaling: Gradually lowering the max CPU frequency cap as temps climb (e.g. full 4.2 GHz boost below 78°C, smoothly scaling down toward 2.5 GHz around 88-90°C).
  2. Per-App Profiles: Automatically capping clocks to ~2.5 GHz when a game is in the foreground, and unlocking full boost when Photoshop or After Effects is active.

Since Windows exposes processor frequency limits cleanly through its standard Power Management APIs, it adjusts in real time with zero stutters and won't trigger anti-cheats either. Adding this to the roadmap for the next update!

1

u/Giromu 8d ago

Will it work on a 2017 iMac Pro ? The father of T2 chips

1

u/AdWaste1735 4d ago

Haha, the OG T2 machine! Yes, it should work on the 2017 iMac Pro (iMacPro1,1) since it uses the same T2 MMIO SMC interface and WMF Control dynamically reads the fan count and sensors rather than hardcoding MacBook layouts.

I haven't personally tested it on an iMac Pro yet though — if you give it a try, let me know if all the fans and Xeon/Vega sensors show up properly (and if MMIO acts weird on the 2017 firmware, there is also a --no-mmio fallback flag you can pass on launch)!

1

u/Lacink0o 4d ago

This is really cool. Abolutely love how many projects like this rose up recently. My 2 cents 1, please add "highest temp overall" as a sensor, because dgpu can overheat too. 2, please make an option for the system tray to show said sensor temprature as 2 digit number. Runs great so far on A2141 (2019 16")

1

u/AdWaste1735 4d ago

Awesome to hear it's running smoothly on your A2141! And both of those are super practical suggestions:

  1. "Highest Temp Overall" (Max Sensor) mode: Having the curve track max(CPU, dGPU) makes complete sense on the 16" models since the Radeon Pro GPU can easily become the thermal bottleneck during gaming or rendering.
  2. Numeric Tray Temperature Icon: Funny enough, I already built live temperature display right onto the Touch Bar in my other Boot Camp Touch Bar project (on my profile), and rendering a clean 2-digit temperature readout directly in the Windows system tray icon here makes total sense too.

Both are super straightforward to implement in Rust, so I'm adding them to the list for the next release. Thanks for testing and sharing feedback!

1

u/Lacink0o 3d ago

another issue is that sometimes it just dies and lets (fortunately) mac control the fans, you have to kill the task via task manager and start it again so it can work normally

1

u/AdWaste1735 3d ago

Good catch! Just tracked this down and shipped v1.4.0 with a panic-recovery watchdog + automatic SMC re-init on sleep/wake, so the control thread self-heals instead of silently dying after sleep. Also added CPU Clock Control (thermal frequency scaling + per-app limits) and fixed the tray/preferences UI issues.

Release & source: https://github.com/Gleb200/WMF-Control-T2-Edition/releases/tag/v1.4.0

1

u/Lacink0o 2d ago

yo I forked ur repo because I got few ideas, check it out if you have time. Btw leveling by frequency wont work in bootcamp, as it only recognized base frequency - full boost, you gotta level it thru wattage

1

u/AdWaste1735 2d ago

Hey, checked out your fork — really clean work on the RAPL MMIO power limits and live graphs!

Makes total sense why you went the wattage route: on my 10th-gen Ice Lake (i5-1038NG7), Windows uses hardware Speed Shift (HWP), so PROCFREQMAX actually caps the turbo ceiling properly. On 8th/9th-gen chips like your i9-9980HK, Boot Camp's ACPI P-states lump the entire turbo range together, so enforcing PL1/PL2 directly via RAPL is way more reliable.

Actually working on v2.0.0 right now to combine both approaches (RAPL wattage limits + frequency/per-app limits + AC/DC profiles) along with a refreshed dashboard UI. Really appreciate you sharing the ideas and testing it on the 16"!

1

u/Lacink0o 2d ago

brother dont talk to me with claude, I understand it manages ur repo but lets talk human between each other

1

u/AdWaste1735 2d ago

haha busted, fair enough. honestly i just didn't feel like typing out all the technical details manually. anyway, your RAPL wattage limit idea is super solid, definitely pulling that into the next update