You are not logged in.
Running into the hwmon ids changing every boot, trying to set fancontrol using absolute paths. /etc/fancontrol looks like this:
INTERVAL=10
#DEVPATH=hwmon4=devices/pci0000:00/0000:00:01.1/0000:01:00.0 hwmon5=devices/platform/nct6775.656
#DEVNAME=hwmon4=amdgpu hwmon5=nct6798
FCTEMPS=hwmon4/pwm1=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/temp1_input hwmon5/pwm2=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/temp7_input hwmon5/pwm3=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/temp7_input
FCFANS=hwmon4/pwm1=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/fan1_input hwmon5/pwm2=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/fan2_input hwmon5/pwm3=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/fan3_input
MINTEMP=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=40 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=40 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=38
MAXTEMP=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=60 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=60 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=60
MINSTART=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=255 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=255 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=255
MINSTOP=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=51 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=74 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=74
MINPWM=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=51 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=74 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=74
MAXPWM=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=255 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=255 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=255
AVERAGE=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=1 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=1 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=1 But when I try to start fancontrol service I get:
Oct 19 12:09:41 gekko fancontrol[6445]: Loading configuration from /etc/fancontrol ...
Oct 19 12:09:41 gekko fancontrol[6445]: Common settings:
Oct 19 12:09:41 gekko fancontrol[6445]: INTERVAL=10
Oct 19 12:09:42 gekko fancontrol[6445]: /usr/sbin/fancontrol: line 115: [: : integer expression expected
Oct 19 12:09:42 gekko fancontrol[6445]: /usr/sbin/fancontrol: line 127: [: : integer expression expected
Oct 19 12:09:42 gekko fancontrol[6445]: /usr/sbin/fancontrol: line 133: [: : integer expression expected
Oct 19 12:09:42 gekko fancontrol[6445]: Settings for hwmon4/pwm1:
Oct 19 12:09:42 gekko fancontrol[6445]: Depends on /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/temp1_input
Oct 19 12:09:42 gekko fancontrol[6445]: Controls /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/fan1_input
Oct 19 12:09:42 gekko fancontrol[6445]: MINTEMP=
Oct 19 12:09:42 gekko fancontrol[6445]: MAXTEMP=
Oct 19 12:09:42 gekko fancontrol[6445]: MINSTART=
Oct 19 12:09:42 gekko fancontrol[6445]: MINSTOP=
Oct 19 12:09:42 gekko fancontrol[6445]: MINPWM=0
Oct 19 12:09:42 gekko fancontrol[6445]: MAXPWM=255
Oct 19 12:09:42 gekko fancontrol[6445]: AVERAGE=1
Oct 19 12:09:42 gekko fancontrol[6445]: /usr/sbin/fancontrol: line 115: [: : integer expression expected
Oct 19 12:09:42 gekko fancontrol[6445]: /usr/sbin/fancontrol: line 127: [: : integer expression expected
Oct 19 12:09:42 gekko fancontrol[6445]: /usr/sbin/fancontrol: line 133: [: : integer expression expected
Oct 19 12:09:42 gekko fancontrol[6445]: Settings for hwmon5/pwm2:
Oct 19 12:09:42 gekko fancontrol[6445]: Depends on /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/temp7_input
Oct 19 12:09:42 gekko fancontrol[6445]: Controls /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/fan2_input
Oct 19 12:09:42 gekko fancontrol[6445]: MINTEMP=
Oct 19 12:09:42 gekko fancontrol[6445]: MAXTEMP=
Oct 19 12:09:42 gekko fancontrol[6445]: MINSTART=
Oct 19 12:09:42 gekko fancontrol[6445]: MINSTOP=
Oct 19 12:09:42 gekko fancontrol[6445]: MINPWM=0
Oct 19 12:09:42 gekko fancontrol[6445]: MAXPWM=255
Oct 19 12:09:42 gekko fancontrol[6445]: AVERAGE=1
Oct 19 12:09:42 gekko fancontrol[6445]: /usr/sbin/fancontrol: line 115: [: : integer expression expected
Oct 19 12:09:42 gekko fancontrol[6445]: /usr/sbin/fancontrol: line 127: [: : integer expression expected
Oct 19 12:09:42 gekko fancontrol[6445]: /usr/sbin/fancontrol: line 133: [: : integer expression expected
Oct 19 12:09:42 gekko fancontrol[6445]: Settings for hwmon5/pwm3:
Oct 19 12:09:42 gekko fancontrol[6445]: Depends on /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/temp7_input
Oct 19 12:09:42 gekko fancontrol[6445]: Controls /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/fan3_input
Oct 19 12:09:42 gekko fancontrol[6445]: MINTEMP=
Oct 19 12:09:42 gekko fancontrol[6445]: MAXTEMP=
Oct 19 12:09:42 gekko fancontrol[6445]: MINSTART=
Oct 19 12:09:42 gekko fancontrol[6445]: MINSTOP=
Oct 19 12:09:42 gekko fancontrol[6445]: MINPWM=0
Oct 19 12:09:42 gekko fancontrol[6445]: MAXPWM=255
Oct 19 12:09:42 gekko fancontrol[6445]: AVERAGE=1
Oct 19 12:09:42 gekko fancontrol[6445]: Configuration is too old, please run pwmconfig again
Oct 19 12:09:42 gekko systemd[1]: fancontrol.service: Main process exited, code=exited, status=1/FAILURE
Oct 19 12:09:42 gekko systemd[1]: fancontrol.service: Failed with result 'exit-code'.Last edited by madman6000 (2020-10-19 17:13:35)
Offline
Figured it out, https://wiki.archlinux.org/index.php/fa … lute_paths is confusing as it leaves hwmon2/pwm2 in the what the config file should look like AFTER modification section, whereas that should all be replaced by the absolute path as well. Changing my config file to look like this works:
INTERVAL=10
FCTEMPS=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/temp1_input /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/temp7_input /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/temp7_input
FCFANS=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/fan1_input /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/fan2_input /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=/sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/fan3_input
MINTEMP=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=40 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=40 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=38
MAXTEMP=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=60 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=60 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=60
MINSTART=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=255 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=255 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=255
MINSTOP=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=51 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=74 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=74
MINPWM=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=51 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=74 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=74
MAXPWM=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=255 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=255 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=255
AVERAGE=/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1=1 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm2=1 /sys/devices/platform/nct6775.656/hwmon/hwmon[[:print:]]*/pwm3=1 Offline
I spoke too soon, when I reboot, on startup I get this error now:
Oct 19 13:06:28 gekko fancontrol[1640]: Enabling PWM on fans...
Oct 19 13:06:28 gekko fancontrol[1640]: /usr/sbin/fancontrol: line 497: /sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1: No such file or directory
Oct 19 13:06:28 gekko fancontrol[1640]: Error enabling PWM on ///sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/hwmon/hwmon[[:print:]]*/pwm1But after the system is booted if I start fancontrol service manually it runs fine.
Offline
I fixed the error by adding amdgpu to /etc/modules-load.d/modules.conf, (even though it was not in /etc/conf.d/lm_sensors), which makes the pwm1 device available.
Offline