You are not logged in.

#1 2021-05-23 11:19:09

DeletedUser2111041
Banned
Registered: 2021-05-23
Posts: 2

[Solved] Fancontrol not working

Hi, I don't know if this is the right place to post this, but I'm posting it here.
I have a problem with the service fancontrol. It doesn't work. When I type fancontrol in the terminal, the output is this:

Loading configuration from /etc/fancontrol ...

Common settings:
 INTERVAL=10

Settings for sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm1:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan1_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=28
  MINSTOP=26
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm2:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan2_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=28
  MINSTOP=26
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm3:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan3_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=28
  MINSTOP=26
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm4:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan4_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=0
  MINSTOP=0
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm5:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan5_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=2
  MINSTOP=0
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm6:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan6_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=2
  MINSTOP=0
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

/usr/bin/fancontrol: Invalid path to sensors

I think I know why it says "Invalid path to sensors". It's because it wants the path of the fan..._input and I think also the pwm... to be /sys/devices instead of sys/devices. But when I do that I get this output:

Loading configuration from /etc/fancontrol ...

Common settings:
  INTERVAL=10

Settings for /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm1:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan1_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=28
  MINSTOP=26
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm2:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan2_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=28
  MINSTOP=26
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm3:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan3_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=28
  MINSTOP=26
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm4:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan4_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=0
  MINSTOP=0
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm5:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan5_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=2
  MINSTOP=0
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Settings for /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm6:
  Depends on /sys/devices/platform/coretemp.0/hwmon/hwmon[[:print:]]*/temp1_input
  Controls /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan6_input
  MINTEMP=45
  MAXTEMP=65
  MINSTART=2
  MINSTOP=0
  MINPWM=0
  MAXPWM=255
  AVERAGE=1

Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm1 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm2 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm3 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm4 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm5 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/pwm6 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan1_input doesn't exist or isn't readable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan2_input doesn't exist or isn't readable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan3_input doesn't exist or isn't readable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan4_input doesn't exist or isn't readable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan5_input doesn't exist or isn't readable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.0004/hwmon/hwmon[[:print:]]*/fan6_input doesn't exist or isn't readable

At least one referenced file is missing or doesn't have
correct privileges. Either some required kernel
modules haven't been loaded, or your configuration file is outdated.
In the latter case, you should run pwmconfig again.

What should I do?

Edit:
I found out the problem. The

0003:1B1C:0C10.0004

also changes sometimes. Just like hwmon. So the solution is pretty simple. I just changed

0003:1B1C:0C10.004

with

0003:1B1C:0C10.[[:print:]]*

. Something better could probably be done. But this works for me (for now). The only thing is that it says now is:

Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm1 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm2 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm3 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm4 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm5 doesn't exist or isn't writable
Error: file /sys/devices/pci0000:00/0000:00:14.0/usb1/1-12/1-12:1.0/0003:1B1C:0C10.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm6 doesn't exist or isn't writable

That is AFAIK because of insufficient permissions. What worked for me was

 (sudo) chown (name) /sys/class/hwmon/hwmon3/pwm(number)

. You, unfortunately have to do it with all of your pwm. I am looking for a better solution for this, but I haven't found anything yet.

Last edited by DeletedUser2111041 (2021-06-04 10:38:47)

Offline

#2 2021-05-23 14:42:25

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,694

Re: [Solved] Fancontrol not working

What is the output of sensors    ?
Not all fans can be controlled through lm_sensors.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2021-05-27 10:13:26

DeletedUser2111041
Banned
Registered: 2021-05-23
Posts: 2

Re: [Solved] Fancontrol not working

The output is:

amdgpu-pci-0100
Adapter: PCI adapter
vddgfx:      1000.00 mV 
fan1:        2309 RPM  (min =    0 RPM, max = 3200 RPM)
edge:         +49.0°C  (crit = +94.0°C, hyst = -273.1°C)
power1:       21.10 W  (cap = 145.00 W)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +31.0°C  (high = +82.0°C, crit = +100.0°C)
Core 0:        +29.0°C  (high = +82.0°C, crit = +100.0°C)
Core 1:        +30.0°C  (high = +82.0°C, crit = +100.0°C)
Core 2:        +30.0°C  (high = +82.0°C, crit = +100.0°C)
Core 3:        +28.0°C  (high = +82.0°C, crit = +100.0°C)
Core 4:        +31.0°C  (high = +82.0°C, crit = +100.0°C)
Core 5:        +27.0°C  (high = +82.0°C, crit = +100.0°C)

nvme-pci-0300
Adapter: PCI adapter
Composite:    +29.9°C  (low  = -273.1°C, high = +69.8°C)
                       (crit = +79.8°C)
Sensor 1:     +30.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +29.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 5:     +37.9°C  (low  = -273.1°C, high = +65261.8°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +27.8°C  (crit = +119.0°C)

corsaircpro-hid-3-4
Adapter: HID adapter
in0:          12.09 V  
in1:           5.00 V  
in2:           3.34 V  
fan1 4pin:      0 RPM
fan2 4pin:      0 RPM
fan3 4pin:      0 RPM
fan4 4pin:      0 RPM
fan5 4pin:      0 RPM
fan6 4pin:      0 RPM

nvme-pci-0600
Adapter: PCI adapter
Composite:    +32.9°C  (low  = -273.1°C, high = +69.8°C)
                       (crit = +79.8°C)

Offline

Board footer

Powered by FluxBB