# 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: `<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 device<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>Here,<br><br>`trip_temp`<br>                                is the temperature threshold in m°C. `A` denotes trip<br>                                point numerical.<br>For example, you can modify the 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` | <ul class="ul" id="thermalzone__ul_uh3_4pt_vcc"><br>                                    <li class="li">Modifies threshold temperature for trip point A</li><br><br>                                    <li class="li">Verify the number of trip points available to the thermal<br>                                        zone in the thermal zone<br>                                        directory:<pre class="pre codeblock" id="thermalzone__codeblock_eps_cxt_vcc"><code>/sys/class/thermal/thermal_zone&lt;x&gt;</code><span class="copyclip"><svg xmlns="http://www.w3.org/2000/svg" class="copyclipicon" width="25px" height="25px" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><title>Copy to clipboard</title><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span></pre><br>                                        and run the command</li><br><br>                                </ul> |
| `echo <trip_hyst> ><br>                                    /sys/class/thermal/thermal_zone<x>/trip_point_<A>_hyst`<br>Here,<br><br>`trip_hyst`<br>                                is hysteresis value in m°C. `A` denotes trip point<br>                                numerical. <br>For example, you can modify hysteresis for trip point<br>                                    0, which means a 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_hyst` | <ul class="ul" id="thermalzone__ul_w4w_2xt_vcc"><br>                                        <li class="li">Modifies hysteresis value for trip point A</li><br><br>                                        <li class="li">Verify the number of trip points available to the<br>                                            thermal zone in the thermal zone<br>                                            directory:<pre class="pre codeblock" id="thermalzone__codeblock_x4w_2xt_vcc"><code>/sys/class/thermal/thermal_zone&lt;x&gt;</code><span class="copyclip"><svg xmlns="http://www.w3.org/2000/svg" class="copyclipicon" width="25px" height="25px" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><title>Copy to clipboard</title><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></span></pre><br>                                            and run the command</li><br><br>                                    </ul> |

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)