Since years, on my system, sensors-detect detects these modules : > coretemp > w83627ehf Booting on kernel 5.4.34 with openrc, /etc/init.d/modules output : > * Loading module coretemp ... [ ok ] > * Loading module w83627ehf ... [ ok ] Now, I decided to upgrade kernel to 5.10.61. After compiling, and booting on it, same service says : > * Loading module coretemp ... [ ok ] > * Loading module w83627ehf .. > * Failed to load w83627ehf [ !! ] Trying to manually load it says : > modprobe -vvv w83627ehf > insmod /lib/modules/5.10.61-gentoo/kernel/drivers/hwmon/w83627ehf.ko > modprobe: INFO: Failed to insert module '/lib/modules/5.10.61-gentoo/kernel/drivers/hwmon/w83627ehf.ko': No such device > modprobe: ERROR: could not insert 'w83627ehf': No such device After some research, I finally found the explanation, via opensuse bug #1169316 ⁽¹⁾. This leads me to ⁽²⁾ : instead of using w83627ehf module, I must now use nct6775 module. Tried to load the nct6775 module, dmesg happily says : > nct6775: Found NCT6775F or compatible chip at 0x2e:0x290 Full explanation from the lm_sensors patch : > Originally, support for the Nuvoton W83677HG-I and derivatives was > first added to the w83627ehf driver, so that's the driver recommended > by sensors-detect. Later, support for the same device was added to > the nct6775 driver. In kernel v5.6, support was removed from the > w83627ehf driver to get rid of the duplicate code. > > So sensors-detect should now point users of this device to the > nct6775 driver. We can't do that for very old kernels though, as this > driver did not exist back then. I chose v3.10 for the cut-over, as > this is when support for the Nuvoton W83677HG-I was finalized in the > nct6775 driver, at least according to git log. I don't know if this patch was already committed in lm-sensors repository. 1. https://bugzilla.opensuse.org/show_bug.cgi?id=1169316 2. https://build.opensuse.org/package/view_file/openSUSE:Factory:PowerPC/sensors/lm_sensors-3.6.0-sensors-detect-fix-driver-for-w83677hgi.patch Reproducible: Always
The commit in lm-sensors repository : https://github.com/lm-sensors/lm-sensors/commit/23c53b45
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c578a4e87a66dd39ebaf96aea13b06f4ceaca8b9 commit c578a4e87a66dd39ebaf96aea13b06f4ceaca8b9 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2022-09-07 13:04:01 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2022-09-07 14:30:06 +0000 sys-apps/lm-sensors: recommend new module for Nuvoton W83677HG-I in sensors-detect Backported patch from upstream Git master. Closes: https://bugs.gentoo.org/811327 Signed-off-by: Marek Szuba <marecki@gentoo.org> .../files/lm-sensors-3.6.0-w83627ehf-nct6775.patch | 46 +++++ sys-apps/lm-sensors/lm-sensors-3.6.0-r1.ebuild | 226 +++++++++++++++++++++ 2 files changed, 272 insertions(+)