You are not logged in.

#1 2021-04-24 20:46:06

Argotier
Member
Registered: 2021-04-24
Posts: 18

[SOLVED] Thinkfan doesn't run at startup

Hi guys and girls, It's the first time I'm trying to use linux instead of windows on a Thinkpad T430.
So, I installed archlinux, configurate everything, but I need support on solving this thing.

Installed Thinkfan, its configured and runs like a charm when I enable and start it trough systemctl, unfortunaly doesn't run when I boot my laptop, and it gives me an error message:

UNIT             LOAD   ACTIVE SUB    DESCRIPTION                               
thinkfan.service loaded failed failed simple and lightweight fan control program


I'm stuck, can't find any solution, trust me that I searched but nothing .. so maybe this is the last island where I can find asnwers. Thank you.

Last edited by Argotier (2021-04-25 20:51:38)

Offline

#2 2021-04-24 20:53:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Thinkfan doesn't run at startup

Please edit your thread title and use it to describe your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post

Reading that link, you'll see omnibus threads are discouraged.

1. You can fund more information by filtering the journal output by _PID - the wiki has details.
2. No idea what you are talking about. This is your first post, how ware we supposed to know your battery isn't charging?
3. How are we supposed to know how you have set up networking? This is Arch: there are multiple different ways of doing it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-04-24 21:45:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: [SOLVED] Thinkfan doesn't run at startup

trying to use linux instead of windows

Assuming that windows is still installed, the battery is likely not charging because of the 3rd link in my signature.
Especially if this is unrelated to TLP or the threshold configuration.

failed to load kernel error

That's not a thing, https://bbs.archlinux.org/viewtopic.php?id=57855
Even if your model isn't supported, the kernel module would still load, it just wouldn't do anything.

Offline

#4 2021-04-25 13:36:23

wellohead
Member
Registered: 2011-06-30
Posts: 11

Re: [SOLVED] Thinkfan doesn't run at startup

The previous two posts seem to be related to a different problem?
I assume you edited the post title to better reflect the issue and I'll answer with this assumption.

Does the service start properly if you try manually when booted? ex:

# systemctl start thinkfan.service

If not, post the output of the 2 recommended commands you'll get in case of error.

Offline

#5 2021-04-25 14:24:04

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

wellohead

previous two posts seem to be related to a different problem?
I assume you edited the post title to better reflect the issue and I'll answer with this assumption.

Does the service start properly if you try manually when booted? ex:

# systemctl start thinkfan.service
If not, post the output of the 2 recommended commands you'll get in case of error..

yes I had other issues but I solved them, whatever turning back to our argument, I tried to do systemctl enable/start thinkfan and runs but when I start my pc it doesn't

Last edited by Argotier (2021-04-25 14:29:42)

Offline

#6 2021-04-25 14:26:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: [SOLVED] Thinkfan doesn't run at startup

Enabling and starting are not the same thing, enale it, reboot and then check (and post) its status.

Offline

#7 2021-04-25 14:35:18

wellohead
Member
Registered: 2011-06-30
Posts: 11

Re: [SOLVED] Thinkfan doesn't run at startup

Also, if I'm not mistaken, the thinkfan PKGBUILD lists lm_sensors as an optdepend, but the service file relies on it to know when to try to start the service:

[Unit]
Description=simple and lightweight fan control program
Wants=lm_sensors.service
After=lm_sensors.service

[Service]
Type=forking
ExecStart=/usr/bin/thinkfan $THINKFAN_ARGS
PIDFile=/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
Also=thinkfan-sleep.service
Also=thinkfan-wakeup.service

...just confirm you have lm_sensors installed as well?

Offline

#8 2021-04-25 14:57:15

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

seth wrote:

Enabling and starting are not the same thing, enale it, reboot and then check (and post) its status.


UNIT             LOAD   ACTIVE SUB    DESCRIPTION                               
● thinkfan.service loaded failed failed simple and lightweight fan control program

LOAD   = Reflects whether the unit definition was properly loaded.

Offline

#9 2021-04-25 14:58:30

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

wellohead wrote:

Also, if I'm not mistaken, the thinkfan PKGBUILD lists lm_sensors as an optdepend, but the service file relies on it to know when to try to start the service:

[Unit]
Description=simple and lightweight fan control program
Wants=lm_sensors.service
After=lm_sensors.service

[Service]
Type=forking
ExecStart=/usr/bin/thinkfan $THINKFAN_ARGS
PIDFile=/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
Also=thinkfan-sleep.service
Also=thinkfan-wakeup.service

...just confirm you have lm_sensors installed as well?


yes I have lm_sensors installed

Offline

#10 2021-04-25 14:59:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: [SOLVED] Thinkfan doesn't run at startup

Rather the output of

systemctl status thinkfan.service

and please use code tags, https://bbs.archlinux.org/help.php#bbcode

