Gentoo Archives: gentoo-user

From: Peiding CHEN <mcadoo.chen@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Problem with fan control on laptop
Date: Mon, 28 May 2012 22:08:42
Message-Id: op.we1gydek6k7b0d@gentoo.home
1 Hello,
2
3 I've suffered from the problem with cpu fan control on my laptop for a long time. I hope someone could help me get rid of it.
4
5 Here is the problem:
6
7 My laptop is "Toshiba Portégé M901". I installed Gentoo with xfce4 as the desktop environment and compiled the kernel manually. After system booting, the fan will either doesn't spin at all or spins only at one speed level and the speed will never change. The automatic control is only activated when the cpu temperature drops and passes the trip point (doesn't start while temperature increase). But I can control the speed manually. So my temporary solution is to start the fan manually in high speed when I run some heavy applications for getting a high cpu temperature(more than 70°C). Then when the temperature drops and passes the trip point, the automatic control is activated. The fan could be modulated according to the cpu temperature as what it should be.
8
9 The way to activate the fan manually
10
11 grep . /sys/class/thermal/*/*
12 echo 0 > /sys/class/thermal/cooling_device4/cur_state
13 echo 0 > /sys/class/thermal/cooling_device5/cur_state
14
15 I think it's weird to start the fan by "echo 0" since it commonly means stopping the fan. I should do "echo 0" first to make the fan work at certain speed(running "echo 1 > " at the first doesn't work).
16 Then all commands seem to work correctly as "echo 0" for stopping and "echo 1" for start.
17
18 PS: in my laptop:
19 /sys/class/thermal/cooling_device0/type:LCD
20 /sys/class/thermal/cooling_device1/type:Processor
21 /sys/class/thermal/cooling_device2/type:Processor
22 /sys/class/thermal/cooling_device3/type:Fan
23 /sys/class/thermal/cooling_device4/type:Fan
24 /sys/class/thermal/cooling_device5/type:Fan
25 /sys/class/thermal/cooling_device6/type:Fan
26 /sys/class/thermal/cooling_device7/type:Fan
27 /sys/class/thermal/cooling_device8/type:Fan
28
29
30 The output of dmesg suggest that all fans are on.
31 [ 7.015190] ACPI: Fan [FAN0] (on)
32 [ 7.015235] ACPI: Fan [FAN1] (on)
33 [ 7.015279] ACPI: Fan [FAN2] (on)
34 [ 7.015322] ACPI: Fan [FAN3] (on)
35 [ 7.015366] ACPI: Fan [FAN4] (on)
36 [ 7.015410] ACPI: Fan [FAN5] (on)
37
38 In addition, xfce4 power-management nor lm_sensors could recognize my fan. Recompiling the kernel by genkernel as "genkernel all" didn't solved the problem.
39
40
41 Solution expected:
42 So my fan could work, but the fan couldn't be modulated by itself. I want the automatic control could be activated just after booting. (My temporary solution need CPU work in high temperature, so this doesn't work when I boot up my laptop from the cold).
43
44 What do you think should I do to? Do you have some ideas?
45
46 Thanks a lot
47
48 Regards
49
50 --
51 Peiding CHEN
52 Etudiant, Spécialité - Energétique et Environnement
53 Université Pierre et Marie CURIE
54 Paris
55 France