| View previous topic :: View next topic |
| Author |
Message |
longship Apprentice

Joined: 04 Jun 2005 Posts: 294 Location: Ontario, CA USA
|
Posted: Sat Feb 04, 2006 12:42 am Post subject: lm_sensors on ASUS A8N-Sli Premium--Here's How |
|
|
lm_sensors on ASUS A8N-Sli Motherboards--Here's How
I am using kernel-2.6.15-gentoo-r1. As this version seems to work extremely well with this hardware, I recommend that you update to this kernel. (Caveat: My system is only a few days old, but I've yet to find something awry.)
I upgraded my motherboard BIOS to version 1009, the latest stable BIOS.
Here are the 2.6.15-gentoo-r1 kernel parameters:
| Code: | Device Drivers --> I2C Support
<*> I2C Support
<*> I2C device interface
Device Drivers --> I2C Support --> I2C Algorithms
<*> I2C bit-banging interfaces
Device Drivers --> I2C Support --> I2C Hardware Bus support
<M> Nvidia nForce2, nForce3, and nForce4
Device Drivers --> Hardware Monitoring support
<*> Hardware Monitoring support
<M> ITE IT87xx and compatibles
|
Or, if you prefer them in config file format:
| Code: | CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y
CONFIG_I2C_ALGOBIT=y
CONFIG_I2C_ISA=m
CONFIG_I2C_NFORCE2=m
CONFIG_HWMON=y
CONFIG_HWMON_VID=m
CONFIG_SENSORS_IT87=m
|
Compile and install the kernel per instructions. Reboot.
This will give you the following kernel modules:
| Code: | i2c_nforce2
i2c_isa
hwmon_vid
it87
|
The rest are compiled directly into the kernel. We'll have the lm_sensor system load the modules automagically for us, so do nothing to /etc/modules.autoload.d/kernel-2.6
Install lm_sensors. (I am using version 2.9.2)
Edit /etc/conf.d/lm_sensors
| Code: | LOADMODULES=yes
INITSENSORS=yes
MODULE_0=i2c_nforce2
MODULE_1=i2c_isa
MODULE_2=it87
|
Now the only thing left to do is to configure the sensors themselves. Don't ask me how I got the following information because it's a conglomeration of multiple sensors.conf files I've found on the Net. This works damned well on this motherboard. I stumbled on serveral files to help me and figured out the best combination.
Edit /etc/sensors.conf
| Code: |
chip "it87-*" "it8712-*"
# The values below have been tested on Asus CUSI, CUM motherboards.
# Voltage monitors as advised in the It8705/It8712 data sheets
label in0 "VCore 1"
label in1 "VCore 2"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "-5V"
label in6 "-12V"
label in7 "Stdby"
label in8 "VBat"
# Ignore unsupported or flakey interfaces
ignore vid
ignore in1
ignore in5 # comment out to try it out
ignore in6 # comment out to try it out
ignore in7
ignore in8
# Scale the voltages
# Note: in5 and in6 don't seem to work, but these are their scalings
compute in0 -0.05 + @ , @ + 0.05
compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1)
compute in4 ((30/10) +1)*@ , @/((30/10) +1)
compute in5 (7.67 * @) - 27.36 , (@ + 27.36) / 7.67
compute in6 (4.33 * @) - 13.64 , (@ + 13.64) / 4.33
compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1)
# Ranges (Adjust per your system)
set in0_min 1.5 * 0.85
set in0_max 1.5 * 1.05
set in1_min 2.4
set in1_max 2.6
set in2_min 3.3 * 0.95
set in2_max 3.3 * 1.05
set in3_min 5.0 * 0.95
set in3_max 5.0 * 1.05
set in4_min 12 * 0.95
set in4_max 12 * 1.05
set in5_max -5 * 0.95
set in5_min -5 * 1.05
set in6_max -12 * 0.95
set in6_min -12 * 1.05
set in7_min 5 * 0.95
set in7_max 5 * 1.05
# Temperature
# 2 = thermistor; 3 = thermal diode; 0 = unused
set sensor1 2
set sensor2 2
set sensor3 2
# Temp names and scales
# Adjust "over" and "low" as you see fit
label temp1 "CPU Temp"
set temp1_over 60
set temp1_low 15
label temp2 "C/S Temp"
set temp2_over 60
set temp2_low 15
label temp3 "M/B Temp"
set temp3_over 50
set temp3_low 15
# Fans (only two fans supported) Adjust "min" as you see fit
label fan1 "CPU Fan"
label fan2 "Cha1 Fan"
set fan1_min 800
set fan2_min 800
ignore fan3
|
Next, bring up lm_sensors.
| Code: | /etc/init.d/lm_sensors start
|
You should see the modules automagically load.
| Code: | * Loading lm_sensors modules...
* Loading i2c-nforce2 ... [ ok ]
* Loading i2c-isa ... [ ok ]
* Loading it87 ... [ ok ]
* Initializing sensors ... [ ok ]
|
Check the modules by typing "lsmod":
| Code: | Module Size Used by
it87 23588 0
i2c_isa 4800 1 it87
i2c_nforce2 6848 0
hwmon_vid 2496 1 it87
|
Notice that it87 has brought in the hwmon_vid module.
Now look at your sensors, just type in "sensors" at the prompt.
Here's my output:
| Code: | it8712-isa-0290
Adapter: ISA adapter
VCore 1: +1.29 V (min = +1.23 V, max = +1.52 V)
+3.3V: +3.25 V (min = +3.14 V, max = +3.47 V)
+5V: +4.81 V (min = +4.76 V, max = +5.24 V)
+12V: +11.97 V (min = +11.39 V, max = +12.61 V)
CPU Fan: 2678 RPM (min = 799 RPM, div = 8)
Cha1 Fan: 1548 RPM (min = 799 RPM, div = 8)
CPU Temp: +33 C (low = +15 C, high = +60 C) sensor = thermistor
C/S Temp: +36 C (low = +15 C, high = +60 C) sensor = thermistor
M/B Temp: +39 C (low = +15 C, high = +50 C) sensor = thermistor
|
Note that my PSU has a low 5v rail. It hasn't caused any problems yet, but I have contacted Seasonic about it.
I've played around with the -12v and -5v sensors, but they don't seem to be reporting anything meaningful. Here's what sensors says about them:
| Code: | -5V: -4.90 V (min = -5.27 V, max = -4.78 V)
-12V: -13.64 V (min = -12.60 V, max = -11.42 V) ALARM
|
These voltages are not monitored, so just leave them out.
Hope this helps people get things working. This may also work well on other, similar ASUS nForce4 motherboards. Try it.
Comments and corrections solicited.
Last edited by longship on Tue Feb 21, 2006 1:39 pm; edited 2 times in total |
|
| Back to top |
|
 |
Martigen n00b

Joined: 04 Mar 2003 Posts: 58
|
Posted: Sat Feb 04, 2006 10:29 am Post subject: |
|
|
Nice! Been looking to setup sensors properly on my Premium, ta  |
|
| Back to top |
|
 |
deluge Apprentice

Joined: 28 Jan 2004 Posts: 157
|
Posted: Sat Feb 04, 2006 7:42 pm Post subject: |
|
|
Hey look at my results, I got A8N-E, but ...
| Code: | it8712-isa-0290
Adapter: ISA adapter
VCore 1: +1.07 V (min = +1.28 V, max = +1.58 V) ALARM
VCore 2: +0.00 V (min = +2.40 V, max = +2.61 V) ALARM
+3.3V: +3.25 V (min = +3.14 V, max = +3.47 V)
+5V: +4.89 V (min = +4.76 V, max = +5.24 V)
+12V: +12.03 V (min = +11.39 V, max = +12.61 V)
-5V: -4.78 V (min = -5.27 V, max = -4.78 V) ALARM
-12V: -13.64 V (min = -12.60 V, max = -11.42 V) ALARM
Stdby: +4.89 V (min = +4.76 V, max = +5.24 V)
VBat: +3.10 V
CPU Fan: 927 RPM (min = 0 RPM, div = 8)
Cha1 Fan: 0 RPM (min = 0 RPM, div = 8)
Chip Fan: 4218 RPM (min = 998 RPM, div = 8)
CPU Temp: +35°C (low = +15°C, high = +60°C) sensor = thermistor
C/S Temp: +32°C (low = +15°C, high = +60°C) sensor = thermistor
M/B Temp: +27°C (low = +15°C, high = +50°C) sensor = thermistor
|
+5V is also defected a little , as well as -5 and -12 .. perhaps wrong readings ? need adjustment ? |
|
| Back to top |
|
 |
snakattak3 Guru


