summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2017-08-25 22:44:01 -0700
committerTodd Poynor <toddpoynor@google.com>2017-09-19 16:37:34 +0000
commite5e23c81b90a6865cc05cb50ac752553f2d87ecf (patch)
tree31454a05dc08fcda46188339fc2edb1730e0c05b
parent645a109bfd0fbe90cee110324c024190e5b13151 (diff)
thermal: add throttling notification rules to thermal-engine configs
Add monitor algorithms for the temperatures covered by throttling rules to the VR-mode and non-VR-mode thermal-engine.conf files, with "report" actions that send event notifications to the Android framework. Bug: 30982366 Test: manual on walleye (with artifically low threshold) Change-Id: I33ff9c44c684640f4af960a53533717d02506814
-rwxr-xr-xthermal-engine-vr.conf4
-rwxr-xr-xthermal-engine.conf13
2 files changed, 13 insertions, 4 deletions
diff --git a/thermal-engine-vr.conf b/thermal-engine-vr.conf
index ce6f3a9..e4b0442 100755
--- a/thermal-engine-vr.conf
+++ b/thermal-engine-vr.conf
@@ -13,5 +13,5 @@ sensor back_therm
sampling 1000
thresholds 52000
thresholds_clr 48000
-actions cluster0+cluster1+gpu+battery
-action_info 883200+902400+342000000+3
+actions cluster0+cluster1+gpu+battery+report
+action_info 883200+902400+342000000+3+1
diff --git a/thermal-engine.conf b/thermal-engine.conf
index a3b8c15..ef41dad 100755
--- a/thermal-engine.conf
+++ b/thermal-engine.conf
@@ -56,8 +56,8 @@ sampling 2000
sensor back_therm
thresholds 50000 52000 54000
thresholds_clr 49000 51000 53000
-actions cluster0+cluster1+gpu cluster0+cluster1+gpu cluster0+cluster1+gpu
-action_info 1094400+1190400+414000000 883200+902400+342000000 300000+300000+257000000
+actions cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report
+action_info 1094400+1190400+414000000+1 883200+902400+342000000+1 300000+300000+257000000+1
[BATTERY-MONITOR]
algo_type monitor
@@ -76,3 +76,12 @@ thresholds 56000
thresholds_clr 55000
actions shutdown
action_info 1
+
+[THROTTLING-NOTIFY]
+algo_type monitor
+sampling 2000
+sensor back_therm
+thresholds 40000
+thresholds_clr 39000
+actions report
+action_info 1