Index: /lm-sensors/trunk/doc/fancontrol.txt
===================================================================
--- /lm-sensors/trunk/doc/fancontrol.txt	(revision 5631)
+++ /lm-sensors/trunk/doc/fancontrol.txt	(revision 5717)
@@ -100,12 +100,12 @@
 
 Each variable has its own line. The variable name is followed by an equal sign
-and the device=value pairs. These consist of the relative path to the pwm
-output (from /sys/bus/i2c/devices or /sys/class/hwmon depending on the kernel
-version) for which the value is valid, equal sign followed by the value and
-are separated by a blank.
+and the device=value pairs. These consist of the path to the pwm output for
+which the value is valid, equal sign followed by the value and are separated
+by a blank. Path can be absolute or relative (from /sys/bus/i2c/devices or
+/sys/class/hwmon depending on the kernel version).
 
 Example:
 
-MINTEMP=w83627hf-isa-0290/pwm2=40 w83627hf-isa-0290/pwm1=54
+MINTEMP=hwmon0/device/pwm1=40 hwmon0/device/pwm2=54
 
 You have to play with the temperature values a bit to get happy. For initial
Index: /lm-sensors/trunk/prog/pwm/fancontrol
===================================================================
--- /lm-sensors/trunk/prog/pwm/fancontrol	(revision 5668)
+++ /lm-sensors/trunk/prog/pwm/fancontrol	(revision 5717)
@@ -160,6 +160,9 @@
 fi
 
-# Detect if config file uses the hwmon class or not yet
-if echo "${AFCPWM[0]}" | egrep -q '^hwmon[0-9]'
+# Detect path to sensors
+if echo "${AFCPWM[0]}" | egrep -q '^/'
+then
+	DIR=/
+elif echo "${AFCPWM[0]}" | egrep -q '^hwmon[0-9]'
 then
 	DIR=/sys/class/hwmon
Index: /lm-sensors/trunk/prog/pwm/fancontrol.8
===================================================================
--- /lm-sensors/trunk/prog/pwm/fancontrol.8	(revision 5631)
+++ /lm-sensors/trunk/prog/pwm/fancontrol.8	(revision 5717)
@@ -82,10 +82,10 @@
 .PP
 Each variable has its own line. The variable name is followed by an equal sign
-and the device=value pairs. These consist of the relative path to the pwm
-output (from /sys/bus/i2c/devices or /sys/class/hwmon
-depending on the kernel version) for which the value is valid, equal sign
-followed by the value and are separated by a blank. Example:
+and the device=value pairs. These consist of the path to the pwm output for
+which the value is valid, equal sign followed by the value and are separated
+by a blank. Path can be absolute or relative (from /sys/bus/i2c/devices or
+/sys/class/hwmon depending on the kernel version). Example:
 .IP
-MINTEMP=w83627hf-isa-0290/pwm2=40 w83627hf-isa-0290/pwm1=54
+MINTEMP=hwmon0/device/pwm1=40 hwmon0/device/pwm2=54
 .PP
 You have to play with the temperature values a bit to get happy. For initial
Index: /lm-sensors/trunk/CHANGES
===================================================================
--- /lm-sensors/trunk/CHANGES	(revision 5711)
+++ /lm-sensors/trunk/CHANGES	(revision 5717)
@@ -7,4 +7,5 @@
   Makefile: Include generated source files in dependency checking
             Make it possible to skip building of the static library
+  fancontrol: Add support for absolute path to hwmon devices
   sensors-detect: Add nNidia nForce MCP78S SMBus detection
                   Display Super-I/O address even if LD is disabled
