I'm having problems getting this to work. I'm running Slackware 10.2, which uses the 2.4 kernel. I had to install lm_sensors manually, and it works. Other programs that are autoconfigured work with lm_sensors properly. I'm having troubling configuring torsmo though.
The default temperature lines do not work and all the pages I've found have stated stuff about the '/sys/bus/i2c/devices' directory. The '/sys' directory is part of the 2.6 kernel, so I do not have that directory.
How can I configure torsmo to work with lm_sensors on a 2.4 kernel?
edit: Was fooling around with it and got a little further, though now I'm completly lost. This is how I have torsmo calling the temperature:
Code:
CPU:$color ${exec /home/user/temp.sh / 1000}°C
temp.sh looks like this:
Code:
#!/bin/bash
i=`cat /proc/sys/dev/sensors/w83627thf-isa-0290/temp2`;
echo "$i";
Problem is, temp2 has 3 values, the high, low, and current. So my display turns out like this:
Code:
CPU: 80.0 75.0 60.0°C
How do I get rid of the 80.0 and 75.0? The '/proc/sys/dev/sensors/w83627thf-isa-0290/temp*' are the only files I could find.
edit2: Only took me the whole day, but I came up with the answer. For those interested I used this script:
Code:
#!/bin/bash
i=`cat /proc/sys/dev/sensors/w83627thf-isa-0290/temp2 | cut -d ' ' -f3`;
echo "$i";
Never knew about the cut command, but that was exactly what I was looking for. Thanks anyway

.