Control your mac fan with your custom level.
The script is test on my MacBook Pro (Retina, 13-inch, Early 2015), you may use it with your own risk.
- brew install grep
- install smcFanControl from https://github.com/hholtmann/smcFanControl . smcFanControl can provide realtime temperature and fan speed in status bar, so the good choice is using smcFanControl + mbp_fan_control script.
- Two level temperatures: hotTemp(42), fireTemp(52).
- Three level speed: normalFanSpeed(2000), hotFanSpeed(3500), fireFanSpeed(5000) You can edit it with your like.
- Alter smcDir to change the smcFanControl path
- Open the terminal and type: crontab -e
- Add tasks:
* * * * * ( /Users/kirito/Projects/fan_control.sh >> /Users/kirito/Projects/fan_control.log)
* * * * * ( sleep 10 ; /Users/kirito/Projects/fan_control.sh >> /Users/kirito/Projects/fan_control.log )
* * * * * ( sleep 20 ; /Users/kirito/Projects/fan_control.sh >> /Users/kirito/Projects/fan_control.log )
* * * * * ( sleep 30 ; /Users/kirito/Projects/fan_control.sh >> /Users/kirito/Projects/fan_control.log )
* * * * * ( sleep 40 ; /Users/kirito/Projects/fan_control.sh >> /Users/kirito/Projects/fan_control.log )
* * * * * ( sleep 50 ; /Users/kirito/Projects/fan_control.sh >> /Users/kirito/Projects/fan_control.log )
You can edit your own directory instead of the given path. Also you can remove the fan_control.log