• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

nForce2 HW Monitoring

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Voodoo_fx

Member
Joined
May 30, 2002
Location
Wisconsin
( nForce2 / Newer Via ) HW Monitoring

I saw the thread but it didn't show how to do it for an nForce2 board, which is quite easy.. :p

Im using Kernel 2.4.20 on Gentoo.. so your results might vary! BUT, here it is

OK first.. make sure and REMOVE, yes remove I2C in your kernel.. don't worry we will be installing it later on.. then recompile it..

Google and find these two files:
i2c-2.8.0.tar.gz
lm_sensors-2.8.0.tar.gz

extract both of them...

now go into the i2c dir and run 'make all' then run 'make install'

Next,

go into the lm_sensors dir and run 'make all' 'make install'

Easy wasn't it? :p

Next, you need to go to cd /usr/local/sbin

then run

./detect-sensors

Go throught he config, I usually hit enter to all of it :0

You'll come to where it says CUT HERE

then list some modules

Heres mine:
===========================================================
To load everything that is needed, add this to some /etc/rc* file:

#----cut here----
# I2C adapter drivers
modprobe i2c-nforce2
# I2C chip drivers
modprobe eeprom
modprobe w83781d
modprobe to-be-written
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
#----cut here----
===============================================================

Now for Gentoo all I did was put this into my modules.autoload file..

i2c-nforce2
eeprom
w83781

I did not include to-be-written <- wasn't sure what it was :p


if your using an rc scripts then you need to add this to some file

modprobe i2c-nforce2
modprobe eeprom
modprobe w83781

Answer the last config question yes.. and also I believe default it installs to /etc/sysconfig/lm_sensors.. if you jsut hit yes, you need to copy lm_sensors from the dir and put it in your init.d folder :p

Now here is my init.d script... This should be created when you answer that last question YES!


#!/sbin/runscript

start() {
if ! [ -f /etc/conf.d/lm_sensors ] ; then
eerror "/etc/conf.d/lm_sensors does not exist, try running sensors-detect"
return 1
fi

. /etc/conf.d/lm_sensors

if [ -z "${MODULE_0}" ] ; then
eerror "MODULE_0 is not set in /etc/conf.d/lm_sensors, try running sensors-detect"
return 1
fi

ebegin "Loading lm_sensors modules"
eend $?
if ! [ -e /proc/sys/dev/sensors ] ; then
ebegin " Loading i2c-proc"
modprobe i2c-proc &>/dev/null
eend $?
fi
[ -e /proc/sys/dev/sensors ] || return 1

i=0
while true; do
module=`eval echo '$'MODULE_${i}`
if [ -z "${module}" ] ; then
break
fi
ebegin " Loading ${module}"
modprobe ${module} &>/dev/null
eend $?
i=$((i+1))
done
return 0
}

stop() {
if ! [ -f /etc/conf.d/lm_sensors ] ; then
eerror "/etc/conf.d/lm_sensors does not exist, try running sensors-detect"
return 1
fi

. /etc/conf.d/lm_sensors

if [ -z "${MODULE_0}" ] ; then
eerror "MODULE_0 is not set in /etc/conf.d/lm_sensors, try running sensors-detect"
return 1
fi

ebegin "Removing lm_sensors modules"
eend $?

# find the highest possible MODULE_ number
i=0
while true; do
module=`eval echo '$'MODULE_${i}`
if [ -z "${module}" ] ; then
break
fi
i=$((i+1))
done

while [ ${i} -gt 0 ]; do
i=$((i-1))
module=`eval echo '$'MODULE_${i}`
ebegin " Removing ${module}"
rmmod ${module} &>/dev/null
eend $?
done

# should we actually remove i2c-proc???
ebegin " Removing i2c-proc"
rmmod i2c-proc &>/dev/null
eend $?

return 0
}

then I went to console and ran this..

rc-update add lm_sensors default


after this I rebooted and installed gkrellm2 and setup my sensors config :p

You should be able to go the command prompt and type sensors after reboot to make sure its working also...
 
Last edited:
Back