# Thermal zone

Source: [https://docs.qualcomm.com/doc/80-70014-30/topic/thermalzone.html](https://docs.qualcomm.com/doc/80-70014-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: `<x>` in the table represents thermal zone
                ID.

Table : Description of thermal zone commands

| Commands | Description |
| --- | --- |
| `cat<br>                                    /sys/class/thermal/thermal_zone*` | Lists all thermal zones and their IDs that the platform<br>                                contains |
| `echo enabled ><br>                                    /sys/class/thermal/thermal_zone<x>/mode` | Enables a thermal zone<br>Note: All thermal<br>                                    zones are enabled by default. |
| `echo disabled ><br>                                    /sys/class/thermal/thermal_zone<x>/mode ` | Disables a thermal zone |
| `echo trip_temp ><br>                                    /sys/class/thermal/thermal_zone<x>/trip_point_<A>_temp`<br>Note: `trip_temp` is the<br>                                    temperature threshold in m°C. `A` denotes trip<br>                                    point numerical.<br>For example, you can modify temperature<br>                                        threshold for a trip point 0 using the following<br>                                        command:<br><br><br>`echo 95000 ><br>                                            /sys/class/thermal/thermal_zone20/trip_point_0_temp` | Modifies threshold temperature for trip point A |
| `echo trip_hyst ><br>                                    /sys/class/thermal/thermal_zone<x>/trip_point_<A>_hyst`<br>Note: `trip_hyst` is hysteresis<br>                                    value in m°C. `A` denotes  trip point numerical.<br>                                        <br>For example, you can modify hysteresis for trip point 0,<br>                                        which means clear threshold is triggered at trip\_temp-1000<br>                                        m°C using the following command:<br><br><br>`echo 1000 ><br>                                            /sys/class/thermal/thermal_zone20/trip_point_0_temp` | Modifies hysteresis value for trip point A |

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 platform is  reset.

You can add product specific thermal zone and its rules in the device tree to control the
            temperature of the platform according to the thermal requirement as described in: [Configure a new thermal zone](https://docs.qualcomm.com/doc/80-70014-30/topic/customize.html#customize__section_lq4_xxb_51c).

**Parent Topic:** [Interfaces](https://docs.qualcomm.com/doc/80-70014-30/topic/thermal-interfaces.html)

Last Published: Jul 15, 2024

[Previous Topic
Interfaces](https://docs.qualcomm.com/bundle/publicresource/80-70014-30/topics/thermal-interfaces.md) [Next Topic
Cooling devices](https://docs.qualcomm.com/bundle/publicresource/80-70014-30/topics/coolingdevices.md)