157caa923SMatthew Barth# deviation
257caa923SMatthew Barth
357caa923SMatthew Barth## Description
4a49e3f19SPatrick Williams
54c4de263SMatthew BarthThe +/- percentage allowed for the sensors of a fan to deviate from any
6a49e3f19SPatrick Williamsrequested target before being deemed out-of-spec and not functioning as expected
7a49e3f19SPatrick Williamsaccording to the target requested.
857caa923SMatthew Barth
9*f724c16bSMatt Spinler## Upper Deviation
10*f724c16bSMatt Spinler
11*f724c16bSMatt SpinlerIf 'upper_deviation' is specified, it will be used for the deviation above the
12*f724c16bSMatt Spinlertarget instead of 'deviation'.
13*f724c16bSMatt Spinler
1457caa923SMatthew Barth## Attribute Value(s)
15a49e3f19SPatrick Williams
164c4de263SMatthew Barthinteger (0 - 100)
1757caa923SMatthew Barth
184c4de263SMatthew BarthDeviation is represented as a percentage, so only 0 to 100 are valid values.
1957caa923SMatthew Barth
2057caa923SMatthew Barth## Example
21a49e3f19SPatrick Williams
224c4de263SMatthew Barth<pre><code>
234c4de263SMatthew Barth{
244c4de263SMatthew Barth  "fans": [
254c4de263SMatthew Barth    {
264c4de263SMatthew Barth      "inventory": "/system/chassis/motherboard/fan0",
274c4de263SMatthew Barth      "allowed_out_of_range_time": 30,
284c4de263SMatthew Barth      "functional_delay": 5,
294c4de263SMatthew Barth      <b><i>"deviation": 15</i></b>,
30*f724c16bSMatt Spinler      <b><i>"upper_deviation": 30</i></b>,
314c4de263SMatthew Barth      "num_sensors_nonfunc_for_fan_nonfunc": 1,
324c4de263SMatthew Barth      "monitor_start_delay": 30,
334c4de263SMatthew Barth      "fan_missing_error_delay": 20,
344c4de263SMatthew Barth      "nonfunc_rotor_error_delay": 0,
354c4de263SMatthew Barth      "sensors": [
364c4de263SMatthew Barth        {
374c4de263SMatthew Barth          "name": "fan0_0",
384c4de263SMatthew Barth          "has_target": true
394c4de263SMatthew Barth        },
404c4de263SMatthew Barth        {
414c4de263SMatthew Barth          "name": "fan0_1",
424c4de263SMatthew Barth          "has_target": false,
434c4de263SMatthew Barth          "factor": 1.45,
444c4de263SMatthew Barth          "offset": -909
454c4de263SMatthew Barth        }
464c4de263SMatthew Barth      ]
474c4de263SMatthew Barth    }
484c4de263SMatthew Barth  ]
494c4de263SMatthew Barth}
504c4de263SMatthew Barth</code></pre>
51