Changeset 5717

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

Add support for absolute path to hwmon devices.

Location:
lm-sensors/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5711 r5717  
    77  Makefile: Include generated source files in dependency checking 
    88            Make it possible to skip building of the static library 
     9  fancontrol: Add support for absolute path to hwmon devices 
    910  sensors-detect: Add nNidia nForce MCP78S SMBus detection 
    1011                  Display Super-I/O address even if LD is disabled 
  • lm-sensors/trunk/doc/fancontrol.txt

    r5631 r5717  
    100100 
    101101Each variable has its own line. The variable name is followed by an equal sign 
    102 and the device=value pairs. These consist of the relative path to the pwm 
    103 output (from /sys/bus/i2c/devices or /sys/class/hwmon depending on the kernel 
    104 version) for which the value is valid, equal sign followed by the value and 
    105 are separated by a blank. 
     102and the device=value pairs. These consist of the path to the pwm output for 
     103which the value is valid, equal sign followed by the value and are separated 
     104by a blank. Path can be absolute or relative (from /sys/bus/i2c/devices or 
     105/sys/class/hwmon depending on the kernel version). 
    106106 
    107107Example: 
    108108 
    109 MINTEMP=w83627hf-isa-0290/pwm2=40 w83627hf-isa-0290/pwm1=54 
     109MINTEMP=hwmon0/device/pwm1=40 hwmon0/device/pwm2=54 
    110110 
    111111You have to play with the temperature values a bit to get happy. For initial 
  • 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