fan_performance_states.rst 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ===========================
  3. ACPI Fan Performance States
  4. ===========================
  5. When the optional _FPS object is present under an ACPI device representing a
  6. fan (for example, PNP0C0B or INT3404), the ACPI fan driver creates additional
  7. "state*" attributes in the sysfs directory of the ACPI device in question.
  8. These attributes list properties of fan performance states.
  9. For more information on _FPS refer to the ACPI specification at:
  10. http://uefi.org/specifications
  11. For instance, the contents of the INT3404 ACPI device sysfs directory
  12. may look as follows::
  13. $ ls -l /sys/bus/acpi/devices/INT3404:00/
  14. total 0
  15. ...
  16. -r--r--r-- 1 root root 4096 Dec 13 20:38 state0
  17. -r--r--r-- 1 root root 4096 Dec 13 20:38 state1
  18. -r--r--r-- 1 root root 4096 Dec 13 20:38 state10
  19. -r--r--r-- 1 root root 4096 Dec 13 20:38 state11
  20. -r--r--r-- 1 root root 4096 Dec 13 20:38 state2
  21. -r--r--r-- 1 root root 4096 Dec 13 20:38 state3
  22. -r--r--r-- 1 root root 4096 Dec 13 20:38 state4
  23. -r--r--r-- 1 root root 4096 Dec 13 20:38 state5
  24. -r--r--r-- 1 root root 4096 Dec 13 20:38 state6
  25. -r--r--r-- 1 root root 4096 Dec 13 20:38 state7
  26. -r--r--r-- 1 root root 4096 Dec 13 20:38 state8
  27. -r--r--r-- 1 root root 4096 Dec 13 20:38 state9
  28. -r--r--r-- 1 root root 4096 Dec 13 01:00 status
  29. ...
  30. where each of the "state*" files represents one performance state of the fan
  31. and contains a colon-separated list of 5 integer numbers (fields) with the
  32. following interpretation::
  33. control_percent:trip_point_index:speed_rpm:noise_level_mdb:power_mw
  34. * ``control_percent``: The percent value to be used to set the fan speed to a
  35. specific level using the _FSL object (0-100).
  36. * ``trip_point_index``: The active cooling trip point number that corresponds
  37. to this performance state (0-9).
  38. * ``speed_rpm``: Speed of the fan in rotations per minute.
  39. * ``noise_level_mdb``: Audible noise emitted by the fan in this state in
  40. millidecibels.
  41. * ``power_mw``: Power draw of the fan in this state in milliwatts.
  42. For example::
  43. $cat /sys/bus/acpi/devices/INT3404:00/state1
  44. 25:0:3200:12500:1250
  45. When a given field is not populated or its value provided by the platform
  46. firmware is invalid, the "not-defined" string is shown instead of the value.
  47. ACPI Fan Fine Grain Control
  48. =============================
  49. When _FIF object specifies support for fine grain control, then fan speed
  50. can be set from 0 to 100% with the recommended minimum "step size" via
  51. _FSL object. User can adjust fan speed using thermal sysfs cooling device.
  52. Here use can look at fan performance states for a reference speed (speed_rpm)
  53. and set it by changing cooling device cur_state. If the fine grain control
  54. is supported then user can also adjust to some other speeds which are
  55. not defined in the performance states.
  56. The support of fine grain control is presented via sysfs attribute
  57. "fine_grain_control". If fine grain control is present, this attribute
  58. will show "1" otherwise "0".
  59. This sysfs attribute is presented in the same directory as performance states.
  60. ACPI Fan Performance Feedback
  61. =============================
  62. The optional _FST object provides status information for the fan device.
  63. This includes field to provide current fan speed in revolutions per minute
  64. at which the fan is rotating.
  65. This speed is presented in the sysfs using the attribute "fan_speed_rpm",
  66. in the same directory as performance states.