Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Monitor CPU Temperature with lm_sensors and gkrellm
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 289
Location: Hangzhou, China

PostPosted: Wed Jul 20, 2005 12:01 pm    Post subject: Reply with quote

Great !
will try it, I want to monitor my CPU's temp :)
Back to top
View user's profile Send private message
stegerpl
Apprentice
Apprentice


Joined: 25 Jun 2005
Posts: 185
Location: 48°19'30"N 14°20'18"E

PostPosted: Mon Jul 25, 2005 9:46 pm    Post subject: HELP - CPU-Fan is now high speed and noisy... Reply with quote

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
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Mon Jul 25, 2005 9:56 pm    Post subject: Reply with quote

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

see if something happens :)
_________________
linux: #232767
Back to top
View user's profile Send private message
stegerpl
Apprentice
Apprentice


Joined: 25 Jun 2005
Posts: 185
Location: 48°19'30"N 14°20'18"E

PostPosted: Mon Jul 25, 2005 10:08 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Mon Jul 25, 2005 10:50 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
stegerpl
Apprentice
Apprentice


Joined: 25 Jun 2005
Posts: 185
Location: 48°19'30"N 14°20'18"E

PostPosted: Tue Jul 26, 2005 7:38 pm    Post subject: Reply with quote

...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
Back to top
View user's profile Send private message
swizec
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2005
Posts: 105

PostPosted: Wed Jul 27, 2005 7:40 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Wed Jul 27, 2005 9:15 am    Post subject: Reply with quote

thats not any error - the error its in the block over that, last 40 lines or so
_________________
linux: #232767
Back to top
View user's profile Send private message
swizec
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2005
Posts: 105

PostPosted: Wed Jul 27, 2005 9:52 am    Post subject: Reply with quote

oh yeah

these are the last few lines:
Code:

 * 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...
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Wed Jul 27, 2005 10:29 am    Post subject: Reply with quote

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

# 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
Back to top
View user's profile Send private message
fisherking
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 111

PostPosted: Sun Jul 31, 2005 7:05 pm    Post subject: Reply with quote

Quote:

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.
Back to top
View user's profile Send private message
swizec
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2005
Posts: 105

PostPosted: Sun Jul 31, 2005 7:35 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
trinity
n00b
n00b


Joined: 20 Mar 2003
Posts: 74

PostPosted: Mon Sep 12, 2005 12:13 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Spetsnaz84
n00b
n00b


Joined: 25 Jun 2006
Posts: 39
Location: Antwerp, Belgium

PostPosted: Tue Sep 12, 2006 3:19 pm    Post subject: Reply with quote

Code:

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 !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum