root/lm-sensors/trunk/doc/fan-divisors

Revision 4990, 2.9 KB (checked in by khali, 4 years ago)

Use /etc/sensors3.conf as the default configuration file. If it can't
be found, fallback to /etc/sensors.conf. This allows for an old
libsensors and a new libsensors to be installed in parallel, and each
one has its own configuration file.

One important change here is that the default configuration file will
be installed as /etc/sensors3.conf by "make install".

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1Fan reading problems and solutions
2----------------------------------
3
4If you aren't getting the expected readings on your fans,
5try the following:
6
7- Do you get a fan reading in the BIOS or using a different OS?
8  If not, you may not have a fan with a tachometer output.
9  Look and see. Fans with tachometer outputs have at least 3 wires.
10  Fans with only 2 wires cannot, in general, report their speed.
11
12- Try experimenting with the fan divisor settings:
13
14
15Fan Divisor Settings
16--------------------
17
18Fan Divisor     Minimum RPM     Maximum RPM
19-----------     -----------     -----------
20  1             5314            1350000
21  2             2657             675000         default on most chips
22  4             1328             337500
23  8              664             168750
24 16              332              84375         not supported on most chips
25 32              166              42187         ""
26 64               83              21093         ""
27128               41              10546         ""
28
29Pick a divisor so that the nominal RPM is about 50%
30above the minimum. This is a good compromise between
31margin and accuracy. Note that most chips only support
32fan divisors of 1, 2, 4, and 8.
33
34If you have a 0 RPM reading some or all of the time,
35increase the divisor until you get good readings.
36
37If you have a nominal reading less than 1.25 times the
38minimum, increase the divisor to give you margin
39so that you will not get spurious alarms.
40
41If you have a nominal reading more than 3 times the
42minimum, decrease the divisor to provide better
43accuracy.
44
45
46How to change fan divisors
47--------------------------
48
49Put an entry "set fanN_div X" in the appropriate section of
50/etc/sensors3.conf and run 'sensors -s'
51(N is the number of the fan, and X is the divisor you want).
52
53
54Further details
55---------------
56
57Fan divisors are quite confusing.
58
59Sensor chips count fan speed by using the fan signal
60to gate an 8-bit counter driven by a 22.5 kHz clock.
61So the _higher_ the counter value, the _slower_ the fan,
62and vice versa.
63
64The term 'fan divisor' is a misnomer because it doesn't divide
65the fan signal, it divides the 22.5 kHz clock.
66Thus you _increase_ the divisor if you have a slow fan.
67
68The drivers account for the 'fan divisor' in their calculation
69of RPM. So changing the fan divisor will NOT change the
70nominal RPM reading, it will only affect the minimum and maximum
71readings and the accuracy of the readings.
72
73The actual formula is RPM = (60 * 22500) / (count * divisor)
74
75The readings are most accurate when the fan speed is low
76(i.e., close to the minimum possible RPM reading).
77As fan speed gets closer to the maximum possible RPM reading,
78the reading becomes quite inaccurate. Fortunately, most computer
79fans do not approach 1,000,000 RPM !
80
81
82Fan readings 2X too high
83------------------------
84
85This is rare, but can happen. This is typically caused by a fan which
86outputs 4 pulses by revolution, instead of the standard 2.
87
88As we learned above, you can _not_ fix this by changing
89the fan divisor. You must add entries into the appropriate
90section of /etc/sensors3.conf:
91
92        compute fanN  @/2,  2*@
93
94(N is the number of the fan)
95
96
97
98------------------
99Copyright (c) 2000-2004 Mark D. Studebaker
Note: See TracBrowser for help on using the browser.