Skip to main content
The thermal zone connects the 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
CommandsDescription
ls /sys/class/thermal/thermal_zone*Lists all thermal zones and their IDs that the device contains
cat /sys/class/thermal/thermal_zone<x>/typecat /sys/class/thermal/thermal_zone<x>/type
echo enabled > /sys/class/thermal/thermal_zone<x>/modeEnables a thermal zone Note All thermal zones are enabled by default.
echo disabled > /sys/class/thermal/thermal_zone<x>/modeDisables 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
  • Modifies the threshold temperature for trip point A
  • Verify the number of trip points available to the thermal zone in the thermal zone directory and run the command: > text > /sys/class/thermal/thermal_zone<x> >

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.

Next steps: