LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-11-2004, 02:18 AM   #1
push
Member
 
Registered: Sep 2004
Location: Cincinnati
Distribution: Slackware 10.2
Posts: 32

Rep: Reputation: 15
sensor-detect question


I'm trying to get karamba to monitor my onboard sensors and i got through everything but i'm a little confused on where to put things.

I put this in /etc/modules.conf

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----


I don't know where to put this, it says rc* does that mean I can put it in any rc file or which one should I put it in?:

#----cut here----
# I2C adapter drivers
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe via686a
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----

and do i do anything with this?

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): YES
Copy /usr/share/doc/packages/sensors/prog/init/lm_sensors.init.suse
to /etc/init.d/lm_sensors for initialization at boot time.


Thanks again
 
Old 09-11-2004, 05:13 AM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 37
The first section goes in /etc/modules.conf, as you have it.

The second part (as per your post) depends on your distro. If you have /etc/rc.local or /etc/rc.d/rc.local, you could put it there. I made an executable rc.lm_sensors file in /etc/rc.d/ with the relevant code in it

For the last part, you need to do as the program says:
Code:
Copy /usr/share/doc/packages/sensors/prog/init/lm_sensors.init.suse
to /etc/init.d/lm_sensors for initialization at boot time.
 
Old 09-11-2004, 08:34 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Re: sensor-detect question

Quote:
Originally posted by push
I'm trying to get karamba to monitor my onboard sensors and i got through everything but i'm a little confused on where to put things.

I put this in /etc/modules.conf

#----cut here----
# I2C module options
alias char-major-89 i2c-dev
#----cut here----

That is where it ends up in Debian.
Quote:
I don't know where to put this, it says rc* does that mean I can put it in any rc file or which one should I put it in?:

#----cut here----
# I2C adapter drivers
modprobe i2c-viapro
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe via686a
# sleep 2 # optional
/usr/bin/sensors -s # recommended
#----cut here----
Now going by what I had to do I would try this in your /etc/modules file the /usr/bin/sensors line did nothing for me.

Code:
#----cut here----
# I2C adapter drivers
i2c-viapro
i2c-isa
# I2C chip drivers
eeprom
via686a
#----cut here----
Quote:
and do i do anything with this?

Do you want to generate /etc/sysconfig/lm_sensors? (YES/no): YES
Copy /usr/share/doc/packages/sensors/prog/init/lm_sensors.init.suse
to /etc/init.d/lm_sensors for initialization at boot time.


Thanks again
Totally useless advice in my case I would try it without the file.

Edit: It looks like we have the same type of board so I should add this it is the actual section my /etc/modules so if the one above does not work try this.

Code:
# Added by me for sensors
#----cut here----
# I2C adapter drivers
i2c-isa
# I2C chip drivers
via686a
#----cut here----

Last edited by HappyTux; 09-11-2004 at 08:37 AM.
 
Old 09-11-2004, 12:06 PM   #4
push
Member
 
Registered: Sep 2004
Location: Cincinnati
Distribution: Slackware 10.2
Posts: 32

Original Poster
Rep: Reputation: 15
I don't have an rc.local file in either /etc or /etc/rc.d i'm running suse 9.1 with a kg7-raid mobo, so where should i put those couple lines that want an rc file? I have rc through rc6.d in the /etc/rc.d folder and rc.status ni /etc, what should i do?
 
Old 09-11-2004, 12:54 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally posted by push
I don't have an rc.local file in either /etc or /etc/rc.d i'm running suse 9.1 with a kg7-raid mobo, so where should i put those couple lines that want an rc file? I have rc through rc6.d in the /etc/rc.d folder and rc.status ni /etc, what should i do?
Have you tried it without them to see if it will work? Like I told you it worked fine on Debian without them so it is worth a try, if necessary then you would need to create a file.
 
  


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
sensor-detect lasalsademuerte Linux - Software 2 10-18-2009 04:11 AM
lm-sensor doesn't detect any sensors chemdawg Linux - General 1 10-24-2005 12:56 PM
gdesklets sensor SepitvaOra Linux - Software 3 04-06-2005 07:02 PM
LM sensor help TuxFreak Linux - Hardware 0 10-24-2004 02:34 PM
Windows question but affects RHL 9 as well: Cant Detect My Matshita SCSI CDR inTUXicated Linux - Hardware 0 08-10-2003 06:47 AM


All times are GMT -5. The time now is 07:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration