root/lm-sensors/trunk/doc/lm_sensors-FAQ.texi @ 3023

Revision 3023, 64.5 KB (checked in by khali, 8 years ago)

Addition to the "-5V and -12V readings are way out of range!"
subsection.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1\input texinfo.tex    @c -*-texinfo-*-
2
3@c %**start of header
4@setfilename lm_sensors-FAQ.info
5@include version.texi
6@settitle Sensors FAQ for lm_sensors version @value{VERSION}
7@comment %**end of header
8
9@titlepage
10@center @titlefont{This is the FAQ for the @command{lm_sensors} program, @value{VERSION}}
11@sp 3
12@center Copyright (C) 1998 - 2005
13@sp 1
14@center Frodo Looijaard,
15@center Philip Edelbrock,
16@center Mark D. Studebaker,
17@center and
18@center Jean Delvare
19@end titlepage
20
21@ifhtml
22Copyright (C) 1998 - 2005@*
23Frodo Looijaard,@*
24Philip Edelbrock,@*
25Mark D. Studebaker@*
26and@*
27Jean Delvare@*
28@end ifhtml
29
30@dircategory Utilities
31@direntry
32* lm_sensors-FAQ: (lm_sensors-FAQ)           The lm_sensors FAQ
33@end direntry
34
35@summarycontents
36@contents
37
38@ifnottex
39@node Top
40@top lm_sensors
41
42The lm_sensors package includes a collection of modules for general SMBus
43access and hardware monitoring.  NOTE: this requires special support which
44is not in standard 2.2-vintage kernels.
45
46@end ifnottex
47
48@menu
49* Overview::                PC and Sensor Overview
50* Basics::                  Sensor and Bus Basics
51* Installation::            Installation and Management
52* Problems::                Problems
53* Help::                    How to Ask for Help
54* Contribute::              How to Contribute
55* Version 1 Specifics::     Version 1 Specific Questions
56* Document Revisions::      Revision History of This Document
57@end menu
58
59
60@node Overview, Basics, Top, Top
61@chapter PC and Sensor Overview
62
63@menu
64* Section 1.1::             What sensors are available on my PC?
65* Section 1.2::             What can a sensor chip like the "LM78" do?
66* Section 1.3::             Where do I find out more about any of these chips?
67@end menu
68
69@node Section 1.1, Section 1.2, , Overview
70@section What sensors are available on my PC?
71
72Most PC's built since late 1997 now come with a
73hardware health monitoring chip. This chip may be accessed via the
74ISA bus or the SMBus, depending on the motherboard.
75
76Some motherboard chipsets, notably the Via 686 and the SiS 5595,
77contain hardware monitor functions.
78
79This FAQ frequently refers to the "LM78". This chip has been
80obsoleted by National Semiconductor. Most motherboards today contain
81a chip with similar functions.
82
83
84@node Section 1.2, Section 1.3, Section 1.1, Overview
85@section What can a sensor chip like the "LM78" do?
86
87The LM78 is a chip made by National Semiconductor which can monitor 7
88voltages (5 positive, 2 negative) from 0 to 4.08V.  The inputs are usually in
89series with voltage dividers which lower the +/- 12V and +/- 5V supplies to
90measurable range.  Therefore, the readings for such inputs need to be
91re-scaled appropriately by software.
92
93The LM78 also has 3 fan speed monitoring inputs, an internal
94temperature sensor, a chassis intrusion sensor, and a couple maskable interrupt
95inputs.  The LM78 can also relay the processor's (P6 or Pent II) VID lines
96which are hardwired and used to indicate to the power regulator (usually on
97the mainboard close to the processor socket/slot) what voltage to supply to
98the processor.
99
100The LM78 can be interfaced to a system via the ISA bus and/or the
101SMBus.
102
103Most other sensor chips have comparable functionality. Each supported
104chip is documented in the @file{doc/chips} directory.
105
106
107@node Section 1.3,  , Section 1.2, Overview
108@section Where do I find out more about any of these chips?
109
110Most semiconductor companies have comprehensive documentation,
111including complete datasheets, on their websites. Analog Devices,
112Dallas Semiconductor, Maxim, and National Semiconductor have the widest selection
113of sensor chips. Their websites are:
114
115@itemize @bullet
116  @item @uref{http://www.analog.com}
117  @item @uref{http://www.dalsemi.com}
118  @item @uref{http://www.maxim-ic.com}
119  @item @uref{http://www.national.com}
120@end itemize
121
122Please see the file @uref{http://www2.lm-sensors.nu/~lm78/useful_addresses.html}
123for links to other companies' websites.
124
125
126
127@node Basics, Installation, Overview, Top
128@chapter Sensor and Bus Basics
129
130@menu
131* Section 2.1::             What sensors are available on my PC?
132* Section 2.2::             What can a sensor chip like the "LM78" do?
133* Section 2.3::             Where do I find out more about any of these chips?
134* Section 2.4::             What sensors are available on my PC?
135* Section 2.5::             What can a sensor chip like the "LM78" do?
136* Section 2.6::             Where do I find out more about any of these chips?
137@end menu
138
139
140@node Section 2.1, Section 2.2, , Basics
141@section How are these sensors read?
142
143Sensor chips reside on either the ISA bus, the SMBus, or both.
144See the file @file{doc/chips/SUMMARY} in our package for a list.
145
146To communicate with chips on the ISA bus, the software uses
147simple I/O reads and writes.
148
149To communicate with chips on the SMBus, the software must
150use an SMBus interface device, explained below.
151
152
153@node Section 2.2, Section 2.3, Section 2.1, Basics
154@section What is the SMBus? And the I2C bus?
155
156The SMBus is the "System Management Bus".  More specifically, it is a
1572-wire, low-speed serial communication bus used for basic health monitoring
158and hardware management. It is a specific implementation of the more
159general I2C (pronunciation: I-squared-C) bus. In fact, both I2C devices
160and SMBus devices may be connected to the same (I2C) bus.
161
162The SMBus (or I2C bus) starts at the host controller, used for
163starting transactions on the SMBus.  From the host interface, the
164devices communicated with are the @dfn{slave} devices.  Each slave device has a
165unique 7-bit address which the host uses to refer to that device.
166
167For each supported SMBus host, there is a separate kernel module
168which implements the communication protocol with the host. Some SMBus hosts
169really operate on the SMBus level; these hosts can not cope with pure I2C
170devices. Other hosts are in fact I2C hosts: in this case, we implement
171the SMBus protocol in terms of I2C operations. But these hosts can also
172talk to pure I2C devices.
173
174
175@node Section 2.3, Section 2.4, Section 2.2, Basics
176@section I don't have an ISA bus!
177
178We promise, you do, even if you don't have any old ISA slots.
179The "ISA Bus" exists in your computer even if you don't have ISA slots;
180it is simply a memory-mapped area, 64KB in size (0x0000 - 0xFFFF)
181where many "legacy" functions, such as keyboard and interrupt controllers,
182are found. It isn't necessarily a separate physical bus.
183See the file @file{/proc/ioports} for a list of devices living on
184the "ISA Bus" in your system. If you don't like the term "ISA Bus"
185think "I/O Space".
186
187
188@node Section 2.4, Section 2.5, Section 2.3, Basics
189@section What sensors do processors have?
190
191Most new processors contain a thermal diode on the die itself.
192The electical properties of all diodes and transistors vary
193slightly with temperature. The thermal diode is exceptionally accurate
194because it is directly on the die. Newer temperature sensor chips,
195like the Analog Devices ADM1021 and clones, and the Winbond chips,
196have circuitry for measuring the the electrical properties of
197an external diode and converting this data to a temperature.
198Any sensor chip listed in @file{doc/chips/SUMMARY} in our package which
199has support for more than one temperature supports external temperature sensing.
200
201Older motherboards and processors without this feature generally use
202an LM75 placed close to the processor. This is much less accurate.
203
204The Pentium 2 'boxed' processor usually has an LM75 very close to the
205base of the box. It can be read through the SMBus to report the approximate
206temperature of the processor.  The processor also contains an internal
207temperature sensor (of low accuracy) used as a fail-safe to disable the
208processor in case it gets much too hot (usually around 130 degrees C).  And,
209the Pentium 2 also has a hard-wired signal (VID lines) on it's SEC (single
210edge connector) which indicates what power supply is required to operate the
211processor.
212
213The P6 (Pentium-Pro) may have an LM75 in or just under the socket.
214P6's also have VID lines.
215
216Pentiums and Pentium w/ MMX do not have VID lines, and sometimes have
217LM75's under the sockets (depends on the mainboard, and how 'modern' the
218mainboard is).
219
220The P2 Xeon was the first Intel processor to include the SMBus
221interface on the P2 Xeon SEC.
222
223
224@node Section 2.5, Section 2.6, Section 2.4, Basics
225@section How often are the sensor values updated?
226
227The LM78, and most other sensor chips like it, reads its sensors one
228by one. A complete scanning sweep will take about 1.5 seconds. The LM78 stops
229readings sensors if you try to access it, so if you access it very often
230(by reading sensor values; writing new limits is safe) it will not find the
231time to update its sensor values at all! Fortunately, the kernel module takes
232care not to do this, and only reads new values each 1.5 seconds. If you
233read the values again, you will get the 'old' values again.
234
235
236@node Section 2.6, , Section 2.5, Basics
237@section How are alarms triggered?
238
239It is possible to monitor each sensor and have an alarm go off if
240it crosses some pre-determined limits.  There are two sorts of interrupts
241which can be generated by sensor chips if this happens (it depends a bit on
242the actual chip if both are supported; the LM80, for example, has only
243IRQ interrupts): IRQ interrupts and SMI interrupts.  IRQ stands for
244Interrupt Request and are the interrupt lines you can find in @file{/proc/interrupts}.
245SMI stands for System Management Interrupt, and is a special interrupt which
246puts the processor in a secure environment independent of any other things
247running.  SMI is currently not supported by the Linux kernel.  IRQs are
248supported, of course.
249
250Even if no interrupt is generated, some bits in a status register
251will be set until the register is read the next time. If the alarm condition
252persists after that, the bits will be set on the next scanning sweep, etc.
253
254Most drivers in our package do not support interrupts at this time.
255
256
257
258@node Installation, Problems, Basics, Top
259@chapter Installation and Management
260
261@menu
262* Section 3.1::     Why so many modules, and how do I cope with them?
263* Section 3.2::     How do I know which chips I own?
264* Section 3.3::     Which modules should I insert?
265* Section 3.4::     Do I need the configuration file @file{/etc/sensors.conf}?
266* Section 3.5::     What about the @samp{No such file or directory} warnings
267* Section 3.6::     I get all kinds of weird compilation errors?
268* Section 3.7::     It still does not compile or patch!
269* Section 3.8::     @command{make install} fails on Mandrake kernels
270* Section 3.9::     I get unresolved symbols when I @command{modprobe} modules
271* Section 3.10::    I2C_DRIVERID_ADM1024 undefined (Red Hat especially)
272@end menu
273
274@node Section 3.1, Section 3.2, , Installation
275@section Why so many modules, and how do I cope with them?
276
277We tried to make this package as modular as possible. This makes it
278easy to add new drivers, and unused drivers will take no precious kernel
279space. On the other hand, it can be a bit confusing at first.
280
281Here are two simple guidelines:
282@itemize
283  @item Run @command{sensors-detect} and do what it tells you.
284  @item Always use @command{modprobe}, not @command{insmod}.
285@end itemize
286
287Further information is in @file{doc/modules}.
288
289
290@anchor{How do I know which chips I own}
291@node Section 3.2, Section 3.3, Section 3.1, Installation
292@section How do I know which chips I own?
293
294We have an excellent program that scans all your hardware.
295It is called @file{sensors-detect} and is installed in @file{/usr/local/sbin}
296by @command{make install}. Just execute this script, and it will tell you.
297
298Chip detection in the drivers is fairly good. That means that it is
299usually harmless to insert more chip drivers than you need. However, this
300can still lead to problems, so we do not recommend it.
301
302If sensors-detect didn't find any sensors, either you don't have
303any, or the ones you have, we don't support. (Look at your motherboard
304for candidates, then @pxref{Help})
305
306
307@anchor{Section 3.2.1}
308@subsection What chips are on motherboard XYZ?
309
310    @strong{!!!!!!!!! YES THIS IS THE MOST FREQUENT QUESTION WE GET !!!!!!!!!}
311
312We have no idea. Here is what you should do:
313@enumerate
314  @item Run sensors-detect.
315@end enumerate
316
317If that doesn't work:
318@enumerate 2
319@item Look at your motherboard.
320@item Check the manufacturer's website or ask their support
321@item Check the @uref{http://mbm.livewiredev.com/, Motherboard Monitor} website and the
322@uref{http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/useful_addresses.html, "links"}
323page on @uref{http://www2.lm-sensors.nu/~lm78/, our website} some good cross-references.
324@end enumerate
325
326
327@anchor{Section 3.2.2}
328@subsection Do you support motherboard XYZ?
329
330We don't support boards, we support chips. @xref{Section 3.2.1, What chips are on motherboard XYZ}.
331
332
333@anchor{Section 3.2.3}
334@subsection Do you support chip XYZ?
335
336This we have good answers for.
337@itemize
338@item Sorted by Manufacturer:   @file{README}
339@item Sorted by Manufacturer:   @uref{http://www2.lm-sensors.nu/~lm78/supported.html}
340@item Sorted by Sensor Driver:  @file{doc/chips/SUMMARY}
341@item Newest Driver Status:     @uref{http://www2.lm-sensors.nu/~lm78/newdrivers.html}
342@end itemize
343
344
345@anchor{Section 3.2.4}
346@subsection Anybody working on a driver for chip XYZ?
347
348Newest Driver Status: @uref{http://www2.lm-sensors.nu/~lm78/newdrivers.html}
349
350
351@node Section 3.3, Section 3.4, Section 3.2, Installation
352@section Which modules should I insert?
353
354@command{sensors-detect} will tell you. Take the @command{modprobe} lines it
355recommends and paste them into the appropriate @file{/etc/rc.d/xxxx} file
356to be executed at startup.
357
358You need one module for each sensor chip and bus adapter you own;
359if there are sensor chips on the ISA bus, you also need @file{i2c-isa.o}.
360for each type of chip you own. That's all. On my computer, I could use the
361following lines:
362@itemize
363@item @command{modprobe i2c-isa}
364@item @command{modprobe i2c-piix4}
365@item @command{modprobe lm78}
366@item @command{modprobe lm75}
367@item @command{modprobe i2c-dev}
368@item @command{sensors -s}
369@end itemize
370
371
372@node Section 3.4, Section 3.5, Section 3.3, Installation
373@section Do I need the configuration file @file{/etc/sensors.conf}?
374
375Yes, for any applications that use @file{libsensors,} including the
376@command{sensors} application included in our package.
377It tells libsensors how to translate the values the chip
378measures to real-world values. This is especially important for voltage
379inputs. The default configuration file should usually do the trick.
380It is automatically installed as @file{/etc/sensors.conf}, but it will not
381overwrite any existing file with that name.
382
383
384@anchor{Section 3.4.1}
385@subsection The labels for the voltage and temperature readings in @command{sensors} are incorrect!
386
387Every motherboard is different. You can customize the labels
388in the file @file{/etc/sensors.conf}. That's why it exists!
389The default labelling (in @file{lib/chips.c} and @file{/etc/sensors.conf}) is just
390a template.
391
392
393@anchor{Section 3.4.2}
394@subsection The min and max for the readings in @command{sensors} are incorrect!
395
396You can customize them in the file @file{/etc/sensors.conf}. See above.
397
398
399@anchor{Section 3.4.3}
400@subsection The min and max settings in @file{/etc/sensors.conf} didn't take effect!
401
402You forgot to run @command{sensors -s}. See above.
403
404
405@anchor{Section 3.4.4}
406@subsection One sensor isn't hooked up on my board!
407
408Use an @command{ignore} line in @file{/etc/sensors.conf} so it isn't
409displayed in @command{sensors}.
410
411
412@anchor{Section 3.4.5}
413@subsection I need help with @file{sensors.conf}!
414
415There is detailed help at the top of that file.
416
417
418@anchor{Section 3.4.6}
419@subsection Do you have a database of @file{sensors.conf} entries for specific boards?
420
421No. Good idea though. If you would like to set one up on your website
422send us mail and we will set up a link to it.
423
424
425@node Section 3.5, Section 3.6, Section 3.4, Installation
426@section What about the @samp{No such file or directory} warnings when I compile?
427
428Don't worry about them. The dependency files (which tell which
429files should be recompiled when certain files change) are created
430dynamically. They are not distributed with the package. The @command{make} program
431notices they are not there, and warns about that - and the first thing
432it will do is generate them. So all is well.
433
434
435@node Section 3.6, Section 3.7, Section 3.5, Installation
436@section I get all kinds of weird compilation errors?
437
438Check that the correct i2c header files are used. Depending on
439how you installed, they should be under either @file{/usr/local/include} or
440@file{/usr/src/linux*/include}. Try to edit the @file{Makefile} for the other setting.
441
442
443@anchor{Section 3.6.1}
444@subsection @samp{No rule to make target xxxx needed by xxxx} - how to fix?
445
446@itemize
447@item @xref{Section 3.6, I get all kinds of weird compilation errors}, also try @command{make clean} in @file{lm_sensors}.
448@item If that doesn't work, try @command{make clean} in @file{i2c}.
449@item If that doesn't work, try @command{make clean} in the kernel.
450@item Also make sure @file{/usr/include/linux} points to @file{/usr/src/linux/include/linux}.
451@end itemize
452
453
454@node Section 3.7, Section 3.8, Section 3.6, Installation
455@section It still does not compile or patch!
456
457Have you installed the matching version of the i2c package? Remember,
458compilation is not enough, you also need to install it for the header
459files to be found!
460
461If you want to patch the kernel, you will have to apply the i2c
462patches first!
463
464
465@node Section 3.8, Section 3.9, Section 3.7, Installation
466@section @command{make install} fails on Mandrake kernels
467
468Mandrake uses a non-standard @file{version.h} file which confuses our @file{Makefile}.
469Edit our @file{Makefile} on the @code{MODDIR :=} line to hard-code the module directory.
470
471
472@node Section 3.9, Section 3.10, Section 3.8, Installation
473@section I get unresolved symbols when I @command{modprobe} modules (Red Hat especially)
474
475Example:
476@example
477*** Unresolved symbols in /lib/modules/2.4.5/kernel/drivers/i2c/i2c-i810.o
478i2c_bit_add_bus_R8c3bc60e
479i2c_bit_del_bus_R92b18f49
480@end example
481
482You can also run @command{depmod -a -e} to see all unresolved symbols.
483
484
485These are module versioning problems. Generally you did not compile
486against the kernel you are running. Sometimes the Red Hat source you
487have is not for the kernel you are running.
488You must compile our package against the source for the kernel you
489are running with something like @command{make LINUX=/usr/src/linux-2.4.14}.
490
491
492Try the following to be sure:
493
494@itemize
495@item @command{nm --extern MODULE.o}
496Filter out the kernel symbols, like @code{kmalloc}, @code{printk} etc. and note the
497number code behind them, like @code{printk_R1b7d4074}. If there is no numeric
498code after them, note this too.
499@item @command{grep SYMBOL /proc/ksyms}
500Substitute SYMBOL by the basename of the symbols above, like @code{kmalloc},
501@code{printk} etc. Note the number code behind them, or the lack thereof.
502@item Compare both sets of symbols. Are they the same? If so, the problem
503lies somewhere else. Are they different? If so, you have a module
504versioning problem.
505@end itemize
506
507
508@node Section 3.10, , Section 3.9, Installation
509@section I2C_DRIVERID_ADM1024 undefined (Red Hat especially)
510
511In some versions of Redhat, an RPM is included to provide i2c support.
512However, this RPM does not place the header files in the kernel directory
513structure.  When you update kernels, they may persist.  To get rid of
514these obsolete header files, at a command prompt:
515
516@enumerate
517@item @command{rpm -qa | grep i2c}
518@item Look for @file{kernel-i2c,} or a similar rpm in the output
519@item <as root>
520@command{rpm -ev kernel-i2c} (or the name of the similar package)
521If this complains about dependencies, you can try adding
522@command{--nodeps}, but this *MAY* break something else.  Not likely,
523as you have upgraded kernels, and nothing should be using the
524old i2c stuff anymore anyway.  Just don't use it with abandon.
525@item Try (in the build directory of @file{lm_sensors)}
526@example
527@command{make clean}
528@command{make}
529@end example
530@item @emph{If} you still have problems, you may have to replace the include
531paths in the @file{.c/.h} files with absolute paths to the header files.
532More of a workaround than a real fix, but at least you can get it
533to work.
534@end enumerate
535
536
537@node Problems, Help, Installation, Top
538@chapter Problems
539
540@menu
541* Section 4.1::         My fans report exactly half/double their values?
542* Section 4.2::         Why do my two LM75's report "-48 degrees"?
543* Section 4.3::         Why do I have two Vcore readings?
544* Section 4.4::         How do those ALARMS work?
545* Section 4.5::         My voltage readings seem to drift a bit. What's wrong?
546* Section 4.6::         Some measurements are way out of range. What happened?
547* Section 4.7::         What are VID lines? Why is the VID reading wrong?
548* Section 4.8::         Sensor are only updated each second or so. Why?
549* Section 4.9::         It takes a second before reading sensor results. Why?
550* Section 4.10::        Can I be alerted when an ALARM occurs?
551* Section 4.11::        SMBus transactions on my PIIX4 simply don't work. Why?
552* Section 4.12::        My BIOS reports a higher CPU temperature than you!
553* Section 4.13::        I read strange values from the raw @file{/proc} files!
554* Section 4.14::        How do I set new limits?
555* Section 4.15::        Some sensors are doubly detected?
556* Section 4.16::        I ran sensors-detect, but now I get strange readings?!
557* Section 4.17::        Bad readings from particular chips
558* Section 4.18::        How do I configure two chips (LM87) differently?
559* Section 4.19::        Dmesg says @samp{Upgrade BIOS}! I don't want to!
560* Section 4.20::        Sensors says @samp{Can't access procfs/sysfs file}
561* Section 4.21::        Sensors says @samp{No sensors found!}
562* Section 4.22::        Sensors output is not correct!
563* Section 4.23::        What is at I2C address XXX?
564* Section 4.24::        Sensors-detect doesn't work at all
565* Section 4.25::        Sensors says @samp{Error: Line xxx: zzzzzzz}
566* Section 4.26::        Sensors only gives the name, adapter, and algorithm!
567* Section 4.27::        Sensors says @samp{ERROR: Can't get xxxxx data!}
568* Section 4.28::        Sensors doesn't find any sensors, just eeproms.
569* Section 4.29::        Inserting modules hangs my board
570* Section 4.30::        Inserting modules slows down my board
571* Section 4.31::        Problems on particular motherboards
572* Section 4.32::        Problems on particular systems
573* Section 4.33::        Problems on 2.6 kernels
574@end menu
575
576
577@node Section 4.1, Section 4.2, , Problems
578@section My fans report exactly half/double their values compared to the BIOS?
579
580The problem with much of the sensor data is that it is impossible to
581properly interpret some of the readings without knowing what the hardware
582configuration is.  Some fans report one 'tick' each rotation, some report
583two 'ticks' each rotation. It is easy to resolve this through the
584configuration file @file{/etc/sensors.conf}:
585
586@example
587chip lm78-*             # Or whatever chip this relates to
588compute fan1 2*@@,@@/2    # This will double the fan1 reading
589                        # -- or --
590compute fan1 @@/2,2*@@    # This will halve the fan1 reading
591@end example
592
593See @file{doc/fan-divisors} in our package for further information.
594
595
596@anchor{Fans sometimes/always read 0!}
597@subsection Fans sometimes/always read 0!!
598
599You may not have a three-wire fan, which is required.
600
601You may need to increase the 'fan divisor'. See @file{doc/fan-divisors}
602in our package for further information.
603
604
605@anchor{I doubled the fan divisor and the fan still reads 7000}
606@subsection I doubled the fan divisor and the fan still reads 7000!
607
608Believe it or not, doubling the 'fan divisor' will not halve
609the fan reading. You have to add a compute line in @file{/etc/sensors.conf}.
610@xref{Section 4.1, My fans report exactly half/double their values compared to the BIOS},
611and see @file{doc/fan-divisors} in our package for further information.
612
613
614@node Section 4.2, Section 4.3, Section 4.1, Problems
615@section Why do my two LM75's report "-48 degrees"?
616
617For starters, those aren't LM75's.  Your mainboard actually has the
618Winbond W83781D which emulates two LM75's, but many systems which use the
619Winbond chip (such as the Asus P2B) don't have the thermo-resisters connected
620to the chip resulting in these strange -48 degree readings.
621
622In upcoming versions, you will be able to disable non-interesting
623readings.
624
625
626@node Section 4.3, Section 4.4, Section 4.2, Problems
627@section Why do I have two Vcore readings, I have only one processor!
628
629The LM78 has seven voltage sensors. The default way of
630connecting them is used in the configuration file. This includes a VCore2,
631even if you do not have one. You can easily edit the configuration file
632to give it another name, or make this reading disappear using
633an @command{ignore} line.
634
635Note that Vcore2 is often the same as Vcore on motherboards which
636only support one processor. Another possibility is that Vcore2 is not
637connected at all and will not have a valid reading at all.
638A third possibility, is that Vcore2 monitors something
639else, so you should not be too surprised if the values are completely
640different.
641
642
643@node Section 4.4, Section 4.5, Section 4.3, Problems
644@section How do those ALARMS work? The current value is within range but there is still an ALARM warning!
645
646The ALARM indications in @command{sensors} are those reported by the
647sensor chip itself. They are NOT calculated by @command{sensors}. @command{sensors}
648simply reads the ALARM bits and reports them.
649
650An ALARM will go off when a minimum or maximum limit is crossed.
651The ALARM is then latched - that is, it will stay there until the
652chip's registers are next accessed - which will be the next time
653you read these values, but not within (usually) 1.5 seconds since the last
654update.
655
656Reading the registers clears the ALARMS, unless the current
657value is still out of range.
658
659The purpose of this scheme is to tell you if there has been
660a problem and report it to the user. Voltage or temperature spikes
661get detected without having to read the sensor chip hundreds of times
662a second. The implemetation details depend a bit on the kind of chip.
663See the specific chip documentation in @file{doc/chips} and the
664chip datasheet for more information.
665
666
667@node Section 4.5, Section 4.6, Section 4.4, Problems
668@section My voltage readings seem to drift a bit. Is something wrong?
669
670No, probably not. If your motherboard heats up a bit, the sensed
671voltages will drift a bit. If your power supply is loaded (because a disk
672gets going, for example), the voltages may get a bit lower. Heavy
673processor activity, in particular, dramatically increases core voltage
674supply load which will often cause variation in the other supplies.
675As long as they stay within a sensible range (say 5% of the nominal value
676for CPU core voltages, and 10% for other voltages), there is no
677reason to worry.
678
679
680@node Section 4.6, Section 4.7, Section 4.5, Problems
681@section Some measurements are way out of range. What happened?
682
683Each module tries to set limits to sensible values on initialization,
684but a module does not know how a chip is actually connected. This is
685described in the configuration file, which is not read by kernel modules.
686So limits can be strange, if the chip is connected in a non-standard way.
687
688Readings can also be strange; there are several reasons for this.
689Temperature sensors, for example, can simply not be present, even though
690the chip supports them. Also, it can be that the input is used in a
691non-standard way. You can use the configuration file to describe how this
692measurement should be interpreted; see the comments the example file for
693more information.
694
695@anchor{-5V and -12V readings are way out of range!}
696@subsection -5V and -12V readings are way out of range!
697
698It's very frequent that negative voltage lines are not wired because
699motherboard manufacturers don't think they're worth monitoring
700(they are mostly unused these days). You can just add
701@command{ignore inN} lines to @file{/etc/sensors.conf} to hide them.
702
703Another possibility is that these lines are used to monitor different
704voltages. Only the motherboard manufacturer can tell for sure. Taking
705a look at what voltage values the BIOS displays may provide valuable
706hints though.
707
708
709@node Section 4.7, Section 4.8, Section 4.6, Problems
710@section What are VID lines? Why is the VID reading wrong?
711
712These describe the core voltage for your processor. They are
713supported for most processors, however they are not always
714correctly connected to the sensor chip, so the readings may be invalid.
715A reading of 0V, +3.5V or +2.05V is especially suspect.
716If this is the case, add a line @command{ignore vid} to @file{/etc/sensors.conf},
717and change the min and max settings for the Processor Core voltage
718(often in0_min and in0_max) in that file so that they don't depend on vid.
719
720The CPU nominal voltage is computed from VID lines according to a formula
721that depends on the CPU type. Most chips that report a VID value can be
722configured to use either VRM 8.2 (for Pentium III) or VRM 9.0 (for Pentium 4
723and Athlon). You chose which one you want through @file{/etc/sensors.conf}.
724See @file{doc/vid} for more information.
725
726
727@node Section 4.8, Section 4.9, Section 4.7, Problems
728@section I read sensor values several times a second, but they are only updated only each second or so. Why?
729
730If we would read the registers more often, it would not find the
731time to update them. So we only update our readings once each 1.5 seconds
732(the actual delay is chip-specific; for some chips, it may not be needed
733at all).
734
735
736@node Section 4.9, Section 4.10, Section 4.8, Problems
737@section It sometimes seems to take almost a second before I see the sensor reading results. Why?
738
739ISA bus access is fast, but SMBus access is really slow. If you have
740a lot of sensors, it just takes a lot of time to access them. Fortunately,
741this has almost no impact on the system as a whole, as another job can run
742while we are waiting for the transaction to finish.
743
744
745@node Section 4.10, Section 4.11, Section 4.9, Problems
746@section Can I be alerted when an ALARM occurs?
747
748No, you can't; and it may well be never supported.
749
750Almost no mainboard we have encountered have actually connected the
751IRQ-out pin of sensor chips. That means that we could enable IRQ reporting, but
752nothing would happen. Also, even if a motherboard has it connected, it is
753unclear what interrupt number would be triggered. And IRQ lines are a scarce
754facility, which means that almost nobody would be able to use it anyway.
755
756The SMI interrupt is only available on a few types of chips. It is
757really a very obscure way to handle interrupts, and supporting it under Linux
758might be quite hard to do.
759
760Your best bet would be to poll the alarm file with a user-land daemon
761which alerts you if an alarm is raised. I am not aware of any program which
762does the job, though you might want to examine one of the graphical monitor
763programs under X, see @uref{http://www2.lm-sensors.nu/~lm78/useful_addresses.html} for addresses.
764
765
766@node Section 4.11, Section 4.12, Section 4.10, Problems
767@section SMBus transactions on my PIIX4 simply don't work (timeouts happen).  Why?
768
769Some chips which mainboard makers connect to the SMBus are not SMBus
770devices.  An example is the 91xx clock generator chips.  When read, these
771devices can lock up the SMBus until the next hard reboot.  This is because
772they have a similar serial interface (like the I2C), but don't conform to
773Intel's SMBus standard.
774
775Why did they connect these devices to the SMBus if they aren't
776compatible?  Good question! :')  Actually, these devices may support being
777written to, but lock things up when they are read.
778
779
780@node Section 4.12, Section 4.13, Section 4.11, Problems
781@section My BIOS reports a much higher CPU temperature than your modules!
782
783We display the actual temperature of the sensor. This may not be the
784temperature you are interested in, though.  If a sensor should measure
785the CPU temperature, it must be in thermal contact with it.  In practice,
786it may be just somewhere nearby. Your BIOS may correct for this (by adding,
787for example, thirty degrees to the measured temperature).  The correction
788factor is regrettably different for each mainboard, so we can not do this
789in the module itself. You can do it through the configuration file, though:
790
791@example
792chip lm75-*-49                      # Or whatever chip this relates to
793label temp "Processor"
794compute temp @@*1.2+13,(@@-13)/1.2    # Or whatever formula
795@end example
796
797However, the offset you are introducing might not be necessary. If you
798tried to have Linux idle temperature and BIOS "idle" temperature match,
799you may be misguided.
800We have a Supermicro (370DLE) motherboard and we know
801that its BIOS has a closed, almost undelayed while(1) loop that
802keeps the CPU busy all the time. Linux reads 26 degrees idle, BIOS reads
80338 degrees. Linux at full load is in the 35-40 degrees range so this
804makes sense.
805
806@node Section 4.13, Section 4.14, Section 4.12, Problems
807@section I try to read the raw @file{/proc} files, but the values are strange?!?
808
809Remember, these values do not take the configuration file
810@file{compute} lines in account. This is especially obvious for voltage readings
811(usually called in? or vin?). Use a program linked to libsensors (like
812the provided @command{sensors} program) instead.
813
814
815@node Section 4.14, Section 4.15, Section 4.13, Problems
816@section How do I set new limits?
817
818Change the limit values in @file{/etc/sensors.conf} and then run
819@command{sensors -s}.
820
821
822@anchor{I set new limits and it didnt work}
823@subsection  I set new limits and it didn't work?
824
825You forgot to run @command{sensors -s}. Put it in a @file{/etc/rc.d/...} file
826after the modprobe lines to run at startup.
827
828
829@node Section 4.15, Section 4.16, Section 4.14, Problems
830@section Some sensors are doubly detected?
831
832Yes, this is still a problem. It is partially solved by alias detection
833and confidence values in sensors-detect, but it is really tough.
834
835Double detections can be caused by two things:
836sensors can be detected to both the ISA and the SMBus (and if you have
837loaded the approprate adapter drivers, it will be detected on both), and
838some chips simulate other chips (the Winbond W83781D simulates LM75 chips
839on the SMBus, for example). Remove the offending adapter or chip driver, or
840run sensors-detect and add the @command{ignore=} modprobe parameters it suggests.
841
842
843@node Section 4.16, Section 4.17, Section 4.15, Problems
844@section I ran sensors-detect, but now I get very strange readings?!?
845
846Your SMBus (PIIX4?) is probably crashed or hung. There are some mainboards
847which connect a clock chip to the SMBus. Unfortunately, this clock chip
848hangs the PIIX4 if it is read (it is an I2C device, but not SMBus compatible).
849We have found no way of solving this, except for rebooting your computer.
850Next time when you run sensors-detect, you may want to exclude addresses
8510x69 and/or 0x6a, by entering @kbd{s} when you are asked whether you want to
852scan the PIIX4.
853
854
855@node Section 4.17, Section 4.18, Section 4.16, Problems
856@section Bad readings from particular chips
857
858See below for some particularly troublesome chips.
859Also be sure and check @file{doc/chips/xxxxx} for the particular driver.
860
861
862@anchor{Bad readings from the AS99127F}
863@subsection Bad readings from the AS99127F!
864
865The Asus AS99127F is a modified version of the Winbond W83781D.
866Asus will not release a datasheet. The driver was developed by tedious
867experimentation. We've done the best we can. If you want to make adjustments
868to the readings please edit @file{/etc/sensors.conf.} Please don't ask us to
869fix the driver. Ask Asus to release a datasheet.
870
871
872@anchor{Bad readings from the VIA 686A}
873@subsection Bad readings from the VIA 686A!
874
875The Via 686A datasheet is incomplete.
876Via will not release details. The driver was developed by tedious
877experimentation. We've done the best we can. If you want to make adjustments
878to the readings please edit @file{/etc/sensors.conf.} Please don't ask us to
879fix the driver. Ask Via to release a better datasheet.
880Also, don't forget to @command{modprobe i2c-isa}.
881
882
883@anchor{Bad readings from the MTP008}
884@subsection Bad readings from the MTP008!
885
886The MTP008 has programmable temperature sensor types.
887If your sensor type does not match the default, you will have to change it.
888See @file{doc/chips/mtp008} for details.
889Also, MTP008 chips seem to randomly refuse to respond, for
890unknown reasons. You can see this as 'XX' entries in i2cdump.
891
892
893@anchor{Bad temperature readings from the SIS5595}
894@subsection Bad temperature readings from the SIS5595!
895
896This chip can use multiple thermistor types and there are also
897two different versions of the chip. We are trying to get the driver
898working better and develop formulas for different thermistors
899but we aren't there yet. Sorry.
900Also, many times the chip isn't really a sis5595 but it was
901misidentified. We are working on improving that too.
902
903
904@anchor{Bad readings from a w8378[12]d}
905@subsection Bad readings from a w8378[12]d!
906
907Do you own an ASUS motherboard?  Perhaps your chip is being
908misidentified.  Look on the motherboard (or at
909@uref{http://mbm.livewiredev.com}) for a 'Winbond' or Asus chip.
910Often the real device is an Asus as99127f. If so, the driver can be
911forced to recognize the as99127f with
912@command{force_as99127f=BUS,0x2d} where @code{BUS} is your i2c bus number.
913Cat /proc/bus/i2c to see a list of bus numbers.
914Read the w83781d module documentation (@file{doc/chips/w83781d})
915for more details.
916
917
918@anchor{Bus hangs on Ali 1543 on Asus P5A boards}
919@subsection Bus hangs on Ali 1543 on Asus P5A boards!
920
921The SMBus tends to hang on this board and it seems to get worse
922at higher temperatures. Use ISA accesses to reliably use the w83781d
923monitor chip on this board and use the @command{ignore=1,0x2d} or similar option
924to the w83781d module to prevent i2c accesses.
925
926
927@anchor{Bad readings from LM75}
928@subsection Bad readings from LM75!
929
930The LM75 detection is poor and other hardware is often misdetected
931as an LM75. Figure out what you really have @xref{Section 3.2.1, What chips are on motherboard XYZ}.
932
933
934@anchor{Bad readings from LM78}
935@subsection Bad readings from LM78!
936
937The LM78 is no longer manufactured by National Semiconductor.
938You probably don't have a real LM78 but something similar that we
939do not recogize or support. Figure out what you really have @xref{Section 3.2.1, What chips are on motherboard XYZ}.
940
941
942@anchor{Bad readings from LM80}
943@subsection Bad readings from LM80!
944
945The LM80 detection is poor and other hardware is often misdetected
946as an LM80. Figure out what you really have @xref{Section 3.2.1, What chips are on motherboard XYZ}.
947
948
949@node Section 4.18, Section 4.19, Section 4.17, Problems
950@section How do I configure two chips (LM87) differently?
951
952There is a SuperMicro board with two LM87's on it that are
953not hooked up in the same way, so they need different defaults.
954For example, both CPU temperatures go to one LM87.
955
956Make two different sections in @file{/etc/sensors.conf} as follows:
957@example
958chip "lm87-i2c-*-2c"
959    put configuration for the chip at 0x2c here
960chip "lm87-i2c-*-2d"
961    put configuration for the chip at 0x2d here
962@end example
963
964There is a commented example in @file{sensors.conf.eg} which should
965be helpful.
966
967
968@node Section 4.19, Section 4.20, Section 4.18, Problems
969@section Dmesg says @samp{Upgrade BIOS}! I don't want to!
970
971If the problem is a PCI device is not present in @command{lspci}, the solution
972is complex. For the ALI M7101 device, there is a solution which uses the
9732.4 kernel's @command{hotplug} facility. See @file{prog/hotplug} in our package.
974For other PCI devices, you can try to modify
975the m7101 solution in @file{prog/hotplug}.
976
977
978If dmesg says @samp{try force_addr}, see below. Other drivers generally do not
979support the force_addr parameter. Sorry. Check the documentation
980for your driver in @file{doc/[chips,busses]} and if we don't support it
981you can send us your request.
982
983
984@anchor{Dmesg says use force_addr=0xaddr! What address do I use}
985@subsection Dmesg says @samp{use force_addr=0xaddr}! What address do I use?
986
987If the problem is a PCI device whose base address is not set,
988you may be able to set the address with a force parameter. The via686a
989and sis5595 chip drivers, and some bus drivers, support the command line
990@command{modprobe via686a force_addr=0xADDRESS} where ADDRESS
991is the I/O address. You must select an address that is not in use.
992@command{cat @file{/proc/ioports}} to check (carefully) for conflicts. A high number like
9930xf000 is generally safe.
994
995
996@node Section 4.20, Section 4.21, Section 4.19, Problems
997@section Sensors says @samp{Can't access procfs/sysfs file}
998
999@itemize
1000@item Linux 2.6
1001@itemize
1002@item Did you @command{modprobe i2c_sensor}? Check @command{lsmod}.
1003@item Do you have sysfs support in your kernel and @file{/sys} mounted (is @file{/sys} there and populated)?
1004Create /sys with @command{mkdir /sys} if needed. Then add the following line to @file{/etc/fstab}:
1005@example
1006sys              /sys             sysfs       default          0   0@end example
1007and @command{mount /sys}.
1008@end itemize
1009@item Linux 2.4
1010@itemize
1011@item Did you @command{modprobe i2c-proc}? Check @command{lsmod}.
1012@item Do you have procfs support in your kernel and @file{/proc} mounted (is @file{/proc} there and populated)?
1013Create /proc with @command{mkdir /proc} if needed. Then add the following line to @file{/etc/fstab}:
1014@example
1015proc             /proc            proc        defaults         0   0@end example
1016and @command{mount /proc}.
1017@end itemize
1018@item If you did @command{sensors -s}, did you run it as root?
1019@end itemize
1020
1021
1022@node Section 4.21, Section 4.22, Section 4.20, Problems
1023@section Sensors says @samp{No sensors found!}
1024
1025@itemize
1026@item Did @command{sensors-detect} find sensors? (If not @pxref{Sensors-detect doesnt find any sensors})
1027@item Did you do what @command{sensors-detect} said?
1028@item Did you @command{modprobe} your sensor modules?
1029@item Did you @command{modprobe} your I2C adapter modules?
1030@item Did you @command{modprobe i2c-isa} if you have ISA sensor chips?
1031@item Check @command{lsmod}.
1032@end itemize
1033
1034
1035@node Section 4.22, Section 4.23, Section 4.21, Problems
1036@section Sensors output is not correct!
1037
1038    What specifically is the trouble?
1039@itemize
1040@item Labels: @xref{Section 3.4.1, The labels for the voltage and temperature readings in sensors are incorrect}.
1041@item Min/max readings: @xref{Section 3.4.2, The min and max for the readings in sensors are incorrect}, and @xref{Section 3.4.3, The min and max settings didnt take effect}.
1042@item AS99127F: @xref{Section 4.16, I ran sensors-detect but now I get very strange readings?}.
1043@item Via 686A: @xref{Section 4.16, I ran sensors-detect but now I get very strange readings?}.
1044@item Other specific chips: @xref{Section 4.16, I ran sensors-detect but now I get very strange readings?}.
1045@item No output for a particular sensors chip: @xref{Section 5.3, What to do if it inserts but nothing happens}.
1046@item No output at all: @xref{Section 4.21, Sensors says No sensors found}, @xref{Section 5.3, What to do if it inserts but nothing happens}.
1047@item Completely bad output for a particular sensor chip: @xref{Section 5.4, What to do if I read only bogus information}.
1048@item One particular sensor readings:
1049@itemize
1050@item Maybe it isn't hooked up? - tell 'sensors' to ignore it. @xref{Section 3.4.4, One sensor isnt hooked up on my board}.
1051@item Maybe it is hooked up differently on your motherboard? - adjust @file{sensors.conf} calculation.
1052@end itemize
1053@end itemize
1054
1055@node Section 4.23, Section 4.24, Section 4.22, Problems
1056@section What is at I2C address XXX?
1057
1058In general, we don't know. Start by running @command{sensors-detect}.
1059If it doesn't recognize it, try running @command{i2cdump}. A partial list
1060of manufacturers' IDs are at the bottom of @file{doc/chips/SUMMARY}.
1061
1062
1063@anchor{What is at I2C address 0x69}
1064@subsection What is at I2C address 0x69?
1065
1066A clock chip. Often, accessing these clock chips in the wrong
1067way will instantly crash your computer. Sensors-detect carefully
1068avoids these chips. If you really really want to play with your clock
1069chip you can look at @file{kernel/chips/icspll.c} in our package. But we
1070do not recommend it. You have been warned.
1071
1072
1073@anchor{What is at I2C addresses 0x50 - 0x57}
1074@subsection What is at I2C addresses 0x50 - 0x57?
1075
1076EEPROMs on your SDRAM DIMMs. Load the eeprom module to
1077look at some basic data in @command{sensors} or use the program
1078@command{prog/eeprom/decode-dimms.pl} to get more information than you ever wanted.
1079
1080
1081@anchor{What is at I2C addresses 0x30 - 0x37}
1082@subsection What is at I2C addresses 0x30 - 0x37?
1083
1084These are often 'shadows' of your EEPROMs on your SDRAM DIMMs
1085at addresses 0x50 - 0x57. They are the 'software write-protect'
1086registers of the SDRAM Serial Presence Detect EEPROMs.
1087If you try and
1088do a @command{i2cdump} on them to read the location, you won't get anything,
1089because they contain a single write-only register.
1090This register can be used to permanently
1091write-protect the contents of the eeprom.
1092
1093
1094@node Section 4.24, Section 4.25, Section 4.23, Problems
1095@section Sensors-detect doesn't work at all
1096
1097It could be many things. What was the problem? @xref{Section 4.31, Problems on particular motherboards}.
1098
1099
1100@anchor{Sensors-detect says "Couldnt open /proc/bus/i2c?!?"}
1101@subsection Sensors-detect says "Couldn't open /proc/bus/i2c?!?"
1102
1103You don't have i2c support in your kernel, or the i2c-core module
1104was not loaded and you did not run sensors-detect as root.
1105
1106
1107@anchor{Sensors-detect says "Cant open /dev/i2c[-/]0"}
1108@subsection Sensors-detect says "Can't open /dev/i2c[-/]0"
1109
1110Your @file{/dev/i2c-0,} @file{/dev/i2c0}, or @file{/dev/i2c/0} files do not exist
1111or you did not run @command{sensors-detect} as root.
1112Run the script @command{prog/mkdev/mkdev.sh} to create the @file{/dev/i2c-x} files.
1113Run @command{devfs} in the kernel to get the @file{/dev/i2c/x} files.
1114
1115
1116@anchor{Sensors-detect doesnt find any sensors}
1117@subsection Sensors-detect doesn't find any sensors!
1118
1119Either
1120@enumerate
1121@item The board doesn't have any sensors.
1122@item We don't support the sensors on the board.
1123@item The sensors it has are on an I2C bus connected to an I2C bus adapter that we don't support.
1124@item You don't have the latest version of lm_sensors.
1125@end enumerate
1126
1127But in any case you should figure out what is on the board:
1128@enumerate
1129@item Look at your motherboard.
1130@item Check the manufacturer's website.
1131@item Check the @uref{http://mbm.livewiredev.com/, Motherboard Monitor} website.
1132@end enumerate
1133
1134When you know what chips you have, check the
1135@uref{http://www2.lm-sensors.nu/~lm78/newdrivers.html, Newest Driver Status} web page to
1136see if support has been added for your chip in a later release or in CVS.
1137
1138
1139@node Section 4.25, Section 4.26, Section 4.24, Problems
1140@section Sensors says @samp{Error: Line xxx: zzzzzzz}
1141
1142These are errors from the libsensors library in
1143reading the @file{/etc/sensors.conf} configuration file. Go to that line
1144number and fix it. If you have a parse error, perhaps you have
1145to put the feature name in double quotes.
1146
1147
1148@node Section 4.26, Section 4.27, Section 4.25, Problems
1149@section Sensors only gives the name, adapter, and algorithm for my chip
1150
1151If @command{sensors} only says this, for example, and doesn't
1152provide any actual data at all:
1153
1154@example
1155it87-isa-0290
1156Adapter: ISA adapter
1157Algorithm: ISA algorithm
1158@end example
1159
1160Your chip is not currently supported by @command{sensors} and so all it
1161does is print out that information. Get the latest release
1162and be sure you are running the @command{sensors} program it installed
1163and not some older @command{sensors}.
1164
1165
1166@node Section 4.27, Section 4.28, Section 4.26, Problems
1167@section Sensors says @samp{ERROR: Can't get xxxxx data!}
1168
1169@itemize
1170@item (Linux 2.6) Make sure you are using one of the
1171@uref{http://secure.netroedge.com/~lm78/kernel26.html,
1172recommended kernel/lm_sensors combination}.
1173@item You have a @file{libsensors}/@command{sensors} mismatch.
1174@command{sensors} is unable to
1175get a data entry from @file{libsensors}. You probably have an
1176old @file{libsensors} in your @file{/etc/ld.so.conf} path.
1177Make sure you did (as root) a @command{make install} (Linux 2.4) or
1178@command{make user_install} (Linux 2.6) followed by a @command{ldconfig}.
1179Then check the output of @command{ldconfig -v | grep libsensors} to
1180verify that there is only ONE @file{libsensors} entry and that it matches
1181the @file{libsensors} that was built in the @file{lib/} directory in @file{lm_sensors2}.
1182@end itemize
1183
1184
1185@node Section 4.28, Section 4.29, Section 4.27, Problems
1186@section Sensors doesn't find any sensors, just eeproms.
1187
1188@xref{Section 4.24, Sensors-detect doesnt work at all}, if @command{sensors-detect} failed to find any sensors.
1189
1190If @command{sensors-detect} did find sensors, did you insert your modules? For chips on the ISA
1191bus, did you insert i2c-isa?
1192
1193@xref{Section 5.2, What to do if a module wont insert}, if the modules didn't insert,
1194also @ref{Section 4.21, Sensors says No sensors found}.
1195
1196
1197@node Section 4.29, Section 4.30, Section 4.28, Problems
1198@section Inserting modules hangs my board
1199
1200There are several possible causes:
1201@enumerate
1202@item Bus driver problems. Insert the bus driver first, before you have inserted any chip drivers, to verify.
1203@item Wrong chip driver. Verify that you have a chip supported by the chip driver, see @ref{Section 3.2.1, What chips are on motherboard XYZ}.
1204@item The chip driver is reinitializing the chip, which undoes critical initialization done by the BIOS.  Try the parameter @command{init=0} for the w83781d driver; this is the only driver supporting this parameter.
1205@item Some chips on the bus don't like to be probed at all.  After inserting the bus driver (but not the chip drivers), run @command{i2cdetect} on the bus, then @command{i2cdump} on each address responding to @command{i2cdetect}. This may find the culprit.  Do not @command{i2cdump address 0x69}, the clock chip.
1206@item The chip driver is incorrectly finding a second chip on the bus and is accessing it. For example, with the Tyan 2688 with a w83781d at 0x29, use @command{modprobe ignore_range=0,0x00,0x28,0,0x2a,0x7f} to prevent access to other addresses. (@command{init=0} also req'd for the Tyan 2688).
1207@end enumerate
1208
1209
1210@node Section 4.30, Section 4.31, Section 4.29, Problems
1211@section Inserting modules slows down my board
1212
1213Generally this is caused by an overtemperature alarm output from
1214the sensor chip. This triggers hardware on the board which
1215automatically slows down the CPU clock. Be sure that your
1216temperature limits are above the temperature reading. Put
1217the new limits in @file{/etc/sensors.conf} and run @command{sensors -s}.
1218
1219
1220@node Section 4.31, Section 4.32, Section 4.30, Problems
1221@section Problems on particular motherboards
1222
1223The following boards have unique problems and solutions.
1224
1225
1226@anchor{Asus P4B}
1227@subsection Asus P4B
1228
1229See @file{prog/hotplug/README.p4b} if your SMBus master is not found.
1230
1231
1232@anchor{Tyan 2460 2462}
1233@subsection Tyan 2460, 2462
1234
1235See support tickets 805, 765, 781, 812, 813, and 867 for information.
1236
1237
1238@anchor{Tyan 2466}
1239@subsection Tyan 2466
1240
1241See support tickets 941, 840, and 841 for information.
1242
1243
1244@anchor{Tyan 2688}
1245@subsection Tyan 2688
1246
1247For board hangs, see support ticket 721 for information.
1248Also @ref{Section 4.29, Inserting modules hangs my board}.
1249
1250
1251@node Section 4.32, Section 4.33, Section 4.31, Problems
1252@section Problems on particular systems
1253
1254For IBM systems, see @file{README.thinkpad}.
1255
1256
1257@node Section 4.33, , Section 4.32, Problems
1258@section Problems on 2.6 kernels
1259
1260Not all drivers have been ported to 2.6. If your favorite driver is not
1261in 2.6, the reason is that nobody has ported it.
1262Please don't bother asking us why it is not in 2.6.
1263If you would like to port the driver, see the file
1264Documentation/i2c/porting-clients in the 2.6 kernel tree for help,
1265then send us the ported driver when you are done.
1266
1267@subsection i2c-viapro and via686a
1268Until kernel 2.6.11, there was a PCI resource conflict between
1269i2c-viapro (the SMBus driver for VIA bridges) and via686a (the integrated
1270sensors driver for VIA bridges). This caused the second loaded driver to
1271silently fail working. So do not load both i2c-viapro and via686a together
1272unless you have a recent kernel.
1273
1274
1275@node Help, Contribute, Problems, Top
1276@chapter How to Ask for Help
1277
1278@menu
1279* Section 5.1::  What to send us when asking for help
1280* Section 5.2::  What to do if a module won't insert?
1281* Section 5.3::  What to do if it inserts, but nothing happens?
1282* Section 5.4::  What to do if I read only bogus information?
1283* Section 5.5::  What to do if you have other problems?
1284* Section 5.6::  What if it just works like a charm?
1285* Section 5.7::  How do I update a ticket?
1286* Section 5.8::  How do I follow up on a ticket?
1287@end menu
1288
1289
1290@node Section 5.1, Section 5.2, , Help
1291@section What to send us when asking for help
1292
1293We are always willing to answer questions if things don't work out.
1294Post your question to our @uref{http://lists.lm-sensors.org/mailman/listinfo/lm-sensors, discussion list},
1295and not the individual authors,
1296unless you have something private to say.
1297
1298Instead of using email, you can also use the web-based support
1299area, at @uref{http://secure.netroedge.com/~lm78/support.html}. You will be helped
1300just as fast, and others may profit from the answer too. You will be
1301emailed automatically when your question has been answered.
1302
1303Here's what you should send us:
1304
1305@itemize
1306@item The dmesg or syslog output if applicable
1307@item The output of (as root) @command{prog/detect/sensors-detect}
1308@item The output of @command{lsmod}
1309@item If a PCI chip problem:
1310@itemize
1311@item The output of @command{lspci -n}
1312@end itemize
1313@item If an I2C sensor chip problem:
1314@itemize
1315@item The output of (as root) @command{prog/detect/i2cdetect X}
1316where X = the bus number (run @command{i2cdetect} with no arguments to list the busses)
1317(please send this only if it's not all @samp{XX})
1318@item The output of (as root) @command{prog/dump/i2cdump X 0xXX}
1319where XX = the address of each chip you see in the output of @command{i2cdetect}. (run once for each chip)
1320(please send this only if it's not all @samp{ff})
1321@end itemize
1322@item If an ISA sensor chip problem:
1323@itemize
1324@item The output of (as root) @command{prog/dump/isadump 0x295 0x296} (only if it's not all @samp{XX})
1325@end itemize
1326@item Part numbers of chips on your motherboard you think are the sensor chips (look at your motherboard)
1327@item Motherboard type
1328@item Sensors version
1329@item Kernel version
1330@end itemize
1331
1332
1333@node Section 5.2, Section 5.3, Section 5.1, Help
1334@section What to do if a module won't insert?
1335
1336Did you use @command{modprobe} instead of @command{insmod}??? Don't use insmod.
1337
1338Were there unresolved symbols? Did you run @command{depmod -a}? Run
1339@command{depmod -a -e} to see where the symbol problem is.
1340
1341ALWAYS inspect the output of @command{dmesg}. That's where the error
1342messages come out!!! Don't rely on the generic message from @command{modprobe}.
1343If you still can't figure it out, send us the information
1344listed above.
1345
1346
1347@node Section 5.3, Section 5.4, Section 5.2, Help
1348@section What to do if it inserts, but nothing happens?
1349
1350For an ISA sensor chip, did you also @command{modprobe i2c-isa}? It must be inserted.
1351
1352For an I2C sensor chip, did you also @command{modprobe i2c-xxx} where xxx is your
1353I2C bus adapter? It must be inserted.
1354
1355Always inspect the output of @command{dmesg}. That's where the error
1356messages come out. If you still can't figure it out, send us the information
1357listed above.
1358
1359
1360@node Section 5.4, Section 5.5, Section 5.3, Help
1361@section What to do if I read only bogus information?
1362
1363It may be that this was a mis-detection: the chip may not be
1364present. If you are convinced there is something wrong, verify that you
1365indeed have the devices on your motherboard that you think you do.
1366Look at the motherboard and make sure. If you are still stuck,
1367please send us the usual information (@pxref{Help})
1368
1369
1370@node Section 5.5, Section 5.6, Section 5.4, Help
1371@section What to do if you have other problems?
1372
1373Again, send the output listed above.
1374
1375
1376@node Section 5.6, Section 5.7, Section 5.5, Help
1377@section What if it just works like a charm?
1378
1379Drop us a mail if you feel like it, mentioning the mainboard and
1380detected chip type. That way, we have some positive feedback, too!
1381
1382
1383@node Section 5.7, Section 5.8, Section 5.6, Help
1384@section How do I update a ticket?
1385
1386You can't. Only developers can. Follow up by emailing us
1387and reference your ticket number
1388in the subject. Please don't enter a new ticket with
1389follow-up information, email us instead. Thanks.
1390
1391
1392@node Section 5.8, , Section 5.7, Help
1393@section How do I follow up on a ticket?
1394
1395Follow up by emailing us
1396and reference your ticket number in the subject.
1397
1398
1399@node Contribute, Version 1 Specifics, Help, Top
1400@chapter How to Contribute
1401
1402@menu
1403* Section 6.1::  How to write a driver
1404* Section 6.2::  How to get CVS access
1405* Section 6.3::  How to donate hardware to the project
1406* Section 6.4::  How to join the project mailing list
1407* Section 6.5::  How to access mailing list archives
1408* Section 6.6::  How to submit a patch
1409* Section 6.7::  How to REALLY help
1410* Section 6.8::  How to get release announcements
1411* Section 6.9::  How to block spam on the project mailing list
1412@end menu
1413
1414
1415@node Section 6.1, Section 6.2, , Contribute
1416@section How to write a driver
1417
1418See @file{doc/developers/new_drivers} in our package for instructions.
1419
1420
1421@node Section 6.2, Section 6.3, Section 6.1, Contribute
1422@section How to get CVS access
1423
1424For anonymous CVS read access, see the instructions on our
1425@uref{http://www2.lm-sensors.nu/~lm78/download.html#cvs, download page}.
1426Alternatively, @uref{http://www2.lm-sensors.nu/~lm78/download.html#snapshots, nightly snapshots}
1427of the CVS repositories are available.
1428
1429For write access, run the script @command{doc/developers/genpasswd.pl} in
1430our package and follow the instructions. Let us know what part
1431of the package you would like to work on.
1432
1433
1434@node Section 6.3, Section 6.4, Section 6.2, Contribute
1435@section How to donate hardware to the project
1436
1437@uref{http://www2.lm-sensors.nu/~lm78/author.html#contact, Contact us}.
1438
1439
1440@node Section 6.4, Section 6.5, Section 6.3, Contribute
1441@section How to join the project mailing lists
1442
1443There are two lists you can subscribe to:
1444
1445@itemize
1446@item A @uref{http://lists.lm-sensors.org/mailman/listinfo/lm-sensors, general discussion list},
1447meant for both development and user support. You do not need to be subscribed to post.
1448@item A @uref{http://lists.lm-sensors.org/mailman/listinfo/lm-sensors-commit, CVS commits list},
1449for watching the changes made to the CVS repositories. This list is read-only.
1450@end itemize
1451
1452
1453@node Section 6.5, Section 6.6, Section 6.4, Contribute
1454@section How to access mailing list archives
1455
1456The primary mailing list archive is at:
1457@uref{http://lists.lm-sensors.org/pipermail/lm-sensors/}.
1458It contains messages since October 28, 2001.
1459
1460There is another mailing list archive at:
1461@uref{http://news.gmane.org/gmane.linux.drivers.sensors}.
1462It contains messages since December 31, 2004.
1463This archive may also be accessed via a news reader:
1464@uref{nntp://news.gmane.org/gmane.linux.drivers.sensors}
1465and RSS:
1466@uref{http://rss.gmane.org/gmane.linux.drivers.sensors}.
1467
1468And last there is a legacy archive at:
1469@uref{http://archives.andrew.net.au/lm-sensors}.
1470It contains messages from October 28, 2001 through May 16, 2005.
1471
1472
1473@node Section 6.6, Section 6.7, Section 6.5, Contribute
1474@section How to submit a patch
1475
1476Check out the latest from CVS, then copy the directory to another
1477directory, and make your changes. Generate the diff with
1478@command{diff -u2 -r DIR1 DIR2}. Or you can generate the diff in CVS with
1479@command{cvs diff -u2}. Send us the patch in an email and tell us what it does.
1480
1481@node Section 6.7, Section 6.8, Section 6.6, Contribute
1482@section How to REALLY help
1483
1484Believe it or not, what we really need help with are:
1485@itemize
1486@item Answering email
1487@item Answering support tickets
1488@item Porting drivers to Linux 2.6
1489@item Creating a sensors.conf database
1490@item Reviewing patches
1491@end itemize
1492
1493If you are willing to help, simply join our
1494@uref{http://lists.lm-sensors.org/mailman/listinfo/lm-sensors, discussion list},
1495and we'll help you help us.
1496
1497
1498@node Section 6.8, Section 6.9, Section 6.7, Contribute
1499@section How to get release announcements
1500
1501We don't have a separate release announcement mailing list;
1502however, we put all our releases on freshmeat: @uref{http://freshmeat.net}
1503and you can register on our freshmeat project page  @uref{http://freshmeat.net/projects/lm_sensors}
1504to 'subscribe to new releases' and then freshmeat
1505will email you announcement.
1506
1507@node Section 6.9, , Section 6.8, Contribute
1508@section How to block spam on the project mailing list
1509
1510Sorry, we know the spam is a hassle.  It would be nice to have a
1511moderator who can screen everything, but that takes too much time and
1512delays emails.  Right now there is a procmail script which tags likely
1513spam and puts in a X-SBClass: header.  If it is followed by 'Spam', then
1514it is almost certainly spam, if it is followed by 'Blocked', then it
1515scores high as being potential spam.  You should be able to set some
1516rules in your mail client to throw those emails into a seperate folder. 
1517It's not bullet proof (some legit mails get tagged wrong, and vice
1518versa), but it seems to be about 95% accurate in our experience.
1519
1520
1521@node Version 1 Specifics, Document Revisions, Contribute, Top
1522@chapter Version 1 Specific Questions
1523
1524@menu
1525* Section 7.1::  My mainboard has an SMBus, your code can't find it.  Why?
1526* Section 7.2::  The modules won't load, saying 'SMBus not detected'.
1527* Section 7.3::  I get a "No sensor data yet (try again in a few moments)" msg.
1528* Section 7.4::  On my Dell, a LM80 is detected, but all readings are 0!
1529@end menu
1530
1531
1532Note: Version 1 is very very old and is not recommended.
1533
1534@node Section 7.1, Section 7.2, , Version 1 Specifics
1535@section My manufacturer swears that my mainboard has an SMBus, but your code reports that it can't find it.  What's wrong?
1536
1537Currently, our code only assumes that an SMBus exists if it originates
1538from the Intel PIIX4 (82371AB).  If your computer doesn't have one, or if your
1539SMBus originates from a different SMBus 'host', then you are out of luck. :'(
1540Our experience is, though, that most machines have a PIIX4, and that it is
1541where the SMBus is hosted.
1542
1543Regarding the VIA chip set(s):
1544
1545Right now, the SMBus code depends on the Intel PIIX4 chip to handle
1546SMBus transactions.  The VIA chip set is NOT supported at this time because
1547it forces much of the SMBus protocol to be implemented by software.
1548
1549To implement the SMBus correctly with the VIA chip, it needs to be
1550written at a low level to be quick.  A more attractive alternative is to
1551use the Bios SMBus interface (not always available nor standard).
1552
1553
1554Version 2 supports the VIA chipset, and will support other chipsets.
1555Version 1 never will.
1556
1557
1558@node Section 7.2, Section 7.3, Section 7.1, Version 1 Specifics
1559@section The modules won't load, saying 'SMBus not detected'.
1560
1561This should no longer be an issue in 1.4.10 and later; it will
1562continue loading, but it won't support SMBus-connected devices, of course.
1563
1564
1565@node Section 7.3, Section 7.4, Section 7.2, Version 1 Specifics
1566@section I try to read @file{/proc/sensors}, and I get a "No sensor data yet (try again in a few moments)" message. Why?
1567
1568It takes about 1.5 seconds for the LM78 to update all its sensor
1569values.  If we would try to read it before it finished that, you would get
1570old garbage instead. So you have to wait 1.5 seconds after the module is
1571inserted before you can access @file{/proc/sensors}.
1572
1573Module versions 1.3.7 and later let the process sleep if it tries
1574to access sensor data right after insertion time, and do not display this
1575message anymore.
1576
1577
1578@node Section 7.4, , Section 7.3, Version 1 Specifics
1579@section On my Dell, a LM80 is detected, but all readings are 0!
1580
1581This is a bug we have only observed on Dell computers. There is
1582probably a problem with the way the SMBus is accessed; but it is not yet
1583clear whether the problem is in our code or with the Dells.
1584
1585There are very probably no sensor chips at all on your computer;
1586but until somebody contacts Dell about this and tells us the results, we
1587can not be sure.
1588
1589
1590@node Document Revisions, , Version 1 Specifics, Top
1591@appendix Revision History of This Document
1592
1593@itemize
1594@item Rev 2.15 (JD) Updates, including mailing-list change, 2005-05-21
1595@item Rev 2.14 (MDS) Updated 4.12, 2004-11-26
1596@item Rev 2.13 (JD) Added 4.6.1, updated 4.7, 2004-06-23
1597@item Rev 2.12 (JD) Updated 4.27, 2004-04-11
1598@item Rev 2.11 (JD) Various updates, 2004-01-18
1599@item Rev 2.10 (MDS) Various updates, 2004-01-03
1600@item Rev 2.9 (CP) Converted to Gnu texinfo format, 2002-09-10
1601@item Rev 2.8 (MDS) Minor updates 2002-07-10, released with lm_sensors 2.6.4
1602@item Rev 2.7 (MDS) Minor updates 2002-04-25
1603@item Rev 2.6 (MDS) Minor updates 2002-01-15, released with lm_sensors 2.6.3
1604@item Rev 2.5 (MDS) Minor updates 2001-11-11, released with lm_sensors 2.6.2
1605@item Rev 2.4 (MDS) Minor updates 2001-07-22
1606@item Rev 2.3 (MDS) General update, 2001-02-24, released with lm_sensors 2.6.0.
1607@item Rev 2.2 (Frodo) Corrections for lm_sensors 2.4, 1999-09-20
1608@item Rev 2.1 (Frodo) Corrections for lm_sensors 2.2, 1999-01-12
1609@item Rev 2.0 (Frodo) Major revision for lm_sensors 2.1, 1998-12-29
1610@item Rev 1.10 (Frodo) Modified 3.8, updated some other things, 1998-09-24
1611@item Rev 1.9 (Frodo) Added 3.15, 1998-09-06
1612@item Rev 1.8 (Frodo) Added 3.14, 1998-09-05
1613@item Rev 1.7 (Phil) Added 3.13 and some other minor changes, 1998-09-01
1614@item Rev 1.6 (Frodo) Added 4, 4.1, 4.2, 4.3, 4.4, 4.5, 1998-09-01
1615@item Rev 1.5 (Frodo) Added 2.3, 2.4, 3.9, 3.10, 3.11, 1998-08-26
1616@item Rev 1.4 (Frodo) Added some more Winbond information, and 3.5-3.8, 1998-08-17
1617@item Rev 1.3 (Phil) Added info on the Winbond chip, 1998-08-16
1618@item Rev 1.2 (Frodo) Adapation, 1998-08-10
1619@item Rev 1.1 (Phil) Modifications, 1998-08-09
1620@item Rev 1.0 (Phil) First version, 1998-08-03
1621@end itemize
1622
1623@bye
Note: See TracBrowser for help on using the browser.