Set fan speed
set_fan_speedSet Mac fan speed manually using RPM or percentage, with automatic revert to system control after a set duration to prevent overheating during intensive tasks.
Instructions
Put the Mac's fans into manual mode at a given speed. Provide either 'rpm' (absolute) or 'percent' (0-100, mapped onto each fan's min-max range). Values are clamped to the hardware's reported safe range. The setting expires after ttl_seconds (default 900, max 7200) and fans return to system control — call again to renew. A root-owned failsafe overrides manual control if any die sensor reaches 102°C. Typical use: raise fans BEFORE starting a heavy build/inference job so the machine stays out of thermal throttling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fan | No | Fan index to control; omit to apply to all fans | |
| rpm | No | Absolute target RPM (mutually exclusive with percent) | |
| percent | No | Speed as % of each fan's min→max range | |
| ttl_seconds | No | Seconds until automatic revert to system control (default 900) |