View source for ASUS M2NPV-VM Sensors
In order to get the program <tt>sensors</tt> recognize the sensors on the ASUS M2NPV-VM mainboard with openSUSE 10.2 (kernel 2.6.18), you'll need to install some <tt>hwmon</tt> (hardware monitor) kernel module patches. The kernel modules in question are: <tt>k8temp</tt> (new) and <tt>it87</tt>. And, of course, you'll need correct setup for <tt>sensors</tt>. Note that newer openSUSE versions are perfectly supporting these sensors. When all is installed and set up correctly, <tt>sensors</tt> should give some output like: k8temp-pci-00c3 Adapter: PCI adapter Core0 Temp: +34°C Core1 Temp: +34°C it8716-isa-0290 Adapter: ISA adapter VCore: +1.25 V (min = +1.19 V, max = +1.41 V) +3.3V: +3.33 V (min = +3.13 V, max = +3.46 V) +5V: +5.04 V (min = +4.76 V, max = +5.26 V) +12V: +12.05 V (min = +11.39 V, max = +12.58 V) 5VSB: +4.98 V (min = +4.76 V, max = +5.26 V) VBat: +2.86 V CPU Fan: 1285 RPM (min = 799 RPM) CAS Fan: 855 RPM (min = 399 RPM) PWR Fan: 968 RPM (min = 0 RPM) CPU Temp: +35°C (low = +10°C, high = +60°C) sensor = diode M/B Temp: +37°C (low = +10°C, high = +50°C) sensor = thermistor UNKNOWN: +25°C (low = +10°C, high = +60°C) sensor = thermistor ==Get the patches== Google around the internet and find the following files (possibly also available under slightly different names): hwmon-k8temp-new-driver.patch hwmon-it8716f-it8718f-v4-2.6.18.patch ==Install the patches and recompile the <tt>hwmon</tt> kernel modules== ''Attention: You'll need to do this each time you install a new or update your kernel.'' Having the kernel sources installed, apply the patches with: cd /usr/src/linux patch -b -p1 < hwmon-k8temp-new-driver.patch patch -b -p1 < hwmon-it8716f-it8718f-v4-2.6.18.patch Within the same source directory, prepare for compiling the kernel (modules) with: make cloneconfig Edit the file <tt>.config</tt> and take care to have the following settings: CONFIG_SENSORS_K8TEMP=m CONFIG_SENSORS_IT87=m Continue to compile the <tt>hwmon</tt> kernel modules with: make scripts make prepare cd drivers/hwmon make -C /usr/src/linux M=$(pwd) make -C /usr/src/linux M=$(pwd) modules_install This will install the new kernel modules, for example (depending on your kernel version), into: /lib/modules/22.214.171.124-0.5-default/extra You may want to clean up your source area with: make -C /usr/src/linux M=$(pwd) clean Since the kernel will still look for its modules at the original location, get rid of the original <tt>it87</tt> module. For example (depending on your kernel version) with: mv /lib/modules/126.96.36.199-0.5-default/kernel/drivers/hwmon/it87.ko \ /lib/modules/188.8.131.52-0.5-default/kernel/drivers/hwmon/it87.ko.orig Finally, check with <tt>lsmod</tt> whether the module <tt>it87</tt> is already loaded and activate the new and patched modules with: depmod rmmod it87 # if loaded already modprobe it87 modprobe k8temp ==Setup for <tt>sensors</tt>== You can try out <tt>sensors-detect</tt> to see what it detects. In the end you'll just need the following in <tt>/etc/sysconfig/lm_sensors</tt>: MODULE_0=i2c-nforce2 MODULE_1=k8temp MODULE_2=it87 Take care that you have enabled <tt>lm_sensors</tt> under Yast2's System Services (Runlevel). Then you'll need some setup such that the output of <tt>sensors</tt> will show the correct numbers. I used the following approach: Reboot, enter BIOS setup, go to "Power / Hardware Monitor" and wait for a while, such that the computer is in some "quiet" state. Then write down the numbers you see, in my case for example: Q-Fan Controller Enabled Vcore Voltage 1.27V 3.3V Voltage 3.34V 5V Voltage 5.06V 12V Voltage 12.04V CPU Temperature 47°C M/B Temperature 39°C CPU Fan Speed 2033 RPM Chassis Fan1 Speed 859 RPM Chassis Fan2 Speed 0 RPM Power Fan Speed 976 RPM CPU Fan Speed Warning 800 RPM Next, reboot Linux and log in. Wait again for a while, such that the computer is in some "quiet" state again. Then invoke <tt>sensors</tt> and compare its output to the earlier numbers from the BIOS. First you can derive the label names, second, assuming that the numbers should be approximately the same, you can calculate the factors for adapting the numbers. In my case I have the following set up in <tt>/etc/sensors.conf</tt>: chip "it8716-*" label in0 "VCore" label in1 "+3.3V" ignore in2 label in3 "+5V" # VCC label in4 "+12V" ignore in5 ignore in6 label in7 "5VSB" # VCCH label in8 "VBat" ignore vid compute in0 @*1.22 , @/1.22 compute in1 @*1.025 , @/1.025 compute in3 @*1.749 , @/1.749 compute in4 @*4.139 , @/4.139 compute in7 @*1.749 , @/1.749 set in0_min 1.20 set in0_max 1.40 set in1_min 3.3 * 0.95 set in1_max 3.3 * 1.05 set in3_min 5 * 0.95 set in3_max 5 * 1.05 set in4_min 12 * 0.95 set in4_max 12 * 1.05 set in7_min 5 * 0.95 set in7_max 5 * 1.05 label temp1 "CPU Temp" label temp2 "M/B Temp" label temp3 "UNKNOWN" set temp1_over 60 set temp1_low 10 set temp2_over 50 set temp2_low 10 set temp3_over 60 set temp3_low 10 label fan1 "CPU Fan" label fan2 "CAS Fan" label fan3 "PWR Fan" set fan1_min 800 set fan2_min 400 ... chip "k8temp-*" label temp1 "Core0 Temp" ignore temp2 label temp3 "Core1 Temp" ignore temp4 This will have <tt>sensors</tt> display the output as shown at the beginning of this article.
ASUS M2NPV-VM Sensors
Retrieved from "
What links here