diff --git a/configs/thermal-engine-vr.conf b/configs/thermal-engine-vr.conf new file mode 100644 index 0000000..b185a4b --- /dev/null +++ b/configs/thermal-engine-vr.conf @@ -0,0 +1,26 @@ +[SKIN_SHUTDOWN] +algo_type monitor +sampling 1000 +sensor emmc_therm +thresholds 62000 +thresholds_clr 61000 +actions shutdown +action_info 1 + +[VR-EMMC] +algo_type monitor +sensor emmc_therm +sampling 1000 +thresholds 58000 +thresholds_clr 52000 +actions cluster0+cluster1+gpu+report +action_info 691200+691200+214000000+1 + +[BATTERY-MONITOR] +algo_type monitor +sampling 2000 +sensor emmc_therm +thresholds 56000 +thresholds_clr 54000 +actions battery +action_info 3 diff --git a/configs/thermal-engine.conf b/configs/thermal-engine.conf new file mode 100644 index 0000000..d22f240 --- /dev/null +++ b/configs/thermal-engine.conf @@ -0,0 +1,95 @@ +[SKIN_SHUTDOWN] +algo_type monitor +sampling 1000 +sensor emmc_therm +thresholds 62000 +thresholds_clr 61000 +actions shutdown +action_info 1 + +[THROTTLING-NOTIFY] +algo_type monitor +sampling 2000 +sensor emmc_therm +thresholds 47000 +thresholds_clr 44000 +actions report +action_info 1 + +[SKIN-HIGH-FLOOR] +algo_type ss +sampling 2000 +sensor emmc_therm +device cpu_voltage +set_point 47000 +set_point_clr 44000 +device_perf_floor 1670400 +time_constant 0 + +[SKIN-MID-FLOOR] +algo_type ss +sampling 2000 +sensor emmc_therm +device cpu_voltage +set_point 49000 +set_point_clr 48000 +device_perf_floor 1440000 +time_constant 0 + +[SKIN-LOW-FLOOR] +algo_type ss +sampling 2000 +sensor emmc_therm +device cpu_voltage +set_point 51000 +set_point_clr 50000 +device_perf_floor 1132800 +time_constant 0 + +[SKIN-RESTRICT-FLOOR] +algo_type ss +sampling 2000 +sensor emmc_therm +device cpu_voltage +set_point 54000 +set_point_clr 52000 +device_perf_floor 768000 +time_constant 0 + +[SKIN-CRITICAL] +algo_type monitor +sensor emmc_therm +sampling 1000 +thresholds 56000 58000 +thresholds_clr 55000 57000 +actions cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report +action_info 691200+691200+133000000+1 307200+307200+133000000+1 + +[BATTERY-MONITOR] +algo_type monitor +sampling 2000 +sensor emmc_therm +thresholds 56000 +thresholds_clr 54000 +actions battery +action_info 3 + +[HOT-SKIN-VIRTUAL] +algo_type virtual +trip_sensor emmc_therm +sensors tsens_tz_sensor15 tsens_tz_sensor0 +list_cnt 2 +weights 1 -1 +set_point 47000 +set_point_clr 44000 +sampling 1000 +math 0 + +[VIRTUAL-SS-GPU-SKIN] +algo_type ss +sensor HOT-SKIN-VIRTUAL +device gpu +sampling 2000 +set_point 7000 +set_point_clr 2000 +device_max_limit 400000000 diff --git a/msm8996.mk b/msm8996.mk index cdecdcb..e8d5986 100755 --- a/msm8996.mk +++ b/msm8996.mk @@ -411,6 +411,10 @@ PRODUCT_PACKAGES += \ android.hardware.thermal@1.0-service \ thermal.msm8996 +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \ + $(LOCAL_PATH)/configs/thermal-engine-vr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-vr.conf + # TextClassifier PRODUCT_PACKAGES += \ textclassifier.bundle1