Advertisement
lordloh

man macfanctld

Feb 16th, 2013
812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.40 KB | None | 0 0
  1. macfanctld(1) USER COMMANDS macfanctld(1)
  2.  
  3. NAME
  4. macfanctld - Fan control for MacBook
  5.  
  6. SYNOPSIS
  7. macfanctld [-f]
  8.  
  9. DESCRIPTION
  10. macfanctld is a daemon that reads temperature sensors and adjust the fan(s) speed on MacBook's. macfanctld is configurable and logs temp and fan data to a file. macfanctld uses three sources to determine the fan speeed: 1) average temperature from all sensors, 2) sensor TC0P [CPU 0 Proximity Temp and 3] and sensor TG0P [GPU 0 Proximity Temp]. Each source's impact on fan speed can be individually adjusted to fine tune working temperature on different MacBooks.
  11.  
  12. Important: macfanctld depends on applesmc-dkms.
  13.  
  14. OPTIONS
  15. -f runs macfanctld the in foreground, logging to stdout.
  16.  
  17. EXIT STATUS
  18. macfanctld returns non-zero exist status in case of failure to start.
  19.  
  20. FILES
  21. /etc/init.d/macfanctld
  22.  
  23. Daemon init script.
  24.  
  25. /etc/macfanctl.conf
  26.  
  27. Configuration file that can be tuned to get desired working temperature. The format must be <key>:<number>.
  28.  
  29. fan_min: Minimum fan speed. Typically, this is set to 2000 (Apples default). Maximum speed is 6200.
  30.  
  31. temp_avg_floor: Average temperature in Celsius at which the fan speed will be set to fan_min. Valid values are 0 to 90, and must be less than temp_avg_ceiling.
  32.  
  33. temp_avg_ceiling: Average temperature in Celsius at which the fan speed will be set to max (6200). Valid values are 0 to 90, and must be larger than temp_avg_floor.
  34.  
  35. temp_TC0P_floor: Temperature in Celsius at TC0P, at which the fan speed will be set to fan_min. Valid values are 0 to 90, and must be less than temp_TC0P_ceiling.
  36.  
  37. temp_TC0P_ceiling: Temperature in Celsius at TC0P, at which the fan speed will be set to max (6200). Valid values are 0 to 90, and must be larger than temp_TC0P_floor.
  38.  
  39. temp_TG0P_floor : Temperature in Celsius at TG0P, at which the fan speed will be set to fan_min. Valid values are 0 to 90, and must be less than temp_TG0P_ceiling.
  40.  
  41. temp_TG0P_ceiling: Temperature in Celsius at TG0P, at which the fan speed will be set to max (6200). Valid values are 0 to 90, and must be larger than temp_TG0P_floor.
  42.  
  43. exclude: A list of natural numbers defining sensors that should be excluded from reading. Example:
  44.  
  45. exclude: 1 7
  46.  
  47. will disable reading of sensors temp1_input and temp7_input.
  48.  
  49. This feature was added as a workaround for issues in applesmc-dkms that disables reading of some sensors, or in some cases, incorrectly defines sensors that don't exists.
  50.  
  51. log_level values: Set the log level. Valid values are:
  52. 0 - Startup / Exit logging only
  53. 1 - Basic temp / fan logging
  54. 2 - Log all sensors
  55.  
  56. /var/log/macfanctl.log
  57.  
  58. Log file. When log_level is 1, the following ouput is generated:
  59.  
  60. Speed: 6200, AVG: 52.5C, *TC0P: 62.0C, TG0P: 62.0C
  61. Speed: 6200, AVG: 52.4C, *TC0P: 62.0C, TG0P: 61.8C
  62. Speed: 6200, AVG: 52.4C, TC0P: 61.8C, *TG0P: 62.0C
  63. Speed: 6168, AVG: 52.3C, TC0P: 61.8C, *TG0P: 61.8C
  64. Speed: 6168, AVG: 52.2C, TC0P: 61.5C, *TG0P: 61.8C
  65.  
  66. Speed is the current fan speed.
  67.  
  68. AVG, TC0P and TG0P shows the temperature in Celsius at the source.
  69.  
  70. The '*' indicate which source that is currently driving the fan.
  71.  
  72. NOTES
  73. Hopefully the provided configuration file will be suitable on most MacBooks. However, there has been very little testing at this point. Therefore, enable logging and keep an eye on the temperatures in the log, as well as sensing the temp with your hand on the left part above the keyboard. If it feels too hot, tweak the config file!
  74.  
  75. To follow the log as it's written do
  76.  
  77. $ tail -F /var/log/macfanctl.log
  78.  
  79. BUGS
  80. There are most certainly bugs in this software.
  81.  
  82. Please submit bug reports, comments and suggestions to mikael@sesamiq.com.
  83.  
  84. AUTHOR
  85. Mikael Strom (mikael@sesamiq.com)
  86.  
  87. SEE ALSO
  88. tail (1)
  89.  
  90. Version 0.6 October 20, 2011
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement