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