From b8d3c0def1d52c2c8573c5c9ec7a78cf024f5ba4 Mon Sep 17 00:00:00 2001 From: TeYuan Wang Date: Thu, 26 Dec 2024 22:30:05 +0000 Subject: [PATCH] thermal: support low power mode prop switch Add lower power mode property toggle to switch thermal hal config Bug: 363070211 Test: toggle property to confirm thermal config switch Flag: EXEMPT test only Change-Id: I932c8d29e2a0eb939ab8f8f7c4c79d02153f49eb --- conf/init.zumapro.board.rc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conf/init.zumapro.board.rc b/conf/init.zumapro.board.rc index 7378d9b..0b2b6cf 100644 --- a/conf/init.zumapro.board.rc +++ b/conf/init.zumapro.board.rc @@ -627,6 +627,14 @@ on property:vendor.thermal.link_ready=1 chown system system /dev/thermal/cdev-by-name/thermal-uclamp-4/cur_state chown system system /dev/thermal/cdev-by-name/thermal-uclamp-7/cur_state +on property:vendor.thermal.link_ready=1 && property:vendor.pixel.system.phenotype.Thermal__shutdown_exp_enabled=true + setprop vendor.thermal.config "thermal_info_config_lpm.json" + restart vendor.thermal-hal + +on property:vendor.thermal.link_ready=1 && property:vendor.pixel.system.phenotype.Thermal__shutdown_exp_enabled=false + setprop vendor.thermal.config "thermal_info_config.json" + restart vendor.thermal-hal + on charger # Use charger thermal config setprop vendor.thermal.config "thermal_info_config_charge.json"