Thinkpad Fan Control
在默认情况下由内嵌控制器控制风扇转速。如果您认为风扇转速过低或过大,您可能需要一个守护进程接管控制权。但这是有风险的:您需要负责控制温度。过高的温度会损坏或者缩短笔记本组件的使用寿命。
来自 http://www.thinkwiki.org/wiki/How_to_control_fan_speed:
- 出于安全考虑,默认禁止用户控制风扇。若想启用风扇控制,必须在加载内核模块 thinkpad-acpi 时传递参数 fan_control=1
当前可用于控制风扇的守护进程存在于 Arch User Repository (简体中文) 中, 分别是 simpfand-gitAUR 和 thinkfanAUR。
安装[编辑 | 编辑源代码]
安装 thinkfanAUR。然后查看其文件列表:
# pacman -Ql thinkfan
请注意 thinkfan 包安装了文件 /usr/lib/modprobe.d/thinkpad_acpi.conf,该文件包含:
options thinkpad_acpi fan_control=1
因此,默认启用了风扇控制。
$ su # modprobe thinkpad_acpi # cat /proc/acpi/ibm/fan
您应该会看到风扇运行级别默认为 “auto”,您可以向这个文件写入运行级别的方式手动控制风扇转速。thinkfan 守护进程将会自动控制风扇转速。
您需要复制一份默认配置文件(例如 /usr/share/doc/thinkfan/examples/thinkfan.conf.simple) 到 /etc/thinkfan.conf,并尝试修改它。需要在这个配置文件中指定读取哪些传感器,并且也需要指定用户控制风扇转速的接口。一些操作系统提供了 /proc/acpi/ibm/fan,对于其他操作系统,you will need to specify something like
hwmon /sys/devices/virtual/thermal/thermal_zone0/temp
to use generic hwmon sensors instead of thinkpad-specific ones.
运行[编辑 | 编辑源代码]
您可以通过手动运行 thinkfan 命令测试配置(root用户):
# thinkfan -n
and see how it reacts to the load level of whatever other programs you have running.
当您的配置正确时,可通过如下命令启动 thinkfan 守护进程(root 用户):
# systemctl start thinkfan
或者在系统启动时自动加载它:
# systemctl enable thinkfan
Old packages which have gone missing[编辑 | 编辑源代码]
tpfandAUR[损坏的链接:package not found] and a version that doesn't require HAL tpfand-no-halAUR[损坏的链接:package not found] are not actively developed anymore, and no longer available. An additional GTK+ frontend was provided in the tpfan-adminAUR[损坏的链接:package not found] package in the AUR which enables the monitoring of temperatures as well as the graphical adjustment of trigger points.
Due to tpfand not beeing actively developed anymore, there was a fork called tpfanco (which in fact uses the same names for the executables as tpfand): tpfanco-svnAUR[损坏的链接:package not found].
The configuration file for tpfand (same for tpfanco) was /etc/tpfand.conf
.
Additionally, the tpfand-profilesAUR[损坏的链接:package not found] package in the AUR provided the latest fan profiles for various thinkpad models.