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