FS#16405 - [lm_sensors] fancontrol daemon fails to start after upgrade
Attached to Project:
Arch Linux
Opened by partha chowdhury (partha_chowdhury) - Wednesday, 30 September 2009, 10:00 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 13 October 2009, 23:28 GMT
Opened by partha chowdhury (partha_chowdhury) - Wednesday, 30 September 2009, 10:00 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 13 October 2009, 23:28 GMT
|
Details
Description:fancontrol daemon fails to start after
lm_sensors package upgrade. though ps -A|grep -i fancontrol
shows two fancontrol processes.Fancontrol still works as
expected but trying to start, stop or restarting fancontrol
daemon results in a FAIL status.
Additional info: * package version(s) 1.lm_sensors 3.1.1-2 2.kernel: uname -a Linux myhost 2.6.30-ARCH #1 SMP PREEMPT Wed Sep 9 12:37:32 UTC 2009 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ AuthenticAMD GNU/Linux 3.pacman -Q kernel26 kernel26 2.6.30.6-1 * config and/or log files etc. here is contents of /etc/fancontrol: # Configuration file generated by pwmconfig, changes will be lost INTERVAL=10 FCTEMPS=hwmon2/device/pwm1=hwmon2/device/temp1_input FCFANS= hwmon2/device/pwm1=hwmon2/device/fan1_input MINTEMP=hwmon2/device/pwm1=20 MAXTEMP=hwmon2/device/pwm1=60 MINSTART=hwmon2/device/pwm1=150 MINSTOP=hwmon2/device/pwm1=0 Steps to reproduce: 1.upgrade lm_sensors package. 2.reboot 3.during booting fancontrol daemon shows FAIL status in red. 4.after loging in, ps -A|grep -i fancontrol shows two fancontrol processes and fan control works as expected. 5. during shutdown again fancontrol daemon shows FAIL status. I am also attaching the output of lspci -v and lsmod. |
This task depends upon
lspci.log
In /etc/rc.d/fancontrol
change:
if [ -z "$PID" -o $? -gt 0 ]; then
to:
if [ ! -z "$PID" -o $? -gt 0 ]; then
After this edit, try starting/stoping/restarting the daemon. I don't have the hardware to test this (can't control fan speed).
Also one thing i noticed, with the old fancontrol script , ps -A|grep fancontrol shows only one running process. but now it shows two running fancontrol processes with consecutive pids. Hope this helps.
Attached is the modified facontrol script.