如果您拥有ThinkPad,则有一个名为的软件thinkfan
可以做到这一点。顾名思义,它是专门为ThinkPads(thinkpad_acpi
)设计的。
该thinkfan
软件在标准ubuntu软件存储库中可用,但确实需要一些步骤来进行配置。
这是一个简单的分步指南:
http://staff.science.uva.nl/~kholshei/thinkfan_guide/
(基本上是该德语指南的翻译版本:http :
//thinkwiki.de/Thinkfan)
邮政相关信息:
步骤1.安装thinkfan软件和传感器:
sudo apt-get install thinkfan lm-sensors
步骤2,通过编辑thinkpad.conf文件,确保守护程序控制风扇:
sudo nano /etc/modprobe.d/thinkfan.conf
通过添加以下行:
options thinkpad_acpi fan_control=1
步骤3.通过编辑文件使守护程序在启动时自动加载:
sudo nano /etc/default/thinkfan
确保将START键设置为yes,即应该有一行显示:
START=yes
步骤4.检测笔记本电脑的传感器:
sudo sensors-detect
然后只要按Enter提示您选择默认答案即可。
步骤5.加载新模块。从ubuntu 13.10可以通过以下方式完成:
sudo service kmod start
而对于13.04等以前的版本,您需要执行以下操作:
sudo service module-init-tools start
步骤6.找出正在使用的传感器:
sensors
(表示0度的那些没有使用,我也不知道为什么也“被检测到”了)。记住正在使用哪些。
步骤7.找出这些传感器的完整路径:
find /sys/devices -type f -name "temp*_input"
输出应该是/ sys / devices / ...之类的路径列表。
步骤8.将传感器的路径复制并粘贴到配置文件/etc/thinkpad.conf中。为此,首先打开文件:
sudo nano /etc/thinkfan.conf
应该已经有一行
#sensor /proc/acpi/ibm/thermal (0, 10, 15, 2, 10, 5, 0, 3, 0, 3)
(#符号表示该行已被注释掉)。添加以传感器开头的行(不带#符号),然后将第一个传感器复制粘贴。如果您有多个传感器,请重复此步骤。例如,在我的机器上,步骤7的输出为
/sys/devices/virtual/hwmon/hwmon0/temp1_input
/sys/devices/platform/thinkpad_hwmon/temp3_input
/sys/devices/platform/thinkpad_hwmon/temp4_input
/sys/devices/platform/thinkpad_hwmon/temp5_input
/sys/devices/platform/thinkpad_hwmon/temp6_input
/sys/devices/platform/thinkpad_hwmon/temp7_input
/sys/devices/platform/thinkpad_hwmon/temp1_input
/sys/devices/platform/thinkpad_hwmon/temp8_input
/sys/devices/platform/thinkpad_hwmon/temp2_input
/sys/devices/platform/coretemp.0/temp4_input
/sys/devices/platform/coretemp.0/temp2_input
我的机器中正在使用的是前两行,因此我添加了三行:
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
sensor /sys/devices/platform/coretemp.0/temp4_input
sensor /sys/devices/platform/coretemp.0/temp2_input
步骤9.最后,我们可以在配置文件中设置风扇速度级别。如果/etc/thinkpad.conf文件尚未打开,请打开它。
sudo nano /etc/thinkfan.conf
我在ThinkPad x201上使用的风扇级别为:
(0, 0, 51)
(1, 50, 52)
(2, 51, 55)
(3, 54, 58)
(4, 56, 63)
(5, 60, 70)
(6, 66, 79)
(7, 74, 92)
(127, 85, 32767)
最后一行确保风扇全速运转(127 =“脱离”,即不受管制)。您可以根据自己的需要/愿望摆弄这些级别,但请务必小心!
步骤10.重新启动。现在一切正常。为了检查thinkpad是否正确运行,请使用
sudo thinkfan -n
这会以详细模式启动thinkfan。您可能要先停止thinkfan守护程序:
sudo /etc/init.d/thinkfan stop
如果要再次启动thinkfan守护程序,请键入:
sudo /etc/init.d/thinkfan start
刚刚完成,我的/etc/thinkfan.conf配置文件是:
# IMPORTANT:
#
# To keep your HD from overheating, you have to specify a correction value for
# the sensor that has the HD's temperature. You need to do this because
# thinkfan uses only the highest temperature it can find in the system, and
# that'll most likely never be your HD, as most HDs are already out of spec
# when they reach 55 °C.
# Correction values are applied from left to right in the same order as the
# temperatures are read from the file.
#
# For example:
# sensor /proc/acpi/ibm/thermal (0, 0, 10)
# will add a fixed value of 10 °C the 3rd value read from that file. Check out
# http://www.thinkwiki.org/wiki/Thermal_Sensors to find out how much you may
# want to add to certain temperatures.
# Syntax:
# (LEVEL, LOW, HIGH)
# LEVEL is the fan level to use (0-7 with thinkpad_acpi)
# LOW is the temperature at which to step down to the previous level
# HIGH is the temperature at which to step up to the next level
# All numbers are integers.
#
# I use this on my T61p:
#sensor /proc/acpi/ibm/thermal (0, 10, 15, 2, 10, 5, 0, 3, 0, 3)
#(0, 0, 55)
#(1, 48, 60)
#(2, 50, 61)
#(3, 52, 63)
#(4, 56, 65)
#(5, 59, 66)
#(7, 63, 32767)
# My settings for my ThinkPad X201: (kris)
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
sensor /sys/devices/platform/coretemp.0/temp4_input
sensor /sys/devices/platform/coretemp.0/temp2_input
(0, 0, 51)
(1, 50, 52)
(2, 51, 55)
(3, 54, 58)
(4, 56, 63)
(5, 60, 70)
(6, 66, 79)
(7, 74, 92)
(127, 85, 32767)