I upgraded my CPU´s of my 1,1 to 5355 in 2011. I wrote a little bash-script which controls the fans automatic (max and min values can be defined)
Works like a charme on my mac since than (3 Years now). You need Hardwaremonitor and smc fan control in Applications. I started the script at boot via a User-Daemon (use Lingon to create one). The script checks the temps every 10 Seconds and if necessary it changed the RPM of the Fan´s.
Code:
#!/bin/bash
# HEX U/Min
# 0D48 = 850
# 0ED8 = 950
# 1068 = 1050
# 11F8 = 1150
# 1388 = 1250
# 1518 = 1350
# 16A8 = 1450
# 1838 = 1550
#
# If you want higher values you can calculate it this way (Hex-Calculator needed).
# For example you want 1650 upm.
#
# 1650 x 4 = 6600 --> switch Calculator in HEX-Mode --> 19C8 is the result
#
# F0 = CPU Fan
# F2 = Exhaust Fan
while [ true ]
do
/bin/sleep 10
hwm="/Applications/HardwareMonitor.app/Contents/MacOS/hwmonitor"
smc="/Applications/smcFanControl.app/Contents/Resources/smc"
cpu=`"$hwm" -ds | head -n 1 | cut -c 13-14`
if [[ "$cpu" -gt "20" && "$cpu" -lt "35" ]]; then # - Between 21 and 34 Degrees
"$smc" -k F0Mn -w 0ED8
"$smc" -k F2Mn -w 1068
elif [[ "$cpu" -gt "34" && "$cpu" -lt "51" ]]; then # - Between 35 and 50 Degrees
"$smc" -k F0Mn -w 1068
"$smc" -k F2Mn -w 11F8
elif [[ "$cpu" -gt "50" && "$cpu" -lt "60" ]]; then # - Between 51 and 59 Degrees
"$smc" -k F0Mn -w 11F8
"$smc" -k F2Mn -w 1388
elif [[ "$cpu" -gt "59" && "$cpu" -lt "99" ]]; then # - Between 60 and 99 Grad
"$smc" -k F0Mn -w 1518
"$smc" -k F2Mn -w 1388
fi
done
Works like a charme on my mac since than (3 Years now). You need Hardwaremonitor and smc fan control in Applications. I started the script at boot via a User-Daemon (use Lingon to create one). The script checks the temps every 10 Seconds and if necessary it changed the RPM of the Fan´s.
Last edited: