LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2006, 06:47 AM   #1
CrEsPo
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware 12
Posts: 184

Rep: Reputation: 30
Torsmo and Temperature


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.0C
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 .

Last edited by CrEsPo; 04-11-2006 at 06:55 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
new torsmo error :/ reilly Debian 2 04-23-2006 11:41 AM
aligning torsmo kurrupt Linux - Software 1 06-28-2005 02:34 PM
Torsmo help! wuya Linux - Software 15 05-16-2005 11:59 AM
torsmo tarun_s Linux - Software 0 12-30-2004 08:14 AM
Need help with torsmo littlemidget Debian 0 09-12-2004 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration