LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   sensors won't detect (http://www.linuxquestions.org/questions/linux-software-2/sensors-wont-detect-70179/)

synaptical 07-04-2003 09:42 PM

sensors won't detect
 
i'm having trouble getting sensors-detect to detect my CPU temp on my RH9 system.

when i run sensors-detect, it gives a "FAILED" for most of them, but does find a couple -- not sure what some of them are. after copying the code it generates into the /etc/rc.d/* file and that other file (module.config, i think it is), when i then run sensors it only gives me some static info about my two memory modules (which doesn't particularly help me a lot, as i already know what those are :mad: ).

i'm not exactly sure what modprobe is, but not knowing what else to do i ran it anyway. i didn't know what parameter to give it, so i tried modprobe i2c*. that didn't work, but it said to run dmesg. so i did that, and it seemed to return all kinds of i2c results at the end, a whole host of them, making me think all those are installed correctly (as apparently they are supposed to be automatically for RH?), or are in the "kernel tree" or whatever. okay, so what am i missing?

i can't figure out what i'm doing wrong, or what to do next. what do i need to do to get these $#@&! sensors to work? if you need specific outputs from the commands, LMK and i'll run the detect, dmesg, etc., again and post the printouts. appreciate. :)

(p.s., i have an Epox mobo w/VIA kt333 chipset and winbond sensors -- i believe the hardware is supported, but maybe i need one of those drivers from the lm_sensors page?)

itsjustme 07-04-2003 10:01 PM

I'm not yet familiar with reading the temperature sensors with linux, but I did find several hits on 'sensor*' with the find command. One of the files is /etc/sensors.conf. Possibly you need to make some changes in there.

Good luck.

synaptical 07-06-2003 06:41 PM

it doesn't even seem to be getting to the point of reading that file, as no temp, voltage, or fan information is being displayed by sensors (and the options are greyed out in gkrellm config panel).

anyone?

footfrisbee 07-06-2003 07:07 PM

You need the lmsensors drivers and i2c support compiled for your kernel to use the hardware sensors. You can either compile them yourself or find some precompiled modules to insert into your kernel. To get the source run 'apt-get install i2c-source lm-sensors-source' if you have apt installed of course. The i2c source includes useful installation directions. As for the precompiled modules, I'm not sure where to get those. Just trying to point you in the right direction.

synaptical 07-10-2003 06:06 PM

Quote:

Originally posted by footfrisbee
You need the lmsensors drivers and i2c support compiled for your kernel to use the hardware sensors. You can either compile them yourself or find some precompiled modules to insert into your kernel. To get the source run 'apt-get install i2c-source lm-sensors-source' if you have apt installed of course. The i2c source includes useful installation directions. As for the precompiled modules, I'm not sure where to get those. Just trying to point you in the right direction.
thanks for the suggestions, but afaik lm_sensors and i2c already are installed in RH9, e.g., http://www.linuxquestions.org/questi...hlight=sensors


otherwise, how would sensors-detect run, or why would dmesg give info about i2c?

[btw: when i do apt-get install i2c-source or lm_sensors-source, it says it can't find those packages.]

i put the output from running sensors-detect:

Code:

#----cut here----
#I2C adapter drivers
modprobe i2c-viapro
# I2C chip drivers
modprobe adm1021
modprobe eeprom
#----cut here----

To make the sensors modules behave correctly, add these lines
to either /etc/modules.conf or /etc/conf.modules:

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
options adm1021 ignore=0,0x2b
#----cut here----

into the /etc/rc.d/rc.local and /etc/modules.conf files, respectively, but it gives me some errors about modprobe i think while booting (goes by too fast to read) and does not detect temps. again, running sensors only seems to give some sort of memory module information:

eeprom-i2c-0-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-0-51
Adapter: SMBus Via Pro adapter at 5000
Algorithm: Non-I2C SMBus adapter
Memory type: DDR SDRAM DIMM SPD
SDRAM Size (MB): 256

what am i doing wrong? i'd like to get this solved, b/c i was having cooling issues with my new processor. any help appreciated, or pointers to what i need to do to recompile my kernel (?) so it would work, or where to go for precompiled modules to put in the kernel (?). (pls. keep in mind i am still a newb with only a few weeks of linux experience :eek: so nothing too advanced pls, i.e., frankly, the sound of "recompiling the kernel" kind of scares me a little :D ). thx

footfrisbee 07-11-2003 02:59 AM

Quote:

but it gives me some errors about modprobe i think while booting (goes by too fast to read) and does not detect temps
Try looking in /var/log/ for the files kern.log, syslog, and messages. These files contain those error messages.

I gave a quick look at the docs for lm-sensors, and it says that lm-sensors requires i2c /proc support. So try adding 'modprobe i2c-proc' before 'modprobe i2c-viapro' in your rc.local. Good luck!


All times are GMT -5. The time now is 05:17 AM.