mbpfan/README.md

69 lines
1.8 KiB
Markdown
Raw Normal View History

2012-06-09 16:40:12 +02:00
Fan-Control-Daemon
====================
Introduction
---------------------
This is an enhanced version of [rvega's Fan-Control-Daemon](https://github.com/rvega/Fan-Control-Daemon),
which itself is an enhanced version of [Allan McRae mbpfan](http://allanmcrae.com/2010/05/simple-macbook-pro-fan-daemon/)
2012-06-09 16:25:28 +02:00
Fan-Control-Daemon is a daemon that uses input from coretemp module and sets the fan speed using the applesmc module.
This enhanced version assumes any number of processors and fans (max. 10).
2012-06-11 21:43:53 +02:00
* It only uses the temperatures from the processors as input.
* It requires coretemp and applesmc kernel modules to be loaded.
* It requires root use
2012-06-09 16:25:28 +02:00
2012-06-09 16:40:12 +02:00
Compile Instructions
---------------------
2012-06-09 16:25:28 +02:00
Compile with
2012-06-15 21:12:51 +02:00
make
2012-06-09 16:40:12 +02:00
Manually compile with
2012-06-15 21:12:51 +02:00
gcc -o bin/mbpfan src/mbpfan.c -lm
2012-06-09 16:40:12 +02:00
2012-06-15 21:12:51 +02:00
Install Instructions
--------------------
Install with
2012-06-15 21:47:23 +02:00
sudo make install
It actually copies mbpfan to /usr/sbin.
An init file suitable for /lib/lsb/init-functions (Debian & Ubuntu fur sure)
Is located in the main folder of the source files. It is called mbpfan.init.
Rename it to mbpfan, give it execution permissions (chmod +x mbpfan)
and move it to /etc/init.d
Then, add it to the default runlevels with sudo update-rc.d mbpfan defaults (Ubuntu example)
2012-06-15 21:12:51 +02:00
2012-06-09 16:40:12 +02:00
Run Instructions
---------------------
2012-06-09 16:25:28 +02:00
2012-06-15 21:47:23 +02:00
If not installed, run with
2012-06-09 16:40:12 +02:00
sudo bin/mbpfan
2012-06-15 21:47:23 +02:00
If installed, manually run with
sudo mbpfan
If installed and using the init file, run with (Ubuntu example)
sudo service mbpfan start
2012-06-09 16:40:12 +02:00
License
---------------------
GNU General Public License version 3
2012-06-09 16:25:28 +02:00
2012-01-25 10:26:01 -05:00
2012-06-09 16:40:12 +02:00
Based On
---------------------
2012-01-25 10:26:01 -05:00
2012-06-11 21:43:53 +02:00
* http://allanmcrae.com/2010/05/simple-macbook-pro-fan-daemon/
* http://allanmcrae.com/2011/08/mbp-fan-daemon-update/
* https://launchpad.net/macfanctld
* http://paste2.org/p/862259
* http://www.lobotomo.com/products/FanControl/