Closed cgirerd closed 2 years ago
Can you provide the output of this command?
$ cat /proc/acpi/ibm/fan
Thanks for the fast reply! Here is the output of $ cat /proc/acpi/ibm/fan
:
status: enabled
speed: 2037
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))
The ThinkPad P53 is also a dual fan system in case it has some importance at some point.
Can you provide the output of this command?
$ /usr/local/sbin/thinkfan -v -n -c /etc/thinkfan.conf
Thanks for your support @koutheir, but this was simply an oversight on my part. The config syntax (and its semantics) has gotten quite complex with the multifan support and the design of the YAML-based config parser hasn't really evolved with that. It's becoming very apparent that I need to put some end-to-end tests in the CI workflow.
Anyways, I've pushed a fix to the master branch. Sorry for the inconvenience and thanks for reporting! @cgirerd Let me know what results you're getting.
Thanks for pushing the fix, the issue is gone, all works well!
Actually it worked well when I ran the thinkfan manually using thinkfan -n
, but when I enabled thinkfan in systemd it had some issues finding some sensors like the one on my wireless card. This particular sensor was actually marked as optional as in my initial post, but thinkfan couldn't find the file "name" that contains "iwlwifi_1". I guess that thinkfan was starting before some of the needed services like the networking service in the case of my wireless card. I fixed the issue temporarily by adding a delay in /etc/systemd/system/thinkfan.service.d/default.conf
under [service]
, and will try to do something cleaner by finding out the specific services that need to be started before thinkfan. [service]
now looks like that at the moment:
[Service]
# Decrease biasing (up to -b-10) if your fan speed changes too quickly,
# Increase biasing (up to -b20) if your fan speed changes too slowly.
Environment='THINKFAN_ARGS=-b0'
ExecStartPre=/bin/sleep 30
Thanks again @vmatare and @koutheir for your help and fast replies!
Actually it worked well when I ran the thinkfan manually using
thinkfan -n
, but when I enabled thinkfan in systemd it had some issues finding some sensors like the one on my wireless card. This particular sensor was actually marked as optional as in my initial post, but thinkfan couldn't find the file "name" that contains "iwlwifi_1". I guess that thinkfan was starting before some of the needed services like the networking service in the case of my wireless card. I fixed the issue temporarily by adding a delay in/etc/systemd/system/thinkfan.service.d/default.conf
under[service]
, and will try to do something cleaner by finding out the specific services that need to be started before thinkfan.
Yeah, that is a long-standing issue that many people are having, but it's not actually thinkfan's responsibility to check whether all its dependent services are ready. However, by now I'm close to actually implementing a workaround since the problem isn't trivial to resolve in systemd (where it belongs) either and probably won't be going away any time soon...
Anyways, I'm closing this since the original issue has been fixed. See e.g. issue #118 if you want to join the discussion on thinkfan being started too early.
Hello, Thank you very much for this software! I just downloaded and compiled the code of the master branch. I installed it on my ThinkPad P53 running Debian 11. I ran thinkfan using the command
thinkfan -n
and got the following error:ERROR: No fans are configured in /etc/thinkfan.conf
However, the fans seem to be configured correctly in /etc/thinkfan.conf I think. Here is the content of this file:I would be happy to have any hint on this issue... :)