MacBook, Linux and fans


After installing Ubuntu 14.04 on my Macbook 7,1 I’ve noticed that the fans are making much noise.

I’m gonna start installing lm-sensors:

apt-get install lm-sensors

Now yes, I can check the sensor values:

sensors

Here is the output:

I realize that there is a sensor (TN1G) with a high fix value (+90ºC). It seems that it’s not working well. Probably that’s why the fan speed is always over 4000 RPM. The daemon macfanctl is getting this bad value and it thinks my computer is too warm :-(

Fortunately, macfanctl has an option to ignore the malfunctioning sensors. Let’s take a look to the configuration file /etc/macfanctl.conf:

# Config file for macfanctl daemon
#
# Note: 0 < temp_X_floor < temp_X_ceiling
# 0 < fan_min < 6200
fan_min: 2000
temp_avg_floor: 45
temp_avg_ceiling: 55
temp_TC0P_floor: 50
temp_TC0P_ceiling: 58
temp_TG0P_floor: 50
temp_TG0P_ceiling: 58
# Add sensors to be excluded here, separated by space, i.e.
# exclude: 1 7
# will disable reading of sensors temp1_input and temp7_input.
exclude:
# log_level values:
# 0: Startup / Exit logging only
# 1: Basic temp / fan logging
# 2: Log all sensors
log_level: 0

So I need to add the sensor number that I want to ignore in this “exclude” line. But, how to get this number?

Let’s take a look to the macfanctl log (/var/log/macfanctl.log):

Found 15 sensors:
1: TB0T - Battery TS_MAX Temp
2: TB1T - Battery TS1 Temp
3: TB2T - Battery TS2 Temp
4: TC0D - CPU 0 Die Temp
5: TC0P - CPU 0 Proximity Temp
6: TN0D - MCP Die
7: TN0P - MCP Proximity
8: TN0S - ?
9: TN1D - ?
10: TN1F - ?
11: TN1G - ?
12: TN1S - ?
13: Th1H - ?
14: Ts0P - Palm Rest Temp
15: Ts0S - ?

So there is it: sensor number is 11.

Adding it to the exclude section in the configuration file and restarting macfantl daemon I can enjoy the silence again :D


One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.