LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-07-2005, 07:07 AM   #1
Mr. Asdf
LQ Newbie
 
Registered: Jul 2005
Distribution: CRUX 2.1, Debian sarge
Posts: 27

Rep: Reputation: 15
How do I get this i2c temperature monitoring thing working?


well, I have CRUX 2.1 w/ kernel 2.6.11.7 and I got to this whole thing when torsmo showed me 0*C as the CPU temperature. then I figured out that it uses a protocol named i2c, and that I need to enable i2c support in the kernel.
so I recompiled it like this:

Code:
             <*> I2C support
             <*>   I2C device interface
                   I2C Algorithms  --->
                       <M> I2C bit-banging interfaces
                       < > I2C PCF 8584 interfaces
                       < > I2C PCA 9564 interfaces
                   I2C Hardware Bus support  --->
                       << * see below >>
                   Hardware Sensors Chip support  --->
                       < everything is n >
                   Other I2C Chip support  --->
                       < everything is n >
             [ ]   I2C Core debugging messages
             [ ]   I2C Algorithm debugging messages
             [ ]   I2C Bus debugging messages
             [ ]   I2C Chip debugging messages
about the * - well, I figured out that in the "I2C Hardware Bus support" section - the selection of the right module is very important... but I wasn't sure about what to choose.
My Motherboard is Gigabyte GA-8SRX, user's manual says it is "P4 Titan Series" and that it has SiS 645 AGPset. so in the "I2C Hardware Bus support" section I chose SiS 630/730 as a module (module name is i2c-sis630), tried `modprobe i2c-sis630`and then `torsmo`, but still 0*C... the bad thing is that I don't know if I'm in the right direction, and I'm pretty clueless about this whole thing...
but, there is the directory /dev/i2c, but it's empty.
any ideas what to do?
thanks in advance.
 
Old 08-07-2005, 08:28 AM   #2
vredfreak
Member
 
Registered: Oct 2004
Location: Arkansas
Distribution: Crux, PCLinuxOS
Posts: 31

Rep: Reputation: 15
You will need to install the lm_sensors package. I believe it is available in ports. Once installed I think you run sensors-detect or some such and it will list the drivers and options that you should enable in your kernel.

This is a good tutorial. It is for Gentoo, but the basics should be about the same.

NOTE: DO NOT USE lm_sensors ON AN IBM THINKPAD!!

Hope this helps.

edit: Just to follow up, I just successfully got lm_sensors working on crux 2.1 (kernel-2.6.11.6). It wasn't that difficult. Just install lm_sensors from ports, run sensors-detect and follow the instructions there as well as in the link I gave you. I haven't rebooted yet to see if it loads at boot, though.

Last edited by vredfreak; 08-07-2005 at 09:25 AM.
 
Old 08-07-2005, 04:04 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Your setup will not work you need everything under I2C Algorithms, I2C Hardware Bus support, Hardware Sensors Chip support, and Other I2C Chip support set at modules.

BTW, SIS chipsets suck.
 
Old 08-07-2005, 04:19 PM   #4
BROse
Member
 
Registered: Nov 2003
Location: Here & Now
Distribution: SuSE 10.2
Posts: 96

Rep: Reputation: 15
Try this http://forums.suselinuxsupport.de/in...193&hl=sensors
 
Old 08-12-2005, 06:46 AM   #5
garba
Member
 
Registered: May 2005
Location: Italy
Distribution: Crux
Posts: 62

Rep: Reputation: 15
you can leave lm-sensors out and use cat /sys/bus/i2c/somewhere to check your sensors, and echo <some value> > pwm files to control fans, clear and simple!
 
  


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
Temperature Monitoring scott.holmes Linux - Software 2 09-02-2004 02:42 PM
Got i2c working ? You can answer this for me. Mike Davies Linux - Hardware 2 07-03-2004 01:30 PM
howto get temperature sensors working apberzerk Linux - General 2 03-06-2004 11:23 PM
Temperature monitoring objorkum Linux - Software 2 12-07-2003 07:52 PM
Temperature monitoring NickB Linux - Software 1 08-26-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration