在默認情況下由內嵌控制器控制風扇轉速。如果您認為風扇轉速過低或過大,您可能需要一個守護進程接管控制權。但這是有風險的:您需要負責控制溫度。過高的溫度會損壞或者縮短筆記本組件的使用壽命。
來自 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.