From fc365a9d48bcb6dba99a0abf139df9fa56ff3b7e Mon Sep 17 00:00:00 2001 From: sashwinbalaji Date: Tue, 2 Jan 2024 13:03:50 +0800 Subject: [PATCH] thermal: Add INNER-DISPLAY-DIFF virtual sensor. Add LEFT-INNER-DISPLAY, RIGHT-INNER-DISPLAY virtual sensors. Add INNER-DISPLAY-DIFF (diff of right - left) virtual sensor. The INNER-DISPLAY-DIFF sensor will be used for inner display thermal compensation. Bug: 309716793 Test: Push config to device and verify thermal log and lshal Change-Id: I4f7fbb2006b84dd6ab945d0de94f5d5ca2ffcd49 --- thermal/thermal_info_config_backup_comet.json | 31 +++++++++++++++++++ thermal/thermal_info_config_comet.json | 31 +++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/thermal/thermal_info_config_backup_comet.json b/thermal/thermal_info_config_backup_comet.json index b73e51d..0dd0b2f 100644 --- a/thermal/thermal_info_config_backup_comet.json +++ b/thermal/thermal_info_config_backup_comet.json @@ -305,6 +305,37 @@ "PollingDelay": 300000, "PassiveDelay": 7000 }, + { + "Name": "LEFT-INNER-DISPLAY", + "Type": "UNKNOWN", + "Hidden": true, + "VirtualSensor": true, + "Formula": "WEIGHTED_AVG", + "Combination": ["usb_conn_therm"], + "Coefficient": [0.561], + "Offset": 10729, + "Multiplier": 0.001 + }, + { + "Name": "RIGHT-INNER-DISPLAY", + "Type": "UNKNOWN", + "Hidden": true, + "VirtualSensor": true, + "Formula": "WEIGHTED_AVG", + "Combination": ["soc_therm"], + "Coefficient": [0.799], + "Offset": 1620, + "Multiplier": 0.001 + }, + { + "Name": "INNER-DISPLAY-DIFF", + "Type": "UNKNOWN", + "VirtualSensor": true, + "Formula": "WEIGHTED_AVG", + "Combination": ["RIGHT-INNER-DISPLAY", "LEFT-INNER-DISPLAY"], + "Coefficient": [1.0, -1.0], + "Multiplier": 0.001 + }, { "Name": "LITTLE", "Type": "CPU", diff --git a/thermal/thermal_info_config_comet.json b/thermal/thermal_info_config_comet.json index ba34498..1f02c64 100644 --- a/thermal/thermal_info_config_comet.json +++ b/thermal/thermal_info_config_comet.json @@ -703,6 +703,37 @@ "PollingDelay": 300000, "PassiveDelay": 7000 }, + { + "Name": "LEFT-INNER-DISPLAY", + "Type": "UNKNOWN", + "Hidden": true, + "VirtualSensor": true, + "Formula": "WEIGHTED_AVG", + "Combination": ["usb_conn_therm"], + "Coefficient": [0.561], + "Offset": 10729, + "Multiplier": 0.001 + }, + { + "Name": "RIGHT-INNER-DISPLAY", + "Type": "UNKNOWN", + "Hidden": true, + "VirtualSensor": true, + "Formula": "WEIGHTED_AVG", + "Combination": ["soc_therm"], + "Coefficient": [0.799], + "Offset": 1620, + "Multiplier": 0.001 + }, + { + "Name": "INNER-DISPLAY-DIFF", + "Type": "UNKNOWN", + "VirtualSensor": true, + "Formula": "WEIGHTED_AVG", + "Combination": ["RIGHT-INNER-DISPLAY", "LEFT-INNER-DISPLAY"], + "Coefficient": [1.0, -1.0], + "Multiplier": 0.001 + }, { "Name": "LITTLE", "Type": "CPU",