From b486f5a3ee3fc3c7ac98e8a51377dce7cbb22a6b Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Fri, 7 Jul 2023 14:20:25 -0700 Subject: [PATCH] thermal: modify emergency and shutdown threshold Bug: 289752109 Test: adb shell cat /dev/thermal/tz-by-name/skin_therm/trip_point_*_temp Test: adb shell dumpsys android.hardware.thermal.IThermal/default Change-Id: I619fd5a5ee4e668430b4002c58123525e9b14812 --- conf/init.felix.rc | 4 ++++ thermal_info_config_felix.json | 10 +++++----- thermal_info_config_proactive_skin_felix.json | 10 +++++----- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/conf/init.felix.rc b/conf/init.felix.rc index 34059f0..1b5ce74 100644 --- a/conf/init.felix.rc +++ b/conf/init.felix.rc @@ -106,6 +106,10 @@ on property:vendor.mfgapi.touchpanel.permission=1 on property:persist.device_config.vendor_system_native_boot.thermal_proactive_skin=1 setprop vendor.thermal.config "thermal_info_config_proactive_skin.json" +on property:vendor.thermal.link_ready=1 + write /dev/thermal/tz-by-name/skin_therm/trip_point_1_temp 61000 + write /dev/thermal/tz-by-name/skin_therm/trip_point_2_temp 63000 + # Bluetooth on post-fs-data chown bluetooth system /proc/bluetooth/timesync diff --git a/thermal_info_config_felix.json b/thermal_info_config_felix.json index 6bbb5b0..6a35aab 100644 --- a/thermal_info_config_felix.json +++ b/thermal_info_config_felix.json @@ -270,7 +270,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 51.0, 54.0], + "HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 53.0, 57.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], "Multiplier":0.001, "SendPowerHint":true, @@ -285,7 +285,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 52.5, "NAN"], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 55.0, "NAN"], "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0], "Multiplier":0.001, "PollingDelay":300000, @@ -301,7 +301,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", 37.0, 39.0, 41.0, 46.5, 51.0, 54.0], + "HotThreshold":["NAN", 37.0, 39.0, 41.0, 46.5, 53.0, 57.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], "Multiplier":0.001, "PollingDelay":300000, @@ -362,7 +362,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 51.0, 54.0], + "HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 53.0, 57.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], "Multiplier":0.001, "PollingDelay":300000, @@ -427,7 +427,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", 25.0, 39.0, 41.0, 45.0, 46.5, 54.0], + "HotThreshold":["NAN", 25.0, 39.0, 41.0, 45.0, 46.5, 57.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.4, 1.9], "Multiplier":0.001, "PollingDelay":60000, diff --git a/thermal_info_config_proactive_skin_felix.json b/thermal_info_config_proactive_skin_felix.json index 1b7c446..1a6321f 100644 --- a/thermal_info_config_proactive_skin_felix.json +++ b/thermal_info_config_proactive_skin_felix.json @@ -270,7 +270,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", 37.0, 41.0, 45.0, 46.5, 51.0, 54.0], + "HotThreshold":["NAN", 37.0, 41.0, 45.0, 46.5, 53.0, 57.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], "Multiplier":0.001, "SendPowerHint":true, @@ -285,7 +285,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 52.5, "NAN"], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 55.0, "NAN"], "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0], "Multiplier":0.001, "PollingDelay":300000, @@ -301,7 +301,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", 37.0, 39.0, 41.0, 46.5, 51.0, 54.0], + "HotThreshold":["NAN", 37.0, 39.0, 41.0, 46.5, 53.0, 57.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], "Multiplier":0.001, "PollingDelay":300000, @@ -362,7 +362,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 51.0, 54.0], + "HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 53.0, 57.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], "Multiplier":0.001, "PollingDelay":300000, @@ -427,7 +427,7 @@ "Formula":"MAXIMUM", "Combination":["VIRTUAL-SKIN"], "Coefficient":[1.0], - "HotThreshold":["NAN", 25.0, 39.0, 41.0, 45.0, 46.5, 54.0], + "HotThreshold":["NAN", 25.0, 39.0, 41.0, 45.0, 46.5, 57.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.4, 1.9], "Multiplier":0.001, "PollingDelay":60000,