thermal: enable virtual-skin-model
Bug: 298225131 Test: Build and boot on device Change-Id: Ib28499b42ab7ed6c46f9a6956d4cb33c98b15ddc Signed-off-by: Sayanna Chandula <sayanna@google.com>
This commit is contained in:
parent
f92d646868
commit
efe0cba014
5 changed files with 38 additions and 1 deletions
|
@ -210,6 +210,10 @@ PRODUCT_PACKAGES += \
|
||||||
# Display LBE
|
# Display LBE
|
||||||
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
|
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
|
||||||
|
|
||||||
|
#Thermal VT estimator
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
libthermal_tflite_wrapper
|
||||||
|
|
||||||
# Set zram size
|
# Set zram size
|
||||||
PRODUCT_VENDOR_PROPERTIES += \
|
PRODUCT_VENDOR_PROPERTIES += \
|
||||||
vendor.zram.size=50p \
|
vendor.zram.size=50p \
|
||||||
|
|
|
@ -22,7 +22,8 @@ endif
|
||||||
|
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/thermal_info_config_$(TARGET_DEVICE).json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
|
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/thermal_info_config_$(TARGET_DEVICE).json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
|
||||||
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/thermal_info_config_charge_$(TARGET_DEVICE).json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json
|
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/thermal_info_config_charge_$(TARGET_DEVICE).json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json \
|
||||||
|
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/vt_estimation_model_$(TARGET_DEVICE).tflite:$(TARGET_COPY_OUT_VENDOR)/etc/vt_estimation_model.tflite
|
||||||
|
|
||||||
ifneq (,$(filter $(TARGET_DEVICE),komodo caiman tokay))
|
ifneq (,$(filter $(TARGET_DEVICE),komodo caiman tokay))
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
|
|
@ -255,6 +255,22 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Name":"VIRTUAL-SKIN-MODEL",
|
||||||
|
"Type":"UNKNOWN",
|
||||||
|
"VirtualSensor":true,
|
||||||
|
"ModelPath":"vt_estimation_model.tflite",
|
||||||
|
"TriggerSensor":["north_therm", "soc_therm", "charging_therm", "disp_therm", "quiet_therm", "usb_pwr_therm", "btmspkr_therm"],
|
||||||
|
"Formula":"USE_ML_MODEL",
|
||||||
|
"Combination":["north_therm", "soc_therm", "charging_therm", "disp_therm", "battery", "quiet_therm", "usb_pwr_therm", "rfpa_therm", "btmspkr_therm"],
|
||||||
|
"Coefficient":[1.0],
|
||||||
|
"HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 52.0, 55.0],
|
||||||
|
"HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9],
|
||||||
|
"Multiplier":0.001,
|
||||||
|
"SendCallback":true,
|
||||||
|
"PollingDelay":300000,
|
||||||
|
"PassiveDelay":7000
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Name":"VIRTUAL-SKIN-HINT",
|
"Name":"VIRTUAL-SKIN-HINT",
|
||||||
"Type":"UNKNOWN",
|
"Type":"UNKNOWN",
|
||||||
|
|
|
@ -245,6 +245,22 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Name":"VIRTUAL-SKIN-MODEL",
|
||||||
|
"Type":"UNKNOWN",
|
||||||
|
"VirtualSensor":true,
|
||||||
|
"ModelPath":"vt_estimation_model.tflite",
|
||||||
|
"TriggerSensor":["north_therm", "soc_therm", "charging_therm", "disp_therm", "quiet_therm", "usb_pwr_therm", "btmspkr_therm"],
|
||||||
|
"Formula":"USE_ML_MODEL",
|
||||||
|
"Combination":["north_therm", "soc_therm", "charging_therm", "disp_therm", "battery", "quiet_therm", "usb_pwr_therm", "rfpa_therm", "btmspkr_therm"],
|
||||||
|
"Coefficient":[1.0],
|
||||||
|
"HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 52.0, 55.0],
|
||||||
|
"HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9],
|
||||||
|
"Multiplier":0.001,
|
||||||
|
"SendCallback":true,
|
||||||
|
"PollingDelay":300000,
|
||||||
|
"PassiveDelay":7000
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Name":"VIRTUAL-SKIN-HINT",
|
"Name":"VIRTUAL-SKIN-HINT",
|
||||||
"Type":"UNKNOWN",
|
"Type":"UNKNOWN",
|
||||||
|
|
BIN
thermal/vt_estimation_model_caiman.tflite
Normal file
BIN
thermal/vt_estimation_model_caiman.tflite
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue