Fan Speed & Multi-Fan Telemetry #4
Closed
opened 2026-09-08 10:18:29 +01:00 by gronod
·
2 comments
No Branch/Tag Specified
main
develop
milestone/m6-bugfix-stability
fix/34-alerts-sidebar-badge
fix/33-readonly-storage-alerts
fix/32-smc-service-name
fix/30-31-snapshot-contract
milestone/m5-alerts-hardening
feat/24-threshold-alerts
feat/m4-presentation-integration
milestone/m4-presentation-visuals
feat/22-menu-bar-extra
feat/23-historical-charts
feat/13-display-brightness
fix/ci-macos-14-runner
feat/m3-presentation-integration
milestone/m3-advanced-telemetry
feat/21-audio-devices
feat/20-connected-peripherals
feat/17-battery-health
feat/14-gpu-telemetry
feat/12-process-details
feat/11-process-explorer
feat/16-network-sockets
feat/15-network-bandwidth
feat/10-disk-io
feat/7-system-load
feat/6-kernel-counters
milestone/m2-primary-telemetry
feat/19-power-voltage
feat/18-component-temps
feat/4-fan-telemetry
feat/3-cpu-thermals
feat/9-storage-volumes
feat/8-ram-breakdown
feat/5-cpu-load
milestone/m1-foundation
feat/25-gitea-ci
feat/2-smc-client
feat/1-core-architecture
v0.0.2
v0.0.1
Labels
Clear labels
Bug/Architecture
Bug/Backend
Bug/DevOps
Bug/Documentation
Bug/Performance
Bug/Security
Bug/Testing
Bug/UI
Compat/Breaking
Feature/Architecture
Feature/Backend
Feature/DevOps
Feature/Documentation
Feature/Performance
Feature/Security
Feature/Testing
Feature/UI
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Project/Antigravity
Architecture & Foundation Defect
Backend, service, or low-level logic defect
CI/CD, build system, and automation defect
Documentation inaccuracy or fix
Performance regression or degradation defect
Security vulnerability or flaw
Test failure or testing defect
User interface and presentation defect
Breaking change that won't be backward compatible
Architecture & Foundation Feature
Backend, service, or low-level logic feature
CI/CD, build system, and automation feature
Documentation additions and features
Performance optimization feature
Security capability or hardening feature
Test suite, mock, or testing harness feature
User interface and presentation feature
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Part of the Antigravity Project specification
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Milestone
No items
No Milestone
M2: Primary System & Thermal Telemetry
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Blocks
Depends on
#24 Threshold Alerts & macOS Notification Center Integration
gronod/MacMonitor
#2 SMC Interface Engine (AppleSMC IOKit Client)
gronod/MacMonitor
Reference: gronod/MacMonitor#4
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Purpose
Monitor real-time cooling fan metrics across all fans present in Intel Macs (e.g. single fan in Mac mini/MacBook Air, dual fans in MacBook Pro, triple fans in iMac, multi-zone fans in Mac Pro).
Priority
High (Vital for acoustics, cooling diagnosis, and thermal management)
Dependencies
Scope
FNum) to determine the exact number of installed cooling fans.F{i}IDF{i}Ac)F{i}Mn)F{i}Mx)F{i}Tg)Implementation Suggestions
fpe2encoding parser to extract floating-point RPM values from 2-byte SMC responses.0throughN-1based on the value read fromFNum.Technical Implementation Plan & Code Solution
1. AppleSMC Fan Architecture & Key Protocol
Intel Macs expose fan counts and per-fan parameters via structured SMC keys:
FNum(typeui8): Total number of fans (0 on fanless MacBook 12", 1 on MacBook Air/Mac mini, 2 on 15"/16" MacBook Pro, 3 on iMac, 4-6 on Mac Pro).i(from 0 toFNum - 1):F{i}Ac(typefpe2): Current actual speed (RPM)F{i}Mn(typefpe2): Hardware minimum speed (RPM)F{i}Mx(typefpe2): Hardware maximum speed (RPM)F{i}Tg(typefpe2): Target commanded speed (RPM)F{i}ID(typech8*or string): Fan identifier (e.g. "Exhaust", "Left", "Right")2. Objective-C Provider (
MMFanTelemetryProvider.m)3. Swift UI Model & Visualization
4. Edge Cases Handled
isStalled == truewhenactualRPM == 0whileminRPM > 0.Completed in
feat/4-fan-telemetryand merged intodevelop.MMFanTelemetryProviderquerying SMC keyFNumfor active fan counts.F0Ac,F0Mn,F0Mx,F0Tg, etc.fpe2fixed point format into accurate RPM values.MMFanTests.swift.