# Thermal zone Source: [https://docs.qualcomm.com/doc/80-70015-30/topic/thermalzone.html](https://docs.qualcomm.com/doc/80-70015-30/topic/thermalzone.html) The thermal zone connects Tsens hardware information, temperature thresholds, and mitigation actions. The thermal framework creates node IDs for each thermal zone rule defined in the device tree. The following table lists the `sysfs` commands used to read and customize the thermal zone configurations: Note: `` in the table represents thermal zone ID. Table : Description of thermal zone commands | Commands | Description | | --- | --- | | `cat
/sys/class/thermal/thermal_zone*` | Lists all thermal zones and their IDs that the device
contains | | `echo enabled >
/sys/class/thermal/thermal_zone/mode` | Enables a thermal zone
Note: All thermal
zones are enabled by default. | | `echo disabled >
/sys/class/thermal/thermal_zone/mode ` | Disables a thermal zone | | `echo
>/sys/class/thermal/thermal_zone/trip_point__temp`
Here,

`trip_temp`
is the temperature threshold in m°C. `A` denotes trip
point numerical.
For example, you can modify the temperature
threshold for a trip point 0 using the following
command:


`echo 95000 >
/sys/class/thermal/thermal_zone20/trip_point_0_temp` |

  • Modifies threshold temperature for trip point A


  • Verify the number of trip points available to the thermal
    zone in the thermal zone
    directory:
    /sys/class/thermal/thermal_zone<x>Copy to clipboard

    and run the command


| | `echo >
/sys/class/thermal/thermal_zone/trip_point_
_hyst`
Here,

`trip_hyst`
is hysteresis value in m°C. `A` denotes trip point
numerical.
For example, you can modify hysteresis for trip point
0, which means a clear threshold is triggered at trip\_temp-1000
m°C using the following command:


`echo 1000 >
/sys/class/thermal/thermal_zone20/trip_point_0_hyst` |

  • Modifies hysteresis value for trip point A


  • Verify the number of trip points available to the
    thermal zone in the thermal zone
    directory:
    /sys/class/thermal/thermal_zone<x>Copy to clipboard

    and run the command


| Note: Modifications to temperature threshold configurations should be for test purpose only. Do not change any thermal zone configurations of Tsens. Modifications performed through `sysfs` commands are changed to default values when the device is reset. You can add a product specific thermal zone and its rules in the device tree to control the temperature of the device according to the thermal requirement as described in: [Configure a new thermal zone](https://docs.qualcomm.com/doc/80-70015-30/topic/customize.html#customize__section_lq4_xxb_51c). **Parent Topic:** [Interfaces](https://docs.qualcomm.com/doc/80-70015-30/topic/thermal-interfaces.html) Last Published: Oct 16, 2024 [Previous Topic Interfaces](https://docs.qualcomm.com/bundle/publicresource/80-70015-30/topics/thermal-interfaces.md) [Next Topic Cooling devices](https://docs.qualcomm.com/bundle/publicresource/80-70015-30/topics/coolingdevices.md)