Hi,

I've recently got the same problem with thinkfan.

Instalation log:

aptitude install thinkfan
The following NEW packages will be installed:
  thinkfan
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/33.1 kB of archives. After unpacking 128 kB will be used.
Selecting previously unselected package thinkfan.
(Reading database ... 62481 files and directories currently installed.)
Preparing to unpack .../thinkfan_0.9.2-1_amd64.deb ...
Unpacking thinkfan (0.9.2-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up thinkfan (0.9.2-1) ...
Job for thinkfan.service failed. See 'systemctl status thinkfan.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript thinkfan, action "start" failed.
dpkg: error processing package thinkfan (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 thinkfan
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package.  Trying to recover:
Setting up thinkfan (0.9.2-1) ...
Job for thinkfan.service failed. See 'systemctl status thinkfan.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript thinkfan, action "start" failed.
dpkg: error processing package thinkfan (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 thinkfan

Journalctl:

journalctl -xn
-- Logs begin at Wed 2015-01-07 22:41:34 CET, end at Wed 2015-01-07 23:43:06 CET. -- Jan 07 23:42:35 cezar thinkfan[14128]: /proc/acpi/ibm/thermal: No such file or directory
Jan 07 23:42:35 cezar thinkfan[14128]: Error parsing temperatures:
Jan 07 23:42:35 cezar thinkfan[14128]: readconfig: Error getting temperature. Jan 07 23:42:35 cezar thinkfan[14128]: Refusing to run without usable config file! Jan 07 23:42:35 cezar systemd[1]: thinkfan.service: control process exited, code=exited status=4 Jan 07 23:42:35 cezar systemd[1]: Failed to start simple and lightweight fan control program.
-- Subject: Unit thinkfan.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit thinkfan.service has failed.
--
-- The result is failed.
Jan 07 23:42:35 cezar systemd[1]: Unit thinkfan.service entered failed state.


According to http://www.thinkwiki.org/wiki/Thinkpad-acpi#sysfs_interface this interface is deprecated and in my case it don't even exists.


Then I configured /etc/thinkfan.conf with proper sensors (it can be found by running: find /sys/devices -type f -name "temp*_input", I add my thinkfan.conf in attachment) and running "aptitude upgrade" finally succeed in starting thinkfan properly:

systemctl status thinkfan.service
● thinkfan.service - simple and lightweight fan control program
   Loaded: loaded (/lib/systemd/system/thinkfan.service; enabled)
Active: active (running) since Thu 2015-01-08 00:44:24 CET; 3min 50s ago Process: 4543 ExecStart=/usr/sbin/thinkfan (code=exited, status=0/SUCCESS)
 Main PID: 4544 (thinkfan)
   CGroup: /system.slice/thinkfan.service
           └─4544 /usr/sbin/thinkfan

Do I understand well that it is a installation bug and proper thinkfan.conf should be configured during installation?



######################################################################
# 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)

hwmon /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon3/temp1_input
hwmon /sys/devices/virtual/hwmon/hwmon0/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input
(0,     0,      55)
(1,     48,     60)
(2,     50,     61)
(3,     52,     63)
(4,     56,     65)
(5,     59,     66)
(7,     63,     32767)

Reply via email to