@@ -17,41 +17,77 @@ This enhanced version assumes any number of processors and fans (max. 10).
17
17
* Users can configure it using the file /etc/mbpfan.conf
18
18
19
19
20
+ Supported GNU/Linux Distributions
21
+ ---------------------------------
22
+ We provide scripts to to load mbpfan daemon at system boot for many distros.
23
+ Please note that the support is provided by volunteers. mbpfan needs test and bug reports.
24
+
25
+ Supported distributions:
26
+
27
+ - Ubuntu
28
+ - Debian
29
+ - Fedora
30
+ - RedHat
31
+ - CentOS
32
+ - Gentoo
33
+
34
+
35
+ Tested Macbook Models
36
+ ---------------------
37
+ - MacBook Pro 8.1 13" (Intel i7 - Linux 3.2)
38
+ - MacBook Pro 6,2 15" (Intel i7 - Linux 3.2)
39
+ - MacBook Pro 2,2 15" (Intel Core 2 Duo - Linux 3.4.4)
40
+
41
+
42
+ Warning
43
+ -------
44
+ Be sure to load the kernel modules ** applesmc** and ** coretemp** .
45
+
46
+
20
47
Compile Instructions
21
48
---------------------
22
49
Compile with
23
- make
50
+
51
+ make
24
52
25
53
Manually compile with
26
- gcc -o bin/mbpfan src/mbpfan.c -lm
54
+
55
+ gcc -o bin/mbpfan src/mbpfan.c -lm
27
56
28
57
29
58
Install Instructions
30
59
--------------------
31
60
Install with
32
- sudo make install
61
+
62
+ sudo make install
33
63
34
64
It copies mbpfan to /usr/sbin and mbpfan.conf to /etc
35
65
36
66
37
67
Run The Tests (Recommended)
38
68
---------------------------
39
69
It is recommended to run the tests after installing the program
40
- sudo ./bin/mbpfan -t
70
+
71
+ sudo ./bin/mbpfan -t
72
+
41
73
or
42
- sudo make tests
74
+
75
+ sudo make tests
43
76
44
77
45
78
Run Instructions
46
79
----------------
47
80
If not installed, run with
48
- sudo bin/mbpfan
81
+
82
+ sudo bin/mbpfan
49
83
50
84
If installed, manually run with
51
- sudo mbpfan
85
+
86
+ sudo mbpfan
52
87
53
88
If installed and using the init file, run with (Ubuntu example)
54
- sudo service mbpfan start
89
+
90
+ sudo service mbpfan start
55
91
56
92
57
93
Starting at boot
@@ -60,43 +96,62 @@ Starting at boot
60
96
For upstart based init systems (Ubuntu), an example upstart job has been
61
97
provided for use in place of the LSB-style init script.
62
98
To use, execute:
63
- sudo cp mbpfan.upstart /etc/init/mbpfan.conf
64
- sudo start mbpfan
99
+
100
+ sudo cp mbpfan.upstart /etc/init/mbpfan.conf
101
+ sudo start mbpfan
65
102
66
103
** Debian**
67
104
An init file suitable for /lib/lsb/init-functions (Debian)
68
105
is located in the main folder of the source files, called mbpfan.init.debian
69
106
Rename it to mbpfan, give it execution permissions (chmod +x mbpfan)
70
107
and move it to /etc/init.d
71
- Then, add it to the default runlevels with sudo update-rc.d mbpfan defaults
108
+ Then, add it to the default runlevels with (as root):
109
+
110
+ sudo update-rc.d mbpfan defaults
72
111
73
112
** Redhat, CentOS, Fedora**
74
113
An init file suitable for /etc/rc.d/init.d/functions
75
114
(RHEL/CentOS & Fedora) is also located at the same place, this file is called
76
115
mbpfan.init.redhat. Also rename it to mbpfan, give it execution permissions
77
116
and move it to /etc/init.d
78
117
To add the script to the default runlevels, run the following as root:
79
- chkconfig --level 2345 mbpfan on && chkconfig --level 016 mbpfan off
118
+
119
+ chkconfig --level 2345 mbpfan on && chkconfig --level 016 mbpfan off
120
+
121
+ ** Gentoo**
122
+ An init file is available for gentoo users: mbpfan.init.gentoo
123
+ To install, run as root:
124
+
125
+ cp mbpfan.init.gentoo /etc/init.d/mbpfan
126
+
127
+ To automatically run mbpfan at boot, run as root:
128
+
129
+ rc-update add mbpfan default
130
+
80
131
81
132
** systemd**
82
133
As a special bonus, a service file for systemd is also included. To use it,
83
- execute the following as root:
84
- sudo cp mbpfan.service /usr/lib/systemd/system
85
- sudo ln -s /usr/lib/systemd/system/mbpfan.service /etc/systemd/system/mbpfan.service
86
- sudo systemctl daemon-reload
87
- sudo systemctl start mbpfan.service
134
+ execute the following (as root):
135
+
136
+ sudo cp mbpfan.service /usr/lib/systemd/system
137
+ sudo ln -s /usr/lib/systemd/system/mbpfan.service /etc/systemd/system/mbpfan.service
138
+ sudo systemctl daemon-reload
139
+ sudo systemctl start mbpfan.service
88
140
89
141
To start the service automatically at boot, also execute the following:
90
- sudo systemctl enable mbpfan.service
142
+
143
+ sudo systemctl enable mbpfan.service
91
144
92
145
93
146
Usage
94
147
-------
95
- Usage: ./mbpfan OPTION(S)
96
- -h Show the help screen
97
- -f Run in foreground
98
- -t Run the tests
99
- -v Be (a lot) verbose
148
+
149
+ Usage: ./mbpfan OPTION(S)
150
+
151
+ -h Show the help screen
152
+ -f Run in foreground
153
+ -t Run the tests
154
+ -v Be (a lot) verbose
100
155
101
156
102
157
License
@@ -110,4 +165,4 @@ Based On
110
165
* http://allanmcrae.com/2011/08/mbp-fan-daemon-update/
111
166
* https://launchpad.net/macfanctld
112
167
* http://paste2.org/p/862259
113
- * http://www.lobotomo.com/products/FanControl/
168
+ * http://www.lobotomo.com/products/FanControl/
0 commit comments