I am running into a problem with fancontrol that I cannot fix. I tried things I found on internet but none of them seem to work. Hopefully you can help me.
Problem
Fancontrol does not start at bootup. When executing fancontrol in the terminal I got the following error.
Loading configuration from /etc/fancontrol ...
Common settings:
INTERVAL=1
Settings for hwmon2/pwm1:
Depends on hwmon1/temp5_input
Controls hwmon2/fan1_input
MINTEMP=40
MAXTEMP=80
MINSTART=77
MINSTOP=24
MINPWM=0
MAXPWM=255
AVERAGE=20
Settings for hwmon2/pwm2:
Depends on hwmon1/temp5_input
Controls hwmon2/fan2_input
MINTEMP=40
MAXTEMP=80
MINSTART=100
MINSTOP=92
MINPWM=0
MAXPWM=255
AVERAGE=20
Settings for hwmon2/pwm3:
Depends on hwmon1/temp5_input
Controls hwmon2/fan3_input
MINTEMP=40
MAXTEMP=80
MINSTART=64
MINSTOP=64
MINPWM=64
MAXPWM=255
AVERAGE=20
Error: file hwmon2/pwm1 doesn't exist
Error: file hwmon2/pwm2 doesn't exist
Error: file hwmon2/pwm3 doesn't exist
At least one referenced file is missing. Either some required kernel
modules haven't been loaded, or your configuration file is outdated.
In the latter case, you should run pwmconfig again.
This is what my settingsfile looks like.
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=1
DEVPATH=hwmon1=devices/platform/coretemp.0 hwmon2=devices/platform/it87.2608
DEVNAME=hwmon1=coretemp hwmon2=it8728
FCTEMPS=hwmon2/pwm1=hwmon1/temp5_input hwmon2/pwm2=hwmon1/temp5_input hwmon2/pwm3=hwmon1/temp5_input
FCFANS=hwmon2/pwm1=hwmon2/fan1_input hwmon2/pwm2=hwmon2/fan2_input hwmon2/pwm3=hwmon2/fan3_input
MINTEMP=hwmon2/pwm1=40 hwmon2/pwm2=40 hwmon2/pwm3=40
MAXTEMP=hwmon2/pwm1=80 hwmon2/pwm2=80 hwmon2/pwm3=80
MINSTART=hwmon2/pwm1=77 hwmon2/pwm2=100 hwmon2/pwm3=64
MINSTOP=hwmon2/pwm1=24 hwmon2/pwm2=92 hwmon2/pwm3=64
MINPWM=hwmon2/pwm1=0 hwmon2/pwm2=0 hwmon2/pwm3=64
MAXPWM=hwmon2/pwm1=255 hwmon2/pwm2=255 hwmon2/pwm3=255
AVERAGE=hwmon2/pwm1=20 hwmon2/pwm2=20 hwmon2/pwm3=20
The really weird thing is, when I execute this command (sudo services fancontrol start), fancontrol starts working perfectly. When running fancontrol in the terminal I get the exact same errors as before although this time fancontrol works perfectly. Running pwmconfig does not help as it will create a similar settings file as mine, creating the same errors.
The fans are originally automatically controlled by the motherboard but that control makes a mess of things. This is why I need fancontrol.
I am running kubuntu 22.04
Any help would be greatly appreciated!
acpi_enforce_resources=lax
in your grub config? I wonder if it's a timing issue at startup. Maybe the module isn't fully loaded when the fancontrol service starts. – rtaft Nov 13 '23 at 20:16echo 255 | sudo tee /sys/devices/platform/it87.2608/hwmon2/pwm1
should turn on a fan. You have the interval set to 1 second though, so any change you make will be overwritten immediately. Should be a number 0-255 (0 is off, 255 full speed). Be careful not to leave fans off and watch temps.watch sensors
– rtaft Nov 13 '23 at 21:20I noticed another weird thing. I have another computer which has fancontrol issues. With that computer I switched graphic cards. I did the same with the computer which is causing problems. Could it be that changing the amount of sensors messes a lot more things up?
– Frankyie Nov 14 '23 at 18:41outdated = 0
would do it...but this is a hack to get around whatever the issue really is and would be overwritten the next time fancontrol gets updated. – rtaft Nov 14 '23 at 19:21