View Full Version : CPU temperature monitoring
Tomm
16th January 2004, 11:43 PM
hello,
i was wondering if there's a way to get the temperature readings (CPU, motherboard, HDDs)? i've been trying for a couple of days to find suitable tool, but no success so far :(
i've tried installing lm_sensors, gkrellm as well as KSim from the distribution - nothing seems to work - options regarding temperatures/fans are grayed out... :?
i will be grateful for any suggestions (motherboard: Asus A7N8X, chipset: nForce2) :D
venson
17th February 2004, 07:00 PM
I'm guessing you dont have proper Power Mgmt system installed - ACPI/APM - for your system, and that is why those tools aren't capable of showing you the information you seek about CPU temp and such.
If you do have those things installed, and it still doesn't work, i have no clue. Worth a try though...*shrugs*
--venson
vorte[x]
18th February 2004, 03:35 AM
Snippet from my unposted lm_sensors HOWTO... (for 2.6 kernels)
Task #2 - Obtain/Install lm_sensors package.
Do the same as Task 1, but substitute this with the wget link:
http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/Fedora/RPMS/lm_sensors-2.8.3-1.i386.rpm
(anything before 2.8.2 breaks on 2.6 kernel)
... snipped out kernel recompile for my particular chip ...
Task #5 - Configure lm_sensors
Made it this far following my immensely dense instruction set? Cool! The rest is easy peasy...
Get yourself into a console environment again...
Issue su - and provide the root password, then start up the lm_sensors detection script by firing off sensors-detect. Do you want to probe now? Of course! Hit enter to accept Y as default.
You'll need to follow your own judgement on the sensor configuration. (I kept defaults for my hardware)
Keeping going until you come to the part where it displays the lines to put into your /etc/modules.conf file. The other lines we can ignore as those will be saved for us in /etc/sysconfig/lm_sensors.
Write down/copy/cut/whatever the lines between the "cut here" dividers for your modules.conf and store it somewhere.
You'll finally be finished with the configuration script, but before that it'll dump out:
Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors
Let's do this by issuing cp /usr/share/doc/lm_sensors-2.8.3/lm_sensors.init /etc/rc.d/init.d/lm_sensors
We're not done, we need to FIX this file to work correctly under Fedora (bug #114608 - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=114608)
Let's now issue vi /etc/rc.d/init.d/lm_sensors, hit the 'a' key to enter append/insert mode, then page down to line 42 (PSENSORS= var)
and change it to read PSENSORS=/usr/bin/sensors - Hit ESC, then Shift-Z-Z to save our changes and exit.
Almost done, phew. Now let's vi /etc/modules.conf, enter append mode and put the lines you wrote down above (you did write them down right?) ESC then Shift-Z-Z to save and exit.
Now let's finish off the job by typing sensors -s - No output is a good thing. Typing sensors should give you a nice list of output!
Congrats, you're done!
Task #X - Troubleshooting
1) The lm_sensors service doesn't do jack.
Same here, check out #2.
2) It says 'No sensors found' but I swear it found sensors during 'sensors-detect'!
I noticed this on my web box. The init. service is SUPPOSED to handle this... Re-run the wizard, then cut/paste/write-down that big chunk that it tells you to store into a rc. script, then put that in rc.sysinit (at the end) or a simple .sh script to test. Maybe I'm wrong?
3) I'm getting errors about i2c devices and crap about making sure sysfs is mounted! Help!
You need to read up on mounting sysfs. Short guide: Become root, make
/sys folder, put sysfs /sys sysfs defaults 0 0 into /etc/fstab, mount /sys
4) Your guide sux and is way off!
Then help me fix it or stop bitching.
DaNe
7th August 2004, 03:26 PM
i only get sensors of the ram of cpu/fan and sys temp i dont get nothing!why? how can i solve this?
mbhahn
3rd October 2004, 06:37 AM
Damn Vorte[x] !!!!
Thanks a bunch, that saved me days of hair loss. ( I only have about a month left ) I would have never been able to set up my sensors that quick if it wasn't for your guide. You da man!
Everything worked great after I restarted!!
-Mike
sej7278
3rd October 2004, 06:48 AM
usually you have to recompile the kernel to add at least i2c support, and lm_sensors doesn't work too well with the 2.6 kernel yet anyway/
elian85
24th December 2004, 11:12 AM
hi, after i installed the package i tried as u said. though it didnt work as it should i just continued for a bit. i guess i got a problem with my motherboard cuz he cant detect any sensor. it worked with windows, but as a linux noob i am kinda stuck now. here is the console print:
"
[root@localhost ~]# sensors-detect
This program will help you determine which I2C/SMBus modules you need to
load to use lm_sensors most effectively. You need to have i2c and
lm_sensors installed before running this program.
Also, you need to be `root', or at least have access to the /dev/i2c-*
files, for most things.
If you have patched your kernel and have some drivers built in, you can
safely answer NO if asked to load some modules. In this case, things may
seem a bit confusing, but they will still work.
It is generally safe and recommended to accept the default answers to all
questions, unless you know what you're doing.
We can start with probing for (PCI) I2C or SMBus adapters.
You do not need any special privileges for this.
Do you want to probe now? (YES/no): y
Probing for PCI bus adapters...
Sorry, no PCI bus adapters found.
We will now try to load each adapter module in turn.
If you have undetectable or unsupported adapters, you can have them
scanned by manually loading the modules before running this script.
To continue, we need module `i2c-dev' to be loaded.
If it is built-in into your kernel, you can safely skip this.
i2c-dev is already loaded.
We are now going to do the adapter probings. Some adapters may hang halfway
through; we can't really help that. Also, some chips will be double detected;
we choose the one with the highest confidence value in that case.
If you found that the adapter hung after probing a certain address, you can
specify that address to remain unprobed. That often
includes address 0x69 (clock chip).
Some chips are also accessible through the ISA bus. ISA probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. This is usually safe though.
Do you want to scan the ISA bus? (YES/no):
Probing for `National Semiconductor LM78'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM78-J'
Trying address 0x0290... Failed!
Probing for `National Semiconductor LM79'
Trying address 0x0290... Failed!
Probing for `Winbond W83781D'
Trying address 0x0290... Failed!
Probing for `Winbond W83782D'
Trying address 0x0290... Failed!
Probing for `Winbond W83627HF'
Trying address 0x0290... Failed!
Probing for `Winbond W83697HF'
Trying address 0x0290... Failed!
Probing for `Silicon Integrated Systems SIS5595'
Trying general detect... Failed!
Probing for `VIA Technologies VT82C686 Integrated Sensors'
Trying general detect... Failed!
Probing for `VIA Technologies VT8231 Integrated Sensors'
Trying general detect... Failed!
Probing for `ITE IT8705F / IT8712F / SiS 950'
Trying address 0x0290... Failed!
Probing for `IPMI BMC KCS'
Trying address 0x0ca0... Failed!
Probing for `IPMI BMC SMIC'
Trying address 0x0ca8... Failed!
Some Super I/O chips may also contain sensors. Super I/O probes are
typically a bit more dangerous, as we have to write to I/O ports to do
this. This is usually safe though.
Do you want to scan for Super I/O sensors? (YES/no):
Probing for `ITE 8702F Super IO Sensors'
Failed! (0x8712)
Probing for `ITE 8705F Super IO Sensors'
Failed! (0x8712)
Probing for `ITE 8712F Super IO Sensors'
Success... found at address 0x0228
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (skipping family)
Do you want to scan for secondary Super I/O sensors? (YES/no): Y
Probing for `ITE 8702F Super IO Sensors'
Failed! (skipping family)
Probing for `Nat. Semi. PC87351 Super IO Fan Sensors'
Failed! (skipping family)
Probing for `SMSC 47B27x Super IO Fan Sensors'
Failed! (skipping family)
Probing for `VT1211 Super IO Sensors'
Failed! (skipping family)
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `it87' (should be inserted):
Detects correctly:
* ISA bus address 0x0228 (Busdriver `i2c-isa')
Chip `ITE 8712F Super IO Sensors' (confidence: 9)
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)?
To make the sensors modules behave correctly, add these lines to
/etc/modules.conf:
#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----
To load everything that is needed, add this to some /etc/rc* file:
#----cut here----
# I2C adapter drivers
modprobe i2c-isa
# I2C chip drivers
modprobe it87
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----
WARNING! If you have some things built into your kernel, the list above
will contain too many modules. Skip the appropriate ones! You really should
try these commands right now to make sure everything is working properly.
Monitoring programs won't work until it's done.
Do you want to generate /etc/sysconfig/lm_sensors? (YES/no):
Copy prog/init/lm_sensors.init to /etc/rc.d/init.d/lm_sensors
for initialization at boot time.
[root@localhost ~]# cp /usr/share/doc/lm_sensors-2.8.3/lm_sensors.init /etc/rc.d/init.d/lm_sensors
cp: cannot stat `/usr/share/doc/lm_sensors-2.8.3/lm_sensors.init': No such file or directory
[root@localhost ~]# cp /usr/share/doc/lm_sensors-2.8.3/lm_sensors.init /etc/rc.d/init.d/lm_sensors
cp: cannot stat `/usr/share/doc/lm_sensors-2.8.3/lm_sensors.init': No such file or directory
[root@localhost ~]# vi /etc/rc.d/init.d/lm_sensors
[root@localhost ~]# vi /etc/modules.conf
"
u know what i should do??
greets
bjoern
btw merry xmas^^
PhilD
24th December 2004, 01:32 PM
[root@localhost ~]# cp /usr/share/doc/lm_sensors-2.8.3/lm_sensors.init /etc/rc.d/init.d/lm_sensors
cp: cannot stat `/usr/share/doc/lm_sensors-2.8.3/lm_sensors.init': No such file or directory
[root@localhost ~]# cp /usr/share/doc/lm_sensors-2.8.3/lm_sensors.init /etc/rc.d/init.d/lm_sensors
cp: cannot stat `/usr/share/doc/lm_sensors-2.8.3/lm_sensors.init': No such file or directory
Well i'm having problems setting this up too, but I know what's up there... the directory will be /lm_sensors-2.8.7 ... not lm_sensors-2.8.3 if you are using the latest version... not sure if that will change much for your situation as you seem to be having other issues too.
jult
4th January 2005, 10:41 PM
By the way, it seems the release for Fedora Core 3 is working just fine:
# yum install lm_sensors
Setting up Install Process
Setting up Repo: base
repomd.xml 100% |=========================| 1.1 kB 00:00
Setting up Repo: updates-released
repomd.xml 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
base : ################################################## 2622/2622
primary.xml.gz 100% |=========================| 187 kB 00:00
MD Read : ################################################## 420/420
updates-re: ################################################## 420/420
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for lm_sensors to pack into transaction set.
lm_sensors-2.8.7-2.i386.r 100% |=========================| 22 kB 00:00
---> Package lm_sensors.i386 0:2.8.7-2 set to be installed
--> Running transaction check
Dependencies Resolved
Transaction Listing:
Install: lm_sensors.i386 0:2.8.7-2
Is this ok [y/N]: y
Downloading Packages:
lm_sensors-2.8.7-2.i386.r 100% |=========================| 426 kB 00:02
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: lm_sensors 100 % done 1/1
Installed: lm_sensors.i386 0:2.8.7-2
Complete!
I did this on a machine with an ASUS P4P800 board, started it
[root@xxx init.d]# ./lm_sensors
and then created the config with:
[root@xxx init.d]# ./sensors-detect
mostly picking the capitalized Defaults,
except for this one:
(ISA/smbus)? smbus
And I let it generate /etc/sysconfig/lm_sensors.
After that I didn't add anything extra by hand anywhere,
it just worked 'out of the box' after rebooting.
Great using it with phpsysinfo: http://sourceforge.net/projects/phpsysinfo/
vassalle
18th February 2005, 06:36 AM
i installed lm_sensor-2.8.7 using yum. then i typed #sensors, no sensors detected.. tried #sensors-detect, bash: sensors-detect: command not found.. what am i doing wrong ?
Btw, im on fc3 2.6.10-1.766_FC3. Using Abit IC7 Max3 Mobo, Intel ICH5R chip. Some help please.. thx.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.