Sensors 25 April 2005 Summary Monitoring utility installed in May 2002. After several new kernel builds,
it stopped working, and it's not clear it's worth the effort to keep it
working. The main thing was to monitor the CPU temperature, but I've now
seen that it doesn't rise even if I transcode at 100% usage all night. Software and guides
Commands
Installation history sensors-detect on Sigillo -- Use driver `i2c-ali15x3' for device 00:11.0: Acer Labs 1533/1543 I'm pretty sure I have ali 1533 -- that's what lspci says (ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]). So I need the i2c-ali15x3. However, on boot I get this: i2c /dev entries driverSo that's a clear error message. I wonder if I can upgrade the BIOS. On Chianti (looking very good -- though the voltages reported are ALARM-inducing): # sensors"If you installed lm_sensors and want to see the right output from 'sensors', then edit /etc/sensors.conf and adjust it to your needs. If you have problems with gkrellm, you can do this by entering values into the 'Offset' and 'Factor' boxes in the 'Properties' window." Cf. results on clitunno.
2002-05-01 Gubbio I got lm-sensors from CVS (no need to use this). Browse the cvs at http://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2
Don't press return for password but give anonymous. To check out the latest 2.x code:
*AND* also check out the i2c dist:
To update the code, do a "cvs update -d" from within the lm_sensors or lm_sensors2 directory. Please read the README and INSTALL files for how to build the code. Also read the related files in the 'doc' directory for info regarding the different bus and chip drivers. Lastly, you can use the regular cvs commands on the files (like 'cvs log [filename]') to see the comments made by the developers as patches were made. I got both i2c and lm_sensors2. I then entered i2c and read the README and INSTALL files. I decided to use method 1: Separate from kernel compilation (compilation option 1) This will compile and install the complete i2c package. Though nothing is written to your kernel tree, a proper tree is still needed for this. See earlier for what a proper kernel tree is. Compilation is done by `make all'; `make install' installs the package. I then did make install. The program looks like it got put into /lib/modules/. Next, I moved to the cvs of lm-sensors. The README says, If had compiled all i2c and lm_sensors drivers as modules, you are in luck. You can simply compile the newest versions of i2c and lm_sensors and install them. Just make sure the right modules areloaded (best bet: remove the old ones first). This went fine, and so did make install. See /etc/sensors.conf. It looks like we have an executable in /usr/local/bin and man pages in /usr/local/man/. The main parts are in /usr/local/lib/ -- lots of library files. It all looks painless. You can now load the modules by using `modprobe'. For example, `modprobe i2c-piix4' will load the i2c-piix4 module, and all i2c moduleson which it depends. You can not use demand-loading; you will have to issue explicit modprobe instructions. There is a special scanning program installed called sensors-detect. It will scan all available I2C and SMBus adapters for all known devices, and give you a list of what modules you need to insert. It is written inPerl, and you will need at least Perl 5.004 to run it succesfully. You can use the installed sensors program to get a report of all detected sensor devices. There is also a manual page for this program. Calling `sensors -s' will set the limits and other configuration settings specified in /etc/sensors.conf. Again, read the manual pages for moreinformation. There are many auxiliary programs not installed. You can find them under the prog subdirectory. A list can be found in doc/progs. I then ran sensors-detect and got this: You need to have done a `make install', issued a `depmod -a' and made sure `/etc/conf.modules' (or `/etc/modules.conf') contains the appropriate module path before you can use some functions of this utility. Read doc/modules for more information. I issued depmod -a and got nothing. I ran sensors-detect again: Probing for PCI bus adapters... Load `i2c-voodoo3' (say NO if built into your kernel)? (YES/no): y Probing for `National Semiconductor LM79' Driver `lm78' (should be inserted): I will now generate the commands needed to load the I2C modules. for it. If you have the choice, do you want to use the ISA bus or the I2C/SMBus (ISA/smbus)? ISA WARNING! If you have some things built into your kernel, the #----cut here---- To make the sensors modules behave correctly, add these lines to either #----cut here---- Further Installation. For help, see http://www2.lm-sensors.nu/~lm78/support.html Documents: http://www2.lm-sensors.nu/~lm78/cvs/browse.cgi/lm_sensors2/doc FAQ: http://www2.lm-sensors.nu/~lm78/FAQ.txt I typed sensors -s (I also added this to rc.config) and got a sort of
response as I then opened GKrellM and the sensors were all there -- temperature and voltage. I'm not getting anything from the fans, and I can't see CPU speed. gubbio:/etc/init.d # lsmod What to do if a module won't insert? Did you use 'modprobe' instead of 'insmod'??? Don't use insmod. Were there unresolved symbols? Did you run 'depmod -a'? Run 'depmod -a -e' to see where the symbol problem is. Error: No i2c-bus specified! i2c-1 i2c I2C Voodoo3/Banshee adapter Bit-shift algorithm i2c-2 i2c DDC Voodoo3/Banshee adapter Bit-shift algorithm i2c-3 dummy ISA main adapter ISA bus algorithm So I ran i2cdetect 0 and got Error: Could not open file `/dev/i2c-0', In fact, I find no /dev/i2c at all, which is likely a problem. Here's
what locate /usr/X11R6/lib/modules/libi2c.a Home page Mailing list I wrote, Date: Mon, 27 May 2002 21:44:54 -0700 (PDT) Hi guys, I just got the cvs of i2c and lm-sensors and it compiled and installed fine. When I do i2cdetect x, I get Installed I2C busses: Then I get get Error: Could not open file `/dev/i2c-0', `/dev/i2c0', or `/dev/i2c/0': No such file -- and so on for 0-3. In fact, there are no /dev/i2c entries. Why don't I have /dev/i2c? What else could I be sensing? I would like to get CPU speed -- can I? On the other hand, I now get the temperature of my CPU and the voltages fine, in KgrellM. Great work! Cheers, Date: Tue, 28 May 2002 08:44:13 -0400 see prog/mkdev/mkdev.sh More on LM_sensors
This is where modules are:
To start them up, do this:
Here's what sensors-detect finds:
I've done that already of course, but somehow the installation got screwed up -- perhaps because of a "make modules_install" that overwrote them? I did another make install from the /giant/cvs. Note that you have to have a current kernel tree for this to work! >From man insmod:
.There's some problem somewhere, but it's not clear it's worth fixing. |
|
|
|
|||||
Maintained by Francis F. Steen, Communication Studies, University of California Los Angeles |