Package Details: thinkfan 0.9.2-3

Git Clone URL: https://aur.archlinux.org/thinkfan.git (read-only)
Package Base: thinkfan
Description: A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi
Upstream URL: http://thinkfan.sourceforge.net/
Licenses: GPL
Submitter: FALKER
Maintainer: notizblock
Last Packager: notizblock
Votes: 119
Popularity: 2.226128
First Submitted: 2009-03-02 09:01
Last Updated: 2015-07-09 08:27

Dependencies (3)

Required by (0)

Sources (3)

Latest Comments

Alad commented on 2015-07-07 17:24

Also, the .install file should contain instructions on reloading the thinkpad_acpi module (or reboot if not possible).

Alad commented on 2015-07-07 17:14

Braces are NOT quotes, this will break when pkgdir contains spaces. srcdir is also a noop (see Creating packages on the wiki), and .install files don't have to be included in the source array.

Rewrite: https://gist.githubusercontent.com/anonymous/32d5359792dce202eff6/raw/34d8c70649f162b015f6cdca37cc6a786293abd8/gistfile1.txt

kaptoxic commented on 2015-01-27 04:06

@smldis: not sure if this is a good solution, but I switched to using /sys/devices/virtual/thermal/thermal_zone*/temp after having similar issues (thinkfan failing to read /sys/devices/platform/coretemp.0/hwmon/...)

ptrv commented on 2014-12-23 23:29

I have the problem with thinkfan, that after resuming from suspend, thinkfan quits because a sensor has vanished.

The log says:
A sensor has vanished! Exiting since there's no safe way of handling this.

If I restart the thinkfan systemd service, it works properly again.

Any suggestions how to solve this?

smldis commented on 2014-11-21 14:11

I opened a bug report here if someone wanna help:
https://sourceforge.net/p/thinkfan/thinkfan-bugs/17/

smldis commented on 2014-10-08 19:09

Ok, I do Not want To waste our time on tricks, I just published my solution for other people here.
Thanks for your effort.

notizblock commented on 2014-10-08 18:21

@smldis, thx for your report, I'll try thinkpad_hwmon asap and try to find a solution.

smldis commented on 2014-10-08 10:40

I don't use lm-sensors. My driver interface is thinkpad_hwmon. Thank you

notizblock commented on 2014-10-07 19:34

@smldis have you configured lm-sensors? Does it start properly, if you start it manually?

smldis commented on 2014-10-07 08:11

Hi,
Not loading at start here, Also lm-sensors fails to load with this .service
My working setup on a thinkpad t500 is:

udev rule: 98-thinkfan.rules
SUBSYSTEM=="platform", KERNEL=="thinkpad_hwmon", TAG+="systemd"

thinkfan.service:
[Unit]
Description=Thinkfan Daemon - simple and lightweight fan control program
[Service]
Type=forking
ExecStart=/usr/bin/thinkfan
PIDFile=/var/run/thinkfan.pid
ExecReload=/usr/bin/kill -HUP $MAINPID
[Install]
#WantedBy=multi-user.target
WantedBy=sys-devices-platform-thinkpad_hwmon.device



zaferot commented on 2014-10-06 23:47

Hi @notizblock,

It works fine now. Thanks!

notizblock commented on 2014-10-06 17:49

Sorry for being so unresponsive lately, I uploaded a new version with the following changes:
- Fix installation of README/NEWS (thx @smldis)
- Update thinkfan.service to be closer to upstream (thx @smldis)
- Include optional dependency to lm_sensors (thx @zaferot)

I think an optional dependency is the best solution here, since user may decide to load the required modules manually. @zaferot, @smldis please test, if this version fixes your problems. I was not able to reproduce them.

smldis commented on 2014-10-05 21:09

Yeah, I wrote a comment on the same issue down below but it seams that notizblock is not following this package anymore.

zaferot commented on 2014-10-04 18:54

Hi All,

I've started experiencing a problem with thinkfan.service during system startup. The thinkfan.service fails to start because 'hwmon' subsystem is not ready yet ( e.g. '/sys/class/hwmon/hwmon0/temp1_input' for the temperature information). The 'hwmon' subsystem becomes ready when the responsible kernel module is loaded ("coretemp" in my case). This module is loaded by lm_sensors.service (https://wiki.archlinux.org/index.php/Lm_Sensors).
So, currently the thinkfan.service is started before the lm_sensors.service and that is why it fails to start.
Looks like something has changed in the lm_sensors.service recently.

