source: general/sysutils/lm_sensors.xml@ eb9f0ef

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since eb9f0ef was cb594b6c, checked in by Xi Ruoyao <xry111@…>, 12 months ago

general: Remove non-exist User Notes link

Part of User Notes removal by
https://www.linuxfromscratch.org/~xry111/remove-nonexist-usernote.sh

  • Property mode set to 100644
File size: 12.3 KB
Line 
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
19 <title>Lm-sensors-&lm-sensors-version;</title>
20
21 <indexterm zone="lm_sensors">
22 <primary sortas="a-lm_sensors">lm_sensors</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to Lm_sensors</title>
27
28 <para>
29 The <application>lm_sensors</application> package provides userspace
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
32 performance of some hardware (such as cooling fans).
33 </para>
34
35 &lfs113_checked;
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
71<!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
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>
79 </itemizedlist> -->
80
81 <bridgehead renderas="sect3">lm_sensors Dependencies</bridgehead>
82
83 <bridgehead renderas="sect4">Required</bridgehead>
84 <para role="required">
85 <xref linkend="which"/>
86 </para>
87
88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
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)
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
104 that you recompile your kernel a couple of times. The simplest way to go
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
109<screen><literal>[*] Enable loadable module support ---&gt; [CONFIG_MODULES]
110
111Device Drivers ---&gt;
112 [*] PCI support ---&gt; [CONFIG_PCI]
113 I2C support ---&gt;
114 &lt;*/M&gt; I2C device interface [CONFIG_I2C_CHARDEV]<!--
115Seems to be automatically selected and invisible on linux 3.17:
116 I2C Algorithms -&45;-&gt;
117 &lt;M&gt; (configure all of them as modules)-->
118 I2C Hardware Bus support ---&gt;
119 &lt;M&gt; (configure all of them as modules)
120 &lt;*/M&gt; Hardware Monitoring support ---&gt; [CONFIG_HWMON]
121 &lt;M&gt; (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">
135 <title>Installation of Lm_sensors</title>
136
137 <para>
138 Install <application>Lm_sensors</application> by running the following
139 commands:
140 </para>
141
142<!-- <screen><userinput>patch -Np1 -i ../lm_sensors-&lm_sensors-version;-upstream_fixes-1.patch &amp;&amp; -->
143<screen><userinput>make PREFIX=/usr \
144 BUILD_STATIC_LIB=0 \
145 MANDIR=/usr/share/man</userinput></screen>
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
155<screen role="root"><userinput>make PREFIX=/usr \
156 BUILD_STATIC_LIB=0 \
157 MANDIR=/usr/share/man install &amp;&amp;
158
159install -v -m755 -d /usr/share/doc/lm_sensors-&lm-sensors-version; &amp;&amp;
160cp -rv README INSTALL doc/* \
161 /usr/share/doc/lm_sensors-&lm-sensors-version;</userinput></screen>
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
169 compiling and installing the static version of
170 <filename class="libraryfile">libsensors</filename>.
171 </para>
172
173 <para>
174 <option>PROG_EXTRA=sensord</option>: This parameter enables
175 compiling <command>sensord</command>, a daemon that can monitor your
176 system at regular intervals. Compiling <command>sensord</command> requires
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.
180 Otherwise, Lm_sensors will not find it easily.
181 </para>
182
183 </sect2>
184
185 <sect2 role="configuration">
186 <title>Configuring Lm_sensors</title>
187
188 <sect3 id="lm_sensors-config">
189 <title>Config File</title>
190
191 <para>
192 <filename>/etc/sensors3.conf</filename>
193 </para>
194
195 <indexterm zone="lm_sensors lm_sensors-config">
196 <primary
197 sortas="e-etc-path-Configfilename2">/etc/sensors3.conf</primary>
198 </indexterm>
199
200 </sect3>
201
202 <sect3><title>Configuration Information</title>
203
204 <para>
205 To find out what hardware sensors your system has, issue the following
206 command as the <systemitem class="username">root</systemitem> user:
207 </para>
208
209<screen role="root"><userinput>sensors-detect</userinput></screen>
210
211 <para>
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).
216 </para>
217
218 </sect3>
219
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>
232 fancontrol, isadump, isaset, pwmconfig, sensors, sensors-conf-convert,
233 sensors-detect, and optionally, sensord
234 </seg>
235 <seg>
236 libsensors.so
237 </seg>
238 <seg>
239 /etc/sensors.d,
240 /usr/include/sensors and
241 /usr/share/doc/lm_sensors-&lm-sensors-version;
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>
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
258 PWM outputs to the computed values
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
273 access) or a flat range (of up to 256 bytes)
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
286 bus
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
299 configures fancontrol
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>
311 prints the current readings of all sensor chips
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>
323 is a <application>Perl</application> script to convert
324 <application>lm-sensors</application> version 2 configuration files
325 to work with version 3
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>
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
341 generally by the <application>lm_sensors</application> tool suite
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
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
354 readings
355 </para>
356 <indexterm zone="lm_sensors sensord">
357 <primary sortas="b-sensord">sensord</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="libsensors">
363 <term><filename class="libraryfile">libsensors.so</filename></term>
364 <listitem>
365 <para>
366 contains the <application>lm_sensors</application> API functions
367 </para>
368 <indexterm zone="lm_sensors libsensors">
369 <primary sortas="c-libsensors">libsensors.so</primary>
370 </indexterm>
371 </listitem>
372 </varlistentry>
373
374 </variablelist>
375
376 </sect2>
377
378</sect1>
Note: See TracBrowser for help on using the repository browser.