在t400上安装了fedora 17, 在编译代码的时候经常碰到下面的严重警告,然后系统就重启了。
Jul 8 23:11:52 hluo kernel: [ 954.402277] thinkpad_acpi: THERMAL EMERGENCY: a sensor reports something is extremely hot!
Jul 8 23:11:52 hluo kernel: [ 954.404819] thinkpad_acpi: temperatures (Celsius): 94 49 37 N/A 50 N/A 34 N/A 41 50 54 N/A N/A N/A N/A N/A
这说明系统温度太高了,也不知道是自己笔记本的风扇有问题,还是fedora自身对风扇管理不行,
首先我查看了下风扇转速和系统温度:
首先运行sensors-detect, 一路回车下去,自动检测系统。然后运行sensors观察系统温度和风扇转速,在编译的时候,发现系统温度一会儿就飙升到90度以上。[hluo@hluo ~]$ sensors-detect
[hluo@hluo ~]$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +48.0°C (crit = +127.0°C)
temp2: +45.0°C (crit = +100.0°C)
thinkpad-isa-0000
Adapter: ISA adapter
fan1: 2487 RPM
temp1: +48.0°C
temp2: +49.0°C
temp3: +36.0°C
temp4: N/A
temp5: +50.0°C
temp6: N/A
temp7: +34.0°C
temp8: N/A
temp9: +41.0°C
temp10: +49.0°C
temp11: +42.0°C
temp12: N/A
temp13: N/A
temp14: N/A
temp15: N/A
temp16: N/A
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +45.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +45.0°C (high = +105.0°C, crit = +105.0°C)
发现风扇的转速实在太低了,想办法调整下,linux内核有个thinkpad_acpi的模块,可以利用它来调节风扇转速。
[hluo@hluo ~]$ vi /etc/modprobe.d/thinkpad_acpi.conf
options thinkpad_acpi fan_control=1
然后重启系统。
[hluo@hluo modprobe.d]$ cat /proc/acpi/ibm/fan
status: enabled
speed: 2489
level: auto
commands: level
( is 0-7, auto, disengaged, full-speed)
commands: enable, disable
commands: watchdog ( is 0 (off), 1-120 (seconds))
我们可以用level命令来调节转速
echo "level full-speed" > /proc/acpi/ibm/fan
阅读(2439) | 评论(0) | 转发(0) |