You are not logged in.

#1 2006-12-07 22:25:35

Shagbag
Member
Registered: 2006-10-25
Posts: 259

What does the i2c kernel module do?

I think it has something to do with temps but I don't know.  I was hoping someone can give me an answer.

Also, what do these modules do and are they different from i2c:

[n00b@archlinux ~]$ lsmod | grep "i2c"
i2c_i801                7308  0
i2c_core               17280  2 nvidia,i2c_i801

FYI, I have an nVidia GeForce Go 7600 GPU and an Intel Core Duo CPU.

Thanks (in advance)!

Offline

#2 2006-12-07 22:41:46

jnengland77
Member
From: Black Hills, USA
Registered: 2005-05-06
Posts: 111

Re: What does the i2c kernel module do?

I2C support
  CONFIG_I2C:                                                             
  I2C (pronounce: I-square-C) is a slow serial bus protocol used in many micro controller applications and developed by Philips. SMBus, or System Management Bus is a subset of the I2C protocol.  More information is contained in the directory <file>, especially in the file called "summary" there.
Both I2C and SMBus are supported here. You will need this for hardware sensors support, and also for Video For Linux support.

Copied directly from the kernel config description. So you are correct it does have to do with temperatures.

~jnengland77

Offline

#3 2006-12-07 22:54:25

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: What does the i2c kernel module do?

You chould check the lm_sensors package out if you want to have a small console script for checking your computers temperatures out.

http://wiki.archlinux.org/index.php/Lm_sensors


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#4 2006-12-08 00:46:41

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: What does the i2c kernel module do?

man modinfo - it's a useful command for this sort of question.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#5 2006-12-09 08:58:34

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: What does the i2c kernel module do?

[vEX] wrote:

You chould check the lm_sensors package out if you want to have a small console script for checking your computers temperatures out.

http://wiki.archlinux.org/index.php/Lm_sensors

I followed the link.  It told me to load modules lm90 and eeprom.  Where do I get these from (or are they already included in the BASE package)?  Also, how do I install them (is it just 'modprobe xxxx'?)

Without the above, when I run 'sensors' at the command prompt I get the error:

[root@archlinux n00b]# sensors
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and libsensors
was compiled with sysfs support!
For older kernels, make sure you have done 'modprobe i2c-proc'!

I don't have sysfs 'mounted':

[root@archlinux n00b]# mount
/dev/sda6 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)

Should I be concerned about 'libsensors [being] compiled with sysfs support'?

As to 'Can't access procfs/sysfs file', where is the directory procfs supposed to be?  Do I need to create it?

Apologies for the length of this post and the number of questions but I've reached the end of my linux skills with this and I'm in need of some help.

FYI, I'm using the 2.6.18-ARCH kernel:

[root@archlinux /]# uname -a
Linux archlinux 2.6.18-ARCH #1 SMP PREEMPT Sun Nov 19 09:14:35 CET 2006 i686 Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz GenuineIntel GNU/Linux

Offline

#6 2006-12-09 09:33:07

rayjgu3
Member
From: Chicago IL usa
Registered: 2004-07-04
Posts: 695

Re: What does the i2c kernel module do?

yes all modules for lm_sensors should be built in
yes modprobe XXXX
without modules loaded sensors doesnt know where to look
so add the modules into either "/etc/rc.conf " modules section or into "/etc/modprobe.conf" so that next time you boot up they will be loaded automatically

Offline

#7 2006-12-09 16:21:42

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: What does the i2c kernel module do?

Thanks, but I'm still getting the error:

[root@archlinux n00b]# sensors 
Can't access procfs/sysfs file 
Unable to find i2c bus information; 
For 2.6 kernels, make sure you have mounted sysfs and libsensors 
was compiled with sysfs support! 
For older kernels, make sure you have done 'modprobe i2c-proc'!

Furthermore, during the Arch scripts at start up I get the error:

/etc/rc.multi : line 16 : /etc/rc.d/sensors : Permission denied.

What am I doing wrong?

Offline

Board footer

Powered by FluxBB