These configurations would drive the PWM outputs in an "inverted mode"
where the 0 value is full fan speed and 255 stops the fan. The PWM
output adjustment algorithm works correctly in this situation.
Create config for the Fujitsu D3402-B1 motherboard. The config
was provided by github user @rcmcronny, see #421 for details.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
`which` is an external command which isn't required by POSIX.
Debian and other distributions (like Gentoo!) are looking
to drop it from their base set of packages.
Switch to `command -v` which should always work instead.
Signed-off-by: Sam James <sam@gentoo.org>
This patch adds support for the ASUS M5A97 (not R2.0, the original)
motherboard.
The labels map exactly to the BIOS labels for consistency sake.
The CPU and VDDA voltage limits are the absolute minimum and maximum
values the motherboard regulators can supply. Users can always fine-tune
these to their own preference if so desired.
Found values where compared against bios values. The bios does have some
extra settable voltages, but those are not affecting the ignore sensors.
Maybe the Asus software has names/formulas for them, but as this is
Windows only software, not usable.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Only apply conversion from Celsius to Fahrenheit on temperature values.
Leave other sensor readings as they were returned.
Fixes#357
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
The json format requires that the last entry of a dictionary does not
have a trailing ','. To avoid generating invalid json output, check that
there are features to list before emitting the trailing ','.
This issue is present when a chip exists but all its sensors are
ignored:
{
"example-device" : {
"Adapter": "example adapter",
}
}
The corrected output is:
{
"example-device" : {
"Adapter": "example adapter"
}
}
Signed-off-by: Nathan Rossi <nathan.rossi@digi.com>
If sensor doesn't return any value (in my case it happen when fan got broken - look below) whole script gets messed up. "cut" latter in the script assume there are more values in $GOODFAN then there are really and "cut -d' ' -f$count" doesn't return proper value.
root@yaro-desktop2:/sys/class/hwmon# cat hwmon0/fan1_input
cat: hwmon0/fan1_input: Bad argument
root@yaro-desktop2:/sys/class/hwmon#