A simple daemon to control fan speed on all MacBook/MacBook Pros (probably all Apple computers) for Linux Kernel 3 and newer
Find a file
2012-07-04 23:34:24 +02:00
src Compilation fixes 2012-07-04 23:34:24 +02:00
.gitignore Take manual control of the fans 2012-06-09 19:07:25 +02:00
AUTHORS Merged pull request 11, added authors, and README entry for Fedora 2012-07-03 09:58:38 +02:00
Makefile Adds creation of bin/ dir if not present 2012-07-03 13:30:43 +02:00
mbpfan.init.debian Merged pull request 11, added authors, and README entry for Fedora 2012-07-03 09:58:38 +02:00
mbpfan.init.fedora Added mbpfan.init.fedora for Fedora SysV-Init scripts 2012-07-03 09:50:58 +02:00
mbpfan.rc-not-maintained Added non-maintained files 2012-06-09 19:14:17 +02:00
PKGBUILD-not-maintained Added non-maintained files 2012-06-09 19:14:17 +02:00
README.md Prepare for v1.3.0 2012-07-03 10:39:30 +02:00

Fan-Control-Daemon

Introduction

This is an enhanced version of rvega's Fan-Control-Daemon, which itself is an enhanced version of Allan McRae mbpfan

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).

  • It only uses the temperatures from the processors as input.
  • It requires coretemp and applesmc kernel modules to be loaded.
  • It requires root use
  • It daemonizes or stays in foreground
  • Verbose mode for both syslog and stdout

Compile Instructions

Compile with make

Manually compile with gcc -o bin/mbpfan src/mbpfan.c -lm

It is recommended to run the tests before installing the program sudo ./bin/mbpfan -t

Install Instructions

Install with 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.debian 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)

An init file suitable for Fedora (and probably RedHat) can be found in the file mbpfan.init.fedora

Run Instructions

If not installed, run with sudo bin/mbpfan

If installed, manually run with sudo mbpfan

If installed and using the init file, run with (Ubuntu example) sudo service mbpfan start

Usage

Usage: ./mbpfan OPTION(S) -h Show the help screen -f Run in foreground -t Run the tests -v Be (a lot) verbose

License

GNU General Public License version 3

Based On