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
This commit is contained in:
parent
bd99c7ad2f
commit
b8d3c0def1
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue