| 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 |
|---|
| 22 |
Copyright (C) 1998 - 2005@* |
|---|
| 23 |
Frodo Looijaard,@* |
|---|
| 24 |
Philip Edelbrock,@* |
|---|
| 25 |
Mark D. Studebaker@* |
|---|
| 26 |
and@* |
|---|
| 27 |
Jean 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 |
|
|---|
| 42 |
The lm_sensors package includes a collection of modules for general SMBus |
|---|
| 43 |
access and hardware monitoring. NOTE: this requires special support which |
|---|
| 44 |
is 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 |
* Document Revisions:: Revision History of This Document |
|---|
| 56 |
@end menu |
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
@node Overview, Basics, Top, Top |
|---|
| 60 |
@chapter PC and Sensor Overview |
|---|
| 61 |
|
|---|
| 62 |
@menu |
|---|
| 63 |
* Section 1.1:: What sensors are available on my PC? |
|---|
| 64 |
* Section 1.2:: What can a sensor chip like the "LM78" do? |
|---|
| 65 |
* Section 1.3:: Where do I find out more about any of these chips? |
|---|
| 66 |
@end menu |
|---|
| 67 |
|
|---|
| 68 |
@node Section 1.1, Section 1.2, , Overview |
|---|
| 69 |
@section What sensors are available on my PC? |
|---|
| 70 |
|
|---|
| 71 |
Most PC's built since late 1997 now come with a |
|---|
| 72 |
hardware health monitoring chip. This chip may be accessed via the |
|---|
| 73 |
ISA bus or the SMBus, depending on the motherboard. |
|---|
| 74 |
|
|---|
| 75 |
Some motherboard chipsets, notably the Via 686 and the SiS 5595, |
|---|
| 76 |
contain hardware monitor functions. |
|---|
| 77 |
|
|---|
| 78 |
This FAQ frequently refers to the "LM78". This chip has been |
|---|
| 79 |
obsoleted by National Semiconductor. Most motherboards today contain |
|---|
| 80 |
a chip with similar functions. |
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 |
@node Section 1.2, Section 1.3, Section 1.1, Overview |
|---|
| 84 |
@section What can a sensor chip like the "LM78" do? |
|---|
| 85 |
|
|---|
| 86 |
The LM78 is a chip made by National Semiconductor which can monitor 7 |
|---|
| 87 |
voltages (5 positive, 2 negative) from 0 to 4.08V. The inputs are usually in |
|---|
| 88 |
series with voltage dividers which lower the +/- 12V and +/- 5V supplies to |
|---|
| 89 |
measurable range. Therefore, the readings for such inputs need to be |
|---|
| 90 |
re-scaled appropriately by software. |
|---|
| 91 |
|
|---|
| 92 |
The LM78 also has 3 fan speed monitoring inputs, an internal |
|---|
| 93 |
temperature sensor, a chassis intrusion sensor, and a couple maskable interrupt |
|---|
| 94 |
inputs. The LM78 can also relay the processor's (P6 or Pent II) VID lines |
|---|
| 95 |
which are hardwired and used to indicate to the power regulator (usually on |
|---|
| 96 |
the mainboard close to the processor socket/slot) what voltage to supply to |
|---|
| 97 |
the processor. |
|---|
| 98 |
|
|---|
| 99 |
The LM78 can be interfaced to a system via the ISA bus and/or the |
|---|
| 100 |
SMBus. |
|---|
| 101 |
|
|---|
| 102 |
Most other sensor chips have comparable functionality. Each supported |
|---|
| 103 |
chip is documented in the @file{doc/chips} directory. |
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 |
@node Section 1.3, , Section 1.2, Overview |
|---|
| 107 |
@section Where do I find out more about any of these chips? |
|---|
| 108 |
|
|---|
| 109 |
Most semiconductor companies have comprehensive documentation, |
|---|
| 110 |
including complete datasheets, on their websites. Analog Devices, |
|---|
| 111 |
Dallas Semiconductor, Maxim, and National Semiconductor have the widest selection |
|---|
| 112 |
of sensor chips. Their websites are: |
|---|
| 113 |
|
|---|
| 114 |
@itemize @bullet |
|---|
| 115 |
@item @uref{http://www.analog.com} |
|---|
| 116 |
@item @uref{http://www.dalsemi.com} |
|---|
| 117 |
@item @uref{http://www.maxim-ic.com} |
|---|
| 118 |
@item @uref{http://www.national.com} |
|---|
| 119 |
@end itemize |
|---|
| 120 |
|
|---|
| 121 |
Please see the file @uref{http://www.lm-sensors.org/wiki/UsefulLinks} |
|---|
| 122 |
for links to other companies' websites. |
|---|
| 123 |
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|
| 126 |
@node Basics, Installation, Overview, Top |
|---|
| 127 |
@chapter Sensor and Bus Basics |
|---|
| 128 |
|
|---|
| 129 |
@menu |
|---|
| 130 |
* Section 2.1:: What sensors are available on my PC? |
|---|
| 131 |
* Section 2.2:: What can a sensor chip like the "LM78" do? |
|---|
| 132 |
* Section 2.3:: Where do I find out more about any of these chips? |
|---|
| 133 |
* Section 2.4:: What sensors are available on my PC? |
|---|
| 134 |
* Section 2.5:: What can a sensor chip like the "LM78" do? |
|---|
| 135 |
* Section 2.6:: Where do I find out more about any of these chips? |
|---|
| 136 |
@end menu |
|---|
| 137 |
|
|---|
| 138 |
|
|---|
| 139 |
@node Section 2.1, Section 2.2, , Basics |
|---|
| 140 |
@section How are these sensors read? |
|---|
| 141 |
|
|---|
| 142 |
Sensor chips reside on either the ISA bus, the SMBus, or both. |
|---|
| 143 |
See the file @file{doc/chips/SUMMARY} in our package for a list. |
|---|
| 144 |
|
|---|
| 145 |
To communicate with chips on the ISA bus, the software uses |
|---|
| 146 |
simple I/O reads and writes. |
|---|
| 147 |
|
|---|
| 148 |
To communicate with chips on the SMBus, the software must |
|---|
| 149 |
use an SMBus interface device, explained below. |
|---|
| 150 |
|
|---|
| 151 |
|
|---|
| 152 |
@node Section 2.2, Section 2.3, Section 2.1, Basics |
|---|
| 153 |
@section What is the SMBus? And the I2C bus? |
|---|
| 154 |
|
|---|
| 155 |
The SMBus is the "System Management Bus". More specifically, it is a |
|---|
| 156 |
2-wire, low-speed serial communication bus used for basic health monitoring |
|---|
| 157 |
and hardware management. It is a specific implementation of the more |
|---|
| 158 |
general I2C (pronunciation: I-squared-C) bus. In fact, both I2C devices |
|---|
| 159 |
and SMBus devices may be connected to the same (I2C) bus. |
|---|
| 160 |
|
|---|
| 161 |
The SMBus (or I2C bus) starts at the host controller, used for |
|---|
| 162 |
starting transactions on the SMBus. From the host interface, the |
|---|
| 163 |
devices communicated with are the @dfn{slave} devices. Each slave device has a |
|---|
| 164 |
unique 7-bit address which the host uses to refer to that device. |
|---|
| 165 |
|
|---|
| 166 |
For each supported SMBus host, there is a separate kernel module |
|---|
| 167 |
which implements the communication protocol with the host. Some SMBus hosts |
|---|
| 168 |
really operate on the SMBus level; these hosts can not cope with pure I2C |
|---|
| 169 |
devices. Other hosts are in fact I2C hosts: in this case, we implement |
|---|
| 170 |
the SMBus protocol in terms of I2C operations. But these hosts can also |
|---|
| 171 |
talk to pure I2C devices. |
|---|
| 172 |
|
|---|
| 173 |
|
|---|
| 174 |
@node Section 2.3, Section 2.4, Section 2.2, Basics |
|---|
| 175 |
@section I don't have an ISA bus! |
|---|
| 176 |
|
|---|
| 177 |
We promise, you do, even if you don't have any old ISA slots. |
|---|
| 178 |
The "ISA Bus" exists in your computer even if you don't have ISA slots; |
|---|
| 179 |
it is simply a memory-mapped area, 64KB in size (0x0000 - 0xFFFF) |
|---|
| 180 |
where many "legacy" functions, such as keyboard and interrupt controllers, |
|---|
| 181 |
are found. It isn't necessarily a separate physical bus. |
|---|
| 182 |
See the file @file{/proc/ioports} for a list of devices living on |
|---|
| 183 |
the "ISA Bus" in your system. If you don't like the term "ISA Bus" |
|---|
| 184 |
think "I/O Space". |
|---|
| 185 |
|
|---|
| 186 |
|
|---|
| 187 |
@node Section 2.4, Section 2.5, Section 2.3, Basics |
|---|
| 188 |
@section What sensors do processors have? |
|---|
| 189 |
|
|---|
| 190 |
Most new processors contain a thermal diode on the die itself. |
|---|
| 191 |
The electical properties of all diodes and transistors vary |
|---|
| 192 |
slightly with temperature. The thermal diode is exceptionally accurate |
|---|
| 193 |
because it is directly on the die. Newer temperature sensor chips, |
|---|
| 194 |
like the Analog Devices ADM1021 and clones, and the Winbond chips, |
|---|
| 195 |
have circuitry for measuring the the electrical properties of |
|---|
| 196 |
an external diode and converting this data to a temperature. |
|---|
| 197 |
Any sensor chip listed in @file{doc/chips/SUMMARY} in our package which |
|---|
| 198 |
has support for more than one temperature supports external temperature sensing. |
|---|
| 199 |
|
|---|
| 200 |
Older motherboards and processors without this feature generally use |
|---|
| 201 |
an LM75 placed close to the processor. This is much less accurate. |
|---|
| 202 |
|
|---|
| 203 |
The Pentium 2 'boxed' processor usually has an LM75 very close to the |
|---|
| 204 |
base of the box. It can be read through the SMBus to report the approximate |
|---|
| 205 |
temperature of the processor. The processor also contains an internal |
|---|
| 206 |
temperature sensor (of low accuracy) used as a fail-safe to disable the |
|---|
| 207 |
processor in case it gets much too hot (usually around 130 degrees C). And, |
|---|
| 208 |
the Pentium 2 also has a hard-wired signal (VID lines) on it's SEC (single |
|---|
| 209 |
edge connector) which indicates what power supply is required to operate the |
|---|
| 210 |
processor. |
|---|
| 211 |
|
|---|
| 212 |
The P6 (Pentium-Pro) may have an LM75 in or just under the socket. |
|---|
| 213 |
P6's also have VID lines. |
|---|
| 214 |
|
|---|
| 215 |
Pentiums and Pentium w/ MMX do not have VID lines, and sometimes have |
|---|
| 216 |
LM75's under the sockets (depends on the mainboard, and how 'modern' the |
|---|
| 217 |
mainboard is). |
|---|
| 218 |
|
|---|
| 219 |
The P2 Xeon was the first Intel processor to include the SMBus |
|---|
| 220 |
interface on the P2 Xeon SEC. |
|---|
| 221 |
|
|---|
| 222 |
|
|---|
| 223 |
@node Section 2.5, Section 2.6, Section 2.4, Basics |
|---|
| 224 |
@section How often are the sensor values updated? |
|---|
| 225 |
|
|---|
| 226 |
The LM78, and most other sensor chips like it, reads its sensors one |
|---|
| 227 |
by one. A complete scanning sweep will take about 1.5 seconds. The LM78 stops |
|---|
| 228 |
readings sensors if you try to access it, so if you access it very often |
|---|
| 229 |
(by reading sensor values; writing new limits is safe) it will not find the |
|---|
| 230 |
time to update its sensor values at all! Fortunately, the kernel module takes |
|---|
| 231 |
care not to do this, and only reads new values each 1.5 seconds. If you |
|---|
| 232 |
read the values again, you will get the 'old' values again. |
|---|
| 233 |
|
|---|
| 234 |
|
|---|
| 235 |
@node Section 2.6, , Section 2.5, Basics |
|---|
| 236 |
@section How are alarms triggered? |
|---|
| 237 |
|
|---|
| 238 |
It is possible to monitor each sensor and have an alarm go off if |
|---|
| 239 |
it crosses some pre-determined limits. There are two sorts of interrupts |
|---|
| 240 |
which can be generated by sensor chips if this happens (it depends a bit on |
|---|
| 241 |
the actual chip if both are supported; the LM80, for example, has only |
|---|
| 242 |
IRQ interrupts): IRQ interrupts and SMI interrupts. IRQ stands for |
|---|
| 243 |
Interrupt Request and are the interrupt lines you can find in @file{/proc/interrupts}. |
|---|
| 244 |
SMI stands for System Management Interrupt, and is a special interrupt which |
|---|
| 245 |
puts the processor in a secure environment independent of any other things |
|---|
| 246 |
running. SMI is currently not supported by the Linux kernel. IRQs are |
|---|
| 247 |
supported, of course. |
|---|
| 248 |
|
|---|
| 249 |
Even if no interrupt is generated, some bits in a status register |
|---|
| 250 |
will be set until the register is read the next time. If the alarm condition |
|---|
| 251 |
persists after that, the bits will be set on the next scanning sweep, etc. |
|---|
| 252 |
|
|---|
| 253 |
Most drivers in our package do not support interrupts at this time. |
|---|
| 254 |
|
|---|
| 255 |
|
|---|
| 256 |
|
|---|
| 257 |
@node Installation, Problems, Basics, Top |
|---|
| 258 |
@chapter Installation and Management |
|---|
| 259 |
|
|---|
| 260 |
@menu |
|---|
| 261 |
* Section 3.1:: Why so many modules, and how do I cope with them? |
|---|
| 262 |
* Section 3.2:: How do I know which chips I own? |
|---|
| 263 |
* Section 3.3:: Which modules should I insert? |
|---|
| 264 |
* Section 3.4:: Do I need the configuration file @file{/etc/sensors.conf}? |
|---|
| 265 |
* Section 3.5:: What about the @samp{No such file or directory} warnings |
|---|
| 266 |
* Section 3.6:: I get all kinds of weird compilation errors? |
|---|
| 267 |
* Section 3.7:: It still does not compile or patch! |
|---|
| 268 |
* Section 3.8:: @command{make install} fails on Mandrake kernels |
|---|
| 269 |
* Section 3.9:: I get unresolved symbols when I @command{modprobe} modules |
|---|
| 270 |
* Section 3.10:: I2C_DRIVERID_ADM1024 undefined (Red Hat especially) |
|---|
| 271 |
@end menu |
|---|
| 272 |
|
|---|
| 273 |
@node Section 3.1, Section 3.2, , Installation |
|---|
| 274 |
@section Why so many modules, and how do I cope with them? |
|---|
| 275 |
|
|---|
| 276 |
We tried to make this package as modular as possible. This makes it |
|---|
| 277 |
easy to add new drivers, and unused drivers will take no precious kernel |
|---|
| 278 |
space. On the other hand, it can be a bit confusing at first. |
|---|
| 279 |
|
|---|
| 280 |
Here are two simple guidelines: |
|---|
| 281 |
@itemize |
|---|
| 282 |
@item Run @command{sensors-detect} and do what it tells you. |
|---|
| 283 |
@item Always use @command{modprobe}, not @command{insmod}. |
|---|
| 284 |
@end itemize |
|---|
| 285 |
|
|---|
| 286 |
Further information is in @file{doc/modules}. |
|---|
| 287 |
|
|---|
| 288 |
|
|---|
| 289 |
@anchor{How do I know which chips I own} |
|---|
| 290 |
@node Section 3.2, Section 3.3, Section 3.1, Installation |
|---|
| 291 |
@section How do I know which chips I own? |
|---|
| 292 |
|
|---|
| 293 |
We have an excellent program that scans all your hardware. |
|---|
| 294 |
It is called @file{sensors-detect} and is installed in @file{/usr/local/sbin} |
|---|
| 295 |
by @command{make install}. Just execute this script, and it will tell you. |
|---|
| 296 |
|
|---|
| 297 |
Chip detection in the drivers is fairly good. That means that it is |
|---|
| 298 |
usually harmless to insert more chip drivers than you need. However, this |
|---|
| 299 |
can still lead to problems, so we do not recommend it. |
|---|
| 300 |
|
|---|
| 301 |
If sensors-detect didn't find any sensors, either you don't have |
|---|
| 302 |
any, or the ones you have, we don't support. (Look at your motherboard |
|---|
| 303 |
for candidates, then @pxref{Help}) |
|---|
| 304 |
|
|---|
| 305 |
|
|---|
| 306 |
@anchor{Section 3.2.1} |
|---|
| 307 |
@subsection What chips are on motherboard XYZ? |
|---|
| 308 |
|
|---|
| 309 |
@strong{!!!!!!!!! YES THIS IS THE MOST FREQUENT QUESTION WE GET !!!!!!!!!} |
|---|
| 310 |
|
|---|
| 311 |
We have no idea. Here is what you should do: |
|---|
| 312 |
@enumerate |
|---|
| 313 |
@item Run sensors-detect. |
|---|
| 314 |
@end enumerate |
|---|
| 315 |
|
|---|
| 316 |
If that doesn't work: |
|---|
| 317 |
@enumerate 2 |
|---|
| 318 |
@item Look at your motherboard. |
|---|
| 319 |
@item Check the manufacturer's website or ask their support |
|---|
| 320 |
@item Check the @uref{http://mbm.livewiredev.com/, Motherboard Monitor} website and the |
|---|
| 321 |
@uref{http://www.lm-sensors.org/wiki/UsefulLinks, "links"} |
|---|
| 322 |
page on @uref{http://www.lm-sensors.org, our website} some good cross-references. |
|---|
| 323 |
@end enumerate |
|---|
| 324 |
|
|---|
| 325 |
|
|---|
| 326 |
@anchor{Section 3.2.2} |
|---|
| 327 |
@subsection Do you support motherboard XYZ? |
|---|
| 328 |
|
|---|
| 329 |
We don't support boards, we support chips. @xref{Section 3.2.1, What chips are on motherboard XYZ}. |
|---|
| 330 |
|
|---|
| 331 |
|
|---|
| 332 |
@anchor{Section 3.2.3} |
|---|
| 333 |
@subsection Do you support chip XYZ? |
|---|
| 334 |
|
|---|
| 335 |
This we have good answers for. |
|---|
| 336 |
@itemize |
|---|
| 337 |
@item Sorted by Manufacturer: @file{README} |
|---|
| 338 |
@item Sorted by Manufacturer: @uref{http://www.lm-sensors.org/wiki/Devices} |
|---|
| 339 |
@item Sorted by Sensor Driver: @file{doc/chips/SUMMARY} |
|---|
| 340 |
@end itemize |
|---|
| 341 |
|
|---|
| 342 |
|
|---|
| 343 |
@anchor{Section 3.2.4} |
|---|
| 344 |
@subsection Anybody working on a driver for chip XYZ? |
|---|
| 345 |
|
|---|
| 346 |
Newest Driver Status: @uref{http://www.lm-sensors.org/wiki/Devices} |
|---|
| 347 |
|
|---|
| 348 |
|
|---|
| 349 |
@node Section 3.3, Section 3.4, Section 3.2, Installation |
|---|
| 350 |
@section Which modules should I insert? |
|---|
| 351 |
|
|---|
| 352 |
@command{sensors-detect} will tell you. Take the @command{modprobe} lines it |
|---|
| 353 |
recommends and paste them into the appropriate @file{/etc/rc.d/xxxx} file |
|---|
| 354 |
to be executed at startup. |
|---|
| 355 |
|
|---|
| 356 |
You need one module for each sensor chip and bus adapter you own; |
|---|
| 357 |
if there are sensor chips on the ISA bus, you also need @file{i2c-isa.o}. |
|---|
| 358 |
for each type of chip you own. That's all. On my computer, I could use the |
|---|
| 359 |
following lines: |
|---|
| 360 |
@itemize |
|---|
| 361 |
@item @command{modprobe i2c-isa} |
|---|
| 362 |
@item @command{modprobe i2c-piix4} |
|---|
| 363 |
@item @command{modprobe lm78} |
|---|
| 364 |
@item @command{modprobe lm75} |
|---|
| 365 |
@item @command{modprobe i2c-dev} |
|---|
| 366 |
@item @command{sensors -s} |
|---|
| 367 |
@end itemize |
|---|
| 368 |
|
|---|
| 369 |
|
|---|
| 370 |
@node Section 3.4, Section 3.5, Section 3.3, Installation |
|---|
| 371 |
@section Do I need the configuration file @file{/etc/sensors.conf}? |
|---|
| 372 |
|
|---|
| 373 |
Yes, for any applications that use @file{libsensors,} including the |
|---|
| 374 |
@command{sensors} application included in our package. |
|---|
| 375 |
It tells libsensors how to translate the values the chip |
|---|
| 376 |
measures to real-world values. This is especially important for voltage |
|---|
| 377 |
inputs. The default configuration file should usually do the trick. |
|---|
| 378 |
It is automatically installed as @file{/etc/sensors.conf}, but it will not |
|---|
| 379 |
overwrite any existing file with that name. |
|---|
| 380 |
|
|---|
| 381 |
|
|---|
| 382 |
@anchor{Section 3.4.1} |
|---|
| 383 |
@subsection The labels for the voltage and temperature readings in @command{sensors} are incorrect! |
|---|
| 384 |
|
|---|
| 385 |
Every motherboard is different. You can customize the labels |
|---|
| 386 |
in the file @file{/etc/sensors.conf}. That's why it exists! |
|---|
| 387 |
The default labelling (in @file{lib/chips.c} and @file{/etc/sensors.conf}) is just |
|---|
| 388 |
a template. |
|---|
| 389 |
|
|---|
| 390 |
|
|---|
| 391 |
@anchor{Section 3.4.2} |
|---|
| 392 |
@subsection The min and max for the readings in @command{sensors} are incorrect! |
|---|
| 393 |
|
|---|
| 394 |
You can customize them in the file @file{/etc/sensors.conf}. See above. |
|---|
| 395 |
|
|---|
| 396 |
|
|---|
| 397 |
@anchor{Section 3.4.3} |
|---|
| 398 |
@subsection The min and max settings in @file{/etc/sensors.conf} didn't take effect! |
|---|
| 399 |
|
|---|
| 400 |
You forgot to run @command{sensors -s}. See above. |
|---|
| 401 |
|
|---|
| 402 |
|
|---|
| 403 |
@anchor{Section 3.4.4} |
|---|
| 404 |
@subsection One sensor isn't hooked up on my board! |
|---|
| 405 |
|
|---|
| 406 |
Use an @command{ignore} line in @file{/etc/sensors.conf} so it isn't |
|---|
| 407 |
displayed in @command{sensors}. |
|---|
| 408 |
|
|---|
| 409 |
|
|---|
| 410 |
@anchor{Section 3.4.5} |
|---|
| 411 |
@subsection I need help with @file{sensors.conf}! |
|---|
| 412 |
|
|---|
| 413 |
There is detailed help at the top of that file. |
|---|
| 414 |
|
|---|
| 415 |
|
|---|
| 416 |
@anchor{Section 3.4.6} |
|---|
| 417 |
@subsection Do you have a database of @file{sensors.conf} entries for specific boards? |
|---|
| 418 |
|
|---|
| 419 |
No. Good idea though. If you would like to set one up on your website |
|---|
| 420 |
send us mail and we will set up a link to it. |
|---|
| 421 |
|
|---|
| 422 |
|
|---|
| 423 |
@node Section 3.5, Section 3.6, Section 3.4, Installation |
|---|
| 424 |
@section What about the @samp{No such file or directory} warnings when I compile? |
|---|
| 425 |
|
|---|
| 426 |
Don't worry about them. The dependency files (which tell which |
|---|
| 427 |
files should be recompiled when certain files change) are created |
|---|
| 428 |
dynamically. They are not distributed with the package. The @command{make} program |
|---|
| 429 |
notices they are not there, and warns about that - and the first thing |
|---|
| 430 |
it will do is generate them. So all is well. |
|---|
| 431 |
|
|---|
| 432 |
|
|---|
| 433 |
@node Section 3.6, Section 3.7, Section 3.5, Installation |
|---|
| 434 |
@section I get all kinds of weird compilation errors? |
|---|
| 435 |
|
|---|
| 436 |
Check that the correct i2c header files are used. Depending on |
|---|
| 437 |
how you installed, they should be under either @file{/usr/local/include} or |
|---|
| 438 |
@file{/usr/src/linux*/include}. Try to edit the @file{Makefile} for the other setting. |
|---|
| 439 |
|
|---|
| 440 |
|
|---|
| 441 |
@anchor{Section 3.6.1} |
|---|
| 442 |
@subsection @samp{No rule to make target xxxx needed by xxxx} - how to fix? |
|---|
| 443 |
|
|---|
| 444 |
@itemize |
|---|
| 445 |
@item @xref{Section 3.6, I get all kinds of weird compilation errors}, also try @command{make clean} in @file{lm_sensors}. |
|---|
| 446 |
@item If that doesn't work, try @command{make clean} in @file{i2c}. |
|---|
| 447 |
@item If that doesn't work, try @command{make clean} in the kernel. |
|---|
| 448 |
@item Also make sure @file{/usr/include/linux} points to @file{/usr/src/linux/include/linux}. |
|---|
| 449 |
@end itemize |
|---|
| 450 |
|
|---|
| 451 |
|
|---|
| 452 |
@node Section 3.7, Section 3.8, Section 3.6, Installation |
|---|
| 453 |
@section It still does not compile or patch! |
|---|
| 454 |
|
|---|
| 455 |
Have you installed the matching version of the i2c package? Remember, |
|---|
| 456 |
compilation is not enough, you also need to install it for the header |
|---|
| 457 |
files to be found! |
|---|
| 458 |
|
|---|
| 459 |
If you want to patch the kernel, you will have to apply the i2c |
|---|
| 460 |
patches first! |
|---|
| 461 |
|
|---|
| 462 |
|
|---|
| 463 |
@node Section 3.8, Section 3.9, Section 3.7, Installation |
|---|
| 464 |
@section @command{make install} fails on Mandrake kernels |
|---|
| 465 |
|
|---|
| 466 |
Mandrake uses a non-standard @file{version.h} file which confuses our @file{Makefile}. |
|---|
| 467 |
Edit our @file{Makefile} on the @code{MODDIR :=} line to hard-code the module directory. |
|---|
| 468 |
|
|---|
| 469 |
|
|---|
| 470 |
@node Section 3.9, Section 3.10, Section 3.8, Installation |
|---|
| 471 |
@section I get unresolved symbols when I @command{modprobe} modules (Red Hat especially) |
|---|
| 472 |
|
|---|
| 473 |
Example: |
|---|
| 474 |
@example |
|---|
| 475 |
*** Unresolved symbols in /lib/modules/2.4.5/kernel/drivers/i2c/i2c-i810.o |
|---|
| 476 |
i2c_bit_add_bus_R8c3bc60e |
|---|
| 477 |
i2c_bit_del_bus_R92b18f49 |
|---|
| 478 |
@end example |
|---|
| 479 |
|
|---|
| 480 |
You can also run @command{depmod -a -e} to see all unresolved symbols. |
|---|
| 481 |
|
|---|
| 482 |
|
|---|
| 483 |
These are module versioning problems. Generally you did not compile |
|---|
| 484 |
against the kernel you are running. Sometimes the Red Hat source you |
|---|
| 485 |
have is not for the kernel you are running. |
|---|
| 486 |
You must compile our package against the source for the kernel you |
|---|
| 487 |
are running with something like @command{make LINUX=/usr/src/linux-2.4.14}. |
|---|
| 488 |
|
|---|
| 489 |
|
|---|
| 490 |
Try the following to be sure: |
|---|
| 491 |
|
|---|
| 492 |
@itemize |
|---|
| 493 |
@item @command{nm --extern MODULE.o} |
|---|
| 494 |
Filter out the kernel symbols, like @code{kmalloc}, @code{printk} etc. and note the |
|---|
| 495 |
number code behind them, like @code{printk_R1b7d4074}. If there is no numeric |
|---|
| 496 |
code after them, note this too. |
|---|
| 497 |
@item @command{grep SYMBOL /proc/ksyms} |
|---|
| 498 |
Substitute SYMBOL by the basename of the symbols above, like @code{kmalloc}, |
|---|
| 499 |
@code{printk} etc. Note the number code behind them, or the lack thereof. |
|---|
| 500 |
@item Compare both sets of symbols. Are they the same? If so, the problem |
|---|
| 501 |
lies somewhere else. Are they different? If so, you have a module |
|---|
| 502 |
versioning problem. |
|---|
| 503 |
@end itemize |
|---|
| 504 |
|
|---|
| 505 |
|
|---|
| 506 |
@node Section 3.10, , Section 3.9, Installation |
|---|
| 507 |
@section I2C_DRIVERID_ADM1024 undefined (Red Hat especially) |
|---|
| 508 |
|
|---|
| 509 |
In some versions of Redhat, an RPM is included to provide i2c support. |
|---|
| 510 |
However, this RPM does not place the header files in the kernel directory |
|---|
| 511 |
structure. When you update kernels, they may persist. To get rid of |
|---|
| 512 |
these obsolete header files, at a command prompt: |
|---|
| 513 |
|
|---|
| 514 |
@enumerate |
|---|
| 515 |
@item @command{rpm -qa | grep i2c} |
|---|
| 516 |
@item Look for @file{kernel-i2c,} or a similar rpm in the output |
|---|
| 517 |
@item <as root> |
|---|
| 518 |
@command{rpm -ev kernel-i2c} (or the name of the similar package) |
|---|
| 519 |
If this complains about dependencies, you can try adding |
|---|
| 520 |
@command{--nodeps}, but this *MAY* break something else. Not likely, |
|---|
| 521 |
as you have upgraded kernels, and nothing should be using the |
|---|
| 522 |
old i2c stuff anymore anyway. Just don't use it with abandon. |
|---|
| 523 |
@item Try (in the build directory of @file{lm_sensors)} |
|---|
| 524 |
@example |
|---|
| 525 |
@command{make clean} |
|---|
| 526 |
@command{make} |
|---|
| 527 |
@end example |
|---|
| 528 |
@item @emph{If} you still have problems, you may have to replace the include |
|---|
| 529 |
paths in the @file{.c/.h} files with absolute paths to the header files. |
|---|
| 530 |
More of a workaround than a real fix, but at least you can get it |
|---|
| 531 |
to work. |
|---|
| 532 |
@end enumerate |
|---|
| 533 |
|
|---|
| 534 |
|
|---|
| 535 |
@node Problems, Help, Installation, Top |
|---|
| 536 |
@chapter Problems |
|---|
| 537 |
|
|---|
| 538 |
@menu |
|---|
| 539 |
* Section 4.1:: My fans report exactly half/double their values? |
|---|
| 540 |
* Section 4.2:: Why do my two LM75's report "-48 degrees"? |
|---|
| 541 |
* Section 4.3:: Why do I have two Vcore readings? |
|---|
| 542 |
* Section 4.4:: How do those ALARMS work? |
|---|
| 543 |
* Section 4.5:: My voltage readings seem to drift a bit. What's wrong? |
|---|
| 544 |
* Section 4.6:: Some measurements are way out of range. What happened? |
|---|
| 545 |
* Section 4.7:: What are VID lines? Why is the VID reading wrong? |
|---|
| 546 |
* Section 4.8:: Sensor are only updated each second or so. Why? |
|---|
| 547 |
* Section 4.9:: It takes a second before reading sensor results. Why? |
|---|
| 548 |
* Section 4.10:: Can I be alerted when an ALARM occurs? |
|---|
| 549 |
* Section 4.11:: SMBus transactions on my PIIX4 simply don't work. Why? |
|---|
| 550 |
* Section 4.12:: My BIOS reports a higher CPU temperature than you! |
|---|
| 551 |
* Section 4.13:: I read strange values from the raw @file{/proc} files! |
|---|
| 552 |
* Section 4.14:: How do I set new limits? |
|---|
| 553 |
* Section 4.15:: Some sensors are doubly detected? |
|---|
| 554 |
* Section 4.16:: I ran sensors-detect, but now I get strange readings?! |
|---|
| 555 |
* Section 4.17:: Bad readings from particular chips |
|---|
| 556 |
* Section 4.18:: How do I configure two chips (LM87) differently? |
|---|
| 557 |
* Section 4.19:: Dmesg says @samp{Upgrade BIOS}! I don't want to! |
|---|
| 558 |
* Section 4.20:: Sensors says @samp{Can't access procfs/sysfs file} |
|---|
| 559 |
* Section 4.21:: Sensors says @samp{No sensors found!} |
|---|
| 560 |
* Section 4.22:: Sensors output is not correct! |
|---|
| 561 |
* Section 4.23:: What is at I2C address XXX? |
|---|
| 562 |
* Section 4.24:: Sensors-detect doesn't work at all |
|---|
| 563 |
* Section 4.25:: Sensors says @samp{Error: Line xxx: zzzzzzz} |
|---|
| 564 |
* Section 4.26:: Sensors only gives the name, adapter, and algorithm! |
|---|
| 565 |
* Section 4.27:: Sensors says @samp{ERROR: Can't get xxxxx data!} |
|---|
| 566 |
* Section 4.28:: Sensors doesn't find any sensors, just eeproms. |
|---|
| 567 |
* Section 4.29:: Inserting modules hangs my board |
|---|
| 568 |
* Section 4.30:: Inserting modules slows down my board |
|---|
| 569 |
* Section 4.31:: Problems on particular motherboards |
|---|
| 570 |
* Section 4.32:: Problems on particular systems |
|---|
| 571 |
* Section 4.33:: Problems on 2.6 kernels |
|---|
| 572 |
@end menu |
|---|
| 573 |
|
|---|
| 574 |
|
|---|
| 575 |
@node Section 4.1, Section 4.2, , Problems |
|---|
| 576 |
@section My fans report exactly half/double their values compared to the BIOS? |
|---|
| 577 |
|
|---|
| 578 |
The problem with much of the sensor data is that it is impossible to |
|---|
| 579 |
properly interpret some of the readings without knowing what the hardware |
|---|
| 580 |
configuration is. Some fans report one 'tick' each rotation, some report |
|---|
| 581 |
two 'ticks' each rotation. It is easy to resolve this through the |
|---|
| 582 |
configuration file @file{/etc/sensors.conf}: |
|---|
| 583 |
|
|---|
| 584 |
@example |
|---|
| 585 |
chip lm78-* # Or whatever chip this relates to |
|---|
| 586 |
compute fan1 2*@@,@@/2 # This will double the fan1 reading |
|---|
| 587 |
# -- or -- |
|---|
| 588 |
compute fan1 @@/2,2*@@ # This will halve the fan1 reading |
|---|
| 589 |
@end example |
|---|
| 590 |
|
|---|
| 591 |
See @file{doc/fan-divisors} in our package for further information. |
|---|
| 592 |
|
|---|
| 593 |
|
|---|
| 594 |
@anchor{Fans sometimes/always read 0!} |
|---|
| 595 |
@subsection Fans sometimes/always read 0!! |
|---|
| 596 |
|
|---|
| 597 |
You may not have a three-wire fan, which is required. |
|---|
| 598 |
|
|---|
| 599 |
You may need to increase the 'fan divisor'. See @file{doc/fan-divisors} |
|---|
| 600 |
in our package for further information. |
|---|
| 601 |
|
|---|
| 602 |
|
|---|
| 603 |
@anchor{I doubled the fan divisor and the fan still reads 7000} |
|---|
| 604 |
@subsection I doubled the fan divisor and the fan still reads 7000! |
|---|
| 605 |
|
|---|
| 606 |
Believe it or not, doubling the 'fan divisor' will not halve |
|---|
| 607 |
the fan reading. You have to add a compute line in @file{/etc/sensors.conf}. |
|---|
| 608 |
@xref{Section 4.1, My fans report exactly half/double their values compared to the BIOS}, |
|---|
| 609 |
and see @file{doc/fan-divisors} in our package for further information. |
|---|
| 610 |
|
|---|
| 611 |
|
|---|
| 612 |
@node Section 4.2, Section 4.3, Section 4.1, Problems |
|---|
| 613 |
@section Why do my two LM75's report "-48 degrees"? |
|---|
| 614 |
|
|---|
| 615 |
For starters, those aren't LM75's. Your mainboard actually has the |
|---|
| 616 |
Winbond W83781D which emulates two LM75's, but many systems which use the |
|---|
| 617 |
Winbond chip (such as the Asus P2B) don't have the thermo-resisters connected |
|---|
| 618 |
to the chip resulting in these strange -48 degree readings. |
|---|
| 619 |
|
|---|
| 620 |
In upcoming versions, you will be able to disable non-interesting |
|---|
| 621 |
readings. |
|---|
| 622 |
|
|---|
| 623 |
|
|---|
| 624 |
@node Section 4.3, Section 4.4, Section 4.2, Problems |
|---|
| 625 |
@section Why do I have two Vcore readings, I have only one processor! |
|---|
| 626 |
|
|---|
| 627 |
The LM78 has seven voltage sensors. The default way of |
|---|
| 628 |
connecting them is used in the configuration file. This includes a VCore2, |
|---|
| 629 |
even if you do not have one. You can easily edit the configuration file |
|---|
| 630 |
to give it another name, or make this reading disappear using |
|---|
| 631 |
an @command{ignore} line. |
|---|
| 632 |
|
|---|
| 633 |
Note that Vcore2 is often the same as Vcore on motherboards which |
|---|
| 634 |
only support one processor. Another possibility is that Vcore2 is not |
|---|
| 635 |
connected at all and will not have a valid reading at all. |
|---|
| 636 |
A third possibility, is that Vcore2 monitors something |
|---|
| 637 |
else, so you should not be too surprised if the values are completely |
|---|
| 638 |
different. |
|---|
| 639 |
|
|---|
| 640 |
|
|---|
| 641 |
@node Section 4.4, Section 4.5, Section 4.3, Problems |
|---|
| 642 |
@section How do those ALARMS work? The current value is within range but there is still an ALARM warning! |
|---|
| 643 |
|
|---|
| 644 |
The ALARM indications in @command{sensors} are those reported by the |
|---|
| 645 |
sensor chip itself. They are NOT calculated by @command{sensors}. @command{sensors} |
|---|
| 646 |
simply reads the ALARM bits and reports them. |
|---|
| 647 |
|
|---|
| 648 |
An ALARM will go off when a minimum or maximum limit is crossed. |
|---|
| 649 |
The ALARM is then latched - that is, it will stay there until the |
|---|
| 650 |
chip's registers are next accessed - which will be the next time |
|---|
| 651 |
you read these values, but not within (usually) 1.5 seconds since the last |
|---|
| 652 |
update. |
|---|
| 653 |
|
|---|
| 654 |
Reading the registers clears the ALARMS, unless the current |
|---|
| 655 |
value is still out of range. |
|---|
| 656 |
|
|---|
| 657 |
The purpose of this scheme is to tell you if there has been |
|---|
| 658 |
a problem and report it to the user. Voltage or temperature spikes |
|---|
| 659 |
get detected without having to read the sensor chip hundreds of times |
|---|
| 660 |
a second. The implemetation details depend a bit on the kind of chip. |
|---|
| 661 |
See the specific chip documentation in @file{doc/chips} and the |
|---|
| 662 |
chip datasheet for more information. |
|---|
| 663 |
|
|---|
| 664 |
|
|---|
| 665 |
@node Section 4.5, Section 4.6, Section 4.4, Problems |
|---|
| 666 |
@section My voltage readings seem to drift a bit. Is something wrong? |
|---|
| 667 |
|
|---|
| 668 |
No, probably not. If your motherboard heats up a bit, the sensed |
|---|
| 669 |
voltages will drift a bit. If your power supply is loaded (because a disk |
|---|
| 670 |
gets going, for example), the voltages may get a bit lower. Heavy |
|---|
| 671 |
processor activity, in particular, dramatically increases core voltage |
|---|
| 672 |
supply load which will often cause variation in the other supplies. |
|---|
| 673 |
As long as they stay within a sensible range (say 5% of the nominal value |
|---|
| 674 |
for CPU core voltages, and 10% for other voltages), there is no |
|---|
| 675 |
reason to worry. |
|---|
| 676 |
|
|---|
| 677 |
|
|---|
| 678 |
@node Section 4.6, Section 4.7, Section 4.5, Problems |
|---|
| 679 |
@section Some measurements are way out of range. What happened? |
|---|
| 680 |
|
|---|
| 681 |
Each module tries to set limits to sensible values on initialization, |
|---|
| 682 |
but a module does not know how a chip is actually connected. This is |
|---|
| 683 |
described in the configuration file, which is not read by kernel modules. |
|---|
| 684 |
So limits can be strange, if the chip is connected in a non-standard way. |
|---|
| 685 |
|
|---|
| 686 |
Readings can also be strange; there are several reasons for this. |
|---|
| 687 |
Temperature sensors, for example, can simply not be present, even though |
|---|
| 688 |
the chip supports them. Also, it can be that the input is used in a |
|---|
| 689 |
non-standard way. You can use the configuration file to describe how this |
|---|
| 690 |
measurement should be interpreted; see the comments the example file for |
|---|
| 691 |
more information. |
|---|
| 692 |
|
|---|
| 693 |
@anchor{-5V and -12V readings are way out of range!} |
|---|
| 694 |
@subsection -5V and -12V readings are way out of range! |
|---|
| 695 |
|
|---|
| 696 |
It's very frequent that negative voltage lines are not wired because |
|---|
| 697 |
motherboard manufacturers don't think they're worth monitoring |
|---|
| 698 |
(they are mostly unused these days). You can just add |
|---|
| 699 |
@command{ignore inN} lines to @file{/etc/sensors.conf} to hide them. |
|---|
| 700 |
|
|---|
| 701 |
Another possibility is that these lines are used to monitor different |
|---|
| 702 |
voltages. Only the motherboard manufacturer can tell for sure. Taking |
|---|
| 703 |
a look at what voltage values the BIOS displays may provide valuable |
|---|
| 704 |
hints though. |
|---|
| 705 |
|
|---|
| 706 |
|
|---|
| 707 |
@node Section 4.7, Section 4.8, Section 4.6, Problems |
|---|
| 708 |
@section What are VID lines? Why is the VID reading wrong? |
|---|
| 709 |
|
|---|
| 710 |
These describe the core voltage for your processor. They are |
|---|
| 711 |
supported for most processors, however they are not always |
|---|
| 712 |
correctly connected to the sensor chip, so the readings may be invalid. |
|---|
| 713 |
A reading of 0V, +3.5V or +2.05V is especially suspect. |
|---|
| 714 |
If this is the case, add a line @command{ignore vid} to @file{/etc/sensors.conf}, |
|---|
| 715 |
and change the min and max settings for the Processor Core voltage |
|---|
| 716 |
(often in0_min and in0_max) in that file so that they don't depend on vid. |
|---|
| 717 |
|
|---|
| 718 |
The CPU nominal voltage is computed from VID lines according to a formula |
|---|
| 719 |
that depends on the CPU type. Most chips that report a VID value can be |
|---|
| 720 |
configured to use either VRM 8.2 (for Pentium III) or VRM 9.0 (for Pentium 4 |
|---|
| 721 |
and Athlon). You chose which one you want through @file{/etc/sensors.conf}. |
|---|
| 722 |
See @file{doc/vid} for more information. |
|---|
| 723 |
|
|---|
| 724 |
|
|---|
| 725 |
@node Section 4.8, Section 4.9, Section 4.7, Problems |
|---|
| 726 |
@section I read sensor values several times a second, but they are only updated only each second or so. Why? |
|---|
| 727 |
|
|---|
| 728 |
If we would read the registers more often, it would not find the |
|---|
| 729 |
time to update them. So we only update our readings once each 1.5 seconds |
|---|
| 730 |
(the actual delay is chip-specific; for some chips, it may not be needed |
|---|
| 731 |
at all). |
|---|
| 732 |
|
|---|
| 733 |
|
|---|
| 734 |
@node Section 4.9, Section 4.10, Section 4.8, Problems |
|---|
| 735 |
@section It sometimes seems to take almost a second before I see the sensor reading results. Why? |
|---|
| 736 |
|
|---|
| 737 |
ISA bus access is fast, but SMBus access is really slow. If you have |
|---|
| 738 |
a lot of sensors, it just takes a lot of time to access them. Fortunately, |
|---|
| 739 |
this has almost no impact on the system as a whole, as another job can run |
|---|
| 740 |
while we are waiting for the transaction to finish. |
|---|
| 741 |
|
|---|
| 742 |
|
|---|
| 743 |
@node Section 4.10, Section 4.11, Section 4.9, Problems |
|---|
| 744 |
@section Can I be alerted when an ALARM occurs? |
|---|
| 745 |
|
|---|
| 746 |
No, you can't; and it may well be never supported. |
|---|
| 747 |
|
|---|
| 748 |
Almost no mainboard we have encountered have actually connected the |
|---|
| 749 |
IRQ-out pin of sensor chips. That means that we could enable IRQ reporting, but |
|---|
| 750 |
nothing would happen. Also, even if a motherboard has it connected, it is |
|---|
| 751 |
unclear what interrupt number would be triggered. And IRQ lines are a scarce |
|---|
| 752 |
facility, which means that almost nobody would be able to use it anyway. |
|---|
| 753 |
|
|---|
| 754 |
The SMI interrupt is only available on a few types of chips. It is |
|---|
| 755 |
really a very obscure way to handle interrupts, and supporting it under Linux |
|---|
| 756 |
might be quite hard to do. |
|---|
| 757 |
|
|---|
| 758 |
Your best bet would be to poll the alarm file with a user-land daemon |
|---|
| 759 |
which alerts you if an alarm is raised. I am not aware of any program which |
|---|
| 760 |
does the job, though you might want to examine one of the graphical monitor |
|---|
| 761 |
programs under X, see @uref{http://www.lm-sensors.org/wiki/UsefulLinks} for addresses. |
|---|
| 762 |
|
|---|
| 763 |
|
|---|
| 764 |
@node Section 4.11, Section 4.12, Section 4.10, Problems |
|---|
| 765 |
@section SMBus transactions on my PIIX4 simply don't work (timeouts happen). Why? |
|---|
| 766 |
|
|---|
| 767 |
Some chips which mainboard makers connect to the SMBus are not SMBus |
|---|
| 768 |
devices. An example is the 91xx clock generator chips. When read, these |
|---|
| 769 |
devices can lock up the SMBus until the next hard reboot. This is because |
|---|
| 770 |
they have a similar serial interface (like the I2C), but don't conform to |
|---|
| 771 |
Intel's SMBus standard. |
|---|
| 772 |
|
|---|
| 773 |
Why did they connect these devices to the SMBus if they aren't |
|---|
| 774 |
compatible? Good question! :') Actually, these devices may support being |
|---|
| 775 |
written to, but lock things up when they are read. |
|---|
| 776 |
|
|---|
| 777 |
|
|---|
| 778 |
@node Section 4.12, Section 4.13, Section 4.11, Problems |
|---|
| 779 |
@section My BIOS reports a much higher CPU temperature than your modules! |
|---|
| 780 |
|
|---|
| 781 |
We display the actual temperature of the sensor. This may not be the |
|---|
| 782 |
temperature you are interested in, though. If a sensor should measure |
|---|
| 783 |
the CPU temperature, it must be in thermal contact with it. In practice, |
|---|
| 784 |
it may be just somewhere nearby. Your BIOS may correct for this (by adding, |
|---|
| 785 |
for example, thirty degrees to the measured temperature). The correction |
|---|
| 786 |
factor is regrettably different for each mainboard, so we can not do this |
|---|
| 787 |
in the module itself. You can do it through the configuration file, though: |
|---|
| 788 |
|
|---|
| 789 |
@example |
|---|
| 790 |
chip lm75-*-49 # Or whatever chip this relates to |
|---|
| 791 |
label temp "Processor" |
|---|
| 792 |
compute temp @@*1.2+13,(@@-13)/1.2 # Or whatever formula |
|---|
| 793 |
@end example |
|---|
| 794 |
|
|---|
| 795 |
However, the offset you are introducing might not be necessary. If you |
|---|
| 796 |
tried to have Linux idle temperature and BIOS "idle" temperature match, |
|---|
| 797 |
you may be misguided. |
|---|
| 798 |
We have a Supermicro (370DLE) motherboard and we know |
|---|
| 799 |
that its BIOS has a closed, almost undelayed while(1) loop that |
|---|
| 800 |
keeps the CPU busy all the time. Linux reads 26 degrees idle, BIOS reads |
|---|
| 801 |
38 degrees. Linux at full load is in the 35-40 degrees range so this |
|---|
| 802 |
makes sense. |
|---|
| 803 |
|
|---|
| 804 |
@node Section 4.13, Section 4.14, Section 4.12, Problems |
|---|
| 805 |
@section I try to read the raw @file{/proc} files, but the values are strange?!? |
|---|
| 806 |
|
|---|
| 807 |
Remember, these values do not take the configuration file |
|---|
| 808 |
@file{compute} lines in account. This is especially obvious for voltage readings |
|---|
| 809 |
(usually called in? or vin?). Use a program linked to libsensors (like |
|---|
| 810 |
the provided @command{sensors} program) instead. |
|---|
| 811 |
|
|---|
| 812 |
|
|---|
| 813 |
@node Section 4.14, Section 4.15, Section 4.13, Problems |
|---|
| 814 |
@section How do I set new limits? |
|---|
| 815 |
|
|---|
| 816 |
Change the limit values in @file{/etc/sensors.conf} and then run |
|---|
| 817 |
@command{sensors -s}. |
|---|
| 818 |
|
|---|
| 819 |
|
|---|
| 820 |
@anchor{I set new limits and it didnt work} |
|---|
| 821 |
@subsection I set new limits and it didn't work? |
|---|
| 822 |
|
|---|
| 823 |
You forgot to run @command{sensors -s}. Put it in a @file{/etc/rc.d/...} file |
|---|
| 824 |
after the modprobe lines to run at startup. |
|---|
| 825 |
|
|---|
| 826 |
|
|---|
| 827 |
@node Section 4.15, Section 4.16, Section 4.14, Problems |
|---|
| 828 |
@section Some sensors are doubly detected? |
|---|
| 829 |
|
|---|
| 830 |
Yes, this is still a problem. It is partially solved by alias detection |
|---|
| 831 |
and confidence values in sensors-detect, but it is really tough. |
|---|
| 832 |
|
|---|
| 833 |
Double detections can be caused by two things: |
|---|
| 834 |
sensors can be detected to both the ISA and the SMBus (and if you have |
|---|
| 835 |
loaded the approprate adapter drivers, it will be detected on both), and |
|---|
| 836 |
some chips simulate other chips (the Winbond W83781D simulates LM75 chips |
|---|
| 837 |
on the SMBus, for example). Remove the offending adapter or chip driver, or |
|---|
| 838 |
run sensors-detect and add the @command{ignore=} modprobe parameters it suggests. |
|---|
| 839 |
|
|---|
| 840 |
|
|---|
| 841 |
@node Section 4.16, Section 4.17, Section 4.15, Problems |
|---|
| 842 |
@section I ran sensors-detect, but now I get very strange readings?!? |
|---|
| 843 |
|
|---|
| 844 |
Your SMBus (PIIX4?) is probably crashed or hung. There are some mainboards |
|---|
| 845 |
which connect a clock chip to the SMBus. Unfortunately, this clock chip |
|---|
| 846 |
hangs the PIIX4 if it is read (it is an I2C device, but not SMBus compatible). |
|---|
| 847 |
We have found no way of solving this, except for rebooting your computer. |
|---|
| 848 |
Next time when you run sensors-detect, you may want to exclude addresses |
|---|
| 849 |
0x69 and/or 0x6a, by entering @kbd{s} when you are asked whether you want to |
|---|
| 850 |
scan the PIIX4. |
|---|
| 851 |
|
|---|
| 852 |
|
|---|
| 853 |
@node Section 4.17, Section 4.18, Section 4.16, Problems |
|---|
| 854 |
@section Bad readings from particular chips |
|---|
| 855 |
|
|---|
| 856 |
See below for some particularly troublesome chips. |
|---|
| 857 |
Also be sure and check @file{doc/chips/xxxxx} for the particular driver. |
|---|
| 858 |
|
|---|
| 859 |
|
|---|
| 860 |
@anchor{Bad readings from the AS99127F} |
|---|
| 861 |
@subsection Bad readings from the AS99127F! |
|---|
| 862 |
|
|---|
| 863 |
The Asus AS99127F is a modified version of the Winbond W83781D. |
|---|
| 864 |
Asus will not release a datasheet. The driver was developed by tedious |
|---|
| 865 |
experimentation. We've done the best we can. If you want to make adjustments |
|---|
| 866 |
to the readings please edit @file{/etc/sensors.conf.} Please don't ask us to |
|---|
| 867 |
fix the driver. Ask Asus to release a datasheet. |
|---|
| 868 |
|
|---|
| 869 |
|
|---|
| 870 |
@anchor{Bad readings from the VIA 686A} |
|---|
| 871 |
@subsection Bad readings from the VIA 686A! |
|---|
| 872 |
|
|---|
| 873 |
The Via 686A datasheet is incomplete. |
|---|
| 874 |
Via will not release details. The driver was developed by tedious |
|---|
| 875 |
experimentation. We've done the best we can. If you want to make adjustments |
|---|
| 876 |
to the readings please edit @file{/etc/sensors.conf.} Please don't ask us to |
|---|
| 877 |
fix the driver. Ask Via to release a better datasheet. |
|---|
| 878 |
Also, don't forget to @command{modprobe i2c-isa}. |
|---|
| 879 |
|
|---|
| 880 |
|
|---|
| 881 |
@anchor{Bad readings from the MTP008} |
|---|
| 882 |
@subsection Bad readings from the MTP008! |
|---|
| 883 |
|
|---|
| 884 |
The MTP008 has programmable temperature sensor types. |
|---|
| 885 |
If your sensor type does not match the default, you will have to change it. |
|---|
| 886 |
See @file{doc/chips/mtp008} for details. |
|---|
| 887 |
Also, MTP008 chips seem to randomly refuse to respond, for |
|---|
| 888 |
unknown reasons. You can see this as 'XX' entries in i2cdump. |
|---|
| 889 |
|
|---|
| 890 |
|
|---|
| 891 |
@anchor{Bad temperature readings from the SIS5595} |
|---|
| 892 |
@subsection Bad temperature readings from the SIS5595! |
|---|
| 893 |
|
|---|
| 894 |
This chip can use multiple thermistor types and there are also |
|---|
| 895 |
two different versions of the chip. We are trying to get the driver |
|---|
| 896 |
working better and develop formulas for different thermistors |
|---|
| 897 |
but we aren't there yet. Sorry. |
|---|
| 898 |
Also, many times the chip isn't really a sis5595 but it was |
|---|
| 899 |
misidentified. We are working on improving that too. |
|---|
| 900 |
|
|---|
| 901 |
|
|---|
| 902 |
@anchor{Bad readings from a w8378[12]d} |
|---|
| 903 |
@subsection Bad readings from a w8378[12]d! |
|---|
| 904 |
|
|---|
| 905 |
Do you own an ASUS motherboard? Perhaps your chip is being |
|---|
| 906 |
misidentified. Look on the motherboard (or at |
|---|
| 907 |
@uref{http://mbm.livewiredev.com}) for a 'Winbond' or Asus chip. |
|---|
| 908 |
Often the real device is an Asus as99127f. If so, the driver can be |
|---|
| 909 |
forced to recognize the as99127f with |
|---|
| 910 |
@command{force_as99127f=BUS,0x2d} where @code{BUS} is your i2c bus number. |
|---|
| 911 |
Cat /proc/bus/i2c to see a list of bus numbers. |
|---|
| 912 |
Read the w83781d module documentation (@file{doc/chips/w83781d}) |
|---|
| 913 |
for more details. |
|---|
| 914 |
|
|---|
| 915 |
|
|---|
| 916 |
@anchor{Bus hangs on Ali 1543 on Asus P5A boards} |
|---|
| 917 |
@subsection Bus hangs on Ali 1543 on Asus P5A boards! |
|---|
| 918 |
|
|---|
| 919 |
The SMBus tends to hang on this board and it seems to get worse |
|---|
| 920 |
at higher temperatures. Use ISA accesses to reliably use the w83781d |
|---|
| 921 |
monitor chip on this board and use the @command{ignore=1,0x2d} or similar option |
|---|
| 922 |
to the w83781d module to prevent i2c accesses. |
|---|
| 923 |
|
|---|
| 924 |
|
|---|
| 925 |
@anchor{Bad readings from LM75} |
|---|
| 926 |
@subsection Bad readings from LM75! |
|---|
| 927 |
|
|---|
| 928 |
The LM75 detection is poor and other hardware is often misdetected |
|---|
| 929 |
as an LM75. Figure out what you really have @xref{Section 3.2.1, What chips are on motherboard XYZ}. |
|---|
| 930 |
|
|---|
| 931 |
|
|---|
| 932 |
@anchor{Bad readings from LM78} |
|---|
| 933 |
@subsection Bad readings from LM78! |
|---|
| 934 |
|
|---|
| 935 |
The LM78 is no longer manufactured by National Semiconductor. |
|---|
| 936 |
You probably don't have a real LM78 but something similar that we |
|---|
| 937 |
do not recogize or support. Figure out what you really have @xref{Section 3.2.1, What chips are on motherboard XYZ}. |
|---|
| 938 |
|
|---|
| 939 |
|
|---|
| 940 |
@anchor{Bad readings from LM80} |
|---|
| 941 |
@subsection Bad readings from LM80! |
|---|
| 942 |
|
|---|
| 943 |
The LM80 detection is poor and other hardware is often misdetected |
|---|
| 944 |
as an LM80. Figure out what you really have @xref{Section 3.2.1, What chips are on motherboard XYZ}. |
|---|
| 945 |
|
|---|
| 946 |
|
|---|
| 947 |
@node Section 4.18, Section 4.19, Section 4.17, Problems |
|---|
| 948 |
@section How do I configure two chips (LM87) differently? |
|---|
| 949 |
|
|---|
| 950 |
There is a SuperMicro board with two LM87's on it that are |
|---|
| 951 |
not hooked up in the same way, so they need different defaults. |
|---|
| 952 |
For example, both CPU temperatures go to one LM87. |
|---|
| 953 |
|
|---|
| 954 |
Make two different sections in @file{/etc/sensors.conf} as follows: |
|---|
| 955 |
@example |
|---|
| 956 |
chip "lm87-i2c-*-2c" |
|---|
| 957 |
put configuration for the chip at 0x2c here |
|---|
| 958 |
chip "lm87-i2c-*-2d" |
|---|
| 959 |
put configuration for the chip at 0x2d here |
|---|
| 960 |
@end example |
|---|
| 961 |
|
|---|
| 962 |
There is a commented example in @file{sensors.conf.eg} which should |
|---|
| 963 |
be helpful. |
|---|
| 964 |
|
|---|
| 965 |
|
|---|
| 966 |
@node Section 4.19, Section 4.20, Section 4.18, Problems |
|---|
| 967 |
@section Dmesg says @samp{Upgrade BIOS}! I don't want to! |
|---|
| 968 |
|
|---|
| 969 |
If the problem is a PCI device is not present in @command{lspci}, the solution |
|---|
| 970 |
is complex. For the ALI M7101 device, there is a solution which uses the |
|---|
| 971 |
2.4 kernel's @command{hotplug} facility. See @file{prog/hotplug} in our package. |
|---|
| 972 |
For other PCI devices, you can try to modify |
|---|
| 973 |
the m7101 solution in @file{prog/hotplug}. |
|---|
| 974 |
|
|---|
| 975 |
|
|---|
| 976 |
If dmesg says @samp{try force_addr}, see below. Other drivers generally do not |
|---|
| 977 |
support the force_addr parameter. Sorry. Check the documentation |
|---|
| 978 |
for your driver in @file{doc/[chips,busses]} and if we don't support it |
|---|
| 979 |
you can send us your request. |
|---|
| 980 |
|
|---|
| 981 |
|
|---|
| 982 |
@anchor{Dmesg says use force_addr=0xaddr! What address do I use} |
|---|
| 983 |
@subsection Dmesg says @samp{use force_addr=0xaddr}! What address do I use? |
|---|
| 984 |
|
|---|
| 985 |
If the problem is a PCI device whose base address is not set, |
|---|
| 986 |
you may be able to set the address with a force parameter. The via686a |
|---|
| 987 |
and sis5595 chip drivers, and some bus drivers, support the command line |
|---|
| 988 |
@command{modprobe via686a force_addr=0xADDRESS} where ADDRESS |
|---|
| 989 |
is the I/O address. You must select an address that is not in use. |
|---|
| 990 |
@command{cat @file{/proc/ioports}} to check (carefully) for conflicts. A high number like |
|---|
| 991 |
0xf000 is generally safe. |
|---|
| 992 |
|
|---|
| 993 |
|
|---|
| 994 |
@node Section 4.20, Section 4.21, Section 4.19, Problems |
|---|
| 995 |
@section Sensors says @samp{Can't access procfs/sysfs file} |
|---|
| 996 |
|
|---|
| 997 |
@itemize |
|---|
| 998 |
@item Linux 2.6 |
|---|
| 999 |
@itemize |
|---|
| 1000 |
@item Did you @command{modprobe i2c_sensor}? Check @command{lsmod}. |
|---|
| 1001 |
@item Do you have sysfs support in your kernel and @file{/sys} mounted (is @file{/sys} there and populated)? |
|---|
| 1002 |
Create /sys with @command{mkdir /sys} if needed. Then add the following line to @file{/etc/fstab}: |
|---|
| 1003 |
@example |
|---|
| 1004 |
sys /sys sysfs default 0 0@end example |
|---|
| 1005 |
and @command{mount /sys}. |
|---|
| 1006 |
@end itemize |
|---|
| 1007 |
@item Linux 2.4 |
|---|
| 1008 |
@itemize |
|---|
| 1009 |
@item Did you @command{modprobe i2c-proc}? Check @command{lsmod}. |
|---|
| 1010 |
@item Do you have procfs support in your kernel and @file{/proc} mounted (is @file{/proc} there and populated)? |
|---|
| 1011 |
Create /proc with @command{mkdir /proc} if needed. Then add the following line to @file{/etc/fstab}: |
|---|
| 1012 |
@example |
|---|
| 1013 |
proc /proc proc defaults 0 0@end example |
|---|
| 1014 |
and @command{mount /proc}. |
|---|
| 1015 |
@end itemize |
|---|
| 1016 |
@item If you did @command{sensors -s}, did you run it as root? |
|---|
| 1017 |
@end itemize |
|---|
| 1018 |
|
|---|
| 1019 |
|
|---|
| 1020 |
@node Section 4.21, Section 4.22, Section 4.20, Problems |
|---|
| 1021 |
@section Sensors says @samp{No sensors found!} |
|---|
| 1022 |
|
|---|
| 1023 |
@itemize |
|---|
| 1024 |
@item Did @command{sensors-detect} find sensors? (If not @pxref{Sensors-detect doesnt find any sensors}) |
|---|
| 1025 |
@item Did you do what @command{sensors-detect} said? |
|---|
| 1026 |
@item Did you @command{modprobe} your sensor modules? |
|---|
| 1027 |
@item Did you @command{modprobe} your I2C adapter modules? |
|---|
| 1028 |
@item Did you @command{modprobe i2c-isa} if you have ISA sensor chips? |
|---|
| 1029 |
@item Check @command{lsmod}. |
|---|
| 1030 |
@end itemize |
|---|
| 1031 |
|
|---|
| 1032 |
|
|---|
| 1033 |
@node Section 4.22, Section 4.23, Section 4.21, Problems |
|---|
| 1034 |
@section Sensors output is not correct! |
|---|
| 1035 |
|
|---|
| 1036 |
What specifically is the trouble? |
|---|
| 1037 |
@itemize |
|---|
| 1038 |
@item Labels: @xref{Section 3.4.1, The labels for the voltage and temperature readings in sensors are incorrect}. |
|---|
| 1039 |
@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}. |
|---|
| 1040 |
@item AS99127F: @xref{Section 4.16, I ran sensors-detect but now I get very strange readings?}. |
|---|
| 1041 |
@item Via 686A: @xref{Section 4.16, I ran sensors-detect but now I get very strange readings?}. |
|---|
| 1042 |
@item Other specific chips: @xref{Section 4.16, I ran sensors-detect but now I get very strange readings?}. |
|---|
| 1043 |
@item No output for a particular sensors chip: @xref{Section 5.3, What to do if it inserts but nothing happens}. |
|---|
| 1044 |
@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}. |
|---|
| 1045 |
@item Completely bad output for a particular sensor chip: @xref{Section 5.4, What to do if I read only bogus information}. |
|---|
| 1046 |
@item One particular sensor readings: |
|---|
| 1047 |
@itemize |
|---|
| 1048 |
@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}. |
|---|
| 1049 |
@item Maybe it is hooked up differently on your motherboard? - adjust @file{sensors.conf} calculation. |
|---|
| 1050 |
@end itemize |
|---|
| 1051 |
@end itemize |
|---|
| 1052 |
|
|---|
| 1053 |
@node Section 4.23, Section 4.24, Section 4.22, Problems |
|---|
| 1054 |
@section What is at I2C address XXX? |
|---|
| 1055 |
|
|---|
| 1056 |
In general, we don't know. Start by running @command{sensors-detect}. |
|---|
| 1057 |
If it doesn't recognize it, try running @command{i2cdump}. A partial list |
|---|
| 1058 |
of manufacturers' IDs are at the bottom of @file{doc/chips/SUMMARY}. |
|---|
| 1059 |
|
|---|
| 1060 |
|
|---|
| 1061 |
@anchor{What is at I2C address 0x69} |
|---|
| 1062 |
@subsection What is at I2C address 0x69? |
|---|
| 1063 |
|
|---|
| 1064 |
A clock chip. Often, accessing these clock chips in the wrong |
|---|
| 1065 |
way will instantly crash your computer. Sensors-detect carefully |
|---|
| 1066 |
avoids these chips, and you should do too. You have been warned. |
|---|
| 1067 |
|
|---|
| 1068 |
|
|---|
| 1069 |
@anchor{What is at I2C addresses 0x50 - 0x57} |
|---|
| 1070 |
@subsection What is at I2C addresses 0x50 - 0x57? |
|---|
| 1071 |
|
|---|
| 1072 |
EEPROMs on your SDRAM DIMMs. Load the eeprom module to |
|---|
| 1073 |
look at some basic data in @command{sensors} or use the program |
|---|
| 1074 |
@command{prog/eeprom/decode-dimms.pl} to get more information than you ever wanted. |
|---|
| 1075 |
|
|---|
| 1076 |
|
|---|
| 1077 |
@anchor{What is at I2C addresses 0x30 - 0x37} |
|---|
| 1078 |
@subsection What is at I2C addresses 0x30 - 0x37? |
|---|
| 1079 |
|
|---|
| 1080 |
These are often 'shadows' of your EEPROMs on your SDRAM DIMMs |
|---|
| 1081 |
at addresses 0x50 - 0x57. They are the 'software write-protect' |
|---|
| 1082 |
registers of the SDRAM Serial Presence Detect EEPROMs. |
|---|
| 1083 |
If you try and |
|---|
| 1084 |
do a @command{i2cdump} on them to read the location, you won't get anything, |
|---|
| 1085 |
because they contain a single write-only register. |
|---|
| 1086 |
This register can be used to permanently |
|---|
| 1087 |
write-protect the contents of the eeprom. |
|---|
| 1088 |
|
|---|
| 1089 |
|
|---|
| 1090 |
@node Section 4.24, Section 4.25, Section 4.23, Problems |
|---|
| 1091 |
@section Sensors-detect doesn't work at all |
|---|
| 1092 |
|
|---|
| 1093 |
It could be many things. What was the problem? @xref{Section 4.31, Problems on particular motherboards}. |
|---|
| 1094 |
|
|---|
| 1095 |
|
|---|
| 1096 |
@anchor{Sensors-detect says "Couldnt open /proc/bus/i2c?!?"} |
|---|
| 1097 |
@subsection Sensors-detect says "Couldn't open /proc/bus/i2c?!?" |
|---|
| 1098 |
|
|---|
| 1099 |
You don't have i2c support in your kernel, or the i2c-core module |
|---|
| 1100 |
was not loaded and you did not run sensors-detect as root. |
|---|
| 1101 |
|
|---|
| 1102 |
|
|---|
| 1103 |
@anchor{Sensors-detect says "Cant open /dev/i2c[-/]0"} |
|---|
| 1104 |
@subsection Sensors-detect says "Can't open /dev/i2c[-/]0" |
|---|
| 1105 |
|
|---|
| 1106 |
Your @file{/dev/i2c-0,} @file{/dev/i2c0}, or @file{/dev/i2c/0} files do not exist |
|---|
| 1107 |
or you did not run @command{sensors-detect} as root. |
|---|
| 1108 |
Run the script @command{prog/mkdev/mkdev.sh} to create the @file{/dev/i2c-x} files. |
|---|
| 1109 |
Run @command{devfs} in the kernel to get the @file{/dev/i2c/x} files. |
|---|
| 1110 |
|
|---|
| 1111 |
|
|---|
| 1112 |
@anchor{Sensors-detect doesnt find any sensors} |
|---|
| 1113 |
@subsection Sensors-detect doesn't find any sensors! |
|---|
| 1114 |
|
|---|
| 1115 |
Either |
|---|
| 1116 |
@enumerate |
|---|
| 1117 |
@item The board doesn't have any sensors. |
|---|
| 1118 |
@item We don't support the sensors on the board. |
|---|
| 1119 |
@item The sensors it has are on an I2C bus connected to an I2C bus adapter that we don't support. |
|---|
| 1120 |
@item You don't have the latest version of lm_sensors. |
|---|
| 1121 |
@end enumerate |
|---|
| 1122 |
|
|---|
| 1123 |
But in any case you should figure out what is on the board: |
|---|
| 1124 |
@enumerate |
|---|
| 1125 |
@item Look at your motherboard. |
|---|
| 1126 |
@item Check the manufacturer's website. |
|---|
| 1127 |
@item Check the @uref{http://mbm.livewiredev.com/, Motherboard Monitor} website. |
|---|
| 1128 |
@end enumerate |
|---|
| 1129 |
|
|---|
| 1130 |
When you know what chips you have, check the |
|---|
| 1131 |
@uref{http://www.lm-sensors.org/wiki/Devices, Driver Status} web page to |
|---|
| 1132 |
see if support has been added for your chip in a later release or in SVN. |
|---|
| 1133 |
|
|---|
| 1134 |
|
|---|
| 1135 |
@node Section 4.25, Section 4.26, Section 4.24, Problems |
|---|
| 1136 |
@section Sensors says @samp{Error: Line xxx: zzzzzzz} |
|---|
| 1137 |
|
|---|
| 1138 |
These are errors from the libsensors library in |
|---|
| 1139 |
reading the @file{/etc/sensors.conf} configuration file. Go to that line |
|---|
| 1140 |
number and fix it. If you have a parse error, perhaps you have |
|---|
| 1141 |
to put the feature name in double quotes. |
|---|
| 1142 |
|
|---|
| 1143 |
|
|---|
| 1144 |
@node Section 4.26, Section 4.27, Section 4.25, Problems |
|---|
| 1145 |
@section Sensors only gives the name, adapter, and algorithm for my chip |
|---|
| 1146 |
|
|---|
| 1147 |
If @command{sensors} only says this, for example, and doesn't |
|---|
| 1148 |
provide any actual data at all: |
|---|
| 1149 |
|
|---|
| 1150 |
@example |
|---|
| 1151 |
it87-isa-0290 |
|---|
| 1152 |
Adapter: ISA adapter |
|---|
| 1153 |
Algorithm: ISA algorithm |
|---|
| 1154 |
@end example |
|---|
| 1155 |
|
|---|
| 1156 |
Your chip is not currently supported by @command{sensors} and so all it |
|---|
| 1157 |
does is print out that information. Get the latest release |
|---|
| 1158 |
and be sure you are running the @command{sensors} program it installed |
|---|
| 1159 |
and not some older @command{sensors}. |
|---|
| 1160 |
|
|---|
| 1161 |
|
|---|
| 1162 |
@node Section 4.27, Section 4.28, Section 4.26, Problems |
|---|
| 1163 |
@section Sensors says @samp{ERROR: Can't get xxxxx data!} |
|---|
| 1164 |
|
|---|
| 1165 |
@itemize |
|---|
| 1166 |
@item (Linux 2.6) Make sure you are using one of the |
|---|
| 1167 |
@uref{http://www.lm-sensors.org/wiki/Kernel2.6, |
|---|
| 1168 |
recommended kernel/lm_sensors combination}. |
|---|
| 1169 |
@item You have a @file{libsensors}/@command{sensors} mismatch. |
|---|
| 1170 |
@command{sensors} is unable to |
|---|
| 1171 |
get a data entry from @file{libsensors}. You probably have an |
|---|
| 1172 |
old @file{libsensors} in your @file{/etc/ld.so.conf} path. |
|---|
| 1173 |
Make sure you did (as root) a @command{make install} (Linux 2.4) or |
|---|
| 1174 |
@command{make user_install} (Linux 2.6) followed by a @command{ldconfig}. |
|---|
| 1175 |
Then check the output of @command{ldconfig -v | grep libsensors} to |
|---|
| 1176 |
verify that there is only ONE @file{libsensors} entry and that it matches |
|---|
| 1177 |
the @file{libsensors} that was built in the @file{lib/} directory in @file{lm_sensors2}. |
|---|
| 1178 |
@end itemize |
|---|
| 1179 |
|
|---|
| 1180 |
|
|---|
| 1181 |
@node Section 4.28, Section 4.29, Section 4.27, Problems |
|---|
| 1182 |
@section Sensors doesn't find any sensors, just eeproms. |
|---|
| 1183 |
|
|---|
| 1184 |
@xref{Section 4.24, Sensors-detect doesnt work at all}, if @command{sensors-detect} failed to find any sensors. |
|---|
| 1185 |
|
|---|
| 1186 |
If @command{sensors-detect} did find sensors, did you insert your modules? For chips on the ISA |
|---|
| 1187 |
bus, did you insert i2c-isa? |
|---|
| 1188 |
|
|---|
| 1189 |
@xref{Section 5.2, What to do if a module wont insert}, if the modules didn't insert, |
|---|
| 1190 |
also @ref{Section 4.21, Sensors says No sensors found}. |
|---|
| 1191 |
|
|---|
| 1192 |
|
|---|
| 1193 |
@node Section 4.29, Section 4.30, Section 4.28, Problems |
|---|
| 1194 |
@section Inserting modules hangs my board |
|---|
| 1195 |
|
|---|
| 1196 |
There are several possible causes: |
|---|
| 1197 |
@enumerate |
|---|
| 1198 |
@item Bus driver problems. Insert the bus driver first, before you have inserted any chip drivers, to verify. |
|---|
| 1199 |
@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}. |
|---|
| 1200 |
@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. |
|---|
| 1201 |
@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. |
|---|
| 1202 |
@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). |
|---|
| 1203 |
@end enumerate |
|---|
| 1204 |
|
|---|
| 1205 |
|
|---|
| 1206< |
|---|