summaryrefslogtreecommitdiff
path: root/thermal
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2021-05-28 04:21:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-05-28 04:21:40 +0000
commit15657c6d930a2b4775ce23a472d87893afee01ec (patch)
tree7830ffe54bde601eac4fb3fa7ce82f4ad744b121 /thermal
parentad33ce26af6fe0e6c02ce8055f1f1bee8b0c3201 (diff)
parentd4eda31473cc64a154ae6725a14295790ae72db6 (diff)
downloadpixel-15657c6d930a2b4775ce23a472d87893afee01ec.tar.gz
Merge "Add a new trigger after "property:vendor.thermal.link_ready=1"" into sc-dev
Diffstat (limited to 'thermal')
-rw-r--r--thermal/android.hardware.thermal@2.0-service.pixel.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/thermal/android.hardware.thermal@2.0-service.pixel.rc b/thermal/android.hardware.thermal@2.0-service.pixel.rc
index ebf5435d..c7f9f130 100644
--- a/thermal/android.hardware.thermal@2.0-service.pixel.rc
+++ b/thermal/android.hardware.thermal@2.0-service.pixel.rc
@@ -47,6 +47,11 @@ on property:vendor.thermal.link_ready=1
chmod 0660 /dev/thermal/cdev-by-name/fcc/cur_state
chown root system /dev/thermal/cdev-by-name/dc_icl/cur_state
chmod 0660 /dev/thermal/cdev-by-name/dc_icl/cur_state
+ # queue the trigger to start thermal-hal and continue execute
+ # per-device thermal setup "on property:vendor.thermal.link_ready=1"
+ trigger enable-thermal-hal
+
+on enable-thermal-hal
start vendor.thermal-hal-2-0
service vendor.thermal-hal-2-0 /vendor/bin/hw/android.hardware.thermal@2.0-service.pixel