From af13af759b3c052568c172445e3c61d487cfa6bb Mon Sep 17 00:00:00 2001 From: pablow1422 Date: Mon, 7 Oct 2019 21:03:53 -0300 Subject: 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] --- configs/Gigabyte/GA-870A-USB3.conf | 8 ++++---- 1 file 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. -- cgit v1.2.1