summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpablow1422 <pablofabian.wagnerboian@gmail.com>2019-10-07 21:03:53 -0300
committerOndřej Lysoněk <olysonek@redhat.com>2019-10-11 10:09:57 +0200
commitaf13af759b3c052568c172445e3c61d487cfa6bb (patch)
tree9ce1343ced898ae6f7cb89aeed45b574ba555581
parent4ab7331755d376cc003c954078c2c78ca8eae507 (diff)
downloadlm-sensors-git-af13af759b3c052568c172445e3c61d487cfa6bb.tar.gz
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]
-rw-r--r--configs/Gigabyte/GA-870A-USB3.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/configs/Gigabyte/GA-870A-USB3.conf b/configs/Gigabyte/GA-870A-USB3.conf
index 39fcbdd6..b2cf3dd4 100644
--- a/configs/Gigabyte/GA-870A-USB3.conf
+++ b/configs/Gigabyte/GA-870A-USB3.conf
@@ -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.