Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture i686
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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

Closed by  Andrea Scarpino (BaSh)
Tuesday, 13 October 2009, 23:28 GMT
Reason for closing:  Upstream
Comment by Eric Belanger (Snowman) - Wednesday, 30 September 2009, 20:37 GMT
That update was supposed to fix a similar problem with the daemon script. I guess it still has some issues. Could you try the following and report the result?

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).
Comment by partha chowdhury (partha_chowdhury) - Thursday, 01 October 2009, 05:02 GMT
After modifying the script, now /etc/rc.d/fancontrol start shows a DONE status but /etc/rc.d/fancontrol stop or /etc/rc.d/fancontrol restart shows a FAIL status.

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.
Comment by Eric Belanger (Snowman) - Thursday, 01 October 2009, 06:05 GMT
I guess you ran /etc/rc.d/fancontrol start without stopping the daemon before. Kill the older process (lower pid number) and try /etc/rc.d/fancontrol restart
Comment by partha chowdhury (partha_chowdhury) - Thursday, 01 October 2009, 13:07 GMT
i did exactly what you said, i did killall -TERM fancontrol as root. now it starts normally but it cannot be stopped. So i rebooted and after logging in started the daemon. it started successfully .Then i tried to stop it. But it showed FAIL status.And now ps -A|grep fancontrol again shows two processess with consecutive pids.
Comment by partha chowdhury (partha_chowdhury) - Saturday, 03 October 2009, 14:35 GMT
Today i compared the old and new fancontrol daemon script and found that the problem lies in the stop argument of the new fancontrol script. Earlier, it used to check for the file /var/run/fancontrol.pid and kill it. But now it checks by 'pidof -o %PPID /usr/sbin/fancontrol' which returns nothing. Hence the stop function fails. After i modified the new script to behave like earlier, the stop function works.

Attached is the modified facontrol script.
Comment by partha chowdhury (partha_chowdhury) - Monday, 12 October 2009, 11:17 GMT
Today i upgraded to kernel 2.6.31 and now i cannot use fancontrol because pwmconfig reports "/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed". After much hair-pulling and googling, i found out this "http://bugzilla.kernel.org/show_bug.cgi?id=13967" and now it seems software-controlling fan speed is impossible on my board unless i downgrade kernel.Now i have to control fan speed through bios only.

Loading...