Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Monitor CPU Temperature with lm_sensors and gkrellm

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
64 posts
  • Previous
  • 1
  • 2
  • 3
Author
Message
druggo
Guru
Guru
Posts: 342
Joined: Wed Sep 24, 2003 9:21 am
Location: Hangzhou
Contact:
Contact druggo
Website

  • Quote

Post by druggo » Wed Jul 20, 2005 12:01 pm

Great !
will try it, I want to monitor my CPU's temp :)
Top
stegerpl
Apprentice
Apprentice
User avatar
Posts: 185
Joined: Sat Jun 25, 2005 6:22 pm
Location: 48°19'30"N 14°20'18"E

HELP - CPU-Fan is now high speed and noisy...

  • Quote

Post by stegerpl » Mon Jul 25, 2005 9:46 pm

Hi,

This thread is great - I finally got all my sensors working but at the same time my CPU fan startet to run in high speed mode.

Does anybody have an idea how to check this problem - because now it is very noisy...:evil:

Peter
[1]... AMD Phenon X4-9950 on asus M3N78-EM with 4 GB of RAM - gentoo 10.1 - kernel 2.6.32 - kde 4.3.4
[2]... AMD Athlon XP 2500+ mobile on ASUS A7N8X with 512 kB RAM and 2xTT S-2300 - vdr-1.6.0 based on gentoo-2008.0
Top
ikaro
Advocate
Advocate
User avatar
Posts: 2527
Joined: Mon Jul 14, 2003 2:04 pm
Location: Denmark

  • Quote

Post by ikaro » Mon Jul 25, 2005 9:56 pm

