Configuration for Foxconn A7GM-S 2.0
I've tried to configure lm-sensors correctly for my TV-box following the instructions on
http://www.lm-sensors.org/wiki/VoltageLabelsAndScaling Having done it, I thought I could contribute my result if you want to incorporate it in the wiki. Maybe I could register and do it myself, I haven't tried. But I thought it could be a good idea if someone more experienced did a review first anyway.
My motherboard is a Foxconn A7&M-S 2.0 with "BIOS ID" 872F1P04 and "BIOS Version" 08.00.14. According to sensors, the exact chip is an IT8716. The BIOS reports CPU, DRAM, 3.3V, 12V and 1.1V readings. All but the 12V could be found directly available without scaling. For 12V I used the instructions on the VoltageLabelsAndScaling page and think I've figured out that it goes in steps of 64mV. I.e. the scaling factor is 4.
So my configuration for this motherboard ended up like this:
chip "it8716-*"
label in0 "CPU core"
label in1 "DRAM voltage"
label in2 "+3.3V"
ignore in3
label in4 "+12.0V"
label in5 "+1.1V"
ignore in6
ignore in7
ignore in8
compute in4 @ * (64/16), @ / (64/16)
label fan1 "CPU fan"
# One of these is the "System fan", but I don't have anything connected
# to that socket, so I don't know which one.
ignore fan2
ignore fan3
label temp1 "CPU temp"
label temp2 "System temp"
ignore temp3
# Min and max for Athlon II X2 245e
set in0_min 0.875
set in0_max 1.4
# JEDEC standard for DDR2
set in1_min 1.7
set in1_max 1.9
# 5 % tolerance on the remaining measurements
set in2_min 3.3 * 0.95
set in2_max 3.3 * 1.05
set in4_min 12.0 * 0.95
set in4_max 12.0 * 1.05
set in5_min 1.1 * 0.95
set in5_max 1.1 * 1.05_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Göran,
Quoted 7 lines · Göran Uddeborg
I've tried to configure lm-sensors correctly for my TV-box following the instructions on
http://www.lm-sensors.org/wiki/VoltageLabelsAndScaling Having done it, I thought I could contribute my result if you want to incorporate it in the wiki. Maybe I could register and do it myself, I haven't tried. But I thought it could be a good idea if someone more experienced did a review first anyway.
You actually can't, as the wiki access is restricted.
Quoted 7 lines
My motherboard is a Foxconn A7GM-S 2.0 with "BIOS ID" 872F1P04 and "BIOS Version" 08.00.14. According to sensors, the exact chip is an IT8716. The BIOS reports CPU, DRAM, 3.3V, 12V and 1.1V readings. All but the 12V could be found directly available without scaling. For 12V I used the instructions on the VoltageLabelsAndScaling page and think I've figured out that it goes in steps of 64mV. I.e. the scaling factor is 4.
I'm happy to see that my article in the wiki starts being helpful :)
Quoted 12 lines
So my configuration for this motherboard ended up like this:
chip "it8716-*"
label in0 "CPU core" label in1 "DRAM voltage" label in2 "+3.3V" ignore in3 label in4 "+12.0V" label in5 "+1.1V" ignore in6 ignore in7 ignore in8
What were the values of in3, in6 and in7? One of these could be +5V, it's usually monitored (even though the lack of mention in your BIOS suggests that might not be the case here.) One could be 5VSB. Both would need scaling so are more likely to appear in the 2.5 - 3.3 V range unscaled.
in8 is normally Vbat on the IT8716F, it shouldn't need scaling. Didn't it report a correct value for you?
For reference, please let us know which kernel you're running.
Quoted 2 lines
compute in4 @ * (64/16), @ / (64/16)You can just make this:
compute in4 @ * 4, @ / 4
This is more efficient.
Quoted 6 lines
label fan1 "CPU fan"
# One of these is the "System fan", but I don't have anything connected # to that socket, so I don't know which one.
ignore fan2
ignore fan3
Then for the wiki version of your configuration file, we won't ignore any input. Better print 0 RPM than omit a running fan. If you have the possibility to test with a spare fan to see which is which, we'll update the configuration file.
Quoted 8 lines
label temp1 "CPU temp"
label temp2 "System temp"
ignore temp3# Min and max for Athlon II X2 245e
setin0_min0.875
setin0_max1.4
Did you check if the BIOS had set proper limits on its own?
Quoted 10 lines
# JEDEC standard for DDR2
set in1_min 1.7
set in1_max 1.9
# 5 % tolerance on the remaining measurements
set in2_min 3.3 * 0.95
set in2_max 3.3 * 1.05
set in4_min 12.0 * 0.95
set in4_max 12.0 * 1.05
set in5_min 1.1 * 0.95
set in5_max 1.1 * 1.05This all looks very good, I've added your configuration file to the wiki:
http://www.lm-sensors.org/wiki/Configurations/Foxconn/A7GM-S%202.0
We can update it with your later findings as needed.
Signature · 7 lines
Jean Delvare http://khali.linux-fr.org/wishlist.html _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Jean Delvare:
Quoted 1 line
I'm happy to see that my article in the wiki starts being helpful :)
:-)
Quoted 1 line
What were the values of in3, in6 and in7?
When I had identified the sensors that were reported in the BIOS, I ignored the other ones. They all gave SOME value. I assumed they were not connected and just showed a random value. But I show the raw output of "sensors" at the end of this mail.
Quoted 5 lines
One of these could be +5V,
it's usually monitored (even though the lack of mention in your BIOS suggests that might not be the case here.) One could be 5VSB. Both would need scaling so are more likely to appear in the 2.5 - 3.3 V range unscaled.
in3 is labeled +5V by the driver, and reports 2.93V, so that seems to match what you say. How would I go about figuring out the scaling factor?
in6 at 1.12V and in7 at 4.08 are both outside that range.
Quoted 2 lines
in8 is normally Vbat on the IT8716F, it shouldn't need scaling. Didn't it report a correct value for you?
It reports 3.20V, which I guess makes sense. These batteries are nominally rated 3V unless I'm mistaken. And this board is fairly new, so a little bit above that sounds reasonable to me.
Quoted 5 lines
You can just make this:
compute in4 @ * 4, @ / 4This is more efficient.
Ok. I kept the ratios as a kind of documentation, but maybe that's overkill.
Quoted 2 lines
Then for the wiki version of your configuration file, we won't ignore any input. Better print 0 RPM than omit a running fan.
Yes, that makes sense. I'll try to remember to check next time I have the box open for some reason which one is the chassis fan.
Quoted 5 lines
Quoted 3 lines
# Min and max for Athlon II X2 245e set in0_min 0.875 set in0_max 1.4Did you check if the BIOS had set proper limits on its own?
No. Would that be the limits given before I did "sensors -s"?
Quoted 2 lines
This all looks very good, I've added your configuration file to the wiki:
Happy to be able to help!
Raw output of sensors without any local configuration follows. (I haven't tried to undo the "sensors -s" though. I'm not sure if I can do that without rebooting the machine, which I don't want to do right now.)
================================================================
acpitz-virtual-0
Adapter: Virtual device
temp1: +40.0°C (crit = +60.0°C)
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +30.0°C (high = +70.0°C)
it8716-isa-0e80
Adapter: ISA adapter in0: +1.31 V (min = +0.88 V, max = +1.41 V) in1: +1.87 V (min = +1.70 V, max = +1.90 V) in2: +3.34 V (min = +3.14 V, max = +3.47 V) +5V: +2.93 V (min = +0.00 V, max = +4.08 V) in4: +3.02 V (min = +2.85 V, max = +3.15 V) in5: +1.10 V (min = +1.04 V, max = +1.15 V) in6: +1.12 V (min = +0.00 V, max = +4.08 V) in7: +4.08 V (min = +1.01 V, max = +4.08 V) ALARM Vbat: +3.20 V fan1: 2288 RPM (min = 11 RPM) fan2: 0 RPM (min = 0 RPM) fan3: 0 RPM (min = 0 RPM) temp1: +34.0°C (low = +127.0°C, high = +50.0°C) sensor = thermal diode temp2: +34.0°C (low = +127.0°C, high = +112.0°C) sensor = thermistor temp3: +73.0°C (low = +127.0°C, high = +112.0°C) sensor = thermal diode cpu0_vid: +0.375 V intrusion0: OK
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Göran,
Quoted 10 lines · Göran Uddeborg
Jean Delvare:
Quoted 5 lines
One of these could be +5V,
it's usually monitored (even though the lack of mention in your BIOS suggests that might not be the case here.) One could be 5VSB. Both would need scaling so are more likely to appear in the 2.5 - 3.3 V range unscaled.in3 is labeled +5V by the driver, and reports 2.93V, so that seems to match what you say. How would I go about figuring out the scaling factor?
I can't find it in the datasheet but I'm almost certain the chip uses 6.8 kOhm and 10 kOhm resistors internally to scale the voltage down to the measurable range. This leads to:
compure in3 @ * (1 + 6.8 / 10), @ / (1 + 6.8 / 10)
This should give you a valid +5V reading. It is odd that the BIOS won't show it.
Quoted 1 line
in6 at 1.12V and in7 at 4.08 are both outside that range.
in7 is saturated, definitely not used. If in6 could be used, for example for -12V, but we can't label it. If it stays stable, you can leave it visible.
Quoted 6 lines
Quoted 2 lines
in8 is normally Vbat on the IT8716F, it shouldn't need scaling. Didn't it report a correct value for you?
It reports 3.20V, which I guess makes sense. These batteries are nominally rated 3V unless I'm mistaken. And this board is fairly new, so a little bit above that sounds reasonable to me.
Correct. Plus many recent boards backup the battery with 3VSB while the system is powered, to extend the battery life, so values above 3.0 V aren't unusual.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
(...)
# Min and max for Athlon II X2 245e set in0_min 0.875 set in0_max 1.4Did you check if the BIOS had set proper limits on its own?
No. Would that be the limits given before I did "sensors -s"?
Yes, after a cold boot.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Jean Delvare:
Quoted 1 line
compure in3 @ * (1 + 6.8 / 10), @ / (1 + 6.8 / 10)
That gives me 4.92V, which seems reasonable for the 5V line, yes. (Just check the spelling of "compute" before you cut and paste into the wiki. :-)
Quoted 3 lines
If in6 could be used, for
example for -12V, but we can't label it. If it stays stable, you can leave it visible.
in6 seems to stay stable. Even after a cold boot, it reads 1.12V. So it could be measuring SOMETHING.
Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
# Min and max for Athlon II X2 245e set in0_min 0.875 set in0_max 1.4Did you check if the BIOS had set proper limits on its own?
No. Would that be the limits given before I did "sensors -s"?
Yes, after a cold boot.
I commented out those lines and restarted (with power off for a short while). After that, the limits seems unset:
it8716-isa-0e80
Adapter: ISA adapter
CPU core: +1.31 V (min = +0.00 V, max = +4.08 V)So I assume the BIOS does NOT set anything limits on its own.
B.t.w., I enabled in8/Vbat as you suggested. I don't get any min or max values for that sensor. Not even if I try to explicitly set them in the configuration file. That is normal and reflects the hardware, right?
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 6 lines · Göran Uddeborg
Jean Delvare:
Quoted 1 line
compure in3 @ * (1 + 6.8 / 10), @ / (1 + 6.8 / 10)That gives me 4.92V, which seems reasonable for the 5V line, yes. (Just check the spelling of "compute" before you cut and paste into the wiki. :-)
Got it right it the wiki, thankfully :)
Quoted 9 lines
(...)
I commented out those lines and restarted (with power off for a short while). After that, the limits seems unset:it8716-isa-0e80 Adapter: ISA adapter CPU core: +1.31 V (min = +0.00 V, max = +4.08 V)So I assume the BIOS does NOT set anything limits on its own.
Indeed, so doing it in sensors.conf is the right thing to do.
Quoted 4 lines
B.t.w., I enabled in8/Vbat as you suggested. I don't get any min or max values for that sensor. Not even if I try to explicitly set them in the configuration file. That is normal and reflects the hardware, right?
Yes, this is a hardware limitation. I think the non-mandatory character of Vbat explains this.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Göran Uddeborg:
Quoted 6 lines
Jean Delvare:
Quoted 2 lines
Then for the wiki version of your configuration file, we won't ignore any input. Better print 0 RPM than omit a running fan.
Yes, that makes sense. I'll try to remember to check next time I have the box open for some reason which one is the chassis fan.
It's been a while since I wrote that, but I actually haven't had reason to open the case since then. Not until today, and when I did I took the opportunity to test which sensor was connected to the socket on the board. It turned out to be fan2. So now I can give the last bits of information to make the setup for the Foxconn A7GM-S 2.0 motherboard complete:
label fan1 "CPU fan"
label fan2 "Chassis fan"ignore fan3
Better late than never! :-)
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
T24gU2F0LCAxMyBBcHIgMjAxMyAyMTowOTozMCArMDIwMCwgR8O2cmFuIFVkZGVib3JnIHdyb3Rl Ogo+IEfDtnJhbiBVZGRlYm9yZzoKPiA+IEplYW4gRGVsdmFyZToKPiA+ID4gVGhlbiBmb3IgdGhl IHdpa2kgdmVyc2lvbiBvZiB5b3VyIGNvbmZpZ3VyYXRpb24gZmlsZSwgd2Ugd29uJ3QgaWdub3Jl Cj4gPiA+IGFueSBpbnB1dC4gQmV0dGVyIHByaW50IDAgUlBNIHRoYW4gb21pdCBhIHJ1bm5pbmcg ZmFuLgo+ID4gCj4gPiBZZXMsIHRoYXQgbWFrZXMgc2Vuc2UuICBJJ2xsIHRyeSB0byByZW1lbWJl ciB0byBjaGVjayBuZXh0IHRpbWUgSSBoYXZlCj4gPiB0aGUgY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