Keep fans when closed on AC power - #12
Conversation
Honor Keep Fans When Closed on Power for willSleep so lid close does not force fans back to auto after a keep decision. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Thanks for the write-up and the PR. The policy function is clean, the IOPS memory management is right, defaulting off is the correct call, and it merges onto current I want the screen-sleep/lock half of this. I need the The blocker:
|
What does this PR do?
Adds Keep Fans When Closed on Power (default off): on AC, leave fans under app control through display sleep / lock /
willSleepso lid-close clamshell does not force fans back to auto.Closes #11.
Context
pmset/ private clamshell SPI), battery lid-close beyond existing Keep Fans on Screen Sleep, Ultra / helper changesWhat changed
DisplaySleepFanPolicy—keepClosedOnPower && onAC→ keep; else fall back tokeepOnScreenSleepPowerSource.isOnACvia IOPSFanMonitoruses the same policy for screen sleep, screen lock, andwillSleep(lid close often posts willSleep after screensDidSleep; resetting there was undoing keep)Review guide
Start at:
ChillMac/Fan/DisplaySleepFanPolicy.swift→ChillMac/Fan/FanMonitor.swift(handleSleep/handleScreenSleep/handleScreenLocked) →ChillMac/Views/SettingsView.swift(Fan Control row)How to test
xcodegen generate && xcodebuild -project ChillMac.xcodeproj -scheme ChillMac buildChecklist
xcodegen generate && xcodebuild -scheme ChillMac build)main(no test target yet; policy is pure and covered on the fork harness)Made with Cursor