Changeset 5323
- Timestamp:
- 09/08/08 14:21:20 (3 months ago)
- Files:
-
- lm-sensors/branches/lm-sensors-3.0.0/CHANGES (modified) (1 diff)
- lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/pwmconfig (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r5318 r5323 7 7 pwmconfig: Tell the user about gnuplot if isn't installed 8 8 Fix MINSTOP and MINSTART test functions 9 Test MINSTOP before MINSTART 9 10 sensors-detect: Add Intel SCH (bus) support 10 11 Add SMSC EMC6D103 support lm-sensors/branches/lm-sensors-3.0.0/prog/pwm/pwmconfig
r5322 r5323 576 576 LoadConfig $FCCONFIG 577 577 578 # $1 = pwm value below which the fan is stopped 578 579 function TestMinStart() 579 580 { … … 584 585 echo 'We will use this value +20 as the starting speed.' 585 586 let fanok=0 586 let fanval= 0587 let fanval="$1" 587 588 588 589 pwmenable $pwms 589 590 until [ "$fanok" = "1" ] 590 591 do 591 let fanval=fanval+10592 592 if [ $fanval -gt 240 ] ; then let fanval=$MAX ; let fanok=1 ; fi 593 593 echo -n "Setting $pwms to $fanval..." … … 595 595 read FANTEST 596 596 if [ "$FANTEST" != "" ] ; then let fanok=1 ; fi 597 let fanval=fanval+10 597 598 done 598 599 pwmdisable $pwms … … 769 770 echo 770 771 echo "Enter the minimum PWM value (0-$MAX)" 772 echo -n "at which the fan STOPS spinning (press t to test) ($DEFMINSTOP): " 773 read XMSTOP 774 if [ "$XMSTOP" = "" ] 775 then 776 XMSTOP=$DEFMINSTOP 777 fi 778 if [ "$XMSTOP" = "t" -o "$XMSTOP" = "T" ] 779 then 780 TestMinStop 781 XMSTOP=$fanval 782 fi 783 if [ "$MINSTOP" = "" ] 784 then 785 MINSTOP="${pwms}=${XMSTOP}" 786 else 787 MINSTOP="`echo $MINSTOP | sed -e "s/${pwmsed}[^ ]* *//g"` ${pwms}=${XMSTOP}" 788 fi 789 echo 790 echo "Enter the minimum PWM value ($XMSTOP-$MAX)" 771 791 echo -n "at which the fan STARTS spinning (press t to test) ($DEFMINSTART): " 772 read XM V773 if [ "$XM V" = "" ]774 then 775 XM V=$DEFMINSTART776 fi 777 if [ "$XM V" = "t" -o "$XMV" = "T" ]778 then 779 TestMinStart 780 XM V=$fanval792 read XMSTART 793 if [ "$XMSTART" = "" ] 794 then 795 XMSTART=$DEFMINSTART 796 fi 797 if [ "$XMSTART" = "t" -o "$XMSTART" = "T" ] 798 then 799 TestMinStart $XMSTOP 800 XMSTART=$fanval 781 801 fi 782 802 if [ "$MINSTART" = "" ] 783 803 then 784 MINSTART="${pwms}=${XM V}"804 MINSTART="${pwms}=${XMSTART}" 785 805 else 786 MINSTART="`echo $MINSTART | sed -e "s/${pwmsed}[^ ]* *//g"` ${pwms}=${XM V}"806 MINSTART="`echo $MINSTART | sed -e "s/${pwmsed}[^ ]* *//g"` ${pwms}=${XMSTART}" 787 807 fi 788 808 echo 789 echo "Enter the minimum PWM value (0-$MAX)" 790 echo -n "at which the fan STOPS spinning (press t to test) ($DEFMINSTOP): " 791 read XMV 792 if [ "$XMV" = "" ] 793 then 794 XMV=$DEFMINSTOP 795 fi 796 if [ "$XMV" = "t" -o "$XMV" = "T" ] 797 then 798 TestMinStop 799 XMV=$fanval 800 fi 801 if [ "$MINSTOP" = "" ] 802 then 803 MINSTOP="${pwms}=${XMV}" 804 else 805 MINSTOP="`echo $MINSTOP | sed -e "s/${pwmsed}[^ ]* *//g"` ${pwms}=${XMV}" 806 fi 807 echo 808 echo "Enter the PWM value (0-$XMV) to use when the temperature" 809 echo "Enter the PWM value (0-$XMSTOP) to use when the temperature" 809 810 echo -n "is below the low temperature limit (0): " 810 811 read XMINP … … 819 820 fi 820 821 echo 821 echo "Enter the PWM value ($XM V-$MAX) to use when the temperature"822 echo "Enter the PWM value ($XMSTOP-$MAX) to use when the temperature" 822 823 echo -n "is over the high temperature limit ($MAX): " 823 824 read XMAXP