Joined: 11 Dec 2002 Posts: 468 Location: Seattle
|
Posted: Sat Feb 04, 2006 10:33 pm Post subject: |
|
|
| deluge wrote: |
+5V is also defected a little , as well as -5 and -12 .. perhaps wrong readings ? need adjustment ? |
I too have an A8N-E, i would like to know what your final values are for sensors.conf. _________________ Ban Reality TV!
Adopt an Unanswered Post |
|
| Back to top |
|
 |
bexamous2 Tux's lil' helper

Joined: 18 Nov 2005 Posts: 80
|
Posted: Sun Feb 05, 2006 12:38 am Post subject: |
|
|
| Thanks alot, works perfect. |
|
| Back to top |
|
 |
deluge Apprentice

Joined: 28 Jan 2004 Posts: 157
|
Posted: Sun Feb 05, 2006 5:18 am Post subject: |
|
|
| I used settings for sensors.conf form 1st post, becouse those are the same mb. And showed my output for that config |
|
| Back to top |
|
 |
longship Apprentice

Joined: 04 Jun 2005 Posts: 294 Location: Ontario, CA USA
|
Posted: Sun Feb 05, 2006 2:45 pm Post subject: |
|
|
| deluge wrote: | Hey look at my results, I got A8N-E, but ...
+5V is also defected a little , as well as -5 and -12 .. perhaps wrong readings ? need adjustment ? |
My +5v reading is in line with that reported by my BIOS Setup. So, I tend to believe that my PSU has a low +5v rail.
Note that your negative voltages are likely no good, just like mine. I suggest that you "ignore" them in sensors.conf.
I didn't realize that there were three temp sensors until I played around with things. Apparently, there is because these temps are also in line with those reported in the BIOS Setup, although BIOS does not report the Northbridge (C/S) temp. This is an important one since if the Sli Premium's passive Northbridge cooling isn't working that chip would get very hot, very quickly. |
|
| Back to top |
|
 |
mudrii l33t

Joined: 25 Jun 2003 Posts: 789 Location: Singapore
|
Posted: Mon Feb 06, 2006 4:17 am Post subject: |
|
|
Thanks for really nice lm_sensors setup configuration
Regards _________________ www.gentoo.ro |
|
| Back to top |
|
 |
SAngeli l33t


Joined: 16 Apr 2004 Posts: 904 Location: Italy
|
Posted: Sun Apr 30, 2006 1:26 pm Post subject: |
|
|
great work.
FYI: Here is my output:
| Code: | ~ # sensors
it8712-isa-0290
Adapter: ISA adapter
VCore 1: +1.36 V (min = +1.28 V, max = +1.58 V)
+3.3V: +3.28 V (min = +3.14 V, max = +3.47 V)
+5V: +4.92 V (min = +4.76 V, max = +5.24 V)
+12V: +11.78 V (min = +11.39 V, max = +12.61 V)
CPU Fan: 0 RPM (min = 799 RPM, div = 8)
Cha1 Fan: 0 RPM (min = 799 RPM, div = 8)
CPU Temp: +33°C (low = +15°C, high = +60°C) sensor = thermistor
C/S Temp: +27°C (low = +15°C, high = +60°C) sensor = thermistor
M/B Temp: +27°C (low = +15°C, high = +50°C) sensor = thermistor |
Spiro |
|
| Back to top |
|
 |
tnt l33t


Joined: 27 Feb 2004 Posts: 926
|
Posted: Sun Apr 30, 2006 4:45 pm Post subject: |
|
|
just a tip:
if you edit /etc//modules.d/it87
| Code: | cat /etc/modules.d/it87
options it87 fix_pwm_polarity
|
you would be able to control fan speeds manualy or by fancontrol script (use pwmconfig first)
 _________________ gentoo user |
|
| Back to top |
|
 |
SAngeli l33t


