From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SZ87G-0000aA-27 for garchives@archives.gentoo.org; Mon, 28 May 2012 22:08:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0C01E0746; Mon, 28 May 2012 22:08:28 +0000 (UTC) Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by pigeon.gentoo.org (Postfix) with ESMTP id 72CF4E05D5 for ; Mon, 28 May 2012 22:06:48 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so1742672wib.4 for ; Mon, 28 May 2012 15:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:date:subject:mime-version:from:message-id :user-agent; bh=r8WhoKFQtQJ2GVQ6Es8iPWc156uDTDjQF+Kfz+M21eE=; b=jPsG1fGQY9nZofeg4BvKAIiNpfjT8AZy29Bs/jMdtUyntkQ6zyAwjMmkasOX8Se8WM YQix9mWPvcX9saWLhEJ2uYjTfrr67gG6KW9+CcNrd89QXl/tHsvzqXOdDRWjgwn/1Q05 fNLUvFkfPHYNPkQJerLPFoVAKz9aPDGyg6KuWlVdJfhBwADFNgv2IIWWQxo/zl9QLnXW CIwOJDDbjhyowcNvqtLk+sj3cvGz3xqgCBNALpzNgMat9grP0ANJI9lpQUjtY/DsF1Le Ko0arVVdO612iuXwMZUfVT6s1LjWycY8h+dHCUpA2C2lieDV3xq2d45ntqE40M2cJhCN VYyg== Received: by 10.216.202.170 with SMTP id d42mr5282491weo.83.1338242807678; Mon, 28 May 2012 15:06:47 -0700 (PDT) Received: from gentoo.home (89-93-192-89.hfc.dyn.abo.bbox.fr. [89.93.192.89]) by mx.google.com with ESMTPS id gv4sm37739069wib.8.2012.05.28.15.06.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 May 2012 15:06:46 -0700 (PDT) Content-Type: multipart/alternative; boundary=----------nA4l66htwckpvo9mGqbWcS To: gentoo-user@lists.gentoo.org Date: Tue, 29 May 2012 00:04:51 +0200 Subject: [gentoo-user] Problem with fan control on laptop Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 From: "Peiding CHEN" Message-ID: User-Agent: Opera Mail/11.64 (Linux) X-Archives-Salt: 65bfad51-7468-4361-bec6-7aeb9c94096a X-Archives-Hash: b63f065033f2297c35151af0c6a4d83a ------------nA4l66htwckpvo9mGqbWcS Content-Type: text/plain; charset=gbk; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Hello, I've suffered from the problem with cpu fan control on my laptop for a l= ong time. I hope someone could help me get rid of it. Here is the problem: My laptop is "Toshiba Port=A8=A6g=A8=A6 M901". I installed Gentoo with x= fce4 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 poi= nt (doesn't start while temperature increase). But I can control the spe= ed manually. So my temporary solution is to start the fan manually in hi= gh speed when I run some heavy applications for getting a high cpu tempe= rature(more than 70=A1=E3C). Then when the temperature drops and passes = the trip point, the automatic control is activated. The fan could be mod= ulated according to the cpu temperature as what it should be. The way to activate the fan manually grep . /sys/class/thermal/*/* echo 0 > /sys/class/thermal/cooling_device4/cur_state echo 0 > /sys/class/thermal/cooling_device5/cur_state 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 cer= tain speed(running "echo 1 > " at the first doesn't work). Then all commands seem to work correctly as "echo 0" for stopping and "e= cho 1" for start. PS: in my laptop: /sys/class/thermal/cooling_device0/type:LCD /sys/class/thermal/cooling_device1/type:Processor /sys/class/thermal/cooling_device2/type:Processor /sys/class/thermal/cooling_device3/type:Fan /sys/class/thermal/cooling_device4/type:Fan /sys/class/thermal/cooling_device5/type:Fan /sys/class/thermal/cooling_device6/type:Fan /sys/class/thermal/cooling_device7/type:Fan /sys/class/thermal/cooling_device8/type:Fan The output of dmesg suggest that all fans are on. [ 7.015190] ACPI: Fan [FAN0] (on) [ 7.015235] ACPI: Fan [FAN1] (on) [ 7.015279] ACPI: Fan [FAN2] (on) [ 7.015322] ACPI: Fan [FAN3] (on) [ 7.015366] ACPI: Fan [FAN4] (on) [ 7.015410] ACPI: Fan [FAN5] (on) In addition, xfce4 power-management nor lm_sensors could recognize my fa= n. Recompiling the kernel by genkernel as "genkernel all" didn't solved = the problem. Solution expected: So my fan could work, but the fan couldn't be modulated by itself. I wan= t the automatic control could be activated just after booting. (My tempo= rary solution need CPU work in high temperature, so this doesn't work wh= en I boot up my laptop from the cold). What do you think should I do to? Do you have some ideas? Thanks a lot Regards -- = Peiding CHEN Etudiant, Sp=A8=A6cialit=A8=A6 - Energ=A8=A6tique et Environnement Universit=A8=A6 Pierre et Marie CURIE Paris France ------------nA4l66htwckpvo9mGqbWcS Content-Type: multipart/related; boundary=----------nA4l66htwckpvoTI0VRVI0 ------------nA4l66htwckpvoTI0VRVI0 Content-Type: text/html; charset=gbk Content-ID: Content-Transfer-Encoding: Quoted-Printable
Hello,

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 i= t.

Here is the problem:

My laptop i= s "Toshiba Port=A8=A6g=A8=A6 M901". I installed Gentoo with xfce4 as the= desktop environment and compiled the kernel manually. After system boot= ing, 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 act= ivated 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 wh= en I run some heavy applications for getting a high cpu temperature(more= than 70=A1=E3C). Then when the temperature drops and passes the trip po= int, the automatic control is activated. The fan could be modulated acco= rding to the cpu temperature as what it should be.

The way to ac= tivate the fan manually

grep . /sys/class/thermal/*/*
echo 0 = > /sys/class/thermal/cooling_device4/cur_state
echo 0 > /sys/cl= ass/thermal/cooling_device5/cur_state

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).
Then all commands seem to work co= rrectly as "echo 0" for stopping and "echo 1" for start.

