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 |
|---|---|
| ls /sys/class/thermal/thermal_zone* | Lists all thermal zones and their IDs that the device contains |
| cat /sys/class/thermal/thermal_zone<x>/type | cat /sys/class/thermal/thermal_zone<x>/type |
| echo enabled > /sys/class/thermal/thermal_zone<x>/mode | Enables a thermal zone Note All thermal zones are enabled by default. |
| echo disabled > /sys/class/thermal/thermal_zone<x>/mode | Disables a thermal zone |
| echo <trip_temp> >/sys/class/thermal/thermal_zone<x>/trip_point_<A>_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 |
|
Note Modifications to the temperature threshold configurations should be for test purpose only. Don’t change any thermal zone configurations of Tsens. Resetting the device changes modifications performed through sysfs commands to default values. 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 thermal zone.

