Skip to content

Commit

Permalink
thermal: add throttling report actions to thermal-engine.conf
Browse files Browse the repository at this point in the history
Add "report" actions for thermal throttling to marlin/sailfish
thermal-engine .conf files to allow for UI notifications and/or
VR mode handling via ThermalService throttling events.

Bug: 30982366
Test: manual on marlin (with artificially low threshold)
Change-Id: I8906d9faa120eb9d2ec6670bd71d33274bc22576
(cherry picked from commit 6dc43f1)
  • Loading branch information
toddpoynor committed Sep 19, 2017
1 parent ac4d5df commit 811b5bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions thermal-engine-marlin-vr.conf
Expand Up @@ -13,8 +13,8 @@ sensor emmc_therm
sampling 1000
thresholds 58000
thresholds_clr 52000
actions cluster0+cluster1+gpu
action_info 691200+691200+214000000
actions cluster0+cluster1+gpu+report
action_info 691200+691200+214000000+1

[BATTERY-MONITOR]
algo_type monitor
Expand Down
13 changes: 11 additions & 2 deletions thermal-engine-marlin.conf
Expand Up @@ -7,6 +7,15 @@ thresholds_clr 59000
actions shutdown
action_info 1

[THROTTLING-NOTIFY]
algo_type monitor
sampling 2000
sensor emmc_therm
thresholds 47000
thresholds_clr 44000
actions report
action_info 1

[SKIN-HIGH-FLOOR]
algo_type ss
sampling 2000
Expand Down Expand Up @@ -53,8 +62,8 @@ sensor emmc_therm
sampling 1000
thresholds 56000 58000
thresholds_clr 55000 57000
actions cluster0+cluster1+gpu cluster0+cluster1+gpu
action_info 691200+691200+133000000 307200+307200+133000000
actions cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report
action_info 691200+691200+133000000+1 307200+307200+133000000+1

[BATTERY-MONITOR]
algo_type monitor
Expand Down

0 comments on commit 811b5bf

Please sign in to comment.