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
This commit is contained in:
Todd Poynor
2017-08-25 22:44:01 -07:00
parent 645a109bfd
commit e5e23c81b9
2 changed files with 13 additions and 4 deletions

View File

@@ -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

View File

@@ -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