Last edited by seth (2021-04-25 14:59:39)

Offline

#11 2021-04-25 15:02:56

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

wellohead wrote:

Also, if I'm not mistaken, the thinkfan PKGBUILD lists lm_sensors as an optdepend, but the service file relies on it to know when to try to start the service:

[Unit]
Description=simple and lightweight fan control program
Wants=lm_sensors.service
After=lm_sensors.service

[Service]
Type=forking
ExecStart=/usr/bin/thinkfan $THINKFAN_ARGS
PIDFile=/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
Also=thinkfan-sleep.service
Also=thinkfan-wakeup.service

...just confirm you have lm_sensors installed as well?


[kelor@Argotier ~]$ cat /lib/systemd/system/thinkfan.service
[Unit]
Description=simple and lightweight fan control program
Wants=lm_sensors.service
After=lm_sensors.service

[Service]
Type=forking
ExecStart=/usr/bin/thinkfan $THINKFAN_ARGS
PIDFile=/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
Also=thinkfan-sleep.service




I noticed that I don't have the last string that you have

Last edited by Argotier (2021-04-25 15:04:38)

Offline

#12 2021-04-25 15:12:57

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

seth wrote:

Rather the output of

systemctl status thinkfan.service

and please use code tags, https://bbs.archlinux.org/help.php#bbcode

ok sorry,
hope I did it correctly:

