From e8a062b1fbfb3de885123d80051ea0a6a22f40c4 Mon Sep 17 00:00:00 2001 From: sashwinbalaji Date: Wed, 14 Dec 2022 15:27:01 +0800 Subject: [PATCH] thermal: Update VIRTUAL-BACK-CHARGER Sensor - Add triggerSensor - Increase PassiveDelay Bug: 254020998 Test: tested locally using emul_temp Change-Id: I349f85a60f82c97e27cb031c0cc3be30ae8f8981 --- thermal_info_config_charge_tangorpro.json | 4 ++++ thermal_info_config_tangorpro.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/thermal_info_config_charge_tangorpro.json b/thermal_info_config_charge_tangorpro.json index db6b9ec..f5e51ed 100644 --- a/thermal_info_config_charge_tangorpro.json +++ b/thermal_info_config_charge_tangorpro.json @@ -21,6 +21,7 @@ { "Name":"charger_skin_therm", "Type":"UNKNOWN", + "HotThreshold":["NAN", "39.0", "NAN", "NAN", "NAN", "NAN", "NAN"], "TempPath":"/dev/thermal/tz-by-name/charger_skin_therm/tz_temp", "Multiplier":0.001 }, @@ -47,6 +48,7 @@ "Type":"UNKNOWN", "Hidden":true, "VirtualSensor":true, + "TriggerSensor":"charger_skin_therm", "Formula":"WEIGHTED_AVG", "Combination":["neutral_therm", "quiet_therm", "charger_skin_therm", "disp_therm"], "Coefficient":["-0.148", "0.666", "0.256", "-0.079"], @@ -54,6 +56,8 @@ "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], "Offset":7137, "Multiplier":0.001, + "PollingDelay":300000, + "PassiveDelay":7000, "BindedCdevInfo": [ { "CdevRequest": "fcc", diff --git a/thermal_info_config_tangorpro.json b/thermal_info_config_tangorpro.json index 9dc971b..1862b6f 100644 --- a/thermal_info_config_tangorpro.json +++ b/thermal_info_config_tangorpro.json @@ -16,6 +16,7 @@ { "Name":"charger_skin_therm", "Type":"UNKNOWN", + "HotThreshold":["NAN", "39.0", "NAN", "NAN", "NAN", "NAN", "NAN"], "TempPath":"/dev/thermal/tz-by-name/charger_skin_therm/tz_temp", "Multiplier":0.001 }, @@ -80,6 +81,7 @@ "Type":"UNKNOWN", "Hidden":true, "VirtualSensor":true, + "TriggerSensor":"charger_skin_therm", "Formula":"WEIGHTED_AVG", "Combination":["neutral_therm", "quiet_therm", "charger_skin_therm", "disp_therm"], "Coefficient":["-0.148", "0.666", "0.256", "-0.079"], @@ -87,6 +89,8 @@ "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], "Offset":7137, "Multiplier":0.001, + "PollingDelay":300000, + "PassiveDelay":7000, "BindedCdevInfo": [ { "CdevRequest": "fcc",