You are not logged in.

#1 2019-01-05 19:21:03

Belph
Member
Registered: 2018-04-08
Posts: 26

trouble loading fan modules

Hello,

I am currently trying to get my fancontrol to work. I went by what the Wiki says and ran sensors-detect then I manually copied the module from /etc/conf.d/lm_sensors to /etc/modules-load.d/load_these.conf which was surprisingly enough only one module called

Error: file hwmon3/pwm5 doesn't exist
Error: file hwmon3/pwm4 doesn't exist
Error: file hwmon3/pwm2 doesn't exist

At least one referenced file is missing. Either some required kernel
modules haven't been loaded, or your configuration file is outdated.
In the latter case, you should run pwmconfig again.

which is weird since I just used pwmconfig to make my config and it was able to detect the fans and their RPM just fine.

/etc/fancontrol: https://termbin.com/dm87
/etc/conf.d/lm_sensors: https://termbin.com/s1mz
/etc/modules-load.d/load_these.conf: https://termbin.com/aj7t

I tried to just follow the instructions here: https://wiki.archlinux.org/index.php/Fa … m-sensors)
>ran sensors-detect
>manually copied the module to /load_these.conf
>sensors -s
>pwmconfig
>/usr/bin/fancontrol

Please excuse me if I missed some information.

EDIT: I just did how I used to do it on my old Ubuntu system and it worked very good so far, but I am still concerned with the inconsistency so I'd still like to make it properly.

Regards <3

Last edited by Belph (2019-01-05 20:00:30)

Offline

#2 2019-01-31 06:54:49

ifif14
Member
Registered: 2017-07-20
Posts: 12

Re: trouble loading fan modules

Having a similar problem. But for me it starts to appear after I load my system from hibernate.

One of the fans is messed up, can be not rotating at all.

fancontrol service is started, restart doesn't help.

/usr/sbin/fancontrol produces the following

Error: file hwmon0/pwm2 doesn't exist
Error: file hwmon0/pwm1 doesn't exist

At least one referenced file is missing. Either some required kernel
modules haven't been loaded, or your configuration file is outdated.
In the latter case, you should run pwmconfig again.

Also from time to time the sensor's reported temperature is not correct after hibernate.

Does anyone have an idea for this behavior?

Thx
Igor

Last edited by ifif14 (2019-01-31 06:55:07)

Offline

#3 2019-01-31 12:44:10

Wild Penguin
Member
Registered: 2015-03-19
Posts: 356

Re: trouble loading fan modules

What's the contents of /sys/class/hwmon? More specifically where do the directories link to? Actually, post the output of two commands:

$ ls -l /sys/class/hwmon

and

$ cat /sys/class/hwmon/hwmon*/name

See if the order of the directories is sometimes different (between reboots).

I believe this could be caused by the fact that /sys/class/hwmon/hwmon? directory entries order is not persistent / always same between reboots. But lm-sensors fancontrol relies them on being so. This may be exacerbated on some systems, and for example amdgpu has it's own sensors. On my system, there are 5 hwmonX directories!

IIRC there is a bug report somewhere / discussion in a mailing list (could have been dreaming, tough...). IMHO the fancontrol scripts should parse the name -entries (and hope there are no duplicates, which in principle - and even in practice, say, if a user has several AMD GPUs - is possible!).

EDIT: Actually, this is mentioned in the wiki. Do you have put the modules one by one on different lines? It seems though that some sensors are detected without any modules, so there might still be some inconsistencies between reboots...

Last edited by Wild Penguin (2019-01-31 12:50:18)

Offline

Board footer

Powered by FluxBB