vmatare / thinkfan

The minimalist fan control program
GNU General Public License v3.0
534 stars 61 forks source link

Can't get thinkfan to run, doesn't find /sys/devices/pci.../hwmon #200

Closed Chrissi43 closed 1 year ago

Chrissi43 commented 1 year ago

Hallo,

I have a huge problem with thinkfan. It's really a great software. So far i have had no problems. Now after I upgraded to a newer linux system I can no longer get the software to run. I'm not a software engineer, only a boring normal computer user. I have no idea what the problem is. Maybe someone here knows a solution?

My system consists of

What I have done so far

hwmon /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon2/temp6_input
hwmon /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon2/temp3_input
hwmon /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon2/temp7_input
hwmon /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon2/temp4_input
hwmon /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon2/temp8_input
hwmon /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon2/temp1_input
hwmon /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon2/temp5_input
hwmon /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon2/temp2_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp4_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_input

(0, 0,  60)
(1, 60, 65)
(2, 65, 70)
(3, 70, 75)
(4, 75, 80)
(5, 80, 85)
(7, 85, 32767)

Testing the installation

Solution?

I am quite perplexed, since everything has run without problems so far with the old system. I also do not find my problem described on the Internet or here in the forum. I have not yet dared to compile the program with the newest version myself. I have no idea about compiling and have not needed it yet. Does anyone know advice?

Thanks in advance for any help, Chrissi

30m3e commented 1 year ago

Does the thinkpad_acpi load in /etc/modprobe.d properly?

Chrissi43 commented 1 year ago

Hallo ThaungHan,

thank you for your time and question. I checked with lsmod whether "thinkpad_acpi" is loading. Among other things, the output lists the module, but with a zero. So if I understand it right the module is being loaded but not used?

30m3e commented 1 year ago

Hallo ThaungHan,

thank you for your time and question. I checked with lsmod whether "thinkpad_acpi" is loading. Among other things, the output lists the module, but with a zero. So if I understand it right the module is being loaded but not used?

" I created the file /etc/modprobe.d/thinkfan.conf with the content options thinkpad_acpi fan_control=1 "

I think the thinkpad_acpi.conf path should be in /etc/modprobe.d/ thinkpad_acpi.conf and fan config file should be in /etc/thinkfan.conf imo.

And also you should cat /proc/acpi/ibm/fan is enabled or not. If the output is enabled and thing still does not work, you should unload the module first "modprobe -r thinkpad_acpi"and load again "modprobe thinkpad_acpi. I think it would work. Pls keep in mind that I'm also a user and thinkfan is broken many times by my messing up. Hope it work out for you. Thank you.

Chrissi43 commented 1 year ago

Thank you for your kindly suggestions.

I think the thinkpad_acpi.conf path should be in /etc/modprobe.d/ thinkpad_acpi.conf and fan config file should be in /etc/thinkfan.conf imo.

I have also noticed that the naming of the files in the instructions sometimes diverges. However, so far I had stuck to the old variant that worked for me. I have now as you recommended

  1. put the renamed file thinkpad_acpi.conf into the directory /etc/modprobe.d and
  2. the file thinkfan.conf into the directory /etc.

And also you should cat /proc/acpi/ibm/fan is enabled or not.

If the output is enabled and thing still does not work, you should unload the module first modprobe -r thinkpad_acpi and load again modprobe thinkpad_acpi.

Then I tried something else again. Let me know the status with command service thinkfan status. Output:

thinkfan.service
Loaded: loaded (/lib/systemd/system/thinkfan.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-10-13 21:34:51 CEST; 47s ago
Process: 4069 ExecStart=/usr/sbin/thinkfan $THINKFAN_ARGS $DAEMON_ARGS (code=exited, status=1/FAILURE)
CPU: 7ms

So the service is loaded but disabled. Could it possibly be because my Linux system runs with systemd?

I think it would work. Pls keep in mind that I'm also a user and thinkfan is broken many times by my messing up. Hope it work out for you. Thank you.

In the end, I think it doesn't matter whether you are a programmer or "just" a user - what counts in the end is that a solution is found? In this sense, thank you very much for your help, "four eyes see more than two". :-)

Chrissi43 commented 1 year ago

So no progress. :-(

vmatare commented 1 year ago

@Chrissi43 have you taken a look at your hwmon hierarchy to see what's actually in there? I'd recommend looking at /sys/class/hwmon. Either use those paths directly or look where the symlinks point.

vmatare commented 1 year ago

Oh and please don't put much trust in 3rd party instructions, in particular don't expect you can just copy&paste configs from the internet. Read the thinkfan.conf manpage and pay particular attention to the documentation of the hwmon path specification and the related indices and name entries.