Fancontrol for OpenWrt 21 RC2 x64 [Asus P8H61-M]

Cannot get PWM fan control to work....
I'm trying to run a fan control on Asus P8H61-M that support PWM fan control (it was working fine with Ubuntu)
From Luci software is impossible to install any fan control, so I recompiled a new image [v21/RC2] with fan control in it (generic PWM fan support), with the same result.
Cannot find any PWM input in "/sys/devices/", also I test it with lm-sensors.

What to do next to get fan control working?
Currently running r17031-e6b3e77e6e

provide the sensors-detect results and ensure adequate code to support underlying subsystems... ( via kmods, kconfig or possible lm-sensor bumping )

i2c would be a good place to start...

alternatively investigate bios only options...

This is what sensors-detect founds:

Driver `coretemp':
  * Chip `Intel digital thermal sensor' (confidence: 9)

Driver `nct6775':
  * ISA bus, address 0x290
    Chip `Nuvoton NCT5532D/NCT6779D Super IO Sensors' (confidence: 9)

Way to use i2c this is a communication protocol, from Ubuntu I was able to directly write a PWM into the fan socket. You mean I need to write an i2c request to a chip that generates a PWM signal for the fan?
(this motherboard supports Asus "Fan Xpert")

opkg list-installed | grep '^kmod' | grep -E '(i2c|pwm|fan)'
opkg list-installed | grep 'hwmon'
opkg install kmod-ikconfig; zcat /proc/config.gz | grep -E '(I2C|NCT6775)'
Unknown package 'kmod-ikconfig'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 5.4.124-1-45eb9afad7575fdbf91a32a2c177dd87) for kmod-ikconfig
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ikconfig found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-ikconfig.
zcat: /proc/config.gz: No such file or directory

Thanks for the hint, I'l recompile an image with those kmods
(since cannot install anything for fan libs from opkg, all have wrong architectures )

well... it seems that KCONFIG option is referenced in hwmon... and it's not I2C...

so you probably only need to install some hwmon packages... at least to be able to read from the IC...

1 Like

Thanks a lot!!!
Recompiled with missing kmod-ikconfig + NCT6775 driver
make the appearance of a new hw section: /sys/class/hwmon/hwmon2
In this section cannot change directly the PWM value, currently I'm using some "auto-control pwm"

Example

 echo "50" > /sys/class/hwmon/hwmon2/pwm1_auto_point1_pwm

Here is good documentation of the NCT6775
https://www.kernel.org/doc/Documentation/hwmon/nct6775

Thanks again for the help!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.