Skip to content

eep/Mac-Mini-Fan-Control

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

** This tool has been modified to alter the fan speeds of an Aluminium non-unibody iMac that has had its hard drive replaced **

The modifications by me are

 * Incorporating the IOKit API changes for Intel Macs and OS X versions beyond 10.4 (see https://github.com/lavoiesl/osx-cpu-temp for the updated smc.c / smc.h).
 * Removal of compiler warnings due to undeclared functions or weird usages of sprintf for no reason (security issues?).
 * Switching the fan SMC key from F0Mx to F2Mx to take into account that it's not the CPU fan of iMacs that are spinning out of control (different than Mac Mini)
 * Reformatting the code's indentation and brace style to suit my own preferences.

 Hopefully someone else with an iMac will find it useful.

 ----- Original readme below this line.

This is NOT a generic tool for Mac fan control. It will limit the fan
maximum speed, which may cause overheating, crashes or damage to the
computer.
 
This is a special tool for certain old Mac Minis (~2008) that have a
noisy fan after memory upgrade. See for example this:
http://nanchatte.wordpress.com/2009/04/20/solution-to-the-noisy-fans-on-a-core-2-duo-intel-mac-mini/
Tool will limit the maximum speed according to cpu temperature. The
limiting is done in steps with some hysteresis to avoid countinuous
adjusting. Temperature limits are hardcoded in code.

Code is based on smcFanControl (http://www.eidac.de/).
See README.smc for original README.

Install
=======

 * Test the tool
    sudo ./fantune 
      Set Speed: 2000 (0) Temp: 55 (0) Class: 1
        F0Mx  [fpe2]  1800 (bytes 1c 20)
        F0Mx  [fpe2]  2000 (bytes 1f 40)

 * Copy the tool to /usr/local/bin
    sudo cp fantune /usr/local/bin

 * Copy launchd configuration
    sudo cp dungeon.fantune.plist /Library/LaunchDaemons/

 * Start (or reboot)
    launchctl start dungeon.fantune

About

Limit fan speed on noisy 2008 Mac Minis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 98.9%
  • Makefile 1.1%