Comment 17 for bug 576602

Revision history for this message
Darxus (darxus) wrote :

This problem still exists in ubuntu 20.04.

It looks like a good solution to this problem would be to use the contents of /sys/class/hwmon/hwmon*/name instead of the hwmon device number. fancontrol uses these name files to do the verification that results in the errors in this bug report.

I used Thomas's workaround, it worked.

My module order was slightly more complicated, because I had additional devices involved in the random ordering. I added softdeps for all of them:

$ grep -H . /sys/class/hwmon/hwmon*/name
/sys/class/hwmon/hwmon0/name:amdgpu
/sys/class/hwmon/hwmon1/name:nct6798
/sys/class/hwmon/hwmon2/name:k10temp
/sys/class/hwmon/hwmon3/name:hidpp_battery_0
/sys/class/hwmon/hwmon4/name:asus

# cat /etc/modprobe.d/fancontrol.conf
softdep nct6775 pre: amdgpu
softdep k10temp pre: nct6775
softdep asus_wmi pre: k10temp
softdep hid_logitech_hidpp pre: k10temp

To figure out which devices it wants to have which numbers, look at:
# grep DEVNAME /etc/fancontrol
DEVNAME=hwmon1=nct6798 hwmon2=k10temp

My motherboard is an Asus TUF X570. I am not entirely certain that I got the right modules for the asus and hidpp_battery_0 hwmon devices.

fancontrol and pwmconfig are in the fancontrol package. Upstream is https://hwmon.wiki.kernel.org/lm_sensors
The download link on that page is a git archive which does contain fancontrol and pwmconfig.

There is an upstream mailing list and IRC channel:
https://hwmon.wiki.kernel.org/feedbackandsupport