Fan control program for 2009 Mac Pro, need some help

Discussion in 'Mac Programming' started by Inconsequential, Apr 5, 2009.

  1. macrumors 68000

    Sep 12, 2007
    Ok basically im trying to re-code a program that is free to edit (open source!).

    Its the iMac version of the Fan Control program.

    I've got it as far as getting one of the sensor codes into the program and setting the fan SMC codes so it controls it but i've come across a few issues including:

    Minimum fan speeds arn't what are set by the SMC or by my values in the code. (Eg the minimum CPU fan speed is 800, yet the minimum value on the slider is 1200 and it actually runs at 1400 :confused:)

    Along with things like some of the fan codes make other fans spin up too :confused:

    Things like that.

    My aim is to get from This to

    CPU/PS/PCI fan controlled by their respective temperature sensors
    Intake and exhaust fan controlled by the CPU core temperature (jointly adjusted seeing as they need to be in sync)

    Can anyone help me on my way? Pointers and general help (not doing it for me!) would be great as I'd like to learn more than the basic C++ i've done so far.

    Here is the code I'm up to so far:

    Thanks :)
  2. thread starter macrumors 68000

    Sep 12, 2007
    Anyone know how this SMC thing works?

    Its not bring out ANY temperatures :( :confused::(
  3. macrumors 68020

    Mar 4, 2007
    Why do you need a fan control program for a desktop? I can only understand for laptops because of the heat on the bottom
  4. thread starter macrumors 68000

    Sep 12, 2007
    95C load even tho within limits, is not what I want.

    Plus the cooler it is, the faster it is (turbo boost!)
  5. thread starter macrumors 68000

    Sep 12, 2007
    Anyone work out what the hell is going on with the minimum fan speeds?

    The SMC sets the minimum as 600 and i've set the minimum as 500 but in the program the lowest I can set it is 1200 for the CPU and PCI and 1000 for the PS fan.

    Any ideas on where the minimum fan speeds are coming from?

    Thanks guys!

    Source is here:

Share This Page