Joined: 16 Apr 2004 Posts: 904 Location: Italy
|
Posted: Mon May 01, 2006 1:05 am Post subject: |
|
|
how come I do not have this file?
Here is what I currently have:
| Code: | ~ # ls -la /etc/modules.d/
total 36
drwxr-xr-x 2 root root 4096 Mar 20 10:52 .
drwxr-xr-x 88 root root 4096 May 1 2006 ..
-rw-r--r-- 1 root root 1310 Mar 19 16:06 aliases
-rw-r--r-- 1 root root 1485 Apr 7 09:07 alsa
-rw-r--r-- 1 root root 1451 Aug 13 2005 alsa_spiro
-rw-r--r-- 1 root root 122 Mar 19 16:06 i386
-rw-r--r-- 1 root root 0 Aug 27 2005 .keep
-rw-r--r-- 1 root root 22 Mar 20 10:48 kqemu
-rw-r--r-- 1 root root 516 Mar 20 10:49 nvidia
-rw-r--r-- 1 root root 340 Mar 20 10:48 realtime |
Where did you get that /etc/modules.d/it87 ?
Moreover, I never was succesfull in setting Cool N Quite on my AMD because I was assuming that fan speed autoadjust to CPU temperature. Is this still the same or has it changed or so?
Thank you,
Spiro |
|
| Back to top |
|
 |
mudrii l33t

Joined: 25 Jun 2003 Posts: 789 Location: Singapore
|
Posted: Wed May 31, 2006 11:17 am Post subject: |
|
|
| SAngeli wrote: | how come I do not have this file?
Here is what I currently have:
| Code: | ~ # ls -la /etc/modules.d/
total 36
drwxr-xr-x 2 root root 4096 Mar 20 10:52 .
drwxr-xr-x 88 root root 4096 May 1 2006 ..
-rw-r--r-- 1 root root 1310 Mar 19 16:06 aliases
-rw-r--r-- 1 root root 1485 Apr 7 09:07 alsa
-rw-r--r-- 1 root root 1451 Aug 13 2005 alsa_spiro
-rw-r--r-- 1 root root 122 Mar 19 16:06 i386
-rw-r--r-- 1 root root 0 Aug 27 2005 .keep
-rw-r--r-- 1 root root 22 Mar 20 10:48 kqemu
-rw-r--r-- 1 root root 516 Mar 20 10:49 nvidia
-rw-r--r-- 1 root root 340 Mar 20 10:48 realtime |
Where did you get that /etc/modules.d/it87 ?
Moreover, I never was succesfull in setting Cool N Quite on my AMD because I was assuming that fan speed autoadjust to CPU temperature. Is this still the same or has it changed or so?
Thank you,
Spiro |
You should compile as module in the kernel _________________ www.gentoo.ro |
|
| Back to top |
|
 |
mointrigue n00b


Joined: 06 Mar 2006 Posts: 57 Location: Madison, WI USA
|
Posted: Fri Aug 25, 2006 2:57 pm Post subject: |
|
|
Sweet! This is just what I needed.  |
|
| Back to top |
|
 |
mudrii l33t

Joined: 25 Jun 2003 Posts: 789 Location: Singapore
|
Posted: Wed Apr 25, 2007 5:38 pm Post subject: |
|
|
This sensors.conf working just fine with new sys-apps/lm_sensors-2.10.3
Just remember to compile kernel with k8temp support
| Code: | cat /etc/sensors.conf
chip "it8712-*"
# Voltage monitors
label in0 "VCore 1"
label in2 "+3.3V"
label in3 "+5V"
label in4 "+12V"
label in5 "-5V"
label in6 "-12V"
label in7 "Stdby"
label in8 "VBat"
ignore in1
# Compute Value
compute in3 ((6.8/10)+1)*@ , @/((6.8/10)+1)
compute in4 ((30/10) +1)*@ , @/((30/10) +1)
compute in5 (7.67 * @) - 27.36 , (@ + 27.36) / 7.67
compute in6 (4.33 * @) - 13.64 , (@ + 13.64) / 4.33
compute in7 ((6.8/10)+1)*@ , @/((6.8/10)+1)
# Temperature
label temp1 "M/B Temp"
label temp2 "CPU Temp"
label temp3 "Chase Temp"
# Fans
ignore fan2
chip "k8temp-*"
label temp1 "Core0 Temp"
label temp2 "Core0 Temp"
label temp3 "Core1 Temp"
label temp4 "Core1 Temp" |
output
| Code: |
sensors
it8712-isa-0290
Adapter: ISA adapter
VCore 1: +1.10 V (min = +1.09 V, max = +1.63 V)
+3.3V: +3.33 V (min = +3.14 V, max = +3.47 V)
+5V: +4.95 V (min = +4.76 V, max = +5.24 V)
+12V: +11.78 V (min = +11.39 V, max = +12.61 V)
-5V: -4.53 V (min = -5.27 V, max = -4.78 V) ALARM
-12V: -13.64 V (min = -12.60 V, max = -11.42 V) ALARM
Stdby: +4.76 V (min = +4.76 V, max = +5.24 V) ALARM
VBat: +3.07 V
fan1: 1548 RPM (min = 811 RPM, div = 8)
M/B Temp: +37°C (low = +15°C, high = +60°C) sensor = thermistor
CPU Temp: +40°C (low = +15°C, high = +60°C) sensor = thermistor
Chase Temp:
+23°C (low = +15°C, high = +50°C) sensor = thermistor
vid: +0.875 V
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:
+32°C
Core1 Temp:
+30°C |
_________________ www.gentoo.ro |
|
| Back to top |
|
 |
