mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-28 20:58:22 +00:00
Add support for absolute path to hwmon devices.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5717 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
819d7239c1
commit
dee604c8e9
4 files changed
+16
-12
No files matched your search
+5
-2
@@ -159,8 +159,11 @@ else
|
||||
LoadConfig /etc/fancontrol
|
||||
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
|
||||
else
|
||||
|
||||
@@ -81,12 +81,12 @@ VARIABLE2=...
|
||||
.fi
|
||||
.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
|
||||
setup I recommend using the \fBpwmconfig\fP script. Small changes can be made by
|
||||
|
||||
Reference in new issue
Block a user