# User space thermal engine

Source: [https://docs.qualcomm.com/doc/80-88500-4/topic/56_User_space_thermal_engine.html](https://docs.qualcomm.com/doc/80-88500-4/topic/56_User_space_thermal_engine.html)

In the user space, the thermal engine has reworked the thermal daemon to enable
    integration with the sensor manager and allow for multiple algorithms to run in
    parallel.

The following are the features of user space thermal engine:

- Thermal engine – Supports both monitor and dynamic thermal management (DTM) algorithms running
        in parallel
- DTM – Exhibits reduced tuning effort and improved average dhrystone million instructions
        per second (DMIPS)
- Virtual sensor – A combination of more than two sensor readings with associated weights to
        accurately correlate skin temperature
- Override mode – Thresholds are shifted by the predefined constant, for example, by
        relaxing thermal mitigation for specific use cases, such as benchmark programs, when the
        mode is enabled
- Dynamic parameter update – Important set of thermal engine configuration parameters can be
        updated at runtime for better use case-specific DTM

## Thermal engine configuration examples

- Debug mode and default sampling

        debug
        sampling	1000
        Copy to clipboard

- Monitor algorithm instance
          example

        [BATTERY-CHARGING-EXAMPLE-RULE]	
        algo_type   monitor
        Sensor     quiet_therm
        Sampling    2000
        Thresholds   43000 45000
        thresholds_clr 41000 43000
        Actions    battery 
        action_info  2 3
        Copy to clipboard

- Dynamic algorithm instance example

        [SS-CPU0]
        algo_type ss
        sampling 10
        sensor cpu0-silver-usr
        device cpu0
        set_point 85000
        set_point_clr 65000
        time_constant 0
        Copy to clipboard

**Parent Topic:** [Software thermal management](https://docs.qualcomm.com/doc/80-88500-4/topic/52_Software_thermal_management.html)

Last Published: Aug 18, 2023

[Previous Topic
Limits management hardening](https://docs.qualcomm.com/bundle/publicresource/80-88500-4/topics/55_Limits_management_hardening.md) [Next Topic
Thermal mitigation](https://docs.qualcomm.com/bundle/publicresource/80-88500-4/topics/57_Thermal_mitigation.md)