@root echo "120" > /sys/bus/i2c/devices/*-0290/pwm*

see if something happens :)
linux: #232767
Top
stegerpl
Apprentice
Apprentice
User avatar
Posts: 185
Joined: Sat Jun 25, 2005 6:22 pm
Location: 48°19'30"N 14°20'18"E

  • Quote

Post by stegerpl » Mon Jul 25, 2005 10:08 pm

Hi,

this gives me just this message:

bash: /sys/bus/i2c/devices/*-0290/pwm*: ambiguous redirect

These files (pwm1 to pwm3) exist and all contain 240.

However when I do it file by file it works !

What did I do by this change from 240 to 120 ? The indicated fan speed at gkrellm as well as ksensors dropped to 0 (zero). If I pass over a "160" than it goes to about 2660 rpms - below again zero. With "240" it was 4200 rpms. Hopefully this will not "hard" limit the fan (does mean that it will never be above these values even when the CPU becomes hot)...

Anyway thanks a lot for this excellent and fast reply...

Peter
[1]... AMD Phenon X4-9950 on asus M3N78-EM with 4 GB of RAM - gentoo 10.1 - kernel 2.6.32 - kde 4.3.4
[2]... AMD Athlon XP 2500+ mobile on ASUS A7N8X with 512 kB RAM and 2xTT S-2300 - vdr-1.6.0 based on gentoo-2008.0
Top
ikaro
Advocate
Advocate
User avatar
Posts: 2527
Joined: Mon Jul 14, 2003 2:04 pm
Location: Denmark

  • Quote

Post by ikaro » Mon Jul 25, 2005 10:50 pm

that just lets you control manually how fast the fans spin.
i use 4 settings for my cpu fan ( a zalman 7700cu ) :
48, 144,176 and 240
I dont know how much it translates into rpm. however when i run the cpu at 1gz i turn the fan off by echoing the 44,
and the other settings as needed - when compiling stuff I set it to max speed ( 240 ).

i just have all of this in keybindings so its a rather simple task to change both fan speed and cpu frequency on the fly.
linux: #232767
Top
stegerpl
Apprentice
Apprentice
User avatar
Posts: 185
Joined: Sat Jun 25, 2005 6:22 pm
Location: 48°19'30"N 14°20'18"E

  • Quote

Post by stegerpl » Tue Jul 26, 2005 7:38 pm

...so read it that it really "hard" locks the fan speed to a certain speed. But this might (in bad cases) lead to an overheating in case I set it to low speed (noise) and forget to increase it when I do something which needs full power of the CPU (such as sytem update or long compiling sessions).

However I believe that the danger would be rather small but do you think that a small script checking the CPU temperature an triggering the correspondig value would be nice ? Maybe there is such a tool out there - does anybody know one ?

Peter
[1]... AMD Phenon X4-9950 on asus M3N78-EM with 4 GB of RAM - gentoo 10.1 - kernel 2.6.32 - kde 4.3.4
[2]... AMD Athlon XP 2500+ mobile on ASUS A7N8X with 512 kB RAM and 2xTT S-2300 - vdr-1.6.0 based on gentoo-2008.0
Top
swizec
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Thu Apr 07, 2005 5:23 pm
Contact:
Contact swizec
Website

  • Quote

Post by swizec » Wed Jul 27, 2005 7:40 am

hi,
I've used this before but now after a reinstall I can't get it to work anymore, I keep getting an error:

Code: Select all

!!! ERROR: sys-apps/lm_sensors-2.9.1 failed.
!!! Function pkg_setup, Line 39, Exitcode 0
!!! CONFIG_I2C_SENSOR not detected
any idea on what I should do?
Top
ikaro
Advocate
Advocate
User avatar
Posts: 2527
Joined: Mon Jul 14, 2003 2:04 pm
Location: Denmark

  • Quote

Post by ikaro » Wed Jul 27, 2005 9:15 am

thats not any error - the error its in the block over that, last 40 lines or so
linux: #232767
Top
swizec
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Thu Apr 07, 2005 5:23 pm
Contact:
Contact swizec
Website

  • Quote

Post by swizec » Wed Jul 27, 2005 9:52 am

oh yeah

these are the last few lines:

Code: Select all

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.12-gentoo-r6
 *
 * lm_sensors-2.9.1 requires CONFIG_I2C_SENSOR to be enabled for non-2.4.x kernels.
 *
I have all the i2c stuff compiled in the kernel though...
Top
ikaro
Advocate
Advocate
User avatar
Posts: 2527
Joined: Mon Jul 14, 2003 2:04 pm
Location: Denmark

  • Quote

Post by ikaro » Wed Jul 27, 2005 10:29 am

i have this:
( grep I2C /usr/src/linux/.config )

Code: Select all

# I2C support
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=m

# I2C Algorithms
CONFIG_I2C_ALGOBIT=y

# I2C Hardware Bus support
CONFIG_I2C_ISA=m
CONFIG_I2C_SENSOR=m

CONFIG_SENSORS_W83627HF=m
linux: #232767
Top
fisherking
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 111
Joined: Wed Nov 12, 2003 6:22 am

  • Quote

Post by fisherking » Sun Jul 31, 2005 7:05 pm

hi,
I've used this before but now after a reinstall I can't get it to work anymore, I keep getting an error:
Code:

!!! ERROR: sys-apps/lm_sensors-2.9.1 failed.
!!! Function pkg_setup, Line 39, Exitcode 0
!!! CONFIG_I2C_SENSOR not detected


any idea on what I should do?
According to the tutorial on the previous page (2), the hardware sensor chip shall be compiled into the kernel after you emerged lmsensors. Well, Lm_Sensors cried out in anger for this so, I had to include the hardware sensor chip before emerging lm_sensors.
Top
swizec
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Thu Apr 07, 2005 5:23 pm
Contact:
Contact swizec
Website

  • Quote

Post by swizec » Sun Jul 31, 2005 7:35 pm

yeah, I managed to solve it, seems I didn't include the chips in the kernel from some strange reason...

anyways, it worked after I added them
Top
trinity
n00b
n00b
Posts: 74
Joined: Thu Mar 20, 2003 5:39 pm

  • Quote

Post by trinity » Mon Sep 12, 2005 12:13 am

Hi,

I built a water cooling system for my pc and so far it working pretty well! I'm looking for a script or program which can check my cpu temperature and if temperature is too high (>55 C for instance) then do a shutdown (in case my pump stop working). I checked my BIOS and it can't do it. (it will shutdown pc only if fan stop working).

Anyone can help me?
Thanks.
Top
Spetsnaz84
n00b
n00b
User avatar
Posts: 39
Joined: Sun Jun 25, 2006 7:37 pm
Location: Antwerp, Belgium

  • Quote

Post by Spetsnaz84 » Tue Sep 12, 2006 3:19 pm

Code: Select all

Antwerpen Spetsnaz # /usr/bin/sensors -s # recommended
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and libsensors
was compiled with sysfs support!
For older kernels, make sure you have done 'modprobe i2c-proc'!


Antwerpen Spetsnaz # lsmod
Module                  Size  Used by
eeprom                  6544  0
i2c_dev                 8452  0
i2c_i801                8972  0
i2c_core               18432  3 eeprom,i2c_dev,i2c_i801

Any ideas ?
sysfs is mounted of course.
And there was only one use flags (which I enabled) for lm_sensors..

Thanks !
Top
Post Reply

64 posts
  • Previous
  • 1
  • 2
  • 3

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic