You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Tested iMac/Mac Mini Models](#tested-imacmac-mini-models)
21
+
-[Requirements](#requirements)
22
+
-[Installation](#installation)
23
+
- [Arch Linux](#arch-linux)
24
+
- [Ubuntu](#ubuntu)
25
+
- [Gentoo](#gentoo)
26
+
- [Generic Install Instructions (All Other Operating Systems)](#generic-install-instructions-all-other-operating-systems)
27
+
-[Run Instructions](#run-instructions)
28
+
-[Starting at boot](#starting-at-boot)
29
+
-[Usage](#usage)
30
+
-[License](#license)
31
+
32
+
## Supported GNU/Linux Distributions
18
33
19
-
Supported GNU/Linux Distributions
20
-
---------------------------------
21
34
We provide scripts to to load mbpfan daemon at system boot for many distros.
22
35
Please note that the support is provided by volunteers. mbpfan needs tests and bug reports.
23
36
@@ -32,12 +45,14 @@ Supported distributions:
32
45
- Gentoo
33
46
- Alpine
34
47
- Trisquel
48
+
- Solus
49
+
50
+
## Tested Macbook Models
35
51
36
-
Tested MacBook Models
37
-
---------------------
38
-
This section reports those models where mbpfan was tested successfully. It does not necessarily mean that the daemon does not work on non-listed models.
52
+
This section reports those models where mbpfan was tested successfully. It does not necessarily mean that the daemon does not work on non-listed models.
39
53
40
54
- MacBook Pro 12,1 13" (Intel i5 - Linux 4.20)
55
+
- MacBook Pro 11,4 15" (Intel i7 - Linux 4.9.41)
41
56
- MacBook Pro 11,1 13" (Intel i5 - Linux 3.14, Linux 3.15)
42
57
- MacBook Pro 9,2 13" (Intel i5/i7 - Linux 3.10)
43
58
- MacBook Pro 8,2 15" (Intel i7 - Linux 3.6.2)
@@ -51,8 +66,8 @@ This section reports those models where mbpfan was tested successfully. It does
51
66
- MacBook Air 7,2 13" (Intel Core Duo - Linux 4.10)
52
67
- MacBook 1,1 (Intel Core Duo - Linux 3.16)
53
68
54
-
Tested iMac/Mac Mini Models
55
-
------------------
69
+
## Tested iMac/Mac Mini Models
70
+
56
71
This section reports the iMac/Mac-mini models where mbpfan was tested successfully.
@@ -62,40 +77,54 @@ This section reports the iMac/Mac-mini models where mbpfan was tested successful
62
77
- Mac Mini 5,3 (Core i7 2.0 - Linux 4.4.0 elementary/Ubuntu)
63
78
- Mac Mini 6,1 (Core i7 2.3 - Linux 4.7.3-4-ck Archlinux)
64
79
65
-
Warning
66
-
-------
80
+
## Requirements
81
+
67
82
Be sure to load the kernel modules **applesmc** and **coretemp**.
68
-
These modules are often automatically loaded when booting up GNU/Linux on a MacBook. If that is not the case, you should make sure to load them at system startup. This is _usually_ achieved by inserting the following two lines in the file `/etc/modules`
83
+
84
+
These modules are often automatically loaded when booting up GNU/Linux on a MacBook. If that is not the case, you should make sure to load them at system startup.
85
+
86
+
**How do I know if applesmc and coretemp are loaded?**
87
+
88
+
In most distributions, you can run the following command:
89
+
90
+
`lsmod | grep coretemp && lsmod | grep applesmc`
91
+
92
+
If you see `coretemp` and `applesmc` listed, you are all set.
93
+
94
+
**If you do not see `coretemp` and `applesmc` listed, you must load them.**
95
+
96
+
This is _usually_ achieved by inserting the following two lines in the file `/etc/modules`
97
+
69
98
```
70
99
coretemp
71
100
applesmc
72
101
```
73
102
74
103
Please check the relevant documentation of your GNU/Linux distribution.
75
104
76
-
Arch Linux
77
-
---------
105
+
## Installation
106
+
107
+
### Arch Linux
108
+
78
109
See [mbpfan-git at AUR](https://aur.archlinux.org/packages/mbpfan-git/).
79
110
Otherwise, please refer to the Generic Instructions.
80
111
81
112
82
-
Ubuntu
83
-
------
113
+
### Ubuntu
84
114
85
115
Install the ```build-essential``` package.
86
116
Then, refer to the Generic Install Instructions.
87
117
88
118
Otherwise, a step-by-step [tutorial for beginners is available on my website](https://ineed.coffee/3838/a-beginners-mbpfan-tutorial-for-ubuntu/).
89
119
90
-
Gentoo
91
-
------
120
+
### Gentoo
92
121
93
122
Install the ```mbpfan``` package with:
94
123
95
124
sudo emerge -av app-laptop/mbpfan
96
125
97
-
Generic Install Instructions
98
-
-------------------------
126
+
### Generic Install Instructions (All Other Operating Systems)
127
+
99
128
Compile with
100
129
101
130
make
@@ -104,14 +133,14 @@ Install with
104
133
105
134
sudo make install
106
135
107
-
It copies mbpfan to /usr/sbin, mbpfan.conf to /etc (and overwrites existing files),
136
+
It copies mbpfan to /usr/sbin, mbpfan.conf to /etc (and overwrites existing files),
108
137
README.md to /usr/share/doc/mbpfan, and mbpfan.8.gz to /usr/share/man/man8
109
138
110
139
Run the tests now, see two sections below.
111
140
112
141
If you would like to compile with Clang instead of GCC, simply set your system's
113
142
default compiler to be Clang. Tested with Clang 3.8 and 3.9. Tested with Clang
114
-
4.0 along with llvm-lld (The LLVM Linker).
143
+
4.0 along with llvm-lld (The LLVM Linker).
115
144
116
145
117
146
Run The Tests (Recommended)
@@ -125,8 +154,8 @@ or
125
154
sudo make tests
126
155
127
156
128
-
Run Instructions
129
-
----------------
157
+
## Run Instructions
158
+
130
159
If not installed, run with
131
160
132
161
sudo bin/mbpfan
@@ -140,8 +169,8 @@ If installed and using the init file, run with (Ubuntu example)
140
169
sudo service mbpfan start
141
170
142
171
143
-
Starting at boot
144
-
----------------
172
+
## Starting at boot
173
+
145
174
**Ubuntu**
146
175
147
176
For systemd based init systems (Ubuntu 16.04+), the file mbpfan.service
@@ -152,14 +181,14 @@ For using it, execute:
152
181
sudo systemctl enable mbpfan.service
153
182
154
183
155
-
For upstart based init systems (Ubuntu before 16.04), an example upstart job has been provided.
184
+
For upstart based init systems (Ubuntu before 16.04), an example upstart job has been provided.
156
185
For using it, execute:
157
186
158
187
sudo cp mbpfan.upstart /etc/init/mbpfan.conf
159
188
sudo start mbpfan
160
189
161
190
**Debian**
162
-
An init file suitable for /lib/lsb/init-functions (Debian)
191
+
An init file suitable for /lib/lsb/init-functions (Debian)
163
192
is located in the main folder of the source files, called mbpfan.init.debian
164
193
Rename it to mbpfan, give it execution permissions (chmod +x mbpfan)
165
194
and move it to /etc/init.d
@@ -197,8 +226,7 @@ To start the service automatically at boot, also execute the following:
0 commit comments