From f23ac0ef8be0bf1836cec01f5f2f3e43e523cdfc Mon Sep 17 00:00:00 2001 From: George Lee Date: Thu, 20 May 2021 17:14:36 -0700 Subject: thermal: add disable.bcl.control prop Bug: 188365095 Test: Local Test Signed-off-by: George Lee Change-Id: Ia9d48e6af4359c35fa9233b0fdf8c765ef7a205f --- thermal/pixel-thermal-logd.rc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'thermal') diff --git a/thermal/pixel-thermal-logd.rc b/thermal/pixel-thermal-logd.rc index b03778dd..567ff0b2 100644 --- a/thermal/pixel-thermal-logd.rc +++ b/thermal/pixel-thermal-logd.rc @@ -23,6 +23,9 @@ on property:persist.vendor.disable.usb.overheat.mitigation=* on property:persist.vendor.disable.thermal.tj.control=* setprop vendor.disable.thermal.tj.control ${persist.vendor.disable.thermal.tj.control} +on property:persist.vendor.disable.bcl.control=* + setprop vendor.disable.bcl.control ${persist.vendor.disable.bcl.control} + on property:vendor.disable.thermal.control=1 && property:vendor.thermal.link_ready=1 # common stop vendor.thermal-engine @@ -116,6 +119,13 @@ on property:vendor.disable.thermal.tj.control=0 write /dev/thermal/tz-by-name/TPU/mode enabled write /sys/kernel/debug/gs101-thermal/emul_call 0 +# Toggle BCL control +on property:vendor.disable.bcl.control=1 + write /dev/thermal/tz-by-name/soc/mode disabled + +on property:vendor.disable.bcl.control=0 + write /dev/thermal/tz-by-name/soc/mode enabled + # Switch USB port overheat protection on property:vendor.disable.usb.overheat.mitigation.control=1 write /sys/module/overheat_mitigation/parameters/enable 0 -- cgit v1.2.3