Changeset 5064
- Timestamp:
- 12/04/07 11:28:14 (1 year ago)
- Files:
-
- lm-sensors/trunk/CHANGES (modified) (1 diff)
- lm-sensors/trunk/prog/pwm/pwmconfig (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r5062 r5064 19 19 Really hide errors on sysfs writes 20 20 Deal gracefully with read-only pwm_enable files 21 Warn about outputs found in automatic mode 21 22 Program sensors: Hide spurious errors on missing f71872f voltage inputs 22 23 Hide spurious errors on missing adm1026 inputs lm-sensors/trunk/prog/pwm/pwmconfig
r5062 r5064 111 111 112 112 # $1 = pwm file name 113 function is_pwm_auto() 114 { 115 if [ -n "$SYSFS" ] 116 then 117 ENABLE=${1}_enable 118 if [ -f $ENABLE -a "`cat $ENABLE`" -gt 1 ] 119 then 120 return 0 121 fi 122 fi 123 124 return 1 125 } 126 127 # $1 = pwm file name 113 128 function pwmdisable() 114 129 { … … 193 208 if [ -w $i ] 194 209 then 210 # First check if PWM output is in automatic mode 211 if is_pwm_auto $i 212 then 213 echo "$i is currently setup for automatic speed control." 214 echo 'In general, automatic mode is preferred over manual mode, as' 215 echo 'it is more efficient and it reacts faster. Are you sure that' 216 echo -n 'you want to setup this output for manual control? (n) ' 217 read X 218 if [ "$X" = "" -o "$X" != "y" -a "$X" != "Y" ] 219 then 220 continue 221 fi 222 fi 223 195 224 pwmdisable $i 196 225 if [ $? -ne 0 ]
