You are not logged in.

#1 2012-12-08 16:35:10

blue sea & blue sail
Member
Registered: 2012-12-06
Posts: 21

[solved] fan too slow, cpu temperature is 80 degrees

ThinkPad X200T | x86_64 | Linux 3.6.8.1-ARCH | systemd | gnome3.6.2
lm_sensors already installed, sensors.service already enable and start. I have read the wiki, but understandless. The wiki is Fan Speed Control and lm_sensors.

BUT the fan is too slow. It can't auto increase the speed
There is some code I use in the next.

$ sudo modprobe coretemp
$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +79.0°C  (crit = +100.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        4877 RPM
temp1:        +79.0°C  
temp2:         +0.0°C  
temp3:         +0.0°C  
temp4:         +0.0°C  
temp5:         +0.0°C  
temp6:         +0.0°C  
temp7:         +0.0°C  
temp8:         +0.0°C  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +80.0°C  (high = +95.0°C, crit = +105.0°C)
Core 2:       +79.0°C  (high = +95.0°C, crit = +105.0°C)

I don't know why fan1's speed always above 4877 rpm.

$ cat /sys/class/hwmon/hwmon1/device/pwm1
255

In the next, only find out one driver is suitable. It's coretemp.

$ sudo sensors-detect
[sudo] password for l: 
# sensors-detect revision 6085 (2012-10-30 18:18:45 +0100)
# System: LENOVO 3093RZ6 [ThinkPad] (laptop)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): 
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595...                       No
VIA VT82C686 Integrated Sensors...                          No
VIA VT8231 Integrated Sensors...                            No
AMD K8 thermal sensors...                                   No
AMD Family 10h thermal sensors...                           No
AMD Family 11h thermal sensors...                           No
AMD Family 12h and 14h thermal sensors...                   No
AMD Family 15h thermal sensors...                           No
AMD Family 15h power sensors...                             No
Intel digital thermal sensor...                             Success!
    (driver `coretemp')
Intel AMB FB-DIMM thermal sensor...                         No
VIA C7 thermal sensor...                                    No
VIA Nano thermal sensor...                                  No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): 
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor/ITE'...               No
Trying family `SMSC'...                                     No
Trying family `VIA/Winbond/Nuvoton/Fintek'...               No
Trying family `ITE'...                                      No

Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): 
Probing for `National Semiconductor LM78' at 0x290...       No
Probing for `National Semiconductor LM79' at 0x290...       No
Probing for `Winbond W83781D' at 0x290...                   No
Probing for `Winbond W83782D' at 0x290...                   No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): 
Using driver `i2c-i801' for device 0000:00:1f.3: Intel 3400/5 Series (PCH)
Module i2c-dev loaded successfully.

Next adapter: SMBus I801 adapter at 1880 (i2c-0)
Do you want to scan it? (YES/no/selectively): 
Client found at address 0x50
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'...                                No
Client found at address 0x51
Probing for `Analog Devices ADM1033'...                     No
Probing for `Analog Devices ADM1034'...                     No
Probing for `SPD EEPROM'...                                 Yes
    (confidence 8, not a hardware monitoring chip)
Client found at address 0x5c
Probing for `Analog Devices ADT7462'...                     No
Probing for `SMSC EMC1072'...                               No
Probing for `SMSC EMC1073'...                               No
Probing for `SMSC EMC1074'...                               No

Next adapter: i915 gmbus ssc (i2c-1)
Do you want to scan it? (yes/NO/selectively): y

Next adapter: i915 gmbus vga (i2c-2)
Do you want to scan it? (yes/NO/selectively): y

Next adapter: i915 gmbus panel (i2c-3)
Do you want to scan it? (yes/NO/selectively): y

Next adapter: i915 gmbus dpc (i2c-4)
Do you want to scan it? (yes/NO/selectively): y

Next adapter: i915 gmbus dpb (i2c-5)
Do you want to scan it? (yes/NO/selectively): y

Next adapter: i915 gmbus dpd (i2c-6)
Do you want to scan it? (yes/NO/selectively): y

Next adapter: DPDDC-C (i2c-7)
Do you want to scan it? (YES/no/selectively): 

Now follows a summary of the probes I have just done.
Just press ENTER to continue: 

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

Do you want to overwrite /etc/conf.d/lm_sensors? (YES/no): 
Unloading i2c-dev... OK
Unloading cpuid... OK
$ ls /sys/class/hwmon/hwmon0/
name  power  subsystem  temp1_crit  temp1_input  uevent
$ ls /sys/class/hwmon/hwmon1/device
driver      modalias  pwm1         temp1_input  temp4_input  temp7_input
fan1_input  name      pwm1_enable  temp2_input  temp5_input  temp8_input
hwmon       power     subsystem    temp3_input  temp6_input  uevent
$ cat /sys/class/hwmon/hwmon1/device/pwm1_enable 
2

Why the file "pwm1_enable" is set 2?

$ cat /sys/class/hwmon/hwmon1/device/fan1_input 
4851

What else is required?Reply to me, please. I will provide more information in this post. Think you!

Last edited by blue sea & blue sail (2012-12-09 07:53:51)


Acer TM B115-P5BB | intel video card |Seagate 500G 5400rpm AF 7.5mm | 2GB RAM | 2.5 GHz Pentium N3530 CPU

Offline

#2 2012-12-09 02:33:25

blue sea & blue sail
Member
Registered: 2012-12-06
Posts: 21

Re: [solved] fan too slow, cpu temperature is 80 degrees

No one help me! OK. I always self-reliant.

bule sea & blue sail wrote:

昨晚看了俩小时电影,关了播放器之后发现GPU温度飙到80多摄氏度。手摸在键盘上都能感觉到烧烧的,风扇出风口的铜片很烫手。为了小黑的健康,我决定折腾一下。

我的小黑是Thinkpad T61p,在装Ubuntu的时候相信是默认安装好thinkpad_acpi的,但是默认情况下,风扇的转速都是在“自动档”上的。要换成手动档你必须要在/etc/modprobe.d/下添加一个文件thinkpad_acpi.conf(老版本的可能是叫options)。在文件中要放:

options thinkpad_acpi fan_control=1
接着重载模块:

sudo modprobe -r thinkpad_acpi && sudo modprobe thinkpad_acpi

这样一来就可以直接通过修改/proc/acpi/ibm/fan来改变转速了:

echo level auto | sudo tee /proc/acpi/ibm/fan

cat /proc/acpi/ibm/fan可以查看如何命令风扇:

commands: level <level> (</level><level> is 0-7, auto, disengaged, full-speed)
commands: enable, disable
commands: watchdog <timeout> (</timeout><timeout> is 0 (off), 1-120 (seconds))
由此,可以根据你的需要来控制风扇了。

如果想要自定义自动化就有好多种办法了。一种比较简单的办法是直接安装thinkfan,在 /etc/thinkfan.conf修改好阀值和对应的转速级别(0–7 level值)。默认情况下,thinkfan是在deamon模式下运行的。不过有个缺点是好像它只能操控0–7的等级,不可以auto或full-speed。

还有一种自动化方法是使用自动脚本,但是我从源代码看貌似也只是能控制0–7的转速。

其实0–7或auto在常规任务的时候是足够的,温度一般在40–60度之间,但是像看电影这种损耗资源的任务就会开始升温。0–7的转速是不够的(level 7的转速应该只是3000多转吧),而且貌似这些软件和脚本检测的温度数据都只是CPU温度。所以几时GPU温度升到80度风扇还是慢慢悠悠两三千转……要解决这个问题其实也很方便。因为温度监测的接口就在/sys/devices/platform/thinkpad_hwmon/temp*_input,各部分温度对应的ID可以到这张网页上找到。

有了这些,相信写个适合自己小黑的bash code已经没有多少问题了。当然最佳还是利用现成的代码,稍作修改即可。

–EOF–

This is the original linkhttp://www.conanblog.me/notes/control-f … kpad-acpi/


Acer TM B115-P5BB | intel video card |Seagate 500G 5400rpm AF 7.5mm | 2GB RAM | 2.5 GHz Pentium N3530 CPU

Offline

#3 2012-12-09 06:47:36

rogue
Member
Registered: 2011-08-03
Posts: 68
Website

Re: [solved] fan too slow, cpu temperature is 80 degrees

Offline

#4 2012-12-09 08:05:46

blue sea & blue sail
Member
Registered: 2012-12-06
Posts: 21

Re: [solved] fan too slow, cpu temperature is 80 degrees

Thank you very much,good man.I can't open the second url in china. Because the government forbid us open many website of foreign country.I'm crying.Think you again.


Acer TM B115-P5BB | intel video card |Seagate 500G 5400rpm AF 7.5mm | 2GB RAM | 2.5 GHz Pentium N3530 CPU

Offline

#5 2012-12-09 08:11:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,700

Re: [solved] fan too slow, cpu temperature is 80 degrees

blue sea & blue sail: 
You marked the thread as solved, but you did not tell us the solution sad

Please tell us how you solved it.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#6 2012-12-09 12:02:02

blue sea & blue sail
Member
Registered: 2012-12-06
Posts: 21

Re: [solved] fan too slow, cpu temperature is 80 degrees

ewaller wrote:

blue sea & blue sail: 
You marked the thread as solved, but you did not tell us the solution :(

Please tell us how you solved it.

I have written the solution in Chinese on the second floor.
OK.I tell you the solution for my ThinkPad x200t laptop computer now. Not necessarily for everyone。

  1. Load the module。

    $ sudo modprobe thinkpad_acpi
  2. Inquiry the level first.

    $ cat /proc/acpi/ibm/fan
  3. You can set up the level that it suit yourself.Here, I want to set to all-speed.

    $ echo level all-speed | sudo tee /proc/acpi/ibm/fan

Acer TM B115-P5BB | intel video card |Seagate 500G 5400rpm AF 7.5mm | 2GB RAM | 2.5 GHz Pentium N3530 CPU

Offline

Board footer

Powered by FluxBB