[9166fa4] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY lm_sensors-download-http
|
---|
[c7ce750a] | 8 | "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-&lm_sensors-version;.tar.bz2">
|
---|
[9166fa4] | 9 | <!ENTITY lm_sensors-download-ftp
|
---|
[c7ce750a] | 10 | "ftp://ftp.netroedge.com/pub/lm-sensors/lm_sensors-&lm_sensors-version;.tar.bz2">
|
---|
[4ad93b6] | 11 | <!ENTITY lm_sensors-md5sum "60cfb98ab7a8915c3ac684af5459de2e">
|
---|
| 12 | <!ENTITY lm_sensors-size "176 KB">
|
---|
| 13 | <!ENTITY lm_sensors-buildsize "2.7 MB">
|
---|
| 14 | <!ENTITY lm_sensors-time "less than 0.1 SBU">
|
---|
[9166fa4] | 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="lm_sensors" xreflabel="lm_sensors-&lm_sensors-version;">
|
---|
| 18 | <?dbhtml filename="lm_sensors.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>lm_sensors-&lm_sensors-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="lm_sensors">
|
---|
| 28 | <primary sortas="a-lm_sensors">lm_sensors</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
[af373d35] | 32 | <title>Introduction to lm_sensors</title>
|
---|
[9166fa4] | 33 |
|
---|
| 34 | <para>
|
---|
[af373d35] | 35 | The <application>lm_sensors</application> package provides user-space
|
---|
[9166fa4] | 36 | support for the hardware monitoring drivers in the Linux kernel.
|
---|
| 37 | This is useful for monitoring the temperature of the CPU and adjusting the
|
---|
[0d7900a] | 38 | performance of some hardware (such as cooling fans).
|
---|
[9166fa4] | 39 | </para>
|
---|
| 40 |
|
---|
[5d9021ea] | 41 | &lfs74_checked;
|
---|
[9166fa4] | 42 |
|
---|
| 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (HTTP): <ulink url="&lm_sensors-download-http;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download (FTP): <ulink url="&lm_sensors-download-ftp;"/>
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download MD5 sum: &lm_sensors-md5sum;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Download size: &lm_sensors-size;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated disk space required: &lm_sensors-buildsize;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>
|
---|
| 72 | Estimated build time: &lm_sensors-time;
|
---|
| 73 | </para>
|
---|
| 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
[af373d35] | 77 | <bridgehead renderas="sect3">lm_sensors Dependencies</bridgehead>
|
---|
[9166fa4] | 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 80 | <para role="required">
|
---|
[c7ce750a] | 81 | <xref linkend="which"/>
|
---|
[9166fa4] | 82 | </para>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 85 | <para role="optional">
|
---|
[af373d35] | 86 | <ulink url="http://oss.oetiker.ch/rrdtool/">RRDtool (required to build the
|
---|
| 87 | <command>sensord</command> program)</ulink>
|
---|
[9166fa4] | 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <para condition="html" role="usernotes">
|
---|
| 91 | User Notes: <ulink url="&blfs-wiki;/lm_sensors"/>
|
---|
| 92 | </para>
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="kernel" id="lm_sensors-kernel">
|
---|
| 96 | <title>Kernel Configuration</title>
|
---|
| 97 |
|
---|
| 98 | <para>
|
---|
| 99 | Getting your kernel config right is an iterative process that may require
|
---|
[02159a2] | 100 | that you recompile your kernel a couple of times. The simplest way to go
|
---|
[9166fa4] | 101 | about it is to start by enabling modules and then compile everything that
|
---|
| 102 | may be needed by Lm Sensors as a module:
|
---|
| 103 | </para>
|
---|
| 104 |
|
---|
[4ad93b6] | 105 | <screen><literal>Top level
|
---|
| 106 | [*] Enable loadable module support --->
|
---|
[9166fa4] | 107 |
|
---|
| 108 | Bus options (PCI etc.) --->
|
---|
| 109 | [*] PCI support
|
---|
| 110 |
|
---|
| 111 | Device Drivers --->
|
---|
| 112 | [*] I2C support
|
---|
| 113 | [*] I2C device interface
|
---|
| 114 | I2C Algorithms --->
|
---|
| 115 | <M> (configure all of them as modules)
|
---|
| 116 | I2C Hardware Bus support --->
|
---|
| 117 | <M> (configure all of them as modules)
|
---|
| 118 | I2C Hardware Bus support --->
|
---|
| 119 | <M> (configure all of them as modules)
|
---|
| 120 | [*] Hardware Monitoring support --->
|
---|
| 121 | <M> (configure all of them as modules)</literal></screen>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
| 124 | Recompile your kernel and reboot into the new kernel. Don't forget to
|
---|
| 125 | <command>make modules_install</command> We will come back to the kernel in
|
---|
| 126 | the Configuring section below.
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <indexterm zone="lm_sensors lm_sensors-kernel">
|
---|
| 130 | <primary sortas="d-lm_sensors">lm_sensors</primary>
|
---|
| 131 | </indexterm>
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="installation">
|
---|
[af373d35] | 135 | <title>Installation of lm_sensors</title>
|
---|
[9166fa4] | 136 |
|
---|
| 137 | <para>
|
---|
[af373d35] | 138 | Install <application>lm_sensors</application> by running the following
|
---|
[9166fa4] | 139 | commands:
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
[af373d35] | 142 | <screen><userinput>make PREFIX=/usr \
|
---|
| 143 | BUILD_STATIC_LIB=0 \
|
---|
[c7ce750a] | 144 | MANDIR=/usr/share/man</userinput></screen>
|
---|
[9166fa4] | 145 |
|
---|
| 146 | <para>
|
---|
| 147 | This package does not come with a test suite.
|
---|
| 148 | </para>
|
---|
| 149 |
|
---|
| 150 | <para>
|
---|
| 151 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
[af373d35] | 154 | <screen role="root"><userinput>make PREFIX=/usr \
|
---|
| 155 | BUILD_STATIC_LIB=0 \
|
---|
[c7ce750a] | 156 | MANDIR=/usr/share/man install &&
|
---|
[18c9ee54] | 157 |
|
---|
[af373d35] | 158 | install -v -m755 -d /usr/share/doc/lm_sensors-&lm_sensors-version; &&
|
---|
| 159 | cp -rv README INSTALL doc/* \
|
---|
| 160 | /usr/share/doc/lm_sensors-&lm_sensors-version;</userinput></screen>
|
---|
[9166fa4] | 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | <sect2 role="commands">
|
---|
| 164 | <title>Command Explanations</title>
|
---|
| 165 |
|
---|
| 166 | <para>
|
---|
| 167 | <parameter>BUILD_STATIC_LIB=0</parameter>: This parameter disables
|
---|
[af373d35] | 168 | compiling and installing the static version of
|
---|
| 169 | <filename class="libraryfile">libsensors</filename>.
|
---|
[9166fa4] | 170 | </para>
|
---|
| 171 |
|
---|
| 172 | <para>
|
---|
| 173 | <parameter>PROG_EXTRA=sensord</parameter>: This parameter enables
|
---|
[af373d35] | 174 | compiling <command>sensord</command>, a daemon that can monitor your
|
---|
| 175 | system at regular intervals. Compiling <command>sensord</command> requires
|
---|
[9166fa4] | 176 | <ulink url="http://oss.oetiker.ch/rrdtool/">RRDtool</ulink>. Compiling
|
---|
| 177 | RRDtool 1.4.6 requires a sed: <command>sed -i '/ sv_undef/d'
|
---|
| 178 | bindings/perl-shared/RRDs.xs</command>.
|
---|
| 179 | </para>
|
---|
[c7ce750a] | 180 |
|
---|
[9166fa4] | 181 | </sect2>
|
---|
| 182 |
|
---|
| 183 | <sect2 role="configuration">
|
---|
| 184 | <title>Configuring Lm Sensors</title>
|
---|
| 185 |
|
---|
| 186 | <sect3 id="lm_sensors-config">
|
---|
| 187 | <title>Config File</title>
|
---|
[c7ce750a] | 188 |
|
---|
| 189 | <para>
|
---|
| 190 | <filename>/etc/sensors3.conf</filename>
|
---|
| 191 | </para>
|
---|
[9166fa4] | 192 |
|
---|
| 193 | <indexterm zone="lm_sensors lm_sensors-config">
|
---|
| 194 | <primary
|
---|
| 195 | sortas="e-etc-path-Configfilename2">/etc/sensors3.conf</primary>
|
---|
| 196 | </indexterm>
|
---|
[c7ce750a] | 197 |
|
---|
[9166fa4] | 198 | </sect3>
|
---|
| 199 |
|
---|
| 200 | <sect3><title>Configuration Information</title>
|
---|
| 201 |
|
---|
| 202 | <para>
|
---|
[af373d35] | 203 | To find out what hardware sensors your system has, issue the following
|
---|
| 204 | command as the <systemitem class="username">root</systemitem> user:
|
---|
[9166fa4] | 205 | </para>
|
---|
| 206 |
|
---|
| 207 | <screen role="root"><userinput>sensors-detect</userinput></screen>
|
---|
| 208 |
|
---|
| 209 | <para>
|
---|
[af373d35] | 210 | The appropriate modules should have been loaded and a summary is
|
---|
| 211 | displayed at the end. Now you know what is needed and you can recompile
|
---|
| 212 | your kernel to enable just the options you need (i.e., don't enable the
|
---|
| 213 | modules you cannot use).
|
---|
[9166fa4] | 214 | </para>
|
---|
[c7ce750a] | 215 |
|
---|
[9166fa4] | 216 | </sect3>
|
---|
[c7ce750a] | 217 |
|
---|
[9166fa4] | 218 | </sect2>
|
---|
| 219 |
|
---|
| 220 | <sect2 role="content">
|
---|
| 221 | <title>Contents</title>
|
---|
| 222 |
|
---|
| 223 | <segmentedlist>
|
---|
| 224 | <segtitle>Installed Programs</segtitle>
|
---|
| 225 | <segtitle>Installed Library</segtitle>
|
---|
| 226 | <segtitle>Installed Directories</segtitle>
|
---|
| 227 |
|
---|
| 228 | <seglistitem>
|
---|
| 229 | <seg>
|
---|
[af373d35] | 230 | fancontrol, isadump, isaset, pwmconfig, sensors, sensors-conf-convert,
|
---|
| 231 | sensors-detect, and optionally, sensord
|
---|
[c7ce750a] | 232 | </seg>
|
---|
| 233 | <seg>
|
---|
| 234 | libsensors.so
|
---|
[9166fa4] | 235 | </seg>
|
---|
| 236 | <seg>
|
---|
| 237 | /usr/include/sensors and
|
---|
[c7ce750a] | 238 | /usr/share/doc/lm_sensors-&lm_sensors-version;
|
---|
[9166fa4] | 239 | </seg>
|
---|
| 240 | </seglistitem>
|
---|
| 241 | </segmentedlist>
|
---|
| 242 |
|
---|
| 243 | <variablelist>
|
---|
| 244 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 245 | <?dbfo list-presentation="list"?>
|
---|
| 246 | <?dbhtml list-presentation="table"?>
|
---|
| 247 |
|
---|
| 248 | <varlistentry id="fancontrol">
|
---|
| 249 | <term><command>fancontrol</command></term>
|
---|
| 250 | <listitem>
|
---|
| 251 | <para>
|
---|
[af373d35] | 252 | is a shell script for use with <application>lm_sensors</application>.
|
---|
| 253 | It reads its configuration from a file<!--what file?-->, then
|
---|
| 254 | calculates fan speeds from temperatures and sets the corresponding
|
---|
| 255 | PWM outputs to the computed values.
|
---|
[9166fa4] | 256 | </para>
|
---|
| 257 | <indexterm zone="lm_sensors fancontrol">
|
---|
| 258 | <primary sortas="b-fancontrol">fancontrol</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
| 263 | <varlistentry id="isadump">
|
---|
| 264 | <term><command>isadump</command></term>
|
---|
| 265 | <listitem>
|
---|
| 266 | <para>
|
---|
| 267 | is a small helper program to examine registers visible through the
|
---|
| 268 | ISA bus. It is intended to probe any chip that lives on the ISA bus
|
---|
| 269 | working with an address register and a data register (I2C-like
|
---|
| 270 | access) or a flat range (of up to 256 bytes).
|
---|
| 271 | </para>
|
---|
| 272 | <indexterm zone="lm_sensors isadump">
|
---|
| 273 | <primary sortas="b-isadump">isadump</primary>
|
---|
| 274 | </indexterm>
|
---|
| 275 | </listitem>
|
---|
| 276 | </varlistentry>
|
---|
| 277 |
|
---|
| 278 | <varlistentry id="isaset">
|
---|
| 279 | <term><command>isaset</command></term>
|
---|
| 280 | <listitem>
|
---|
| 281 | <para>
|
---|
| 282 | is a small helper program to set registers visible through the ISA
|
---|
| 283 | bus.
|
---|
| 284 | </para>
|
---|
| 285 | <indexterm zone="lm_sensors isaset">
|
---|
| 286 | <primary sortas="b-isaset">isaset</primary>
|
---|
| 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
| 290 |
|
---|
| 291 | <varlistentry id="pwmconfig">
|
---|
| 292 | <term><command>pwmconfig</command></term>
|
---|
| 293 | <listitem>
|
---|
| 294 | <para>
|
---|
| 295 | tests the pulse width modulation (PWM) outputs of sensors and
|
---|
| 296 | configures fancontrol.
|
---|
| 297 | </para>
|
---|
| 298 | <indexterm zone="lm_sensors pwmconfig">
|
---|
| 299 | <primary sortas="b-pwmconfig">pwmconfig</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
| 304 | <varlistentry id="sensors">
|
---|
| 305 | <term><command>sensors</command></term>
|
---|
| 306 | <listitem>
|
---|
| 307 | <para>
|
---|
| 308 | prints the current readings of all sensor chips.
|
---|
| 309 | </para>
|
---|
| 310 | <indexterm zone="lm_sensors sensors">
|
---|
| 311 | <primary sortas="b-sensors">sensors</primary>
|
---|
| 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 |
|
---|
| 316 | <varlistentry id="sensors-conf-convert">
|
---|
| 317 | <term><command>sensors-conf-convert</command></term>
|
---|
| 318 | <listitem>
|
---|
| 319 | <para>
|
---|
[af373d35] | 320 | is a <application>Perl</application> script to convert
|
---|
| 321 | <application>lm-sensors</application> version 2 configuration files
|
---|
[9166fa4] | 322 | to work with version 3.
|
---|
| 323 | </para>
|
---|
| 324 | <indexterm zone="lm_sensors sensors-conf-convert">
|
---|
| 325 | <primary sortas="b-sensors-conf-convert">sensors-conf-convert</primary>
|
---|
| 326 | </indexterm>
|
---|
| 327 | </listitem>
|
---|
| 328 | </varlistentry>
|
---|
| 329 |
|
---|
| 330 | <varlistentry id="sensors-detect">
|
---|
| 331 | <term><command>sensors-detect</command></term>
|
---|
| 332 | <listitem>
|
---|
| 333 | <para>
|
---|
[af373d35] | 334 | is a <application>Perl</application> script that will walk you
|
---|
| 335 | through the process of scanning your system for various hardware
|
---|
| 336 | monitoring chips (sensors) supported by
|
---|
| 337 | <filename class="libraryfile">libsensors</filename>, or more
|
---|
| 338 | generally by the <application>lm_sensors</application> tool suite.
|
---|
[9166fa4] | 339 | </para>
|
---|
| 340 | <indexterm zone="lm_sensors sensors-detect">
|
---|
| 341 | <primary sortas="b-sensors-detect">sensors-detect</primary>
|
---|
| 342 | </indexterm>
|
---|
| 343 | </listitem>
|
---|
| 344 | </varlistentry>
|
---|
| 345 |
|
---|
| 346 | <varlistentry id="libsensors">
|
---|
| 347 | <term><filename class="libraryfile">libsensors.so</filename></term>
|
---|
| 348 | <listitem>
|
---|
| 349 | <para>
|
---|
[af373d35] | 350 | contains the <application>lm_sensors</application> API functions.
|
---|
[9166fa4] | 351 | </para>
|
---|
| 352 | <indexterm zone="lm_sensors libsensors">
|
---|
| 353 | <primary sortas="c-libsensors">libsensors.so</primary>
|
---|
| 354 | </indexterm>
|
---|
| 355 | </listitem>
|
---|
| 356 | </varlistentry>
|
---|
[c7ce750a] | 357 |
|
---|
[9166fa4] | 358 | </variablelist>
|
---|
[c7ce750a] | 359 |
|
---|
[9166fa4] | 360 | </sect2>
|
---|
[c7ce750a] | 361 |
|
---|
[9166fa4] | 362 | </sect1>
|
---|