|
Packit Service |
23242a |
INSTALLATION INSTRUCTIONS
|
|
Packit Service |
23242a |
=========================
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
The lm-sensors package, version 3, provides user-space support for the
|
|
Packit Service |
23242a |
hardware monitoring drivers in Linux 2.6.5 and later. For older kernel
|
|
Packit Service |
23242a |
versions, you have to use lm-sensors version 2.
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
Dependencies
|
|
Packit Service |
23242a |
============
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
Build-time dependencies:
|
|
Packit Service |
23242a |
* GNU make
|
|
Packit Service |
23242a |
* gcc
|
|
Packit Service |
23242a |
* bison
|
|
Packit Service |
23242a |
* flex
|
|
Packit Service |
23242a |
* rrd header files (optional, for sensord)
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
Run-time dependencies:
|
|
Packit Service |
23242a |
* perl (for sensors-detect)
|
|
Packit Service |
23242a |
* rrdtool >= 1.2.1 (optional, for sensord)
|
|
Packit Service |
23242a |
* proper kernel configuration (see below)
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
Compilation
|
|
Packit Service |
23242a |
===========
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
At the top of the Makefile are a couple of configuration variables that
|
|
Packit Service |
23242a |
you may want to change. There's a description of what each variable does
|
|
Packit Service |
23242a |
in the Makefile itself.
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
Compilation is done by `make all'. You will get a lot of warnings about
|
|
Packit Service |
23242a |
files which are not found, all ending in `.*d'. You can safely ignore
|
|
Packit Service |
23242a |
this; they contain dependency information, which is regenerated on the
|
|
Packit Service |
23242a |
spot.
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
`make install' installs the package (to /usr/local by default).
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
Kernel configuration
|
|
Packit Service |
23242a |
====================
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
This package assumes that you have a properly configured kernel. If
|
|
Packit Service |
23242a |
you run a distribution kernel, that should be the case. If you're
|
|
Packit Service |
23242a |
building your own kernel, here are some recommendations:
|
|
Packit Service |
23242a |
* Enable "I2C support" (CONFIG_I2C=y or m). On many motherboards, the
|
|
Packit Service |
23242a |
sensor chip is connected to the SMBus, which is supported by I2C
|
|
Packit Service |
23242a |
in the Linux kernel.
|
|
Packit Service |
23242a |
* Enable "I2C device interface" (CONFIG_I2C_CHARDEV=m). sensors-detect
|
|
Packit Service |
23242a |
needs this to probe for SMBus hardware monitoring chips.
|
|
Packit Service |
23242a |
* In I2C Hardware Bus support, enable all drivers you might need,
|
|
Packit Service |
23242a |
preferably as modules. If you're not sure, select them all.
|
|
Packit Service |
23242a |
* Enable "Hardware Monitoring support" (CONFIG_HWMON=y or m).
|
|
Packit Service |
23242a |
* Enable all hardware monitoring drivers you might need, preferably
|
|
Packit Service |
23242a |
as modules. If you're not sure, select them all.
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
Using the sensors package
|
|
Packit Service |
23242a |
=========================
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
There is a scanning program installed called sensors-detect. It
|
|
Packit Service |
23242a |
will scan all available I2C and SMBus adapters for all known sensor
|
|
Packit Service |
23242a |
devices, and will also look for ISA, PCI and Super-I/O chips with
|
|
Packit Service |
23242a |
sensors, and give you a list of what kernel drivers you need to load
|
|
Packit Service |
23242a |
(using modprobe).
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
After loading the suggested drivers, you can use the installed sensors
|
|
Packit Service |
23242a |
program to get a report of all detected sensor devices. Check the manual
|
|
Packit Service |
23242a |
page for available options.
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
The initial output of `sensors' will not be perfect. You have to adjust
|
|
Packit Service |
23242a |
the configuration file (/etc/sensors3.conf) to match your motherboard.
|
|
Packit Service |
23242a |
This includes (re)labelling inputs, ignoring unused inputs, changing
|
|
Packit Service |
23242a |
voltage compute lines and setting limits. Write down all the sensor
|
|
Packit Service |
23242a |
information your BIOS displays as a hint to what you are supposed to
|
|
Packit Service |
23242a |
obtain in the end. Make sure you modify the right chip section.
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
Once you are done with editing the configuration file, calling
|
|
Packit Service |
23242a |
`sensors -s' will set the new limits. Then the output of `sensors'
|
|
Packit Service |
23242a |
should look much better.
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
There are many auxiliary programs not installed. You can find them under
|
|
Packit Service |
23242a |
the prog subdirectory. A list can be found in doc/progs.
|