在 Debian 上运行 thinkfan

在 Debian 上运行 thinkfan

我正在尝试在运行 debian jessie 的 x220 上使用 thinkfan。安装完成后,systemd 服务无法启动。有任何想法吗?

Nov 20 13:43:38 thinkpad-x220 thinkfan[1762]: /proc/acpi/ibm/thermal: No such file or directory
Nov 20 13:43:38 thinkpad-x220 thinkfan[1762]: Error parsing temperatures:
Nov 20 13:43:38 thinkpad-x220 thinkfan[1762]: readconfig: Error getting temperature.
Nov 20 13:43:38 thinkpad-x220 thinkfan[1762]: Refusing to run without usable config file!
Nov 20 13:43:38 thinkpad-x220 systemd[1]: thinkfan.service: control process exited, code=exited status=4
Nov 20 13:43:38 thinkpad-x220 systemd[1]: Failed to start simple and lightweight fan control program.

我已经tp_smapi加载thinkpad_acpi了模块。

答案1

有点晚了,但我将答案留在这里,以防其他人遇到同样的问题。

问题是 /proc/acpi/ibm/Thermal 不存在。为了正确读取温度,您需要找到传感器位置:

find /sys/devices -type f -name "temp*_input"

就我而言,我将以下两行添加到 /etc/thinkfan.conf 中:

tp_fan /proc/acpi/ibm/fan

hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp4_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp5_input

建议安装lm-sensors。

相关内容