Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 380438 Details for
Bug 516698
sys-apps/lm_sensors - /usr/sbin/pwmconfig: line 926: [: -eq: unary operator expected
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Output of pwmconfig with -x set
pwmconfig.out (text/plain), 28.19 KB, created by
Dimitrios Semitsoglou-Tsiapos
on 2014-07-08 14:29:17 UTC
(
hide
)
Description:
Output of pwmconfig with -x set
Filename:
MIME Type:
Creator:
Dimitrios Semitsoglou-Tsiapos
Created:
2014-07-08 14:29:17 UTC
Size:
28.19 KB
patch
obsolete
>Script started on Tue Jul 8 17:10:49 2014 >++ echo '$Revision: 5857 $' >++ cut '-d ' -f2 >+ REVISION=5857 >++ echo '$Date: 2010-08-22 18:17:57 +0200 (dim. 22 août 2010) $' >++ cut '-d ' -f2 >+ REVDATE=2010-08-22 >+ PIDFILE=/var/run/fancontrol.pid >+ '[' -f /var/run/fancontrol.pid ']' >++ id -u >+ '[' 0 '!=' 0 ']' >+ echo '# pwmconfig revision 5857 (2010-08-22)' ># pwmconfig revision 5857 (2010-08-22) >+ echo 'This program will search your sensors for pulse width modulation (pwm)' >This program will search your sensors for pulse width modulation (pwm) >+ echo 'controls, and test each one to see if it controls a fan on' >controls, and test each one to see if it controls a fan on >+ echo 'your motherboard. Note that many motherboards do not have pwm' >your motherboard. Note that many motherboards do not have pwm >+ echo 'circuitry installed, even if your sensor chip supports pwm.' >circuitry installed, even if your sensor chip supports pwm. >+ echo > >+ echo 'We will attempt to briefly stop each fan using the pwm controls.' >We will attempt to briefly stop each fan using the pwm controls. >+ echo 'The program will attempt to restore each fan to full speed' >The program will attempt to restore each fan to full speed >+ echo 'after testing. However, it is ** very important ** that you' >after testing. However, it is ** very important ** that you >+ echo 'physically verify that the fans have been to full speed' >physically verify that the fans have been to full speed >+ echo 'after the program has completed.' >after the program has completed. >+ echo > >+ DELAY=5 >+ MAX=255 >+ '[' -d /sys/class/hwmon ']' >+ SYSFS=2 >+ DIR=/sys/class/hwmon >+ PREFIX='hwmon*' >+ cd /sys/class/hwmon >++ echo hwmon0 hwmon1 >+ DEVICES='hwmon0 hwmon1' >+ '[' 'hwmon*' = 'hwmon0 hwmon1' ']' >+ '[' 2 = 2 ']' >+ OLD_DEVICES='hwmon0 hwmon1' >+ DEVICES= >+ for device in '$OLD_DEVICES' >+ '[' '!' -r hwmon0/name ']' >+ device=hwmon0/device >+ DEVICES=' hwmon0/device' >+ for device in '$OLD_DEVICES' >+ '[' '!' -r hwmon1/name ']' >+ device=hwmon1/device >+ DEVICES=' hwmon0/device hwmon1/device' >+ for device in '$DEVICES' >+ MATCH='hwmon0/device/pwm[1-9]' >++ echo 'hwmon0/device/pwm[1-9]' >+ device_pwm='hwmon0/device/pwm[1-9]' >+ '[' 2 = 1 -a 'hwmon0/device/pwm[1-9]' = 'hwmon0/device/pwm[1-9]' ']' >+ '[' 'hwmon0/device/pwm[1-9]' '!=' 'hwmon0/device/pwm[1-9]' ']' >+ MATCH='hwmon0/device/fan[1-9]_input' >++ echo 'hwmon0/device/fan[1-9]_input' >+ device_fan='hwmon0/device/fan[1-9]_input' >+ '[' 'hwmon0/device/fan[1-9]_input' '!=' 'hwmon0/device/fan[1-9]_input' ']' >+ for device in '$DEVICES' >+ MATCH='hwmon1/device/pwm[1-9]' >++ echo hwmon1/device/pwm1 hwmon1/device/pwm2 hwmon1/device/pwm3 >+ device_pwm='hwmon1/device/pwm1 hwmon1/device/pwm2 hwmon1/device/pwm3' >+ '[' 2 = 1 -a 'hwmon1/device/pwm[1-9]' = 'hwmon1/device/pwm1 hwmon1/device/pwm2 hwmon1/device/pwm3' ']' >+ '[' 'hwmon1/device/pwm[1-9]' '!=' 'hwmon1/device/pwm1 hwmon1/device/pwm2 hwmon1/device/pwm3' ']' >+ PWM=' hwmon1/device/pwm1 hwmon1/device/pwm2 hwmon1/device/pwm3' >+ MATCH='hwmon1/device/fan[1-9]_input' >++ echo hwmon1/device/fan1_input hwmon1/device/fan2_input hwmon1/device/fan3_input >+ device_fan='hwmon1/device/fan1_input hwmon1/device/fan2_input hwmon1/device/fan3_input' >+ '[' 'hwmon1/device/fan[1-9]_input' '!=' 'hwmon1/device/fan1_input hwmon1/device/fan2_input hwmon1/device/fan3_input' ']' >+ FAN=' hwmon1/device/fan1_input hwmon1/device/fan2_input hwmon1/device/fan3_input' >+ '[' -z ' hwmon1/device/pwm1 hwmon1/device/pwm2 hwmon1/device/pwm3' ']' >+ '[' -z ' hwmon1/device/fan1_input hwmon1/device/fan2_input hwmon1/device/fan3_input' ']' >+ echo 'Found the following devices:' >Found the following devices: >+ print_devices ' ' >+ local name >+ for device in '$DEVICES' >++ cat hwmon0/device/name >+ name=coretemp >+ '[' -z coretemp ']' >+ echo ' hwmon0/device is coretemp' > hwmon0/device is coretemp >+ for device in '$DEVICES' >++ cat hwmon1/device/name >+ name=f71889fg >+ '[' -z f71889fg ']' >+ echo ' hwmon1/device is f71889fg' > hwmon1/device is f71889fg >+ echo > >+ echo 'Found the following PWM controls:' >Found the following PWM controls: >+ for i in '$PWM' >+ echo ' hwmon1/device/pwm1' > hwmon1/device/pwm1 >+ '[' -w hwmon1/device/pwm1 ']' >+ is_pwm_auto hwmon1/device/pwm1 >+ ENABLE=hwmon1/device/pwm1_enable >+ '[' -f hwmon1/device/pwm1_enable ']' >++ cat hwmon1/device/pwm1_enable >+ '[' 1 -gt 1 ']' >+ return 1 >+ pwmdisable hwmon1/device/pwm1 >+ ENABLE=hwmon1/device/pwm1_enable >+ '[' '!' -f hwmon1/device/pwm1_enable ']' >+ echo 0 >++ cat hwmon1/device/pwm1_enable >+ '[' 1 -eq 0 ']' >+ echo 1 >++ cat hwmon1/device/pwm1_enable >+ '[' 1 -ne 1 ']' >+ echo 255 >++ cat hwmon1/device/pwm1 >+ '[' 255 -ge 190 ']' >+ return 0 >+ '[' 0 -ne 0 ']' >+ '[' '' = '' ']' >+ GOODPWM=hwmon1/device/pwm1 >+ for i in '$PWM' >+ echo ' hwmon1/device/pwm2' > hwmon1/device/pwm2 >+ '[' -w hwmon1/device/pwm2 ']' >+ is_pwm_auto hwmon1/device/pwm2 >+ ENABLE=hwmon1/device/pwm2_enable >+ '[' -f hwmon1/device/pwm2_enable ']' >++ cat hwmon1/device/pwm2_enable >+ '[' 1 -gt 1 ']' >+ return 1 >+ pwmdisable hwmon1/device/pwm2 >+ ENABLE=hwmon1/device/pwm2_enable >+ '[' '!' -f hwmon1/device/pwm2_enable ']' >+ echo 0 >++ cat hwmon1/device/pwm2_enable >+ '[' 1 -eq 0 ']' >+ echo 1 >++ cat hwmon1/device/pwm2_enable >+ '[' 1 -ne 1 ']' >+ echo 255 >++ cat hwmon1/device/pwm2 >+ '[' 255 -ge 190 ']' >+ return 0 >+ '[' 0 -ne 0 ']' >+ '[' hwmon1/device/pwm1 = '' ']' >+ GOODPWM='hwmon1/device/pwm1 hwmon1/device/pwm2' >+ for i in '$PWM' >+ echo ' hwmon1/device/pwm3' > hwmon1/device/pwm3 >+ '[' -w hwmon1/device/pwm3 ']' >+ is_pwm_auto hwmon1/device/pwm3 >+ ENABLE=hwmon1/device/pwm3_enable >+ '[' -f hwmon1/device/pwm3_enable ']' >++ cat hwmon1/device/pwm3_enable >+ '[' 1 -gt 1 ']' >+ return 1 >+ pwmdisable hwmon1/device/pwm3 >+ ENABLE=hwmon1/device/pwm3_enable >+ '[' '!' -f hwmon1/device/pwm3_enable ']' >+ echo 0 >++ cat hwmon1/device/pwm3_enable >+ '[' 1 -eq 0 ']' >+ echo 1 >++ cat hwmon1/device/pwm3_enable >+ '[' 1 -ne 1 ']' >+ echo 255 >++ cat hwmon1/device/pwm3 >+ '[' 255 -ge 190 ']' >+ return 0 >+ '[' 0 -ne 0 ']' >+ '[' 'hwmon1/device/pwm1 hwmon1/device/pwm2' = '' ']' >+ GOODPWM='hwmon1/device/pwm1 hwmon1/device/pwm2 hwmon1/device/pwm3' >+ '[' 'hwmon1/device/pwm1 hwmon1/device/pwm2 hwmon1/device/pwm3' = '' ']' >+ echo > >+ echo 'Giving the fans some time to reach full speed...' >Giving the fans some time to reach full speed... >+ sleep 5 >+ echo 'Found the following fan sensors:' >Found the following fan sensors: >+ for i in '$FAN' >++ cat hwmon1/device/fan1_input >+ S=3267 >+ '[' 3267 = 0 -o 3267 = -1 ']' >+ echo ' hwmon1/device/fan1_input current speed: 3267 RPM' > hwmon1/device/fan1_input current speed: 3267 RPM >+ '[' '' = '' ']' >+ GOODFAN=hwmon1/device/fan1_input >+ SPEEDS=3267 >+ for i in '$FAN' >++ cat hwmon1/device/fan2_input >+ S=0 >+ '[' 0 = 0 -o 0 = -1 ']' >+ echo ' hwmon1/device/fan2_input current speed: 0 ... skipping!' > hwmon1/device/fan2_input current speed: 0 ... skipping! >+ for i in '$FAN' >++ cat hwmon1/device/fan3_input >+ S=0 >+ '[' 0 = 0 -o 0 = -1 ']' >+ echo ' hwmon1/device/fan3_input current speed: 0 ... skipping!' > hwmon1/device/fan3_input current speed: 0 ... skipping! >+ echo > >+ '[' hwmon1/device/fan1_input = '' ']' >+ echo 'Warning!!! This program will stop your fans, one at a time,' >Warning!!! This program will stop your fans, one at a time, >+ echo 'for approximately 5 seconds each!!!' >for approximately 5 seconds each!!! >+ echo 'This may cause your processor temperature to rise!!!' >This may cause your processor temperature to rise!!! >+ echo 'If you do not want to do this hit control-C now!!!' >If you do not want to do this hit control-C now!!! >+ echo -n 'Hit return to continue: ' >Hit return to continue: + read X >y >+ echo > >+ PLOTTER=gnuplot >+ STEP=15 >+ PDELAY=2 >+ STEP2=2 >+ STEP2_BELOW=31 >+ for i in '$GOODPWM' >+ echo Testing pwm control hwmon1/device/pwm1 ... >Testing pwm control hwmon1/device/pwm1 ... >+ pwmenable hwmon1/device/pwm1 >+ ENABLE=hwmon1/device/pwm1_enable >+ '[' -w hwmon1/device/pwm1_enable ']' >+ echo 1 >+ '[' 0 -ne 0 ']' >+ echo 255 >+ '[' 0 -ne 0 ']' >+ pwmset hwmon1/device/pwm1 0 >+ echo 0 >+ sleep 5 >+ '[' 0 -ne 0 ']' >++ cat hwmon1/device/fan1_input >+ CURRENT_SPEEDS=2982 >+ pwmdisable hwmon1/device/pwm1 >+ ENABLE=hwmon1/device/pwm1_enable >+ '[' '!' -f hwmon1/device/pwm1_enable ']' >+ echo 0 >++ cat hwmon1/device/pwm1_enable >+ '[' 1 -eq 0 ']' >+ echo 1 >++ cat hwmon1/device/pwm1_enable >+ '[' 1 -ne 1 ']' >+ echo 255 >++ cat hwmon1/device/pwm1 >+ '[' 255 -ge 190 ']' >+ return 0 >+ let pwmactivecount=0 >+ let count=1 >+ for j in '$GOODFAN' >++ echo 3267 >++ cut '-d ' -f1 >+ OS=3267 >++ echo 2982 >++ cut '-d ' -f1 >+ S=2982 >+ echo ' hwmon1/device/fan1_input ... speed was 3267 now 2982' > hwmon1/device/fan1_input ... speed was 3267 now 2982 >+ let 'threshold=2*3267/3' >+ '[' 2982 -lt 2178 ']' >+ echo ' no correlation' > no correlation >+ let count=count+1 >+ echo > >+ '[' 0 = 0 ']' >+ echo 'No correlations were detected.' >No correlations were detected. >+ echo 'There is either no fan connected to the output of hwmon1/device/pwm1,' >There is either no fan connected to the output of hwmon1/device/pwm1, >+ echo 'or the connected fan has no rpm-signal connected to one of' >or the connected fan has no rpm-signal connected to one of >+ echo 'the tested fan sensors. (Note: not all motherboards have' >the tested fan sensors. (Note: not all motherboards have >+ echo 'the pwm outputs connected to the fan connectors,' >the pwm outputs connected to the fan connectors, >+ echo 'check out the hardware database on http://www.almico.com/forumindex.php)' >check out the hardware database on http://www.almico.com/forumindex.php) >+ echo > >+ echo -n 'Did you see/hear a fan stopping during the above test (n)? ' >Did you see/hear a fan stopping during the above test (n)? + read X >y >+ '[' y = y -o y = Y ']' >+ pwmactive='hwmon1/device/pwm1 ' >+ echo > >+ for i in '$GOODPWM' >+ echo Testing pwm control hwmon1/device/pwm2 ... >Testing pwm control hwmon1/device/pwm2 ... >+ pwmenable hwmon1/device/pwm2 >+ ENABLE=hwmon1/device/pwm2_enable >+ '[' -w hwmon1/device/pwm2_enable ']' >+ echo 1 >+ '[' 0 -ne 0 ']' >+ echo 255 >+ '[' 0 -ne 0 ']' >+ pwmset hwmon1/device/pwm2 0 >+ echo 0 >+ sleep 5 >+ '[' 0 -ne 0 ']' >++ cat hwmon1/device/fan1_input >+ CURRENT_SPEEDS=3282 >+ pwmdisable hwmon1/device/pwm2 >+ ENABLE=hwmon1/device/pwm2_enable >+ '[' '!' -f hwmon1/device/pwm2_enable ']' >+ echo 0 >++ cat hwmon1/device/pwm2_enable >+ '[' 1 -eq 0 ']' >+ echo 1 >++ cat hwmon1/device/pwm2_enable >+ '[' 1 -ne 1 ']' >+ echo 255 >++ cat hwmon1/device/pwm2 >+ '[' 255 -ge 190 ']' >+ return 0 >+ let pwmactivecount=0 >+ let count=1 >+ for j in '$GOODFAN' >++ echo 3267 >++ cut '-d ' -f1 >+ OS=3267 >++ echo 3282 >++ cut '-d ' -f1 >+ S=3282 >+ echo ' hwmon1/device/fan1_input ... speed was 3267 now 3282' > hwmon1/device/fan1_input ... speed was 3267 now 3282 >+ let 'threshold=2*3267/3' >+ '[' 3282 -lt 2178 ']' >+ echo ' no correlation' > no correlation >+ let count=count+1 >+ echo > >+ '[' 0 = 0 ']' >+ echo 'No correlations were detected.' >No correlations were detected. >+ echo 'There is either no fan connected to the output of hwmon1/device/pwm2,' >There is either no fan connected to the output of hwmon1/device/pwm2, >+ echo 'or the connected fan has no rpm-signal connected to one of' >or the connected fan has no rpm-signal connected to one of >+ echo 'the tested fan sensors. (Note: not all motherboards have' >the tested fan sensors. (Note: not all motherboards have >+ echo 'the pwm outputs connected to the fan connectors,' >the pwm outputs connected to the fan connectors, >+ echo 'check out the hardware database on http://www.almico.com/forumindex.php)' >check out the hardware database on http://www.almico.com/forumindex.php) >+ echo > >+ echo -n 'Did you see/hear a fan stopping during the above test (n)? ' >Did you see/hear a fan stopping during the above test (n)? + read X >n >+ '[' n = y -o n = Y ']' >+ echo > >+ for i in '$GOODPWM' >+ echo Testing pwm control hwmon1/device/pwm3 ... >Testing pwm control hwmon1/device/pwm3 ... >+ pwmenable hwmon1/device/pwm3 >+ ENABLE=hwmon1/device/pwm3_enable >+ '[' -w hwmon1/device/pwm3_enable ']' >+ echo 1 >+ '[' 0 -ne 0 ']' >+ echo 255 >+ '[' 0 -ne 0 ']' >+ pwmset hwmon1/device/pwm3 0 >+ echo 0 >+ sleep 5 >+ '[' 0 -ne 0 ']' >++ cat hwmon1/device/fan1_input >+ CURRENT_SPEEDS=3282 >+ pwmdisable hwmon1/device/pwm3 >+ ENABLE=hwmon1/device/pwm3_enable >+ '[' '!' -f hwmon1/device/pwm3_enable ']' >+ echo 0 >++ cat hwmon1/device/pwm3_enable >+ '[' 1 -eq 0 ']' >+ echo 1 >++ cat hwmon1/device/pwm3_enable >+ '[' 1 -ne 1 ']' >+ echo 255 >++ cat hwmon1/device/pwm3 >+ '[' 255 -ge 190 ']' >+ return 0 >+ let pwmactivecount=0 >+ let count=1 >+ for j in '$GOODFAN' >++ echo 3267 >++ cut '-d ' -f1 >+ OS=3267 >++ echo 3282 >++ cut '-d ' -f1 >+ S=3282 >+ echo ' hwmon1/device/fan1_input ... speed was 3267 now 3282' > hwmon1/device/fan1_input ... speed was 3267 now 3282 >+ let 'threshold=2*3267/3' >+ '[' 3282 -lt 2178 ']' >+ echo ' no correlation' > no correlation >+ let count=count+1 >+ echo > >+ '[' 0 = 0 ']' >+ echo 'No correlations were detected.' >No correlations were detected. >+ echo 'There is either no fan connected to the output of hwmon1/device/pwm3,' >There is either no fan connected to the output of hwmon1/device/pwm3, >+ echo 'or the connected fan has no rpm-signal connected to one of' >or the connected fan has no rpm-signal connected to one of >+ echo 'the tested fan sensors. (Note: not all motherboards have' >the tested fan sensors. (Note: not all motherboards have >+ echo 'the pwm outputs connected to the fan connectors,' >the pwm outputs connected to the fan connectors, >+ echo 'check out the hardware database on http://www.almico.com/forumindex.php)' >check out the hardware database on http://www.almico.com/forumindex.php) >+ echo > >+ echo -n 'Did you see/hear a fan stopping during the above test (n)? ' >Did you see/hear a fan stopping during the above test (n)? + read X >n >+ '[' n = y -o n = Y ']' >+ echo > >+ echo 'Testing is complete.' >Testing is complete. >+ echo 'Please verify that all fans have returned to their normal speed.' >Please verify that all fans have returned to their normal speed. >+ echo > >+ echo 'The fancontrol script can automatically respond to temperature changes' >The fancontrol script can automatically respond to temperature changes >+ echo 'of your system by changing fanspeeds.' >of your system by changing fanspeeds. >+ echo -n 'Do you want to set up its configuration file now (y)? ' >Do you want to set up its configuration file now (y)? + read X >y >+ '[' y = n -o y = N ']' >+ for device in '$DEVICES' >+ MATCH='hwmon0/device/temp[1-9]_input' >++ echo hwmon0/device/temp2_input hwmon0/device/temp3_input >+ device_temp='hwmon0/device/temp2_input hwmon0/device/temp3_input' >+ '[' 'hwmon0/device/temp[1-9]_input' '!=' 'hwmon0/device/temp2_input hwmon0/device/temp3_input' ']' >+ TEMPS=' hwmon0/device/temp2_input hwmon0/device/temp3_input' >+ for device in '$DEVICES' >+ MATCH='hwmon1/device/temp[1-9]_input' >++ echo hwmon1/device/temp1_input hwmon1/device/temp2_input hwmon1/device/temp3_input >+ device_temp='hwmon1/device/temp1_input hwmon1/device/temp2_input hwmon1/device/temp3_input' >+ '[' 'hwmon1/device/temp[1-9]_input' '!=' 'hwmon1/device/temp1_input hwmon1/device/temp2_input hwmon1/device/temp3_input' ']' >+ TEMPS=' hwmon0/device/temp2_input hwmon0/device/temp3_input hwmon1/device/temp1_input hwmon1/device/temp2_input hwmon1/device/temp3_input' >+ '[' -z ' hwmon0/device/temp2_input hwmon0/device/temp3_input hwmon1/device/temp1_input hwmon1/device/temp2_input hwmon1/device/temp3_input' ']' >+ AskPath >+ echo -n 'What should be the path to your fancontrol config file (/etc/fancontrol)? ' >What should be the path to your fancontrol config file (/etc/fancontrol)? + read FCCONFIG > >+ '[' '' = '' ']' >+ FCCONFIG=/etc/fancontrol >+ LoadConfig /etc/fancontrol >+ local OLD_DEVPATH OLD_DEVNAME >+ '[' '!' -f /etc/fancontrol ']' >+ echo 'Loading configuration from /etc/fancontrol ...' >Loading configuration from /etc/fancontrol ... >++ egrep '^INTERVAL=.*$' /etc/fancontrol >++ sed -e 's/INTERVAL= *//g' >+ INTERVAL=10 >++ egrep '^DEVPATH=.*$' /etc/fancontrol >++ sed -e 's/DEVPATH= *//g' >+ OLD_DEVPATH='hwmon0=devices/platform/coretemp.0 hwmon1=devices/platform/f71882fg.2560' >++ egrep '^DEVNAME=.*$' /etc/fancontrol >++ sed -e 's/DEVNAME= *//g' >+ OLD_DEVNAME='hwmon0=coretemp hwmon1=f71889fg' >++ egrep '^FCTEMPS=.*$' /etc/fancontrol >++ sed -e 's/FCTEMPS= *//g' >+ FCTEMPS=hwmon1/device/pwm1=hwmon0/device/temp2_input >++ egrep '^FCFANS=.*$' /etc/fancontrol >++ sed -e 's/FCFANS= *//g' >+ FCFANS=hwmon1/device/pwm1= >++ egrep '^MINTEMP=.*$' /etc/fancontrol >++ sed -e 's/MINTEMP= *//g' >+ MINTEMP=hwmon1/device/pwm1=45 >++ egrep '^MAXTEMP=.*$' /etc/fancontrol >++ sed -e 's/MAXTEMP= *//g' >+ MAXTEMP=hwmon1/device/pwm1=65 >++ egrep '^MINSTART=.*$' /etc/fancontrol >++ sed -e 's/MINSTART= *//g' >+ MINSTART=hwmon1/device/pwm1=150 >++ egrep '^MINSTOP=.*$' /etc/fancontrol >++ sed -e 's/MINSTOP= *//g' >+ MINSTOP=hwmon1/device/pwm1=0 >++ egrep '^MINPWM=.*$' /etc/fancontrol >++ sed -e 's/MINPWM= *//g' >+ MINPWM= >++ egrep '^MAXPWM=.*$' /etc/fancontrol >++ sed -e 's/MAXPWM= *//g' >+ MAXPWM= >+ ValidateDevices 'hwmon0=devices/platform/coretemp.0 hwmon1=devices/platform/f71882fg.2560' 'hwmon0=coretemp hwmon1=f71889fg' >+ local 'OLD_DEVPATH=hwmon0=devices/platform/coretemp.0 hwmon1=devices/platform/f71882fg.2560' 'OLD_DEVNAME=hwmon0=coretemp hwmon1=f71889fg' outdated=0 >+ local entry device name path >+ for entry in '$OLD_DEVPATH' >++ echo hwmon0=devices/platform/coretemp.0 >++ sed -e 's/=[^=]*$//' >+ device=hwmon0 >++ echo hwmon0=devices/platform/coretemp.0 >++ sed -e 's/^[^=]*=//' >+ path=devices/platform/coretemp.0 >++ DevicePath hwmon0 >++ '[' -h hwmon0/device ']' >++ readlink -f hwmon0/device >++ sed -e 's/^\/sys\///' >+ '[' devices/platform/coretemp.0 '!=' devices/platform/coretemp.0 ']' >+ for entry in '$OLD_DEVPATH' >++ echo hwmon1=devices/platform/f71882fg.2560 >++ sed -e 's/=[^=]*$//' >+ device=hwmon1 >++ echo hwmon1=devices/platform/f71882fg.2560 >++ sed -e 's/^[^=]*=//' >+ path=devices/platform/f71882fg.2560 >++ DevicePath hwmon1 >++ '[' -h hwmon1/device ']' >++ readlink -f hwmon1/device >++ sed -e 's/^\/sys\///' >+ '[' devices/platform/f71882fg.2560 '!=' devices/platform/f71882fg.2560 ']' >+ for entry in '$OLD_DEVNAME' >++ echo hwmon0=coretemp >++ sed -e 's/=[^=]*$//' >+ device=hwmon0 >++ echo hwmon0=coretemp >++ sed -e 's/^[^=]*=//' >+ name=coretemp >++ DeviceName hwmon0 >++ '[' -r hwmon0/name ']' >++ '[' -r hwmon0/device/name ']' >++ cat hwmon0/device/name >++ sed -e 's/[[:space:]=]/_/g' >+ '[' coretemp '!=' coretemp ']' >+ for entry in '$OLD_DEVNAME' >++ echo hwmon1=f71889fg >++ sed -e 's/=[^=]*$//' >+ device=hwmon1 >++ echo hwmon1=f71889fg >++ sed -e 's/^[^=]*=//' >+ name=f71889fg >++ DeviceName hwmon1 >++ '[' -r hwmon1/name ']' >++ '[' -r hwmon1/device/name ']' >++ cat hwmon1/device/name >++ sed -e 's/[[:space:]=]/_/g' >+ '[' f71889fg '!=' f71889fg ']' >+ return 0 >+ INTERVAL=10 >+ PS3='select (1-n): ' >+ DEFMINTEMP=20 >+ DEFMAXTEMP=60 >+ DEFMINSTART=150 >+ DEFMINSTOP=100 >+ '[' 1 ']' >+ echo > >+ echo 'Select fan output to configure, or other action:' >Select fan output to configure, or other action: >+ select pwms in '$pwmactive' '"Change INTERVAL"' '"Just quit"' '"Save and quit"' '"Show configuration"' >1) hwmon1/device/pwm1 3) Just quit 5) Show configuration >2) Change INTERVAL 4) Save and quit >select (1-n): 1 >+ case $pwms in >++ echo hwmon1/device/pwm1 >++ sed -e 's/ /\n/g' >++ egrep hwmon1/device/pwm1 >++ echo hwmon1/device/pwm1 >++ sed -e 's/\//\\\//g' >+ pwmsed='hwmon1\/device\/pwm1' >+ echo > >+ echo Devices: >Devices: >+ print_devices '' >+ local name >+ for device in '$DEVICES' >++ cat hwmon0/device/name >+ name=coretemp >+ '[' -z coretemp ']' >+ echo 'hwmon0/device is coretemp' >hwmon0/device is coretemp >+ for device in '$DEVICES' >++ cat hwmon1/device/name >+ name=f71889fg >+ '[' -z f71889fg ']' >+ echo 'hwmon1/device is f71889fg' >hwmon1/device is f71889fg >+ echo > >+ echo 'Current temperature readings are as follows:' >Current temperature readings are as follows: >+ for j in '$TEMPS' >++ cat hwmon0/device/temp2_input >+ S=38000 >+ let 'S=38000 / 1000' >+ echo 'hwmon0/device/temp2_input 38' >hwmon0/device/temp2_input 38 >+ for j in '$TEMPS' >++ cat hwmon0/device/temp3_input >+ S=37000 >+ let 'S=37000 / 1000' >+ echo 'hwmon0/device/temp3_input 37' >hwmon0/device/temp3_input 37 >+ for j in '$TEMPS' >++ cat hwmon1/device/temp1_input >+ S=36000 >+ let 'S=36000 / 1000' >+ echo 'hwmon1/device/temp1_input 36' >hwmon1/device/temp1_input 36 >+ for j in '$TEMPS' >++ cat hwmon1/device/temp2_input >+ S=39000 >+ let 'S=39000 / 1000' >+ echo 'hwmon1/device/temp2_input 39' >hwmon1/device/temp2_input 39 >+ for j in '$TEMPS' >++ cat hwmon1/device/temp3_input >+ S=36000 >+ let 'S=36000 / 1000' >+ echo 'hwmon1/device/temp3_input 36' >hwmon1/device/temp3_input 36 >++ echo >++ cut '-d ' -f1 >+ FAN= >++ echo >++ cut '-d ' -f1 >+ FAN_MIN= >++ echo hwmon1/device/pwm1= >++ sed -e 's/hwmon1\/device\/pwm1[^ ]* *//g' >+ FCFANS=' hwmon1/device/pwm1=' >+ echo > >+ echo 'Select a temperature sensor as source for hwmon1/device/pwm1:' >Select a temperature sensor as source for hwmon1/device/pwm1: >+ select tempss in '$TEMPS' '"None (Do not affect this PWM output)"' >1) hwmon0/device/temp2_input >2) hwmon0/device/temp3_input >3) hwmon1/device/temp1_input >4) hwmon1/device/temp2_input >5) hwmon1/device/temp3_input >6) None (Do not affect this PWM output) >select (1-n): 1 >+ '[' hwmon0/device/temp2_input = 'None (Do not affect this PWM output)' ']' >+ '[' hwmon1/device/pwm1=hwmon0/device/temp2_input = '' ']' >++ echo hwmon1/device/pwm1=hwmon0/device/temp2_input >++ sed -e 's/hwmon1\/device\/pwm1[^ ]* *//g' >+ FCTEMPS=' hwmon1/device/pwm1=hwmon0/device/temp2_input' >+ echo > >+ echo 'Enter the low temperature (degree C)' >Enter the low temperature (degree C) >+ echo -n 'below which the fan should spin at minimum speed (20): ' >below which the fan should spin at minimum speed (20): + read XMT >45 >+ '[' 45 = '' ']' >+ '[' hwmon1/device/pwm1=45 = '' ']' >++ echo hwmon1/device/pwm1=45 >++ sed -e 's/hwmon1\/device\/pwm1[^ ]* *//g' >+ MINTEMP=' hwmon1/device/pwm1=45' >+ echo > >+ echo 'Enter the high temperature (degree C)' >Enter the high temperature (degree C) >+ echo -n 'over which the fan should spin at maximum speed (60): ' >over which the fan should spin at maximum speed (60): + read XMT >65 >+ '[' 65 = '' ']' >+ '[' hwmon1/device/pwm1=65 = '' ']' >++ echo hwmon1/device/pwm1=65 >++ sed -e 's/hwmon1\/device\/pwm1[^ ]* *//g' >+ MAXTEMP=' hwmon1/device/pwm1=65' >+ '[' -eq 0 ']' >/usr/sbin/pwmconfig: line 926: [: -eq: unary operator expected >+ XMSTOP=0 >+ '[' hwmon1/device/pwm1=0 = '' ']' >++ echo hwmon1/device/pwm1=0 >++ sed -e 's/hwmon1\/device\/pwm1[^ ]* *//g' >+ MINSTOP=' hwmon1/device/pwm1=0' >+ '[' -eq 0 ']' >/usr/sbin/pwmconfig: line 952: [: -eq: unary operator expected >+ XMSTART=150 >+ '[' hwmon1/device/pwm1=150 = '' ']' >++ echo hwmon1/device/pwm1=150 >++ sed -e 's/hwmon1\/device\/pwm1[^ ]* *//g' >+ MINSTART=' hwmon1/device/pwm1=150' >+ '[' 0 -gt 0 ']' >+ XMINP= >+ '[' -n '' ']' >+ echo > >+ echo 'Enter the PWM value (0-255) to use when the temperature' >Enter the PWM value (0-255) to use when the temperature >+ echo -n 'is over the high temperature limit (255): ' >is over the high temperature limit (255): + read XMAXP > >+ '[' -n '' ']' >+ echo > >+ break >+ break >+ '[' 1 ']' >+ echo > >+ echo 'Select fan output to configure, or other action:' >Select fan output to configure, or other action: >+ select pwms in '$pwmactive' '"Change INTERVAL"' '"Just quit"' '"Save and quit"' '"Show configuration"' >1) hwmon1/device/pwm1 3) Just quit 5) Show configuration >2) Change INTERVAL 4) Save and quit >select (1-n): 5 >+ case $pwms in >+ echo > >+ echo 'Common Settings:' >Common Settings: >+ echo INTERVAL=10 >INTERVAL=10 >+ for pwmo in '$pwmactive' >+ echo > >+ echo 'Settings of hwmon1/device/pwm1:' >Settings of hwmon1/device/pwm1: >++ filter_cfgvar ' hwmon1/device/pwm1=hwmon0/device/temp2_input' hwmon1/device/pwm1 >++ echo ' hwmon1/device/pwm1=hwmon0/device/temp2_input' >++ sed -e 's/.*=//g' >++ egrep hwmon1/device/pwm1 >++ sed -e 's/ /\n/g' >+ echo ' Depends on hwmon0/device/temp2_input' > Depends on hwmon0/device/temp2_input >++ filter_cfgvar ' hwmon1/device/pwm1=' hwmon1/device/pwm1 >++ echo ' hwmon1/device/pwm1=' >++ sed -e 's/.*=//g' >++ egrep hwmon1/device/pwm1 >++ sed -e 's/ /\n/g' >+ echo ' Controls ' > Controls >++ filter_cfgvar ' hwmon1/device/pwm1=45' hwmon1/device/pwm1 >++ echo ' hwmon1/device/pwm1=45' >++ sed -e 's/.*=//g' >++ egrep hwmon1/device/pwm1 >++ sed -e 's/ /\n/g' >+ echo ' MINTEMP=45' > MINTEMP=45 >++ filter_cfgvar ' hwmon1/device/pwm1=65' hwmon1/device/pwm1 >++ echo ' hwmon1/device/pwm1=65' >++ egrep hwmon1/device/pwm1 >++ sed -e 's/.*=//g' >++ sed -e 's/ /\n/g' >+ echo ' MAXTEMP=65' > MAXTEMP=65 >++ filter_cfgvar ' hwmon1/device/pwm1=150' hwmon1/device/pwm1 >++ echo ' hwmon1/device/pwm1=150' >++ sed -e 's/.*=//g' >++ egrep hwmon1/device/pwm1 >++ sed -e 's/ /\n/g' >+ echo ' MINSTART=150' > MINSTART=150 >++ filter_cfgvar ' hwmon1/device/pwm1=0' hwmon1/device/pwm1 >++ echo ' hwmon1/device/pwm1=0' >++ egrep hwmon1/device/pwm1 >++ sed -e 's/.*=//g' >++ sed -e 's/ /\n/g' >+ echo ' MINSTOP=0' > MINSTOP=0 >++ filter_cfgvar '' hwmon1/device/pwm1 >++ echo '' >++ egrep hwmon1/device/pwm1 >++ sed -e 's/ /\n/g' >++ sed -e 's/.*=//g' >+ XMINP= >+ '[' -n '' ']' >++ filter_cfgvar '' hwmon1/device/pwm1 >++ echo '' >++ sed -e 's/.*=//g' >++ egrep hwmon1/device/pwm1 >++ sed -e 's/ /\n/g' >+ XMAXP= >+ '[' -n '' ']' >+ echo > >+ break >+ '[' 1 ']' >+ echo > >+ echo 'Select fan output to configure, or other action:' >Select fan output to configure, or other action: >+ select pwms in '$pwmactive' '"Change INTERVAL"' '"Just quit"' '"Save and quit"' '"Show configuration"' >1) hwmon1/device/pwm1 3) Just quit 5) Show configuration >2) Change INTERVAL 4) Save and quit >select (1-n): 4 >+ case $pwms in >+ SaveConfig >+ RememberDevices ' hwmon1/device/pwm1=hwmon0/device/temp2_input' ' hwmon1/device/pwm1=' >+ local used entry device name path tempfandev pwmdev >+ DEVPATH= >+ DEVNAME= >+ for device in '$DEVICES' >++ echo hwmon0/device >++ sed -e 's/\/.*$//' >+ device=hwmon0 >+ used=0 >+ for entry in '$1' '$2' >++ echo hwmon1/device/pwm1=hwmon0/device/temp2_input >++ sed -e 's/\/.*$//' >+ pwmdev=hwmon1 >++ echo hwmon1/device/pwm1=hwmon0/device/temp2_input >++ sed -e 's/^[^=]*=//' -e 's/\/.*$//' >+ tempfandev=hwmon0 >+ '[' hwmon0 = hwmon1 -o hwmon0 = hwmon0 ']' >+ used=1 >+ for entry in '$1' '$2' >++ echo hwmon1/device/pwm1= >++ sed -e 's/\/.*$//' >+ pwmdev=hwmon1 >++ echo hwmon1/device/pwm1= >++ sed -e 's/^[^=]*=//' -e 's/\/.*$//' >+ tempfandev= >+ '[' hwmon0 = hwmon1 -o hwmon0 = '' ']' >+ '[' 1 -eq 0 ']' >++ DevicePath hwmon0 >++ '[' -h hwmon0/device ']' >++ readlink -f hwmon0/device >++ sed -e 's/^\/sys\///' >+ path=devices/platform/coretemp.0 >+ '[' -z '' ']' >+ DEVPATH=hwmon0=devices/platform/coretemp.0 >++ DeviceName hwmon0 >++ '[' -r hwmon0/name ']' >++ '[' -r hwmon0/device/name ']' >++ cat hwmon0/device/name >++ sed -e 's/[[:space:]=]/_/g' >+ name=coretemp >+ '[' -z '' ']' >+ DEVNAME=hwmon0=coretemp >+ for device in '$DEVICES' >++ echo hwmon1/device >++ sed -e 's/\/.*$//' >+ device=hwmon1 >+ used=0 >+ for entry in '$1' '$2' >++ echo hwmon1/device/pwm1=hwmon0/device/temp2_input >++ sed -e 's/\/.*$//' >+ pwmdev=hwmon1 >++ echo hwmon1/device/pwm1=hwmon0/device/temp2_input >++ sed -e 's/^[^=]*=//' -e 's/\/.*$//' >+ tempfandev=hwmon0 >+ '[' hwmon1 = hwmon1 -o hwmon1 = hwmon0 ']' >+ used=1 >+ for entry in '$1' '$2' >++ echo hwmon1/device/pwm1= >++ sed -e 's/\/.*$//' >+ pwmdev=hwmon1 >++ echo hwmon1/device/pwm1= >++ sed -e 's/^[^=]*=//' -e 's/\/.*$//' >+ tempfandev= >+ '[' hwmon1 = hwmon1 -o hwmon1 = '' ']' >+ used=1 >+ '[' 1 -eq 0 ']' >++ DevicePath hwmon1 >++ '[' -h hwmon1/device ']' >++ readlink -f hwmon1/device >++ sed -e 's/^\/sys\///' >+ path=devices/platform/f71882fg.2560 >+ '[' -z hwmon0=devices/platform/coretemp.0 ']' >+ DEVPATH='hwmon0=devices/platform/coretemp.0 hwmon1=devices/platform/f71882fg.2560' >++ DeviceName hwmon1 >++ '[' -r hwmon1/name ']' >++ '[' -r hwmon1/device/name ']' >++ cat hwmon1/device/name >++ sed -e 's/[[:space:]=]/_/g' >+ name=f71889fg >+ '[' -z hwmon0=coretemp ']' >+ DEVNAME='hwmon0=coretemp hwmon1=f71889fg' >+ echo > >+ echo 'Saving configuration to /etc/fancontrol...' >Saving configuration to /etc/fancontrol... >++ mktemp -t pwmcfg.XXXXXXXXXX >+ tmpfile=/tmp/pwmcfg.wIUWWafmz9 >+ trap ' [ -f "/tmp/pwmcfg.wIUWWafmz9" ] && /bin/rm -f -- "/tmp/pwmcfg.wIUWWafmz9"' 0 1 2 3 13 15 >+ echo '# Configuration file generated by pwmconfig, changes will be lost' >+ echo INTERVAL=10 >+ echo 'DEVPATH=hwmon0=devices/platform/coretemp.0 hwmon1=devices/platform/f71882fg.2560' >+ echo 'DEVNAME=hwmon0=coretemp hwmon1=f71889fg' >+ echo 'FCTEMPS= hwmon1/device/pwm1=hwmon0/device/temp2_input' >+ echo 'FCFANS= hwmon1/device/pwm1=' >+ echo 'MINTEMP= hwmon1/device/pwm1=45' >+ echo 'MAXTEMP= hwmon1/device/pwm1=65' >+ echo 'MINSTART= hwmon1/device/pwm1=150' >+ echo 'MINSTOP= hwmon1/device/pwm1=0' >+ '[' -n '' ']' >+ '[' -n '' ']' >+ mv /tmp/pwmcfg.wIUWWafmz9 /etc/fancontrol >+ chmod +r /etc/fancontrol >+ echo 'Configuration saved' >Configuration saved >+ exit >+ '[' -f /tmp/pwmcfg.wIUWWafmz9 ']' > >Script done on Tue Jul 8 17:11:59 2014
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 516698
: 380438 |
380440