Blame INSTALL

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