diff options
author | TeYuan Wang <kamewang@google.com> | 2020-11-18 13:27:55 +0800 |
---|---|---|
committer | TeYuan Wang <kamewang@google.com> | 2020-11-21 23:14:22 +0800 |
commit | 7105c973806e6ed76ebb117bfb3243089f44ec64 (patch) | |
tree | 1a9dd7dc20c5d05bfc64035cdb16419ed968b97f /thermal | |
parent | cbfc4ab32a43ec59a70c0f7bd9bded591d0d3047 (diff) | |
download | pixel-7105c973806e6ed76ebb117bfb3243089f44ec64.tar.gz |
thermal: add TMU sensors into control list
Bug: 173569255
Test: confirm the thermal zone can be disabled
Change-Id: I5ea171359d73038e755daff30a146fb1d9ffe1db
Diffstat (limited to 'thermal')
-rw-r--r-- | thermal/pixel-thermal-logd.rc | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/thermal/pixel-thermal-logd.rc b/thermal/pixel-thermal-logd.rc index 0d9f32ca..7b634f02 100644 --- a/thermal/pixel-thermal-logd.rc +++ b/thermal/pixel-thermal-logd.rc @@ -20,6 +20,9 @@ on property:persist.vendor.disable.thermal.control=* on property:persist.vendor.disable.usb.overheat.mitigation=* setprop vendor.disable.usb.overheat.mitigation.control ${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:vendor.disable.thermal.control=1 && property:vendor.thermal.link_ready=1 # common stop vendor.thermal-engine @@ -54,7 +57,7 @@ on property:vendor.disable.thermal.control=1 && property:vendor.thermal.link_rea write /dev/thermal/tz-by-name/charger-therm/emul_temp 25000 write /dev/thermal/tz-by-name/charger-therm/mode disabled # P21 - write /dev/thermal/tz-by-name/disp-therm/mode disabled + write /dev/thermal/tz-by-name/disp_therm/mode disabled on property:vendor.disable.thermal.control=0 && property:vendor.thermal.link_ready=1 # common @@ -90,7 +93,26 @@ on property:vendor.disable.thermal.control=0 && property:vendor.thermal.link_rea write /dev/thermal/tz-by-name/charger-therm/emul_temp 0 write /dev/thermal/tz-by-name/charger-therm/mode enabled # P21 - write /dev/thermal/tz-by-name/disp-therm/mode enabled + write /dev/thermal/tz-by-name/disp_therm/mode enabled + +# Switch Tj thermal protection +on property:vendor.disable.thermal.tj.control=1 + # P21 + write /dev/thermal/tz-by-name/BIG/mode disabled + write /dev/thermal/tz-by-name/MID/mode disabled + write /dev/thermal/tz-by-name/LITTLE/mode disabled + write /dev/thermal/tz-by-name/G3D/mode disabled + write /dev/thermal/tz-by-name/ISP/mode disabled + write /dev/thermal/tz-by-name/TPU/mode disabled + +on property:vendor.disable.thermal.tj.control=0 + # P21 + write /dev/thermal/tz-by-name/BIG/mode enabled + write /dev/thermal/tz-by-name/MID/mode enabled + write /dev/thermal/tz-by-name/LITTLE/mode enabled + write /dev/thermal/tz-by-name/G3D/mode enabled + write /dev/thermal/tz-by-name/ISP/mode enabled + write /dev/thermal/tz-by-name/TPU/mode enabled # Switch USB port overheat protection on property:vendor.disable.usb.overheat.mitigation.control=1 |