Beruflich Dokumente
Kultur Dokumente
All available
FAQ | Search | Memberlist | Usergroups | Statistics | Profile | Log in to check your private messages |
Log in | Register
Author Message
smokeslikeapoet Posted: Thu May 08, 2003 11:52 pm Post subject: Monitor CPU Temperature with
Tux's lil' helper lm_sensors and gkrellm
Introduction
This process was accomplished with an Athlon XP 1800+ and EpoX 8KHA+ Via KT266A.
Your result will be slightly different than my own. Please read the follow-up posts for
information on other systems. I don't claim to be an expert in cpu cooling or motherboard
sensor troubleshooting, I just consolidated about 2 hours worth of research in one
Joined: 03 Apr 2003
Posts: 96 HowTo. If you're having trouble getting lm-sensors working or have other platform
Location: Cordova, TN USA
specific questions I've opened a support thread here:
http://forums.gentoo.org/viewtopic.php?p=326081
Making It Work
When compilling your kernel in the Character Devices section enable I2C Support , I2C
device interface, and I2C /proc interface, as modules. If you have a tvtuner card, like I
do, you already have probably already enabled these options. If you haven't already
enabled them all you have to do is:
Code:
# make modules && make modules_install
Then run:
Code:
# sensors-detect
Press [return] to select the default options when you're prompted until you come to this
Code:
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
I will now generate the commands needed to load the I2C modules.
Sometimes, a chip is available both through the ISA bus and an I2C
bus.
ISA bus access is faster, but you need to load an additional
driver module
for it. If you have the choice, do you want to use the ISA bus or
the
I2C/SMBus (ISA/smbus)?
WARNING! If you have some things built into your kernel, the
below list will contain too many modules. Skip the appropriate
ones!
To load everything that is needed, add this to some /etc/rc* file:
#----cut here----
# I2C adapter drivers
# modprobe unknown adapter bt848 #0 using Bit-shift algorithm
# modprobe unknown adapter bt848 #0 using Bit-shift algorithm
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe w83781d
#----cut here----
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
Instead of following those directions verbatim, I added i2c-viapro, i2c-isa, eeprom, and
w83791d to /etc/modules.autoload. Make sure you have alias char-major-89 i2c-dev in
/etc/modules.conf. The lm_sensors ebuild has added /etc/init.d/lm_sensors for us. So to
load lm_sensors at boot do this:
Code:
# rc-update add lm_sensors default
Since we're Linux users and don't like to reboot do this, just replace the my modules with
you're own.
Code:
# modprobe i2c-viapro
# modprobe i2c-isa
# modprobe eeprom
# modprobe w83781d
eeprom-i2c-1-50
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Non-I2C SMBus adapter
Memory type: DDR SDRAM DIMM SPD
SDRAM Size (MB): 256
eeprom-i2c-1-51
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Non-I2C SMBus adapter
Memory type: DDR SDRAM DIMM SPD
SDRAM Size (MB): 256
w83697hf-isa-0290
Adapter: ISA adapter
Algorithm: ISA algorithm
VCore: +1.76 V (min = +0.00 V, max = +0.00 V)
+3.3V: +1.52 V (min = +2.97 V, max = +3.63 V)
+5V: +4.89 V (min = +4.50 V, max = +5.48 V)
+12V: +12.58 V (min = +10.79 V, max = +13.11 V)
-12V: +2.10 V (min = -13.21 V, max = -10.90 V)
-5V: +0.58 V (min = -5.51 V, max = -4.51 V)
V5SB: +5.53 V (min = +4.50 V, max = +5.48 V)
VBat: +3.13 V (min = +2.70 V, max = +3.29 V)
fan1: 0 RPM (min = 3000 RPM, div = 2)
fan2: 0 RPM (min = 3000 RPM, div = 2)
temp1: +28°C (limit = +60°C) sensor =
thermistor
alarms:
beep_enable:
Sound alarm disabled
Now, I'm sure my output isn't totally accurate and yours probably isn't either. For
example, I'm not using the normal 3 pin connector for my CPU fan because I have an
80mm Delta screamer on my heat sink. I also know that my core voltage isn't 1.52V.
This can be corrected in:
Code:
/etc/sensors.conf
Since calibration is motherboard specific it is beyond the scope of this tutorial (perhaps a
new tutorial is in order), but you can read more on how to calibrate your output on these
pages:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/lm_sensors-FAQ.html
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/etc/sensors.conf.eg
The CPU core temps can only be exactly measured in a laboratory environment. You can
however correct the mesurements you know to be inaccurate.
Finishing Up
Now you can launch gkrellm2 as a user (note the program name is gkrellm2). With the
gkrellm window active press F1. Expand the Builtins menu and click on sensors. Here you
can configure which sensors you would like to see in the gkrellm window. I'll leave that
up to you. A note to my fellow Americans you can select Fahrenheit temps in the Options
tab. Ksensors can also be configured in much the same way by right-clicking on the
window.
This is my first How-To attempt for this forum your constructive criticism is appreciated.
edit: corrected typo, added ksensors info, added command line sensors info, added
categories, added supercool Indigo headers, added calibration information (thanks,
puddpunk). updated lm_sensors to lm-sensors.
_________________
-SmokesLikeaPoet
Folding@Home
Last edited by smokeslikeapoet on Sun Jan 11, 2004 5:07 am; edited 7 times in total
Back to top
ERW1N Posted: Fri May 09, 2003 1:25 am Post subject:
n00b
Thx a lot.
Joined: 09 Mar 2003 been looking for this tips.
Posts: 35
Location: Singapore
smokeslikeapoet wrote:
After compilling your kernel do the following
Code:
emerge i2c lmsensors gkrellm
_________________
AthlonXP 2100+ :: 512 MB DDR :: Radeon 8500 (128mb) :: Sound Blaster Audigy
2.4.20-gentoo-r5 :: XFree 4.3.0-r2 :: Gnome 2.2.1
Back to top
-Erwin-
_________________
AthlonXP 2100+ :: 512 MB DDR :: Radeon 8500 (128mb) :: Sound Blaster Audigy
2.4.20-gentoo-r5 :: XFree 4.3.0-r2 :: Gnome 2.2.1
Back to top
There is also a nice program for KDE called ksensors instead of gkrellm for all you KDE
fans out there.
During the set I also had to create the directory /etc/sysconfig manually before I could
Joined: 25 Oct 2002 get /etc/init.d/lm_sensors to start.
Posts: 774
Location: Lexington,
KY,USA ERW1N:
A good check would be to reboot and check the health status in your bios to see what the
temperature is running there.
Chris
Back to top
just a side note to IBM ThinkPad users: lmsensors can damage the bios or something.
The install script checks wheter the PC is a ThinkPad and denies installation in that case, I
think.
Back to top
Another note, for ASUS mobo users. On most recent motherboards (the ones using ICH4
chipset), ASUS disables the SMBus device and does not provide us with any bios option to
enable it. Thus it is totally impossible to have lm_sensors work "out of the box". That
said, there is a hack, documented in lm_sensors package, which solves it.
Joined: 22 Feb 2003 If anyone has got that problem, I can post a walkthrough.
Posts: 673
Back to top
ERW1N wrote:
the sensor gives me:
temp1 36.0 C
temp2 28.5 C
temp3 7.5 C
Your first temp is your processor. I would assume that you measured it idle. Mine runs at
42.5 at load with a 24.5 degree ambient room tempurature. Your second tempurature is
the secondary sensor on your motherboard. Mine runs at 28.0C. The secondary sensor
should not be much higher than your ambient room tempurature, otherwise you could
use an extra case fan or two.
If you want a program that will tax your processor for a while click on the link in my
signature. It's a distributed computing project that combats infectious diseases.
Folding@Home
Back to top
barlad wrote:
Joined: 09 Mar 2003 Another note, for ASUS mobo users. On most recent motherboards (the ones
Posts: 35 using ICH4 chipset), ASUS disables the SMBus device and does not provide us
Location: Singapore with any bios option to enable it. Thus it is totally impossible to have lm_sensors
work "out of the box". That said, there is a hack, documented in lm_sensors
package, which solves it.
i have ASUS A7V333 and lm_sensors works fine, it's just not detecting the CPU temp
correctly....
smokeslikeapoet wrote:
Your first temp is your processor. I would assume that you measured it idle. Mine
runs at 42.5 at load with a 24.5 degree ambient room tempurature. Your second
tempurature is the secondary sensor on your motherboard. Mine runs at 28.0C.
The secondary sensor should not be much higher than your ambient room
tempurature, otherwise you could use an extra case fan or two.
i rebooted my box and checked the BIOS, the only match temp was the 1st temp which
was displayed as M/B temp in BIOS. Weird.. seems lm_sensors can't detect my cpu temp
correctly.
_________________
AthlonXP 2100+ :: 512 MB DDR :: Radeon 8500 (128mb) :: Sound Blaster Audigy
2.4.20-gentoo-r5 :: XFree 4.3.0-r2 :: Gnome 2.2.1
Back to top
[quote="ERW1N]i rebooted my box and checked the BIOS, the only match temp was the
1st temp which was displayed as M/B temp in BIOS. Weird.. seems lm_sensors can't
detect my cpu temp correctly.[/quote]
try typing
Joined: 26 Feb 2003 Code:
Posts: 156
Location: sensors
Melbourne,AUSTRALIA
at a command prompt. On my gigabyte MB, I had a similair problem, I found that sensor-
detect had detected the standard i2c sensor and the via sensor (viapro). gkrellm uses the
standard one by default. On my system the via sensor showed the correct temp, but the
i2c on was way off - I guess the offset etc needs to be tweaked for the standard i2c
sensor, but I just set gkrellm to display the readings from the via sensor.
Back to top
ERW1N Posted: Sat May 10, 2003 4:54 am Post subject:
n00b
cool!
Joined: 09 Mar 2003 sensors gives me the correct temperature and fan speed..
Posts: 35
Location: Singapore
how to set gkrellm to display the reading from via sensor?
i tried checking the conf files but couldn't find anything
_________________
AthlonXP 2100+ :: 512 MB DDR :: Radeon 8500 (128mb) :: Sound Blaster Audigy
2.4.20-gentoo-r5 :: XFree 4.3.0-r2 :: Gnome 2.2.1
Back to top
Very nice tutorial! It's very nice to see a tutorial done about it, and it works awesome
here on my Asus A7M266-D
_________________
Joined: 04 Mar 2003 http://www.digital-drip.com
Posts: 66
Location: United States of
America
Back to top
barlad wrote:
Another note, for ASUS mobo users. On most recent motherboards (the ones
using ICH4 chipset), ASUS disables the SMBus device and does not provide us
with any bios option to enable it. Thus it is totally impossible to have lm_sensors
work "out of the box". That said, there is a hack, documented in lm_sensors
Joined: 21 Jul 2002 package, which solves it.
Posts: 144
If anyone has got that problem, I can post a walkthrough.
Thank you
Simon
Back to top
barlad wrote:
Another note, for ASUS mobo users. On most recent motherboards (the ones
using ICH4 chipset), ASUS disables the SMBus device and does not provide us
with any bios option to enable it. Thus it is totally impossible to have lm_sensors
work "out of the box". That said, there is a hack, documented in lm_sensors
package, which solves it.
Joined: 03 Apr 2003
Posts: 96 If anyone has got that problem, I can post a walkthrough.
Location: Cordova, TN USA
If you want to add the information. I'll included it in my howto. You can post or pm me
the info.
_________________
-SmokesLikeaPoet
Folding@Home
Back to top
What hasn't even been mentioned on this thread, is that temperatures that are on the
BIOS screen or whatever, have a whole lot of calculations done to it, to give an accurate
temperature.
That means, that the reason some of your sensors are giving "funky" results, is that
Joined: 20 Jul 2002 lm_sensors needs to be calibrated. There should be a file in the /usr/doc/<lmsensor-
Posts: 681
Location: New Zealand
package> directory which will step you through it.
smokeslikeapoet, I suggest you complete this howto with directions for sensor calibration.
Thanks,
Chris.
Back to top
puddpunk wrote:
What hasn't even been mentioned on this thread, is that temperatures that are on
the BIOS screen or whatever, have a whole lot of calculations done to it, to give
an accurate temperature.
That means, that the reason some of your sensors are giving "funky" results, is
Joined: 03 Apr 2003 that lm_sensors needs to be calibrated. There should be a file in the
Posts: 96 /usr/doc/<lmsensor-package> directory which will step you through it.
Location: Cordova, TN USA
Folding@Home
Back to top
Back to top
This is just great, and works perfectly since I also have an Epox 8KHA+
Thanks!
Back to top
Hey guys,
sorry for the delay.
This is a HOW-TO to make smbus work on some asus motherboards. Sorry if this is not
clear enough, english is not my native language. Feel free to modify it and add it to your
post Smokeslikeapoet
Joined: 22 Feb 2003 I did not invent all of that, it's very well documented in the lm_sensors package. I just
Posts: 673
formatted it.
INTRODUCTION
This how-to concerns people who own an ASUS motherboards and cannot spot the
SMBus device although the documentation says it exists. It ONLY works for ASUS
motherboards using an ICH4 intel device (82801DB) or an ICH2 device
(82801BA). Using it with another motherboard may be dangerous.
They are for pentium IV and use an intel Chipset. For exemple, it includes all the P4G8
serie or some motherboards with i801 chipset.
You can know what device is on your motherboard just by doing a lspci, you should then
recognize the given references. Some lines will read like this:
Code:
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev
82)
00:1f.0 ISA bridge: Intel Corp. 82801DB LPC Interface Controller
(rev 02)
00:1f.1 IDE interface: Intel Corp. 82801DB Ultra ATA Storage
Controller (rev 02)
PREPARATION
You need:
- lm_sensors and i2C emerged
Code:
emerge lm_sensors
emerge i2c
STEP I
- There is a module created by lm_sensors to activate the smbus hidden by ASUS.
Basically, it just enables it in the bios (by modifying two bits) then it reports it to the
kernel so that lmsensors can see the device. That module must not have been used a lot
because there is a glitch in the source that prevent it from compiling.
with:
Code:
write_lock_irqsave(&i801smbus_lock, i801smbus_lock_flags);
with:
Code:
write_unlock_irqrestore(&i801smbus_lock, i801smbus_lock_flags);
STEP II
- We have to try if it works. run:
Code:
insmod p4b_smbus.o
- Now I think there are two options. Once p4b_smbus.o is loaded, you can most likely run
sensors-detect. I did not do that but it should work.
The other way to go is just to load manually the following modules:
Code:
modprobe i2c-core
modprobe i2c-i801
modprobe i2c-dev
modprobe i2c-proc
modprobe w83781d
Enjoy. It works.
Back to top
Vi Rocks Posted: Thu May 15, 2003 1:11 pm Post subject: devfs support for i2c devices.
n00b
Joined: 05 May 2003 Is there a way by which all this can be encompassed in devfs.
Posts: 21 i.e the devices would be /dev/i2c/<i2c-device-0> to /dev/i2c/<i2c-device-31>
and then use devfs to create symbolic links to the files in /dev/i2c directory.
thanks
_________________
Oh, the searing kiss of hot lead. How I've missed you! I mean -- I think I'm dying.
Back to top
Last edited by ctford0 on Sat May 17, 2003 9:12 am; edited 1 time in total
Back to top
ctford0: This isn't a support forum. I started a thread for specific problems here:
http://forums.gentoo.org/viewtopic.php?p=326081
Please, respond to that thread and post the requested information.
If anyone has platform specific issues or concerns other than how the howto is written
Joined: 03 Apr 2003 please post them to the thread mentioned above.
Posts: 96
_________________
Location: Cordova, TN USA
-SmokesLikeaPoet
Folding@Home
Back to top
smokeslikeapoet wrote:
ERW1N wrote:
the sensor gives me:
temp1 36.0 C
temp2 28.5 C
Joined: 04 Aug 2002 temp3 7.5 C
Posts: 167
what are those temp? cpu or motherboard?
it's impossible to have such low temperature for my Athlon XP
-Erwin-
Your first temp is your processor. I would assume that you measured it idle.
Mine runs at 42.5 at load with a 24.5 degree ambient room tempurature. Your
second tempurature is the secondary sensor on your motherboard. Mine runs
at 28.0C. The secondary sensor should not be much higher than your ambient
room tempurature, otherwise you could use an extra case fan or two.
Not necessarily. When you run #sensors it tells you what temp is what sensor. On my
Abit K7R, they are:
V/r,
KJ
_________________
-----
Toshiba Satellite A15-S157, 2.2 Celery, 40GB, 512MB
AMD Athlon XP 1900+, 640MB PC2100, ABIT KG-7R
IBM 120GB (Linux), WD 30GB (WinDoze), ATI All-In-Wonder 128 Pro PCI
Back to top
Back to top
it is not an underscore!
Back to top
if you use fluxbox and use the 'slit' insted of Gkellm, you can use dockapps.
Code:
emerge wmgtemp
Code:
WM_BG_COLOR=#dbdfe8
wmgtemp -t -H 75 -w 70 -M 85 &
_________________
linux: #232767
Back to top