I have fixed this behavior by redefining the unit's startup dependency:
---------
/etc/systemd/system/thinkfan.service.d/customdependency.conf
[Unit]
After=
After=lm_sensors.service
Requires=lm_sensors.service
---------
(https://wiki.archlinux.org/index.php/Systemd#Editing_provided_unit_files)

@notizblock could you please correct the main PKGBUILD?

smldis commented on 2014-09-11 21:14

EDIT I misunderstood. What do u mean? My setup has that file installed correctly.

smldis commented on 2014-09-11 21:07

Shouldn't you just copy instead of moving?

wwn commented on 2014-09-11 19:23

Hello all

I found this warning: Warning: thinkfan: /usr/lib/modprobe.d/thinkpad_acpi.conf (Datei oder Verzeichnis nicht gefunden) (file or directory not found)
width a sudo pacman -Qk | grep warning

This should not happen after moving thinkfan.conf to /etc

smldis commented on 2014-08-29 20:32

I noticed the readme file in /usr/share/doc/thinkfan/ is different from https://sourceforge.net/p/thinkfan/code/ci/master/tree/README.
Last one is a little guide to thinkfan, check out!

And follow also /usr/share/doc/thinkfan/examples/thinkfan.conf.complex that is self explenatory.

NotSure commented on 2014-08-29 18:16

@smldis

I do. Deleted the udev rule and the think.service file
--> but how should a new rule look for my config?

Conf. fot thinkfan:
/etc/thinkfan.conf

hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input

#(FAN_LEVEL, LOW, HIGH)
(0, 0, 62)
(1, 50, 68)
(3, 60, 74)
(7, 72, 80)
(127, 78, 32767)

Thanks for your help.

smldis commented on 2014-08-28 11:34

@NotSure
You are trying to use some patch code present in the comments without hitting te same issue. Don't do that!
It seems you don't know what you are doing and this is bad if u are playing with your fan.

Please, read all the documentation of this software in /usr/share/doc/thinkfan/ and follow it precisely

NotSure commented on 2014-08-27 07:42

I have change this:

1. added a rule like smldis do
/etc/udev/rules.d/10-myuser.rules

SUBSYSTEM=="platform", KERNEL=="thinkpad_hwmon", TAG+="systemd"

2. added the file
/etc/systemd/system/thinkfan.service

[Unit]
Description=Thinkfan Daemon - simple and lightweight fan control program
#After=basic.target

[Service]
ExecStart=/usr/bin/thinkfan -n -b 1 -s 3

[Install]
#WantedBy=multi-user.target
WantedBy=sys-devices-platform-thinkpad_hwmon.device

3. and this are my conf for thinkfan
/etc/thinkfan.conf

hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp2_input

#(FAN_LEVEL, LOW, HIGH)
(0, 0, 62)
(1, 50, 68)
(3, 60, 74)
(7, 72, 80)
(127, 78, 32767)

Where is my fault? Thanks for your help.



smldis commented on 2014-08-27 00:46

@NotSure
For now you run it trought systemd?
In that case u should create a file in /etc/systemd/system/thinkfan.service
that overrides the default one

NotSure commented on 2014-08-26 21:20

Hello, I need help =(

i try to setup thinkfan with my Thinkpad T530 and all is good but:

- how can i change rule for exampe thinkfan -s 3 -b

my aim is to start thinkfan not with default settings

smldis commented on 2014-07-29 14:21

maybe is better also to use
Type=forking
ExecStart=/usr/sbin/thinkfan
PIDFile=/var/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID

for section [service] like suggested in the thinkfan sources

smldis commented on 2014-07-29 13:51

Hi, I'm having some issues with systemd trying running thinkfan before thermal devices are exposed.
My setup is a thinkpad T500.
I came up with this solution, asking for review:

1 - added a rule that expose the device to systemd
/etc/udev/rules.d/10-myuser.rules

SUBSYSTEM=="platform", KERNEL=="thinkpad_hwmon", TAG+="systemd"


2 - added the file /etc/systemd/system/thinkfan.service

[Unit]
Description=Thinkfan Daemon - simple and lightweight fan control program
#After=basic.target
[Service]
ExecStart=/usr/bin/thinkfan -n -s5 -q
[Install]
#WantedBy=multi-user.target
WantedBy=sys-devices-platform-thinkpad_hwmon.device


Is this solution better than just a udev rule like TEST{444}=="/proc/acpi/ibm/thermal", ENV{SYSTEMD_WANTS}="thinkfan.service"

s1gk1ll commented on 2014-01-17 13:51

Hi notizblock,

Thanks for your reply.

Ok, the segfault ocurred because in my previous config I didn't declare the tp_fan and tp_thermal variables. With these variables in the config my previous configuration values are working again :)

Thanks for your help.

notizblock commented on 2014-01-17 13:34

Hi s1gk1ll,

I use the following »simple« config, maybe it works for you too:
tp_fan /proc/acpi/ibm/fan
tp_thermal /proc/acpi/ibm/thermal

(0, 0, 55)
(1, 48, 60)
(2, 50, 61)
(3, 52, 63)
(4, 56, 65)
(5, 59, 66)
(6, 61, 66)
(7, 63, 32767)

s1gk1ll commented on 2014-01-16 22:34

Hi FALKER, everyone,

The recent update broke my "simple" config. I get a segfault using this configuration now, everything was perfect before:
--
(0, 0, 54)
(1, 50, 58)
(2, 54, 62)
(3, 58, 66)
(4, 62, 70)
(5, 66, 74)
(6, 70, 78)
(7, 67, 32767)
--
I tried to create a new "complex" configuration and get an error saying that I need 9 temps but only got 8, I removed the sensor entry related with the missing one and the config was accepted:
--
root@tp ~ # cat /proc/acpi/ibm/thermal
temperatures: 37 40 30 -128 50 -128 29 -128 40 44 31 -128 -128 -128 -128 -128
--
The problems is that I'm not able to get the previous behaviour with the complex config, can someone try to help me adapting the previous simple config to the new complex one?

Thanks.

notizblock commented on 2014-01-16 18:22

Good idea, done.

jlp2 commented on 2014-01-16 08:26

What do you think about to compile the package with the new option to read aout the s.m.a.r.t-temperatures directly?

The NEWS tells:
1) S.M.A.R.T via libatasmart
----------------------------
Thinkfan can now read temperatures directly from hard disks via libatasmart.
To enable it, you need to compile with -DUSE_ATASMART.

jlp2 commented on 2014-01-16 08:14

What do you think about to compile the package with the the Option to read out the s.m.a.r.t-Temperatures?

The README tells:
1) S.M.A.R.T via libatasmart
----------------------------
Thinkfan can now read temperatures directly from hard disks via libatasmart.
To enable it, you need to compile with -DUSE_ATASMART.

