LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2004, 09:01 AM   #1
Maego
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
lm_sensors probs


I'm trying to get lm_sensors to work for use in gkrellm.

It detects my sensors OK with sensor-detect. I copy the stuff it tells me to do. I controlled if the needed modules are loaded. Everything seemed ok.

But lm_sensors.init just won't start. This script looks for an entry of i2c in the /proc directory but i'm using a 2.6.7 kernel so it should look somewhere in my sysfs. Another problem seems to be that it looks for a RedHat specific file "/etc/init.d/functions". Anyone knowing a workaround for that?

when I run sensors it just tells me "No sensors found!"

I've been searching hours to find a solution but no luck.

If needed i'll show a printout of sensors-detect and lsmod
 
Old 07-31-2004, 09:11 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Did you modprobe all modules ?

to see aviaible i2c modules in your system :
/sbin/modprobe -l | grep i2c

to see i2c loaded modules :
lsmod | grep i2c
 
Old 07-31-2004, 11:31 AM   #3
WilliamS
Member
 
Registered: Nov 2003
Location: 46N 76W
Distribution: Slackware 14.1
Posts: 380

Rep: Reputation: 31
At the end of sensors-detect there is list of modprobes, cut and paste them into either /etc/rc.d/rc.local or /etc/rc.d/rc.modules.
This will start everything needed at the next boot, or do all the modprobes if you don't want to boot.
Here is what I have in /etc/rc.d/rc.local:

#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
# I2C adapter drivers
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe w83627hf
# sleep 2 # optional
/usr/local/bin/sensors -s # recommended
 
Old 07-31-2004, 12:16 PM   #4
Maego
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: 0
I'm sure the modules aren't the problem, all the needed modules are loaded.

There's something fishy with the init script I think
 
Old 07-31-2004, 02:41 PM   #5
WilliamS
Member
 
Registered: Nov 2003
Location: 46N 76W
Distribution: Slackware 14.1
Posts: 380

Rep: Reputation: 31
Might find your answer here:
http://www2.lm-sensors.nu/~lm78/cvs/...nsors-FAQ.html

and can ask for help from the real experts if not.
 
  


Reply



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
How do I use lm_sensors? Kramer Linux - Hardware 13 11-15-2003 08:05 PM
lm_sensors CanadianPenguin Linux - Software 5 10-26-2003 02:13 PM
Trying to use lm_sensors... Kramer Linux - Hardware 5 10-10-2003 09:14 PM
lm_sensors help malvu Linux - Software 7 05-04-2003 08:13 AM
lm_sensors csDraco_ Slackware 3 04-17-2003 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:57 PM.

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