jpnag Tux's lil' helper


Joined: 04 Apr 2005 Posts: 102 Location: Portugal/Oporto
|
Posted: Thu Jun 07, 2007 1:32 pm Post subject: |
|
|
| deluge wrote: | Hey look at my results, I got A8N-E, but ...
| Code: | it8712-isa-0290
Adapter: ISA adapter
VCore 1: +1.07 V (min = +1.28 V, max = +1.58 V) ALARM
VCore 2: +0.00 V (min = +2.40 V, max = +2.61 V) ALARM
+3.3V: +3.25 V (min = +3.14 V, max = +3.47 V)
+5V: +4.89 V (min = +4.76 V, max = +5.24 V)
+12V: +12.03 V (min = +11.39 V, max = +12.61 V)
-5V: -4.78 V (min = -5.27 V, max = -4.78 V) ALARM
-12V: -13.64 V (min = -12.60 V, max = -11.42 V) ALARM
Stdby: +4.89 V (min = +4.76 V, max = +5.24 V)
VBat: +3.10 V
CPU Fan: 927 RPM (min = 0 RPM, div = 8)
Cha1 Fan: 0 RPM (min = 0 RPM, div = 8)
Chip Fan: 4218 RPM (min = 998 RPM, div = 8)
CPU Temp: +35°C (low = +15°C, high = +60°C) sensor = thermistor
C/S Temp: +32°C (low = +15°C, high = +60°C) sensor = thermistor
M/B Temp: +27°C (low = +15°C, high = +50°C) sensor = thermistor
|
+5V is also defected a little , as well as -5 and -12 .. perhaps wrong readings ? need adjustment ? |
Any ideias why my output is: (I also have a A7N8-E)
| Code: |
$ cat /proc/acpi/thermal_zone/THRM/temperature
temperature: 40 C
$ sensors
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:
+39 C
it8712-isa-0290
Adapter: ISA adapter
VCore 1: +1.39 V (min = +0.00 V, max = +4.08 V)
VCore 2: +0.00 V (min = +0.00 V, max = +4.08 V) ALARM
+3.3V: +3.23 V (min = +0.00 V, max = +4.08 V)
+5V: +4.92 V (min = +0.00 V, max = +6.85 V)
+12V: +11.71 V (min = +0.00 V, max = +16.32 V)
-12V: -4.78 V (min = -27.36 V, max = +3.93 V)
-5V: -13.64 V (min = -13.64 V, max = +4.03 V) ALARM
Stdby: +4.92 V (min = +0.00 V, max = +6.85 V)
VBat: +3.12 V
fan1: 4326 RPM (min = 0 RPM, div = 8)
fan2: 0 RPM (min = 0 RPM, div = 8)
fan3: 6490 RPM (min = 0 RPM, div = 8)
M/B Temp: +42 C (low = -1 C, high = +127 C) sensor = thermistor
CPU Temp: +45 C (low = -1 C, high = +127 C) sensor = thermistor
Temp3: +26 C (low = -1 C, high = +127 C) sensor = thermistor
|
Is this an lmsensors problem or could it be a wrong MB assembly?!
Any ideias?
Note that the -5V and -12V lines in my output is twisted with deluge's output.....
| Code: |
-12V: -4.78 V (min = -27.36 V, max = +3.93 V)
-5V: -13.64 V (min = -13.64 V, max = +4.03 V) ALARM
|
_________________ Never argue with an idiot, we will drag you down to his level and beat you up with experience! |
|
| Back to top |
|
 |
mudrii l33t

Joined: 25 Jun 2003 Posts: 789 Location: Singapore
|
Posted: Fri Jun 08, 2007 2:36 am Post subject: |
|
|
in configuration file for lm_sensors just relabel the entry and should work _________________ www.gentoo.ro |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|