mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-30 13:00:30 +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
@@ -6,6 +6,7 @@ SVN-HEAD
|
||||
isaset: Use geteuid instead of getuid so that setuid bit works
|
||||
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
|
||||
Differentiate between PC8374L and WPCD377I
|
||||
|
||||
+5
-5
@@ -99,14 +99,14 @@ VARIABLE=chip/pwmdev=value chip/pwmdev2=value2 [...]
|
||||
VARIABLE2=[...]
|
||||
|
||||
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
|
||||
setup I recommend using the pwmconfig script. Small changes can be made by
|
||||
|
||||
+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