162306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/type 262306a36Sopenharmony_ciDescription: 362306a36Sopenharmony_ci Strings which represent the thermal zone type. 462306a36Sopenharmony_ci This is given by thermal zone driver as part of registration. 562306a36Sopenharmony_ci E.g: "acpitz" indicates it's an ACPI thermal device. 662306a36Sopenharmony_ci In order to keep it consistent with hwmon sys attribute; this 762306a36Sopenharmony_ci should be a short, lowercase string, not containing spaces nor 862306a36Sopenharmony_ci dashes. 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci RO, Required 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/temp 1362306a36Sopenharmony_ciDescription: 1462306a36Sopenharmony_ci Current temperature as reported by thermal zone (sensor). 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci Unit: millidegree Celsius 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci RO, Required 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/mode 2162306a36Sopenharmony_ciDescription: 2262306a36Sopenharmony_ci One of the predefined values in [enabled, disabled]. 2362306a36Sopenharmony_ci This file gives information about the algorithm that is 2462306a36Sopenharmony_ci currently managing the thermal zone. It can be either default 2562306a36Sopenharmony_ci kernel based algorithm or user space application. 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci enabled 2862306a36Sopenharmony_ci enable Kernel Thermal management. 2962306a36Sopenharmony_ci disabled 3062306a36Sopenharmony_ci Preventing kernel thermal zone driver actions upon 3162306a36Sopenharmony_ci trip points so that user application can take full 3262306a36Sopenharmony_ci charge of the thermal management. 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci RW, Optional 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/policy 3762306a36Sopenharmony_ciDescription: 3862306a36Sopenharmony_ci One of the various thermal governors used for a particular zone. 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci RW, Required 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/available_policies 4362306a36Sopenharmony_ciDescription: 4462306a36Sopenharmony_ci Available thermal governors which can be used for a 4562306a36Sopenharmony_ci particular zone. 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ci RO, Required 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/trip_point_Y_temp 5062306a36Sopenharmony_ciDescription: 5162306a36Sopenharmony_ci The temperature above which trip point will be fired. 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci Unit: millidegree Celsius 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_ci RO, Optional 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/trip_point_Y_type 5862306a36Sopenharmony_ciDescription: 5962306a36Sopenharmony_ci Strings which indicate the type of the trip point. 6062306a36Sopenharmony_ci 6162306a36Sopenharmony_ci E.g. it can be one of critical, hot, passive, `active[0-*]` 6262306a36Sopenharmony_ci for ACPI thermal zone. 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ci RO, Optional 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/trip_point_Y_hyst 6762306a36Sopenharmony_ciDescription: 6862306a36Sopenharmony_ci The hysteresis value for a trip point, represented as an 6962306a36Sopenharmony_ci integer. 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ci Unit: Celsius 7262306a36Sopenharmony_ci 7362306a36Sopenharmony_ci RW, Optional 7462306a36Sopenharmony_ci 7562306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/cdevY 7662306a36Sopenharmony_ciDescription: 7762306a36Sopenharmony_ci Sysfs link to the thermal cooling device node where the sys I/F 7862306a36Sopenharmony_ci for cooling device throttling control represents. 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_ci RO, Optional 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/cdevY_trip_point 8362306a36Sopenharmony_ciDescription: 8462306a36Sopenharmony_ci The trip point in this thermal zone which `cdev[0-*]` is 8562306a36Sopenharmony_ci associated with; -1 means the cooling device is not 8662306a36Sopenharmony_ci associated with any trip point. 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ci RO, Optional 8962306a36Sopenharmony_ci 9062306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/cdevY_weight 9162306a36Sopenharmony_ciDescription: 9262306a36Sopenharmony_ci The influence of `cdev[0-*]` in this thermal zone. This value 9362306a36Sopenharmony_ci is relative to the rest of cooling devices in the thermal 9462306a36Sopenharmony_ci zone. For example, if a cooling device has a weight double 9562306a36Sopenharmony_ci than that of other, it's twice as effective in cooling the 9662306a36Sopenharmony_ci thermal zone. 9762306a36Sopenharmony_ci 9862306a36Sopenharmony_ci RW, Optional 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/emul_temp 10162306a36Sopenharmony_ciDescription: 10262306a36Sopenharmony_ci Interface to set the emulated temperature method in thermal zone 10362306a36Sopenharmony_ci (sensor). After setting this temperature, the thermal zone may 10462306a36Sopenharmony_ci pass this temperature to platform emulation function if 10562306a36Sopenharmony_ci registered or cache it locally. This is useful in debugging 10662306a36Sopenharmony_ci different temperature threshold and its associated cooling 10762306a36Sopenharmony_ci action. This is write only node and writing 0 on this node 10862306a36Sopenharmony_ci should disable emulation. 10962306a36Sopenharmony_ci 11062306a36Sopenharmony_ci Unit: millidegree Celsius 11162306a36Sopenharmony_ci 11262306a36Sopenharmony_ci WO, Optional 11362306a36Sopenharmony_ci 11462306a36Sopenharmony_ci WARNING: 11562306a36Sopenharmony_ci Be careful while enabling this option on production systems, 11662306a36Sopenharmony_ci because userland can easily disable the thermal policy by simply 11762306a36Sopenharmony_ci flooding this sysfs node with low temperature values. 11862306a36Sopenharmony_ci 11962306a36Sopenharmony_ci 12062306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/k_d 12162306a36Sopenharmony_ciDescription: 12262306a36Sopenharmony_ci The derivative term of the power allocator governor's PID 12362306a36Sopenharmony_ci controller. For more information see 12462306a36Sopenharmony_ci Documentation/driver-api/thermal/power_allocator.rst 12562306a36Sopenharmony_ci 12662306a36Sopenharmony_ci RW, Optional 12762306a36Sopenharmony_ci 12862306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/k_i 12962306a36Sopenharmony_ciDescription: 13062306a36Sopenharmony_ci The integral term of the power allocator governor's PID 13162306a36Sopenharmony_ci controller. This term allows the PID controller to compensate 13262306a36Sopenharmony_ci for long term drift. For more information see 13362306a36Sopenharmony_ci Documentation/driver-api/thermal/power_allocator.rst 13462306a36Sopenharmony_ci 13562306a36Sopenharmony_ci RW, Optional 13662306a36Sopenharmony_ci 13762306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/k_po 13862306a36Sopenharmony_ciDescription: 13962306a36Sopenharmony_ci The proportional term of the power allocator governor's PID 14062306a36Sopenharmony_ci controller during temperature overshoot. Temperature overshoot 14162306a36Sopenharmony_ci is when the current temperature is above the "desired 14262306a36Sopenharmony_ci temperature" trip point. For more information see 14362306a36Sopenharmony_ci Documentation/driver-api/thermal/power_allocator.rst 14462306a36Sopenharmony_ci 14562306a36Sopenharmony_ci RW, Optional 14662306a36Sopenharmony_ci 14762306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/k_pu 14862306a36Sopenharmony_ciDescription: 14962306a36Sopenharmony_ci The proportional term of the power allocator governor's PID 15062306a36Sopenharmony_ci controller during temperature undershoot. Temperature undershoot 15162306a36Sopenharmony_ci is when the current temperature is below the "desired 15262306a36Sopenharmony_ci temperature" trip point. For more information see 15362306a36Sopenharmony_ci Documentation/driver-api/thermal/power_allocator.rst 15462306a36Sopenharmony_ci 15562306a36Sopenharmony_ci RW, Optional 15662306a36Sopenharmony_ci 15762306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/integral_cutoff 15862306a36Sopenharmony_ciDescription: 15962306a36Sopenharmony_ci Temperature offset from the desired temperature trip point 16062306a36Sopenharmony_ci above which the integral term of the power allocator 16162306a36Sopenharmony_ci governor's PID controller starts accumulating errors. For 16262306a36Sopenharmony_ci example, if integral_cutoff is 0, then the integral term only 16362306a36Sopenharmony_ci accumulates error when temperature is above the desired 16462306a36Sopenharmony_ci temperature trip point. For more information see 16562306a36Sopenharmony_ci Documentation/driver-api/thermal/power_allocator.rst 16662306a36Sopenharmony_ci 16762306a36Sopenharmony_ci Unit: millidegree Celsius 16862306a36Sopenharmony_ci 16962306a36Sopenharmony_ci RW, Optional 17062306a36Sopenharmony_ci 17162306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/slope 17262306a36Sopenharmony_ciDescription: 17362306a36Sopenharmony_ci The slope constant used in a linear extrapolation model 17462306a36Sopenharmony_ci to determine a hotspot temperature based off the sensor's 17562306a36Sopenharmony_ci raw readings. It is up to the device driver to determine 17662306a36Sopenharmony_ci the usage of these values. 17762306a36Sopenharmony_ci 17862306a36Sopenharmony_ci RW, Optional 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/offset 18162306a36Sopenharmony_ciDescription: 18262306a36Sopenharmony_ci The offset constant used in a linear extrapolation model 18362306a36Sopenharmony_ci to determine a hotspot temperature based off the sensor's 18462306a36Sopenharmony_ci raw readings. It is up to the device driver to determine 18562306a36Sopenharmony_ci the usage of these values. 18662306a36Sopenharmony_ci 18762306a36Sopenharmony_ci RW, Optional 18862306a36Sopenharmony_ci 18962306a36Sopenharmony_ciWhat: /sys/class/thermal/thermal_zoneX/sustainable_power 19062306a36Sopenharmony_ciDescription: 19162306a36Sopenharmony_ci An estimate of the sustained power that can be dissipated by 19262306a36Sopenharmony_ci the thermal zone. Used by the power allocator governor. For 19362306a36Sopenharmony_ci more information see 19462306a36Sopenharmony_ci Documentation/driver-api/thermal/power_allocator.rst 19562306a36Sopenharmony_ci 19662306a36Sopenharmony_ci Unit: milliwatts 19762306a36Sopenharmony_ci 19862306a36Sopenharmony_ci RW, Optional 19962306a36Sopenharmony_ci 20062306a36Sopenharmony_ciWhat: /sys/class/thermal/cooling_deviceX/type 20162306a36Sopenharmony_ciDescription: 20262306a36Sopenharmony_ci String which represents the type of device, e.g: 20362306a36Sopenharmony_ci 20462306a36Sopenharmony_ci - for generic ACPI: should be "Fan", "Processor" or "LCD" 20562306a36Sopenharmony_ci - for memory controller device on intel_menlow platform: 20662306a36Sopenharmony_ci should be "Memory controller". 20762306a36Sopenharmony_ci 20862306a36Sopenharmony_ci RO, Required 20962306a36Sopenharmony_ci 21062306a36Sopenharmony_ciWhat: /sys/class/thermal/cooling_deviceX/max_state 21162306a36Sopenharmony_ciDescription: 21262306a36Sopenharmony_ci The maximum permissible cooling state of this cooling device. 21362306a36Sopenharmony_ci 21462306a36Sopenharmony_ci RO, Required 21562306a36Sopenharmony_ci 21662306a36Sopenharmony_ciWhat: /sys/class/thermal/cooling_deviceX/cur_state 21762306a36Sopenharmony_ciDescription: 21862306a36Sopenharmony_ci The current cooling state of this cooling device. 21962306a36Sopenharmony_ci The value can any integer numbers between 0 and max_state: 22062306a36Sopenharmony_ci 22162306a36Sopenharmony_ci - cur_state == 0 means no cooling 22262306a36Sopenharmony_ci - cur_state == max_state means the maximum cooling. 22362306a36Sopenharmony_ci 22462306a36Sopenharmony_ci RW, Required 22562306a36Sopenharmony_ci 22662306a36Sopenharmony_ciWhat: /sys/class/thermal/cooling_deviceX/stats/reset 22762306a36Sopenharmony_ciDescription: 22862306a36Sopenharmony_ci Writing any value resets the cooling device's statistics. 22962306a36Sopenharmony_ci 23062306a36Sopenharmony_ci WO, Required 23162306a36Sopenharmony_ci 23262306a36Sopenharmony_ciWhat: /sys/class/thermal/cooling_deviceX/stats/time_in_state_ms: 23362306a36Sopenharmony_ciDescription: 23462306a36Sopenharmony_ci The amount of time spent by the cooling device in various 23562306a36Sopenharmony_ci cooling states. The output will have "<state> <time>" pair 23662306a36Sopenharmony_ci in each line, which will mean this cooling device spent <time> 23762306a36Sopenharmony_ci msec of time at <state>. 23862306a36Sopenharmony_ci 23962306a36Sopenharmony_ci Output will have one line for each of the supported states. 24062306a36Sopenharmony_ci 24162306a36Sopenharmony_ci RO, Required 24262306a36Sopenharmony_ci 24362306a36Sopenharmony_ciWhat: /sys/class/thermal/cooling_deviceX/stats/total_trans 24462306a36Sopenharmony_ciDescription: 24562306a36Sopenharmony_ci A single positive value showing the total number of times 24662306a36Sopenharmony_ci the state of a cooling device is changed. 24762306a36Sopenharmony_ci 24862306a36Sopenharmony_ci RO, Required 24962306a36Sopenharmony_ci 25062306a36Sopenharmony_ciWhat: /sys/class/thermal/cooling_deviceX/stats/trans_table 25162306a36Sopenharmony_ciDescription: 25262306a36Sopenharmony_ci This gives fine grained information about all the cooling state 25362306a36Sopenharmony_ci transitions. The cat output here is a two dimensional matrix, 25462306a36Sopenharmony_ci where an entry <i,j> (row i, column j) represents the number 25562306a36Sopenharmony_ci of transitions from State_i to State_j. If the transition 25662306a36Sopenharmony_ci table is bigger than PAGE_SIZE, reading this will return 25762306a36Sopenharmony_ci an -EFBIG error. 25862306a36Sopenharmony_ci 25962306a36Sopenharmony_ci RO, Required 260