Hello, I tried Thomas DEBESSE's solution but it didn't work because one
of these drivers was built in the kernel : thermal_sys (as in linux-
image 4.2.XX for 15.10).
The device that use thermal_sys is called acpitz-virtual-0 and appears
on my laptop most of the time as hwmon0, but sometimes as hwmon2.
Instead of recompiling a kernel just for that I did the following :
First find out where are the hwmonX pointing at :
$ ls -l /sys/class/hwmon/
total 0
lrwxrwxrwx 1 root root 0 mars 11 06:02 hwmon0 ->
../../devices/virtual/hwmon/hwmon0
lrwxrwxrwx 1 root root 0 mars 11 06:02 hwmon1 ->
../../devices/platform/asus-nb-wmi/hwmon/hwmon1
lrwxrwxrwx 1 root root 0 mars 11 06:02 hwmon2 ->
../../devices/platform/coretemp.0/hwmon/hwmon2
Pick the device path that you need, asus-nb-wmi in my case and fill
/etc/fancontrol like that example :
INTERVAL=2
FCTEMPS=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon?/pwm1=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon?/temp1_input
FCFANS=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon?/pwm1=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon?/fan1_input
MINTEMP=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon?/pwm1=50
MAXTEMP=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon?/pwm1=70
MINSTART=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon?/pwm1=60
MINSTOP=/sys/devices/platform/asus-nb-wmi/hwmon/hwmon?/pwm1=0
Edit /usr/sbin/fancontrol and replace all "egrep" by "grep" in lines from
100 to 107 :
(I can't think of any case where egrep is needed there)
AFCFAN[$fcvcount]=`echo $FCFANS |sed -e 's/ /\n/g' |grep
"${AFCPWM[$fcvcount]}" |cut -d'=' -f2`
AFCMINTEMP[$fcvcount]=`echo $MINTEMP |sed -e 's/ /\n/g' |grep
"${AFCPWM[$fcvcount]}" |cut -d'=' -f2`
AFCMAXTEMP[$fcvcount]=`echo $MAXTEMP |sed -e 's/ /\n/g' |grep
"${AFCPWM[$fcvcount]}" |cut -d'=' -f2`
AFCMINSTART[$fcvcount]=`echo $MINSTART |sed -e 's/ /\n/g' |grep
"${AFCPWM[$fcvcount]}" |cut -d'=' -f2`
AFCMINSTOP[$fcvcount]=`echo $MINSTOP |sed -e 's/ /\n/g' |grep
"${AFCPWM[$fcvcount]}" |cut -d'=' -f2`
AFCMINPWM[$fcvcount]=`echo $MINPWM |sed -e 's/ /\n/g' |grep
"${AFCPWM[$fcvcount]}" |cut -d'=' -f2`
[ -z "${AFCMINPWM[$fcvcount]}" ] && AFCMINPWM[$fcvcount]=0
AFCMAXPWM[$fcvcount]=`echo $MAXPWM |sed -e 's/ /\n/g' |grep
"${AFCPWM[$fcvcount]}" |cut -d'=' -f2`
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/576602
Title:
Fancontrol relies on the module load order
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lm-sensors-3/+bug/576602/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs