[CLUE-Tech] lm_sensors

Kevin Fenzi kevin at scrye.com
Tue Mar 12 11:46:27 MST 2002


>>>>> "Mike" == Mike Staver <staver at fimble.com> writes:

Mike> Yeah, I've tried running this before, and here is what happens:

humm... sensors-detect is a perl script. 

What version of perl are you using? 

what does /usr/bin/perl -v show? 

also, 'modprobe' needs to be installed and in your path... 
it should be in /sbin, so:

export PATH=$PATH:/sbin

and you also need to run it as root. 

kevin
--
Mike> ---------------------------------------------------------------------------------
Mike> [root at fimble staver]# /usr/sbin/sensors-detect Illegal
Mike> hexadecimal digit 'P' ignored at /usr/sbin/sensors-detect line
Mike> 801, <INPUTFILE> line 2.  Illegal hexadecimal digit 'r' ignored
Mike> at /usr/sbin/sensors-detect line 801, <INPUTFILE> line 2.
Mike> Illegal hexadecimal digit 'p' ignored at
Mike> /usr/sbin/sensors-detect line 801, <INPUTFILE> line 7.  This
Mike> program will help you to determine which I2C/SMBus modules you
Mike> need to load to use lm_sensors most effectively.  You need to
Mike> have done a `make install', issued a `depmod -a' and made sure
Mike> `/etc/conf.modules' (or `/etc/modules.conf') contains the
Mike> appropriate module path before you can use some functions of
Mike> this utility. Read doc/modules for more information.  Also, you
Mike> need to be `root', or at least have access to the /dev/i2c[-]*
Mike> files for some things. You can use prog/mkdev/mkdev.sh to create
Mike> these /dev files if you do not have them already.  If you have
Mike> patched your kernel and have some drivers built-in you can
Mike> safely answer NO if asked to load some modules. In this case,
Mike> things may seem a bit confusing, but they will still work.

Mike>  We can start with probing for (PCI) I2C or SMBus adapters.  You
Mike> do not need any special privileges for this.  Do you want to
Mike> probe now? (YES/no): YES Probing for PCI bus adapters...  Use
Mike> driver `i2c-viapro' for device 00:07.3: VIA Technologies VT
Mike> 82C596 Apollo ACPI Probe succesfully concluded.

Mike>  We will now try to load each adapter module in turn.  Load
Mike> `i2c-viapro' (say NO if built into your kernel)? (YES/no): YES
Mike> Can't exec "modprobe": No such file or directory at
Mike> /usr/sbin/sensors-detect line 2333, <STDIN> line 2.  Loading
Mike> failed (No such file or directory)... skipping.  Do you now want
Mike> to be prompted for non-detectable adapters? (yes/NO): NO To
Mike> continue, we need module `i2c-dev' to be loaded.  If it is
Mike> built-in into your kernel, you can safely skip this.  i2c-dev is
Mike> not loaded. Do you want to load it now? (YES/no): YES Can't exec
Mike> "modprobe": No such file or directory at
Mike> /usr/sbin/sensors-detect line 2377, <STDIN> line 4.  Loading
Mike> failed (No such file or directory), expect problems later on.

Mike>  We are now going to do the adapter probings. Some adapters may
Mike> hang halfway through; we can't really help that. Also, some
Mike> chips will be double detected; we choose the one with the
Mike> highest confidence value in that case.  If you found that the
Mike> adapter hung after probing a certain address, you can specify
Mike> that address to remain unprobed. If you have a PIIX4, that often
Mike> includes addresses 0x69 and/or 0x6a.  Couldn't open
Mike> /proc/bus/i2c?!? at /usr/sbin/sensors-detect line 2405, <STDIN>
Mike> line 4.
Mike> ---------------------------------------------------------------------------------------

Mike> Seems to me something is not right here, but I don't know where
Mike> to begin trying to correct whatever seems to be the
Mike> problem. When I run sensors, I get this:

Mike> [root at fimble staver]# sensors Can't access /proc file

Mike> And yes, I do have the stock redhat kernel, 2.4.9-31smp to be
Mike> exact, and I believe I have the correct rpms installed.


Mike> Kevin Fenzi wrote:
>> >>>>> "Mike" == Mike Staver <staver at fimble.com> writes:
>> 
Mike> Alright, I'm sure this has been asked before, and maybe even by
Mike> me, but I still have yet to find a good set of instructions on
Mike> how to use lm_sensors with Red Hat 7.2.  I have several boxes
Mike> that I would like to monitor the cpu temps on, but this seems
Mike> like a very complex little program to set up.  Can anyone point
Mike> me to a good set of step by step instructions on how to do this?
>> If you are using RedHat 7.2, and the stock RedHat kernel, all you
>> need to do is:
>> 
>> /usr/sbin/sensors-detect
>> 
>> and go through and answer the questions (you can just hit returns
>> if you like and select the default answer for each question).
>> 
>> After it's done it will tell you to add some lines to
>> /etc/modules.conf.
>> 
>> Then you can run 'sensors' and it should give you the output of all
>> the sensors it found.
>> 
>> You will need the lm_sensors-2.5.5-6 pakage.
>> 
>> kevin -- Kevin Fenzi MTS, tummy.com, ltd.  http://www.tummy.com/
>> KRUD - Kevin's Red Hat Uber Distribution
>> _______________________________________________ CLUE-Tech mailing
>> list CLUE-Tech at clue.denver.co.us
>> http://clue.denver.co.us/mailman/listinfo/clue-tech

Mike> --

Mike>                                 -Mike Staver staver at fimble.com
Mike> mstaver at globaltaxnetwork.com
Mike> _______________________________________________ CLUE-Tech
Mike> mailing list CLUE-Tech at clue.denver.co.us
Mike> http://clue.denver.co.us/mailman/listinfo/clue-tech


-- 
Kevin Fenzi
MTS, tummy.com, ltd.
http://www.tummy.com/  KRUD - Kevin's Red Hat Uber Distribution



More information about the clue-tech mailing list