notizblock commented on 2014-01-07 16:23

Done, thx for the hint @cap_sensitive.

cap_sensitive commented on 2014-01-06 22:29

Hi, I think the thinkpad_acpi.conf should better be placed under /usr/lib/modprobe.d

notizblock commented on 2014-01-02 09:13

I've uploaded a new version with the following changes:
- Remove initscripts support
- Provide a install file with a note regarding creating a thinkfan.conf
- Install thinkpad_acpi.conf in /etc/modprobe.d

NOTE: You might get a conflict for '/etc/modprobe.d/thinkpad_acpi.conf'. Please remove the file before installing/uprading. The content of the installed config file is:
options thinkpad_acpi fan_control=1

notizblock commented on 2014-01-02 08:29

Hi, thx for your comments.

[1] is fine, I'll include that later.

[2] is a bit dangerous, as sensor data/thermal control my differ for several devices. In my oppinion, it may be sufficient to show a note when installing the package.

[new version], yes I'm aware of it, but it is not yet marked as stable.

donniezazen commented on 2014-01-02 04:03

What do you think about including following two files with the package?

[1]
/etc/modprobe.d/thinkpad_acpi.conf
options thinkpad_acpi fan_control=1
https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_T420#Fans

[2]
And the simple config file included in examples folder thinkfan.conf.simple as /etc/thinkfan.conf

Fedora includes both of these files. Also version 0.9 beta2 is available.

Crashlog commented on 2013-11-28 21:30

I've got a bit of an issue with this one. Here's my thinkfan.conf for the moment: http://ix.io/9bP

I've been testing it now, and it doesn't seem to be reacting to my HDD (the one I've added 25 to). My HDD temp is at 42 degrees C right now, but my fan speed is 0 RPM. The fan eventually reacts if I watch a video or do something else that makes the other temperatures rise, but it's almost as if the HDD is in some kind of blindspot. It's a T400 if that matters.
http://i.imgur.com/Oxh2WgV.png

Raziel23 commented on 2013-06-04 06:59

You should remove old initscripts support.

KaiSforza commented on 2013-06-01 06:49

May want to check the .service file. After the usr move it won't matter, but before, and people will be complaining about breakage.

notizblock commented on 2013-06-01 06:40

thx for the hint, fixed.

donniezazen commented on 2013-05-31 23:27

I suppose binaries should be moved to /usr/bin.

https://mailman.archlinux.org/pipermail/arch-dev-public/2013-May/025026.html

w0ng commented on 2013-03-27 10:36

Suggestion: Install a defualt thinkfan.conf into /etc by adding

install -D -m644 examples/thinkfan.conf.thinkpad ${pkgdir}/etc/thinkfan.conf

notizblock commented on 2013-01-07 19:32

thank you very much! :)

jyc commented on 2013-01-07 00:36

Works great on fresh install with systemd on T430. Thanks for maintaining the package, notizblock!

yaourt -S thinkfan
sudo systemctl enable thinkfan.service
# edit /etc/thinkfan.conf (used https://gist.github.com/4471319)
sudo echo "options thinkpad_acpi experimental=1 fan_control=1" > /etc/modprobe.d/thinkfan.conf

notizblock commented on 2012-11-27 17:24

@KaiSforza: included your changes. Thank you!

KaiSforza commented on 2012-11-26 22:51

Updated the pkgbuild. With pacman-git, pkgbuilds without a 'package()' function throw a non-fetal error, and there really should be a distinction between the 'make' and installing into the pkgdir. Thanks!

https://github.com/KaiSforza/archlinux-pkgbuilds/blob/master/kernel/thinkfan/PKGBUILD

notizblock commented on 2012-11-08 19:04

@spambanane, good point; updated

Anonymous comment on 2012-11-08 16:58

Hello,

can you please put the example config files somewhere (/usr/share/doc/thinkfan probably)? They are referred to in the README and give a good starting point.

thank you

einseenai commented on 2012-10-06 08:40

@Hspasta
Thanks a lot!

Hspak commented on 2012-09-29 19:49

@einseenai
yes

einseenai commented on 2012-09-12 17:12

Guys, for this to work besides "sudo systemctl enable thinkfan.service", do I need to insert "options thinkpad_acpi fan_control=1" to /etc/modprobe.d/thinkfan.conf?

einseenai commented on 2012-09-12 17:12

Guys, for this to work besides "sudo systemctl enable thinkfan.service", do I need to insert "options thinkpad_acpi fan_control=1" to /etc/modprobe.d/thinkfan.conf?

einseenai commented on 2012-09-12 17:12

Guys, for this to work besides "sudo systemctl enable thinkfan.service", do I need to insert "options thinkpad_acpi fan_control=1" to /etc/modprobe.d/thinkfan.conf?

einseenai commented on 2012-09-12 17:11

Guys, for this to work besides, "sudo systemctl enable thinkfan.service", do I need to insert "options thinkpad_acpi fan_control=1" to /etc/modprobe.d/thinkfan.conf?

notizblock commented on 2012-09-11 17:30

updated, thx @popsch

notizblock commented on 2012-09-11 17:29

updated, thx @popsch

popsch commented on 2012-09-11 16:28

please add the -q option in /usr/lib/systemd/system/thinkfan.service

otherwise it's spamming the journal

notizblock commented on 2012-07-12 17:26

included the systemd unit file. I haven't tested it since I don't use systemd.

eworm commented on 2012-07-12 08:55

Can you please provide a systemd unit file? Just install this file linked below to /usr/lib/systemd/system/thinkfan.service. Thanks!

http://codepad.org/EzE6aFUR

Anonymous comment on 2012-05-10 21:56

BUMP! 0.8.0 is out! http://sourceforge.net/projects/thinkfan/files/ http://sourceforge.net/projects/thinkfan/files/thinkfan-0.8.0.tar.gz/download

foalsrock commented on 2012-05-03 11:46

any chance you could include a systemd unit file?

thinkfan.service - http://sprunge.us/PIXH
updated PKGBUILD - http://sprunge.us/bfZA

thanks

donniezazen commented on 2012-04-22 23:10

