Show
Ignore:
Timestamp:
05/09/09 13:43:06 (3 years ago)
Author:
khali
Message:

Add support for absolute path to hwmon devices.

Location:
lm-sensors/trunk/prog/pwm
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/pwm/fancontrol

    r5668 r5717  
    160160fi 
    161161 
    162 # Detect if config file uses the hwmon class or not yet 
    163 if echo "${AFCPWM[0]}" | egrep -q '^hwmon[0-9]' 
     162# Detect path to sensors 
     163if echo "${AFCPWM[0]}" | egrep -q '^/' 
     164then 
     165        DIR=/ 
     166elif echo "${AFCPWM[0]}" | egrep -q '^hwmon[0-9]' 
    164167then 
    165168        DIR=/sys/class/hwmon 
  • lm-sensors/trunk/prog/pwm/fancontrol.8

    r5631 r5717  
    8282.PP 
    8383Each variable has its own line. The variable name is followed by an equal sign 
    84 and the device=value pairs. These consist of the relative path to the pwm 
    85 output (from /sys/bus/i2c/devices or /sys/class/hwmon 
    86 depending on the kernel version) for which the value is valid, equal sign 
    87 followed by the value and are separated by a blank. Example: 
     84and the device=value pairs. These consist of the path to the pwm output for 
     85which the value is valid, equal sign followed by the value and are separated 
     86by a blank. Path can be absolute or relative (from /sys/bus/i2c/devices or 
     87/sys/class/hwmon depending on the kernel version). Example: 
    8888.IP 
    89 MINTEMP=w83627hf-isa-0290/pwm2=40 w83627hf-isa-0290/pwm1=54 
     89MINTEMP=hwmon0/device/pwm1=40 hwmon0/device/pwm2=54 
    9090.PP 
    9191You have to play with the temperature values a bit to get happy. For initial