thinkfan.service - simple and lightweight fan control program
     Loaded: loaded (/usr/lib/systemd/system/thinkfan.service; enabled; vendor preset: d>
    Drop-In: /etc/systemd/system/thinkfan.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Sun 2021-04-25 16:44:14 CEST; 27min ago
        CPU: 8ms

apr 25 16:44:14 Argotier systemd[1]: Starting simple and lightweight fan control program>
apr 25 16:44:14 Argotier thinkfan[419]: ERROR: /sys/devices/platform/coretemp.0/hwmon/hw>
apr 25 16:44:14 Argotier systemd[1]: thinkfan.service: Control process exited, code=exit>
apr 25 16:44:14 Argotier systemd[1]: thinkfan.service: Failed with result 'exit-code'.
apr 25 16:44:14 Argotier systemd[1]: Failed to start simple and lightweight fan control >
lines 1-12/12 (END)

Offline

#13 2021-04-25 15:15:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: [SOLVED] Thinkfan doesn't run at startup

Almost, try "systemctl --no-pager status thinkfan.service" - your terminal isn't long enough for the entire output and it's capped at the end.

Offline

#14 2021-04-25 15:22:18

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

seth wrote:

Almost, try "systemctl --no-pager status thinkfan.service" - your terminal isn't long enough for the entire output and it's capped at the end.

× thinkfan.service - simple and lightweight fan control program
     Loaded: loaded (/usr/lib/systemd/system/thinkfan.service; enabled; vendor preset: disabled)
    Drop-In: /etc/systemd/system/thinkfan.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Sun 2021-04-25 16:44:14 CEST; 37min ago
        CPU: 8ms

apr 25 16:44:14 Argotier systemd[1]: Starting simple and lightweight fan control program...
apr 25 16:44:14 Argotier thinkfan[419]: ERROR: /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input: No such file or directory
apr 25 16:44:14 Argotier systemd[1]: thinkfan.service: Control process exited, code=exited, status=1/FAILURE
apr 25 16:44:14 Argotier systemd[1]: thinkfan.service: Failed with result 'exit-code'.
apr 25 16:44:14 Argotier systemd[1]: Failed to start simple and lightweight fan control program.

when it says ERROR: /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input: It's not true infact when I start thinkfan in terminal it works
like in this case

hinkfan.service - simple and lightweight fan control program
     Loaded: loaded (/usr/lib/systemd/system/thinkfan.service; enabled; vendor preset: disabled)
    Drop-In: /etc/systemd/system/thinkfan.service.d
             └─override.conf
     Active: active (running) since Sun 2021-04-25 17:24:18 CEST; 52s ago
    Process: 3116 ExecStart=/usr/bin/thinkfan $THINKFAN_ARGS (code=exited, status=0/SUCCESS)
   Main PID: 3117 (thinkfan)
      Tasks: 1 (limit: 18958)
     Memory: 564.0K
        CPU: 18ms
     CGroup: /system.slice/thinkfan.service
             └─3117 /usr/bin/thinkfan -b0

apr 25 17:24:18 Argotier systemd[1]: Starting simple and lightweight fan control program...
apr 25 17:24:18 Argotier thinkfan[3116]: Daemon PID: 3117
apr 25 17:24:18 Argotier systemd[1]: Started simple and lightweight fan control program.
apr 25 17:24:18 Argotier thinkfan[3117]: Temperatures(bias): 41(0), 49(0), 49(0), 38(0) -> level 0

Last edited by Argotier (2021-04-25 15:27:19)

Offline

#15 2021-04-25 15:30:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: [SOLVED] Thinkfan doesn't run at startup

You have that, but too late.
Try to add

Requires=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device
After=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device

to the service, https://wiki.archlinux.org/index.php/Sy … p-in_files

Offline

#16 2021-04-25 15:36:59

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

seth wrote:

You have that, but too late.
Try to add

Requires=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device
After=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device

to the service, https://wiki.archlinux.org/index.php/Sy … p-in_files

Seth, where do I need to put this two strings in etc/thinkfan.conf or /usr/lib/systemd/system/thinkfan.service?

Offline

#17 2021-04-25 15:41:44

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: [SOLVED] Thinkfan doesn't run at startup

This is explained in the posted link - you want to augment the existing service w/ a drop-in.

Offline

#18 2021-04-25 15:49:59

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

seth wrote:

This is explained in the posted link - you want to augment the existing service w/ a drop-in.

like this?

[Unit]
Description=simple and lightweight fan control program
Wants=lm_sensors.service
After=lm_sensors.service

[Service]
Type=forking
ExecStart=/usr/bin/thinkfan $THINKFAN_ARGS
PIDFile=/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID
Requires=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device
After=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device

[Install]
WantedBy=multi-user.target
Also=thinkfan-sleep.service
Also=thinkfan-wakeup.service

Offline

#19 2021-04-25 16:18:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: [SOLVED] Thinkfan doesn't run at startup

No, the keys belong into the \[Unit\] and you only augment the existing service w/o rewriting/replacing it.

Offline

#20 2021-04-25 16:26:36

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

seth wrote:

No, the keys belong into the \[Unit\] and you only augment the existing service w/o rewriting/replacing it.

scuse me if I disturb you with this things but I dont't want to make mistakes,

[Unit]
Description=simple and lightweight fan control program
Wants=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device
After=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device

[Service]
Type=forking
ExecStart=/usr/bin/thinkfan $THINKFAN_ARGS
PIDFile=/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID


[Install]
WantedBy=multi-user.target
Also=thinkfan-sleep.service
Also=thinkfan-wakeup.service

Offline

#21 2021-04-25 16:57:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: [SOLVED] Thinkfan doesn't run at startup

If this now is a drop-in you do not need (nor should) provide anything but

[Unit]
Wants=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device
After=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device

Offline

#22 2021-04-25 18:28:54

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

seth wrote:

If this now is a drop-in you do not need (nor should) provide anything but

[Unit]
Wants=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device
After=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device

ok, I think that I understood, here is what I did:

systemctl edit thinkfan

there where the rest of thinks, I only did this:

[Unit]
#Description=simple and lightweight fan control program
Wants=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device
After=sys-devices-platform-coretemp.0-hwmon-hwmon4-temp3_input.device

saved and exit

Offline

#23 2021-04-25 19:32:46

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

seems that it doesn't work, in the original file this settings didn't change

Offline

#24 2021-04-25 19:46:14

Argotier
Member
Registered: 2021-04-24
Posts: 18

Re: [SOLVED] Thinkfan doesn't run at startup

ok ok, I think that is something that doesn't work here, so let's recap:
my actual settings are:

  GNU nano 5.6.1                                                            /etc/thinkfan.conf                                                                         
tp_fan /proc/acpi/ibm/fan

hwmon /sys/devices/virtual/thermal/thermal_zone0/hwmon1/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp2_input


(0, 0,  60)
(1, 57, 65)
(2, 63, 75)
(3, 72, 80)
(4, 78, 90)
(5, 87, 95)
(7, 92, 32767)

runing this find /sys/devices -type f -name "temp*_input" my sensors are:

[kelor@Argotier ~]$ sudo su
[sudo] password di kelor: 
[root@Argotier kelor]# cat/proc/acpi/ibm/fan
bash: cat/proc/acpi/ibm/fan: File o directory non esistente
[root@Argotier kelor]# cat /proc/acpi/ibm/fan
status:         enabled
speed:          0
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))
[root@Argotier kelor]# find /sys/devices -type f -name "temp*_input"
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp6_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp3_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp7_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp4_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp8_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp1_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp5_input
/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp2_input
/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input
/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input
/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp2_input
/sys/devices/virtual/thermal/thermal_zone0/hwmon1/temp1_input
[root@Argotier kelor]# nano /etc/thinkfan.conf

so how do I configure this thinkfan?

Offline

#25 2021-04-25 20:13:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,421

Re: [SOLVED] Thinkfan doesn't run at startup

cat /etc/systemd/system/thinkfan.service.d/override.conf

The service seems to depend on a couple of more files - you could brute-force this by not depending on a file but augmenting

[Service]
ExecStartPre=/bin/sleep 30

Which will just delay the start by 30 seconds.

Offline

Board footer

Powered by FluxBB