Fancontrol doesn't work after freshly installed EndeavourOS

I just freshly installed Endeavouros on empty ssd and noticed that the fan on my laptop seem doesn’t spin at all. After googling for some hours i found this post that have similar problem with me. Unfortunately the solution that provided from Arch Wiki doesn’t fix my problem at all. For now i can set my fan speed manual using following command as root. # echo 255 > /sys/devices/platform/asus-nb-wmi/hwmon/hwmon[[:print:]]*/pwm1 # Full fan speed (Value: 255)

The device that i’m using right now is Asus X453SA with stock kernel. Here some output that maybe helpful.

$ sudo fancontrol 
Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for hwmon3/pwm1:
  Depends on /sys/devices/platform/asus-nb-wmi/hwmon/[[:print:]]*/temp1_input
  Controls hwmon3/fan1_input
  MINTEMP=20
  MAXTEMP=60
  MINSTART=150
  MINSTOP=0
  MINPWM=0
  MAXPWM=150
  AVERAGE=1

Enabling PWM on fans...
Starting automatic fan control...
/usr/bin/fancontrol: line 580: read: read error: 0: No such device or address
Error reading Fan value from /sys/class/hwmon/hwmon3/fan1_input
Aborting, restoring fans...
Verify fans have returned to full speed
$ sudo systemctl status fancontrol.service 
× fancontrol.service - Start fan control, if configured
     Loaded: loaded (/usr/lib/systemd/system/fancontrol.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Sat 2024-07-13 00:24:48 WIB; 51min ago
   Duration: 998ms
 Invocation: 2b6ff2e4c4d04bbbbeb6a66d1c10dab4
   Main PID: 24088 (code=exited, status=1/FAILURE)

Jul 13 00:24:47 Arch-btw fancontrol[24088]:   MAXPWM=150
Jul 13 00:24:47 Arch-btw fancontrol[24088]:   AVERAGE=1
Jul 13 00:24:48 Arch-btw fancontrol[24088]: Enabling PWM on fans...
Jul 13 00:24:48 Arch-btw fancontrol[24088]: Starting automatic fan control...
Jul 13 00:24:48 Arch-btw fancontrol[24088]: /usr/sbin/fancontrol: line 580: read: read error: 0: No such device or address
Jul 13 00:24:48 Arch-btw fancontrol[24088]: Error reading Fan value from /sys/class/hwmon/hwmon3/fan1_input
Jul 13 00:24:48 Arch-btw fancontrol[24088]: Aborting, restoring fans...
Jul 13 00:24:48 Arch-btw fancontrol[24088]: Verify fans have returned to full speed
Jul 13 00:24:48 Arch-btw systemd[1]: fancontrol.service: Main process exited, code=exited, status=1/FAILURE
Jul 13 00:24:48 Arch-btw systemd[1]: fancontrol.service: Failed with result 'exit-code'.
$ sudo pwmconfig 
# pwmconfig version 3.6.0+git
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

Found the following devices:
   hwmon0 is AC0
   hwmon1 is acpitz
   hwmon2 is BAT0
   hwmon3 is asus
   hwmon4/device is unknown (no name attribute)
   hwmon5 is soc_dts0
   hwmon6 is soc_dts1

Found the following PWM controls:
   hwmon3/pwm1           current value: 255

Giving the fans some time to reach full speed...
Found the following fan sensors:
cat: hwmon3/fan1_input: No such device or address
   hwmon3/fan1_input     current speed:  RPM

Warning!!! This program will stop your fans, one at a time,
for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!!
If you do not want to do this hit control-C now!!!
Hit return to continue: 

Testing pwm control hwmon3/pwm1 ...
cat: hwmon3/fan1_input: No such device or address
  hwmon3/fan1_input ... speed was  now 
/usr/bin/pwmconfig: line 455: let: threshold=3*/4: syntax error: operand expected (error token is "/4")
    It appears that fan hwmon3/fan1_input
    is controlled by pwm hwmon3/pwm1
cat: hwmon3/fan1_input: No such device or address
    Fan hwmon3/fan1_input has not returned to speed, please investigate!

Testing is complete.
$ ls /sys/class/hwmon/hwmon3
device  fan1_input  fan1_label  name  power  pwm1  pwm1_enable  subsystem  temp1_input  uevent

also my fancontrol config file:

# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon3=devices/platform/asus-nb-wmi
DEVNAME=hwmon3=asus
FCTEMPS=hwmon3/pwm1=/sys/devices/platform/asus-nb-wmi/hwmon/[[:print:]]*/temp1_input
FCFANS=hwmon3/pwm1=hwmon3/fan1_input
MINTEMP=hwmon3/pwm1=20
MAXTEMP=hwmon3/pwm1=60
MINSTART=hwmon3/pwm1=150
MINSTOP=hwmon3/pwm1=0
MAXPWM=hwmon3/pwm1=150

Hi everyone,
I have the same issue on my ASUS k55vm with latest EndeavourOS and default kernel.

$ sudo fancontrol
Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=5

Settings for hwmon2/pwm1:
  Depends on hwmon1/temp1_input
  Controls hwmon2/fan1_input
  MINTEMP=45
  MAXTEMP=75
  MINSTART=50
  MINSTOP=0
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Enabling PWM on fans...
Starting automatic fan control...
/usr/bin/fancontrol: line 580: read: read error: 0: No such device or address
Error reading Fan value from /sys/class/hwmon/hwmon2/fan1_input
Aborting, restoring fans...
Verify fans have returned to full speed
$ sudo systemctl status fancontrol.service
× fancontrol.service - Start fan control, if configured
     Loaded: loaded (/usr/lib/systemd/system/fancontrol.service; disabled; preset: disabled)
    Drop-In: /etc/systemd/system/fancontrol.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Tue 2024-07-23 17:20:01 CEST; 2s ago
   Duration: 399ms
 Invocation: 0d765bc02a7c4ddf99b55394a75a7a02
    Process: 7481 ExecStart=/usr/sbin/fancontrol (code=exited, status=1/FAILURE)
   Main PID: 7481 (code=exited, status=1/FAILURE)

lug 23 17:20:01 atoml-k55vm systemd[1]: fancontrol.service: Scheduled restart job, restart co>
lug 23 17:20:01 atoml-k55vm systemd[1]: fancontrol.service: Start request repeated too quickl>
lug 23 17:20:01 atoml-k55vm systemd[1]: fancontrol.service: Failed with result 'exit-code'.
lug 23 17:20:01 atoml-k55vm systemd[1]: Failed to start Start fan control, if configured.
$ sudo pwmconfig
# pwmconfig version 3.6.0+git
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

Found the following devices:
   hwmon0 is AC0
   hwmon1 is acpitz
   hwmon2 is asus
   hwmon3 is coretemp

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

Giving the fans some time to reach full speed...
Found the following fan sensors:
cat: hwmon2/fan1_input: No such device or address
   hwmon2/fan1_input     current speed:  RPM

Warning!!! This program will stop your fans, one at a time,
for approximately 5 seconds each!!!
This may cause your processor temperature to rise!!!
If you do not want to do this hit control-C now!!!
Hit return to continue:

Testing pwm control hwmon2/pwm1 ...
cat: hwmon2/fan1_input: No such device or address
  hwmon2/fan1_input ... speed was  now
/usr/bin/pwmconfig: line 455: let: threshold=3*/4: syntax error: operand expected (error token is "/4")
    It appears that fan hwmon2/fan1_input
    is controlled by pwm hwmon2/pwm1
cat: hwmon2/fan1_input: No such device or address
    Fan hwmon2/fan1_input has not returned to speed, please investigate!

Testing is complete.

What does sudo find /sys/ -name 'fan1*' return? I don’t have any fan files under /sys/class/hwmon; mine are under: /sys/devices/platform/nct6775.656/hwmon (also an ASUS motherboard)

Hello, this is the output that i got:

$ sudo find /sys/ -name 'fan1*'
/sys/devices/platform/asus-nb-wmi/hwmon/hwmon2/fan1_label
/sys/devices/platform/asus-nb-wmi/hwmon/hwmon2/fan1_input

When attempting to read fan1_input, I received this error:

$ sudo cat /sys/devices/platform/asus-nb-wmi/hwmon/hwmon2/fan1_input
cat: /sys/devices/platform/asus-nb-wmi/hwmon/hwmon2/fan1_input: No such device or address

However, reading fan1_label provided the following output:

$ sudo cat /sys/devices/platform/asus-nb-wmi/hwmon/hwmon2/fan1_label
cpu_fan

Hey, made a Simple script for controlling the fan speed manually for ASUS Laptops as workaround for this issue. Feel free to use it, AsusFanControl-CLI

1 Like