Thinkfan 无法自动启动

Thinkfan 无法自动启动

我花了几个小时尝试thinkfan在我的 Lenovo T420/Lubuntu 16.04 上进行操作。

我现在遇到的问题是它不会随开机自动启动。

此外,该程序无法启动

sudo systemctl enable thinkfan

或者

sudo systemctl enable thinkfan.service

这两个命令均产生以下输出:

[sudo] password for martin: 
Synchronizing state of thinkfan.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable thinkfan

…但风扇仍然以“自动”模式运行

martin@heat-200-lu:~$ cat /proc/acpi/ibm/fan
status:     enabled
speed:      3987
level:      auto
commands:   level <level> (<level> is 0-7, auto, disengaged, full-speed)
commands:   enable, disable
commands:   watchdog <timeout> (<timeout> is 0 (off), 1-120 (seconds))

…虽然温度相当低,但转速仍为 4000 rpm:

martin@heat-200-lu:~$ cat /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
52000

使用以下方式启动 thinkfan

martin@heat-200-lu:~$ sudo /etc/init.d/thinkfan start
[ ok ] Starting thinkfan (via systemctl): thinkfan.service.

...但是,正如我所说,我无法让它自动启动。

以下是一些配置文件:

martin@heat-200-lu:~$ cat /etc/default/thinkfan 
# Should thinkfan be started automatically on boot?
# Only say "yes" when you know what you are doing, have configured
# thinkfan correctly for *YOUR* machine and loaded thinkpad_acpi
# with fan_control=1 (if you have a ThinkPad).
START=yes

# Additional startup parameters
DAEMON_ARGS="-q"


martin@heat-200-lu:~$ cat /etc/thinkfan.conf 
######################################################################
# thinkfan 0.7 example config file
# ================================
#
# ATTENTION: There is only very basic sanity checking on the configuration.
# That means you can set your temperature limits as insane as you like. You
# can do anything stupid, e.g. turn off your fan when your CPU reaches 70°C.
#
# That's why this program is called THINKfan: You gotta think for yourself.
#
######################################################################
#
# IBM/Lenovo Thinkpads (thinkpad_acpi, /proc/acpi/ibm)
# ====================================================
#
# 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:
# tp_thermal /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:
#tp_fan /proc/acpi/ibm/fan
#tp_thermal /proc/acpi/ibm/thermal (0, 10, 15, 2, 10, 5, 0, 3, 0, 3)

sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
sensor /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input
sensor /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
sensor /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input

(0, 0,  55)
(1, 48, 60)
(2, 55, 66)
(3, 62, 73)
(4, 66, 79)
(5, 72, 81)
(7, 75, 32767)


martin@heat-200-lu:~$ cat /etc/modprobe.d/thinkfan.conf 
options thinkpad_acpi fan_control=1

我欢迎任何关于可能出现的问题的建议。

答案1

根据思考维基:将以下内容输入/etc/modprobe.d/thinkpad_acpi.conf

options thinkpad_acpi fan_control=1

然后重启。然后你应该能够echo level disengaged > /proc/acpi/ibm/fan

相关内容