HC4 fancontrol not working

Hello,

Required Information

G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=0
G_DIETPI_VERSION_RC=2
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’

  • Distro version : Bookworm
  • Kernel version : 6.1.63
  • Architecture : arm64
  • SBC model : Odroid HC4
  • Power supply used : 15V 4A
  • SD card used : Sandisk 16Go

Impossible to turn on the fan. I have install sensors and fancontrol.

When running pwmconfig :

Found the following devices:
   hwmon0 is cpu_thermal
   hwmon1 is ddr_thermal
   hwmon2 is pwmfan

Found the following PWM controls:
   hwmon2/pwm1           current value: 0

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon2/fan1_input     current speed: 0 ... skipping!

There are no working fan sensors, all readings are 0.
Make sure you have a 3-wire fan connected.
You may also need to increase the fan divisors.

I have tried a lot of things but it doesn’t work. I have created and write in my /etc/fancontrol

INTERVAL=10
DEVPATH=hwmon0=devices/virtual/thermal/thermal_zone0 hwmon2=devices/platform/pwm-fan
DEVNAME=hwmon0=cpu_thermal hwmon2=pwmfan
FCTEMPS= hwmon2/pwm1=hwmon0/temp1_input
FCFANS= hwmon2/pwm1=hwmon2/fan1_input
MINTEMP= hwmon2/pwm1=35
MAXTEMP= hwmon2/pwm1=70
MINSTART= hwmon2/pwm1=10
MINSTOP= hwmon2/pwm1=10
MINPWM= hwmon2/pwm1=10

According to https://docs.linuxfactory.or.kr/guides/sensors.html?highlight=fancontrol#fanspeed-control-using-fancontrol

With or without the line FCFANS (I’ve that since a kernel it’s not usefull anymore)

Any help?
Thanks :slight_smile:

This works for me.

Sorry for the image, I’m on the phone

I’ve tried your code, but don’t work… When I type fancontrol this is the result :

Common settings:
  INTERVAL=5
: integer expression expected5: [: 35
: integer expression expected7: [: 10
: integer expression expected3: [: 10
: integer expression expected9: [: 10

Settings for hwmon2/pwm1:
  Depends on hwmon0/temp1_input
  Controls
  MINTEMP=35
  MAXTEMP=70
  MINSTART=10
  MINSTOP=10
  MINPWM=10
  MAXPWM=255
  AVERAGE=1

Device path of hwmon2 has changed
Device name of hwmon2 has changed

Looks like I have a problem with path and name. Already read this wiki :frowning:

Kernel issue maybe?