lm_sensors and i2c Documentation
Introduction
The picture on the right shows the interrelationships of our kernel drivers. The drivers at the top of the kernel section are "chip" drivers for specific sensors. In the middle is i2c-core, which contains the i2c and smbus protocol implementation. At the bottom of the kernel section are the algorithm and adapter drivers, which comprise the "bus" drivers for accessing the i2c bus (algorithm and adapter drivers are generally combined, except for "bit banging" drivers which use a common algorithm).
The "program" section at the top represents the lm_sensors userspace programs, including "sensors", "sensors-detect", "i2cdetect", and "isadump".
As you can see from the diagram, this is only a small part of a working lm_sensors installation. The rest of the work is done inside the kernel by two branches of lm_sensors that work together, one is called sensors while the other is i2c. You will need both in order to fully utilize lm_sensors. Depending on what kernel you are using (or more specifically what kernel your distribution has provided to you) will determine what lm_sensors is capable of doing. If you find that you cannot address all of the sensor chips you have or maybe you can't even get i2cdetect to see your adapter chip then you should check to see if lm_sensors supports your hardware on our Supported Devices Page.
A note about algorithm and adapter code: Most code for algorithm and adapters are combined into the one module as you need both in order to be able to function correctly. There are a some of exceptions to this, including "bit-banging" adapters which use the separate i2c-algo-bit algorithm, and parallel port adapters, which also use separate algorithm modules.
The following sections link to most of our documentation.
General Information
Supported Devices
Installation
Help / Support
- FAQ
- FAQ
- /etc/sensors.conf help (top of the sensors.conf.eg file)
- Module Parameters for modprobe / insmod
Project Status
- 2.6 Kernel Information Page -- Up-to-date information on compatibility and support of lm-sensors in 2.6 kernels.
- Supported devices -- Generally up-to-date information
- Latest lm_sensors CHANGES document from Subversion repository
- Latest i2c CHANGES document from Subversion repository
- lm_sensors TODO list -- out of date, refer to our open tickets instead
- I2C TODO list -- includes plans regarding SMBus 2.0 and 16-bit register addresses
- Information for IBM Thinkpad owners about eeprom corruption by lm_sensors
Tools
- Overview of programs and tools in the lm_sensors package
- eeprom (small eeprom reader/writer)
- eepromer (large eeprom reader/writer)
- I2C Tools Page
- I2C and ISA Tools Documentation
- Init scripts (for use at kernel startup)
- m7101 (ALi chip hotplug module)
- mkpatch (kernel patch generator)
- p4b_smbus (Asus P4B PIIX4 SMBus function hotplug module)
- RRD scripts (generates web plots)
- sensord (sensor daemon)
- tellerstats (generates web plots)
- decode-dimms (generates a list of memory parameters)
Theory of operation
- Overview of Adapter / Client Architecture
- Further Detail on the Adapter / Client Architecture
- I2C Protocol Summary
- SMBus Protocol Summary
- I2C Ten Bit Address Information
- Overview of Temperature Sensors
- Guide to Fan Divisors
- Guide to VID / VRM
- /dev/i2c-x interface
- I2C Bus Driver /proc interface
- I2C Driver Functionality Definitions
Developer's Documentation
- Overview for Applications Developers -- How to use i2c, lm_sensors, and libsensors in your application
- Protocol Implementation Status Page -- Status of support for all I2C, SMBus and SMBus 2.0 messages in the i2c package. Includes information on PEC, I2C block, and 2-byte I2C addresses.
- How to write new Drivers -- Checklist for both sensors and bus drivers
- How to write I2C Drivers -- details for i2c bus drivers
- How to port I2C Drivers from the i2c-old interface to the standard I2C interface (Kernel 2.5 removed i2c-old, use this guide to port your driver!)
- New Drivers Page -- Check here before starting a driver.
- lm-sensors (i2c-proc) /proc naming standards
- Sysctl information
- Makefile information
- Information about Donations to the Project
Man Pages
- man/fancontrol
- man/i2cdetect
- man/i2cdump
- man/i2cget
- man/i2cset
- man/isadump
- man/isaset
- man/libsensors
- man/pwmconfig
- man/sensord
- man/sensors
- man/sensors-detect
- man/sensors.conf
Individual Driver Documentation
Linux 2.4 Bus Drivers
- Summary of Linux 2.4 bus drivers in the I2C package
- i2c-algo-pcf
- i2c-ali1535
- i2c-ali15x3
- i2c-amd756
- i2c-amd8111
- i2c-hydra
- i2c-ipmb
- i2c-ipmi
- i2c-i801
- i2c-i810
- i2c-piix4
- i2c-pport
- i2c-savage4
- i2c-sis5595
- i2c-sis630
- i2c-sis645
- i2c-tsunami
- i2c-velleman
- i2c-via
- i2c-viapro
- i2c-voodoo3
Linux 2.4 Chip Drivers
- Summary of Linux 2.4 chip drivers in the LM Sensors package
- adm1021
- adm1024
- adm1025
- adm1026
- adm9240
- asb100
- bmcsensors
- bt869
- ddcmon
- ds1307
- ds1621
- eeprom
- f71805f
- fscher
- fscpos
- fscscy
- gl518sm
- gl520sm
- it87
- lm63
- lm75
- lm78
- lm80
- lm83
- lm85
- lm87
- lm90
- lm92
- lm93
- ltc1710
- matorb
- max6650
- maxilife
- mtp008
- pc87360
- pca9540
- pcf8574
- pcf8591
- saa1064
- sis5595
- smartbatt
- smbus-arp
- smsc47m1
- thmc50
- via686a
- vt1211
- vt8231
- w83627hf
- w83781d
- w83l785ts
- xeontemp
Attachments
- layers.gif (13.3 kB) -
Different layers of kernel drivers.
, added by otaku42 <mrenzmann@otaku42.de> on 01/02/06 13:02:25.

