[Bug 903520] New: sensors fancontrol service status spam after start: fancontrol: /usr/sbin/fancontrol: line 481: [: too many arguments
http://bugzilla.opensuse.org/show_bug.cgi?id=903520 Bug ID: 903520 Summary: sensors fancontrol service status spam after start: fancontrol: /usr/sbin/fancontrol: line 481: [: too many arguments Classification: openSUSE Product: openSUSE 13.1 Version: Final Hardware: x86-64 OS: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: zombah@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, I generated fancontrol config for my motherboard (asrock e350m1) with pwmconfig from sensors-3.3.4-3.1.2.x86_64 package on openSUSE 13.1, but after fancontrol service start, systemd status for fancontrol service spam messages like this: Nov 01 06:58:19 hamtaro.site fancontrol[2481]: /usr/sbin/fancontrol: line 481: [: too many arguments Nov 01 06:58:29 hamtaro.site fancontrol[2481]: /usr/sbin/fancontrol: line 481: [: too many arguments Nov 01 06:58:39 hamtaro.site fancontrol[2481]: /usr/sbin/fancontrol: line 481: [: too many arguments Here is content of /etc/fancontrol that pwmconfig created: # Configuration file generated by pwmconfig, changes will be lost INTERVAL=10 DEVPATH=hwmon2=devices/pci0000:00/0000:00:18.3 hwmon3=devices/platform/w83627ehf.656 DEVNAME=hwmon2=k10temp hwmon3=nct6775 FCTEMPS=hwmon3/device/pwm2=hwmon2/device/temp1_input FCFANS= hwmon3/device/pwm2= MINTEMP=hwmon3/device/pwm2=40 MAXTEMP=hwmon3/device/pwm2=65 MINSTART=hwmon3/device/pwm2=128 MINSTOP=hwmon3/device/pwm2=57 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=903520
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=903520
Jean Delvare
http://bugzilla.opensuse.org/show_bug.cgi?id=903520
--- Comment #2 from Jean Delvare
http://bugzilla.opensuse.org/show_bug.cgi?id=903520
--- Comment #3 from Mike Komarovsky
Did the problem happen immediately (fancontrol never worked) or only after rebooting?
Please stop the fancontrol service and run fancontrol manually as root with debugging enabled:
# DEBUG=1 fancontrol
Then report the output.
It happen right after fancontrol service start, here is output with DEBUG uncommented: Loading configuration from /etc/fancontrol ... Common settings: INTERVAL=10 Settings for hwmon3/device/pwm2: Depends on hwmon2/device/temp1_input Controls MINTEMP=40 MAXTEMP=65 MINSTART=128 MINSTOP=57 MINPWM=0 MAXPWM=255 Enabling PWM on fans... Starting automatic fan control... pwmo=hwmon3/device/pwm2 tsens=hwmon2/device/temp1_input fan= mint=40000 maxt=65000 minsa=128 minso=57 minpwm=0 maxpwm=255 tval=46375 pwmpval=255 fanval=1 min_fanval= /usr/sbin/fancontrol: line 481: [: too many arguments new pwmval=107 pwmo=hwmon3/device/pwm2 tsens=hwmon2/device/temp1_input fan= mint=40000 maxt=65000 minsa=128 minso=57 minpwm=0 maxpwm=255 tval=46375 pwmpval=107 fanval=1 min_fanval= /usr/sbin/fancontrol: line 481: [: too many arguments new pwmval=107 pwmo=hwmon3/device/pwm2 tsens=hwmon2/device/temp1_input fan= mint=40000 maxt=65000 minsa=128 minso=57 minpwm=0 maxpwm=255 tval=46500 pwmpval=107 fanval=1 min_fanval= /usr/sbin/fancontrol: line 481: [: too many arguments new pwmval=108 ^C -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=903520
--- Comment #4 from Mike Komarovsky
I would also be interested in the full output of the pwmconfig run which generated your configuration file. FCFANS is not set properly, maybe this is the reason for the fancontrol problem you hit.
FCFANS is optional value i can try to remove it. Strange but now then i removed /etc/fancontrol the output of pwmconfig look like this: # pwmconfig revision 6166 (2013-05-01) This program will search your sensors for pulse width modulation (pwm) controls, and test each one to see if it controls a fan on your motherboard. Note that many motherboards do not have pwm circuitry installed, even if your sensor chip supports pwm. We will attempt to briefly stop each fan using the pwm controls. The program will attempt to restore each fan to full speed after testing. However, it is ** very important ** that you physically verify that the fans have been to full speed after the program has completed. Found the following devices: hwmon0 is acpitz hwmon1 is radeon hwmon2/device is k10temp hwmon3/device is nct6775 Found the following PWM controls: hwmon3/device/pwm1 current value: 255 hwmon3/device/pwm2 current value: 108 hwmon3/device/pwm3 current value: 255 Giving the fans some time to reach full speed... Found the following fan sensors: hwmon3/device/fan1_input current speed: 0 ... skipping! hwmon3/device/fan2_input current speed: 0 ... skipping! hwmon3/device/fan3_input current speed: 0 ... skipping! hwmon3/device/fan4_input current speed: 0 ... skipping! There are no working fan sensors, all readings are 0. Make sure you have a 3-wire fan connected. You may also need to increase the fan divisors. See doc/fan-divisors for more information. Maybe this is the root of problem and i have dead fan sensor? I will play with it more to catch why it ran fine before and wont now. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=903520
Mike Komarovsky
http://bugzilla.opensuse.org/show_bug.cgi?id=903520
Jean Delvare
participants (1)
-
bugzilla_noreply@novell.com