Better scaling for +12V reading

Apparently, Gigabyte uses a 8kOhm and a 2.7kOhm resistor for the
voltage divider (both are commercially available SMD resistors). It
matches my BIOS reading.

Applied from PR
https://github.com/lm-sensors/lm-sensors/pull/203

[olysonek: squashed commits, updated description]
This commit is contained in:
pablow1422 authored and Ondřej Lysoněk committed 2019-10-11 10:09:57 +02:00
1 parent 4ab7331755
commit af13af759b
1 file changed
+4 -4
+4 -4
View File
@@ -32,11 +32,11 @@ chip "it8720-isa-*"
# "Vcore", "DDR3 1.5V", "+3.3V" and "Vbat" are connected directly, so no compute
# line is needed for these. +5V and 5VSB are internal so we use the
# standard scaling factor. Scaling for +12V is apparently not standard,
# factor 3.963 is guessed from BIOS and EasyTune values (3.943 was
# another candidate.)
# standard scaling factor. Scaling for +12V is apparently being done with
# 8kOhm and 2.7kOhm resistors, this matches my BIOS reading. It's an improvement
# from the previous proposed scaling value of 3.963.
compute in3 @ * (6.8/10+1), @ / (6.8/10+1)
compute in4 @ * 3.963, @ / 3.963
compute in4 @ * (8/2.7+1),@ / (8/2.7+1)
compute in7 @ * (6.8/10+1), @ / (6.8/10+1)
# The BIOS will not set any limit for voltages.