@spikeh Thanks for the links. I have used @mejo's method to make thinkfan work. Now that Thinkfan can use complex settings, I was wondering if someone has a worked out the complex config file.

notizblock commented on 2012-04-17 19:49

good catch, fixed.

eworm commented on 2012-04-17 09:09

Uh, this was my build script messing things up if a package has a file that is named exactly as the package is. Fixed now, it was not your fault.

However I still get a warning:
==> WARNING: backup entry file not in package : etc/thinkfan.conf

You should remove the backup array if you do no longer ship the config file.

notizblock commented on 2012-04-14 22:11

Have you used the Tarball or just the PKGBUILD?

eworm commented on 2012-04-14 21:56

I can not build this package:

==> ERROR: thinkfan was not found in the build directory and is not a URL.

Anonymous comment on 2012-04-13 11:49

Thank you notizblock and foalsrock!
@donniezazen you can find example config files from the author's source tarball: http://sourceforge.net/projects/thinkfan/files/thinkfan-0.8_alpha2.tar.gz/download
For those with Thinkpad T420, use the coretemp kernel module to access the CPU temp sensors. The following contains non-Arch advice but can be adapted:
http://ubuntuforums.org/showpost.php?p=11277718&postcount=17
http://www.fuduntu.org/wiki/index.php?title=Thinkpad_T420_and_Fuduntu
http://www.jakubkotowski.com/2011/06/thinkpad-t420-thinkfan-settings.html

donniezazen commented on 2012-04-12 22:46

How are you guys setting up new 0.8 thinkfan, since no thinkfan.conf is included?

notizblock commented on 2012-04-11 17:41

looks good to me. Thx @foalsrock

foalsrock commented on 2012-04-11 13:57

Hi,
As of 0.8 alpha, thinkfan does not work on laptops which return temp with a newline char (as is the case for with X220, for example).
There's a solution in the form of a patch here https://gist.github.com/2355667
Here's a PKGBUILD with the included patch http://pastebin.com/YjKqg5cp

Thanks

cb474 commented on 2012-04-10 20:22

Thanks!

notizblock commented on 2012-04-10 20:12

I updated the package. The default config files are gone in this release. So, you have to create your own /etc/thinkfan.conf before you can start the daemon. See the README in /usr/share/doc/thinkfan/README for more information.

cb474 commented on 2012-04-10 19:42

On the thinkfan website he writes:

"0.8 is out, but I named it alpha since there are no unit tests and I really can't test every possible scenario. We do need some more testing since there have been significant changes to functionality."

So it doesn't seem like he considers this version especially more or less stable (or more or less "alpha") than the previous version. He's just tring to be honest that this is something so few people use, he can't really say that it's been effectively tested. And that was six months ago that .8 came out. This is something that is so infrequently updated, I wouldn't hold my breath for the "stable" version. Anyway, that's my point of view. Maybe a separate alpha package is needed, if you're not comfortable upgrading this one?

cb474 commented on 2012-04-10 19:40

On the thinkfan website he writes:

"0.8 is out, but I named it alpha since there are no unit tests and I really can't test every possible scenario. We do need some more testing since there have been significant changes to functionality."

So it doesn't seem like he considers this version especially more or less stable (or more or less "alpha") than the previous version. He's just tring to be honest that this is something so few people use, he can't really say that it's been effectively tested. And that was six months ago that .8 came out. This is something that is so infrequently updated, I wouldn't hold my breath for the "stable" version. Anyway, that's my point of view.

notizblock commented on 2012-04-10 17:06

0.8 is marked as 'alpha2'. It seems, that 0.8 is not considered a stable release.

cb474 commented on 2012-04-10 05:36

0.8 is available. please update.

cb474 commented on 2012-04-10 05:35

0.8 is available. please update.

apol commented on 2011-10-20 14:08

Please update to 0.7.3. It corrects an important problem.

notizblock commented on 2011-03-04 09:30

please update or disown the package... thank you

joschi commented on 2010-07-23 14:52

PKGBUILD for thinkfan-0.7.1: http://aur.pastebin.com/NWiq122W

awagner commented on 2010-07-08 01:26

there's a new version at http://sourceforge.net/projects/thinkfan/, maybe this should be made the program's homepage?

eworm commented on 2010-06-09 06:06

Could you please install both config files? I build my packages on a Samung Notebook and use thinkfan on a Lenovo one...