Wednesday, July 03, 2002, 00:05:45, Dave Serls <[EMAIL PROTECTED]> wrote: > It's damned hot here!! I like to have a BB copacetic sensor applet > for LM78. Where might I find that (can it be a wm applet)?
Out of sheer coincidence, I just set up my box for this yesterday. Luckily, I took notes. I don't know if you already set up your sensors and just need an applet or want more so I'll just dump the whole deal. In case I was wrong just ignore the whole thing, the bottom line is gkrellm has a plugin for that. Here it goes: Lm_sensors, I2C packs: http://www2.lm-sensors.nu/~lm78/ GKrellM: http://web.wt.net/~billw/gkrellm/gkrellm.html gklmsensors plugin for gkrellm: http://sourceforge.net/projects/gklmsensors (although apparently gkrellm also has built-in support which kicks in once you've set up the sensors -- I just liked the plugin better) You need a 2.4.13+ kernel or i2c-2.6.1+ (see above) for this to work. Basicly you need kernel modules, either built-in or third-party, for sensors readout. In kernel, make sure you have these modules in "Character devices": * i2c * i2c bit-banging (algo something) * i2c devices * /proc i2c support I recommend setting them up as loadable modules. Get the lm_sensors package. Edit Makefile and change PREFIX, MODDIR and ETCDIR to point to whatever you want, I used /opt/lm_sensors, /opt/lm_sensors/modules and /opt/lm_sensors/etc respectively. Then copy /opt/lm_sensors/etc/sensors.cfg to /etc and /opt/lm_sensors/modules/* to /lib/modules/2.4.16/misc. Yeah, it's a little backwards because I wanted to have the whole thing in one place first so I can make a backup tarball. So the above is only if you need a compact all-in-one installation to /opt/lm_sensors. Otherwise you may change vars only from BINDIR down or nothing at all and just let modules and config install directly where they should. Ok, now 'make', 'make install', 'depmod -a' (regenerate modules.dep and stuff). If you went with your own /opt installation scheme you have to add /opt/lm_sensors/bin and /opt/lm_sensors/sbin to the PATH in /etc/profile, /opt/lm_sensors/lib to /etc/ld.so.conf and /opt/lm_sensors/man to /etc/man.config. Re-login. Run ldconfig. 'cp /usr/src/lmsensors/prog/mkdev/mkdev.sh /opt/lm_sensors/bin' and then run it to make sensor devices under /dev. Run /opt/lm_sensors/bin/sensors-detect (to detect your hardware). It will suggest some lines that need to be added to /etc/modules.conf and some other (modprobe stuff) that must be run sometime (I just put in /etc/rc.d/rc.local to run at startup). Add the line 'sensors -s' after the modprobe lines. Reboot, or else type in the modprobe lines and 'sensors -s'. Run 'sensors' to see your output (if all went well). From now on you can use the gkrellm [plugin]. There are other monitoring apps out there if you don't like gkrellm. I'm sure there must be a wm applet around. Ciprian Popovici