PS: in m= y laptop:
/sys/class/thermal/cooling_device0/type:LCD
/sys/class/t= hermal/cooling_device1/type:Processor
/sys/class/thermal/cooling_devi= ce2/type:Processor
/sys/class/thermal/cooling_device3/type:Fan
/sy= s/class/thermal/cooling_device4/type:Fan
/sys/class/thermal/cooling_d= evice5/type:Fan
/sys/class/thermal/cooling_device6/type:Fan
/sys/c= lass/thermal/cooling_device7/type:Fan
/sys/class/thermal/cooling_devi= ce8/type:Fan


The output of dmesg suggest that all fans are on= .
[ 7.015190] ACPI: Fan [FAN0] (on)
[ 7.015235] ACPI: Fan [F= AN1] (on)
[ 7.015279] ACPI: Fan [FAN2] (on)
[ 7.015322] ACPI= : Fan [FAN3] (on)
[ 7.015366] ACPI: Fan [FAN4] (on)
[ 7.0154= 10] ACPI: Fan [FAN5] (on)

In addition, xfce= 4 power-management nor lm_sensors could recognize my fan. Recompiling th= e kernel by genkernel as "genkernel all" didn't solved the problem.


Solution expected:
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. (M= y temporary solution need CPU work in high temperature, so this doesn't = work when I boot up my laptop from the cold).

What do you think s= hould I do to? Do you have some ideas?

Thanks a lot

Rega= rds

--
Peiding CHEN=
Etudiant, Sp=A8=A6cialit=A8=A6 - Energ=A8=A6tique et EnvironnementUniversit=A8=A6 Pierre et Marie CURIE
Paris
France
------------nA4l66htwckpvoTI0VRVI0-- ------------nA4l66htwckpvo9mGqbWcS--