sysfs-class-thermal 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. What: /sys/class/thermal/thermal_zoneX/type
  2. Description:
  3. Strings which represent the thermal zone type.
  4. This is given by thermal zone driver as part of registration.
  5. E.g: "acpitz" indicates it's an ACPI thermal device.
  6. In order to keep it consistent with hwmon sys attribute; this
  7. shouldbe a short, lowercase string, not containing spaces nor
  8. dashes.
  9. RO, Required
  10. What: /sys/class/thermal/thermal_zoneX/temp
  11. Description:
  12. Current temperature as reported by thermal zone (sensor).
  13. Unit: millidegree Celsius
  14. RO, Required
  15. What: /sys/class/thermal/thermal_zoneX/mode
  16. Description:
  17. One of the predefined values in [enabled, disabled].
  18. This file gives information about the algorithm that is
  19. currently managing the thermal zone. It can be either default
  20. kernel based algorithm or user space application.
  21. enabled
  22. enable Kernel Thermal management.
  23. disabled
  24. Preventing kernel thermal zone driver actions upon
  25. trip points so that user application can take full
  26. charge of the thermal management.
  27. RW, Optional
  28. What: /sys/class/thermal/thermal_zoneX/policy
  29. Description:
  30. One of the various thermal governors used for a particular zone.
  31. RW, Required
  32. What: /sys/class/thermal/thermal_zoneX/available_policies
  33. Description:
  34. Available thermal governors which can be used for a
  35. particular zone.
  36. RO, Required
  37. What: /sys/class/thermal/thermal_zoneX/trip_point_Y_temp
  38. Description:
  39. The temperature above which trip point will be fired.
  40. Unit: millidegree Celsius
  41. RO, Optional
  42. What: /sys/class/thermal/thermal_zoneX/trip_point_Y_type
  43. Description:
  44. Strings which indicate the type of the trip point.
  45. E.g. it can be one of critical, hot, passive, `active[0-*]`
  46. for ACPI thermal zone.
  47. RO, Optional
  48. What: /sys/class/thermal/thermal_zoneX/trip_point_Y_hyst
  49. Description:
  50. The hysteresis value for a trip point, represented as an
  51. integer.
  52. Unit: Celsius
  53. RW, Optional
  54. What: /sys/class/thermal/thermal_zoneX/cdevY
  55. Description:
  56. Sysfs link to the thermal cooling device node where the sys I/F
  57. for cooling device throttling control represents.
  58. RO, Optional
  59. What: /sys/class/thermal/thermal_zoneX/cdevY_trip_point
  60. Description:
  61. The trip point in this thermal zone which `cdev[0-*]` is
  62. associated with; -1 means the cooling device is not
  63. associated with any trip point.
  64. RO, Optional
  65. What: /sys/class/thermal/thermal_zoneX/cdevY_weight
  66. Description:
  67. The influence of `cdev[0-*]` in this thermal zone. This value
  68. is relative to the rest of cooling devices in the thermal
  69. zone. For example, if a cooling device has a weight double
  70. than that of other, it's twice as effective in cooling the
  71. thermal zone.
  72. RW, Optional
  73. What: /sys/class/thermal/thermal_zoneX/emul_temp
  74. Description:
  75. Interface to set the emulated temperature method in thermal zone
  76. (sensor). After setting this temperature, the thermal zone may
  77. pass this temperature to platform emulation function if
  78. registered or cache it locally. This is useful in debugging
  79. different temperature threshold and its associated cooling
  80. action. This is write only node and writing 0 on this node
  81. should disable emulation.
  82. Unit: millidegree Celsius
  83. WO, Optional
  84. WARNING:
  85. Be careful while enabling this option on production systems,
  86. because userland can easily disable the thermal policy by simply
  87. flooding this sysfs node with low temperature values.
  88. What: /sys/class/thermal/thermal_zoneX/k_d
  89. Description:
  90. The derivative term of the power allocator governor's PID
  91. controller. For more information see
  92. Documentation/driver-api/thermal/power_allocator.rst
  93. RW, Optional
  94. What: /sys/class/thermal/thermal_zoneX/k_i
  95. Description:
  96. The integral term of the power allocator governor's PID
  97. controller. This term allows the PID controller to compensate
  98. for long term drift. For more information see
  99. Documentation/driver-api/thermal/power_allocator.rst
  100. RW, Optional
  101. What: /sys/class/thermal/thermal_zoneX/k_po
  102. Description:
  103. The proportional term of the power allocator governor's PID
  104. controller during temperature overshoot. Temperature overshoot
  105. is when the current temperature is above the "desired
  106. temperature" trip point. For more information see
  107. Documentation/driver-api/thermal/power_allocator.rst
  108. RW, Optional
  109. What: /sys/class/thermal/thermal_zoneX/k_pu
  110. Description:
  111. The proportional term of the power allocator governor's PID
  112. controller during temperature undershoot. Temperature undershoot
  113. is when the current temperature is below the "desired
  114. temperature" trip point. For more information see
  115. Documentation/driver-api/thermal/power_allocator.rst
  116. RW, Optional
  117. What: /sys/class/thermal/thermal_zoneX/integral_cutoff
  118. Description:
  119. Temperature offset from the desired temperature trip point
  120. above which the integral term of the power allocator
  121. governor's PID controller starts accumulating errors. For
  122. example, if integral_cutoff is 0, then the integral term only
  123. accumulates error when temperature is above the desired
  124. temperature trip point. For more information see
  125. Documentation/driver-api/thermal/power_allocator.rst
  126. Unit: millidegree Celsius
  127. RW, Optional
  128. What: /sys/class/thermal/thermal_zoneX/slope
  129. Description:
  130. The slope constant used in a linear extrapolation model
  131. to determine a hotspot temperature based off the sensor's
  132. raw readings. It is up to the device driver to determine
  133. the usage of these values.
  134. RW, Optional
  135. What: /sys/class/thermal/thermal_zoneX/offset
  136. Description:
  137. The offset constant used in a linear extrapolation model
  138. to determine a hotspot temperature based off the sensor's
  139. raw readings. It is up to the device driver to determine
  140. the usage of these values.
  141. RW, Optional
  142. What: /sys/class/thermal/thermal_zoneX/sustainable_power
  143. Description:
  144. An estimate of the sustained power that can be dissipated by
  145. the thermal zone. Used by the power allocator governor. For
  146. more information see
  147. Documentation/driver-api/thermal/power_allocator.rst
  148. Unit: milliwatts
  149. RW, Optional
  150. What: /sys/class/thermal/cooling_deviceX/type
  151. Description:
  152. String which represents the type of device, e.g:
  153. - for generic ACPI: should be "Fan", "Processor" or "LCD"
  154. - for memory controller device on intel_menlow platform:
  155. should be "Memory controller".
  156. RO, Required
  157. What: /sys/class/thermal/cooling_deviceX/max_state
  158. Description:
  159. The maximum permissible cooling state of this cooling device.
  160. RO, Required
  161. What: /sys/class/thermal/cooling_deviceX/cur_state
  162. Description:
  163. The current cooling state of this cooling device.
  164. The value can any integer numbers between 0 and max_state:
  165. - cur_state == 0 means no cooling
  166. - cur_state == max_state means the maximum cooling.
  167. RW, Required
  168. What: /sys/class/thermal/cooling_deviceX/stats/reset
  169. Description:
  170. Writing any value resets the cooling device's statistics.
  171. WO, Required
  172. What: /sys/class/thermal/cooling_deviceX/stats/time_in_state_ms:
  173. Description:
  174. The amount of time spent by the cooling device in various
  175. cooling states. The output will have "<state> <time>" pair
  176. in each line, which will mean this cooling device spent <time>
  177. msec of time at <state>.
  178. Output will have one line for each of the supported states.
  179. RO, Required
  180. What: /sys/class/thermal/cooling_deviceX/stats/total_trans
  181. Description:
  182. A single positive value showing the total number of times
  183. the state of a cooling device is changed.
  184. RO, Required
  185. What: /sys/class/thermal/cooling_deviceX/stats/trans_table
  186. Description:
  187. This gives fine grained information about all the cooling state
  188. transitions. The cat output here is a two dimensional matrix,
  189. where an entry <i,j> (row i, column j) represents the number
  190. of transitions from State_i to State_j. If the transition
  191. table is bigger than PAGE_SIZE, reading this will return
  192. an -EFBIG error.
  193. RO, Required