diff options
| author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2017-05-12 20:24:50 +0200 |
|---|---|---|
| committer | Hemant Sharma <hemantbeast@gmail.com> | 2017-05-19 18:38:21 +0000 |
| commit | 6765c0223d77eac73c83ce133720c4c97b4c1505 (patch) | |
| tree | 13829935f7538a19478e8b290bc965c1e0c264f9 | |
| parent | 77a19351659d255ca27b25b25fd062be9abb2f35 (diff) | |
s2: refine thermal config
Change-Id: Ibe0244c46fbea8dda8e61c45fef1ae07c3d5a158
| -rw-r--r-- | configs/thermanager.xml | 102 |
1 files changed, 80 insertions, 22 deletions
diff --git a/configs/thermanager.xml b/configs/thermanager.xml index 5f02e27..5d2d3d5 100644 --- a/configs/thermanager.xml +++ b/configs/thermanager.xml @@ -47,7 +47,9 @@ <!-- device-specific --> <resource name="adreno-max-clk" type="sysfs">/sys/class/kgsl/kgsl-3d0/max_gpuclk</resource> + <resource name="backlight" type="sysfs">/sys/class/leds/lcd-backlight/max_brightness</resource> <resource name="charge_speed" type="sysfs">/sys/class/power_supply/battery/system_temp_level</resource> + <resource name="charging_enabled" type="sysfs">/sys/class/power_supply/battery/battery_charging_enabled</resource> <resource name="shutdown" type="halt" delay="5" /> </resources> @@ -118,6 +120,42 @@ <mitigation level="13"><value resource="charge_speed">13</value></mitigation> </control> + <control name="battery_protect"> + <mitigation level="off"><value resource="charging_enabled">1</value></mitigation> + <mitigation level="1"><value resource="charging_enabled">0</value></mitigation> + <mitigation level="2"><value resource="shutdown" /></mitigation> + </control> + + <control name="backlight"> + <mitigation level="off"><value resource="backlight">255</value></mitigation> + <mitigation level="1"><value resource="backlight">230</value></mitigation> + <mitigation level="2"><value resource="backlight">210</value></mitigation> + <mitigation level="3"><value resource="backlight">190</value></mitigation> + <mitigation level="4"><value resource="backlight">170</value></mitigation> + <mitigation level="5"><value resource="backlight">150</value></mitigation> + <mitigation level="6"><value resource="backlight">130</value></mitigation> + <mitigation level="7"><value resource="backlight">110</value></mitigation> + </control> + + <!-- LCD backlight --> + <configuration sensor="xo_therm"> + <threshold> + <mitigation name="backlight" level="off" /> + </threshold> + <threshold trigger="37" clear="35"> + <mitigation name="backlight" level="1" /> + </threshold> + <threshold trigger="39" clear="37"> + <mitigation name="backlight" level="2" /> + </threshold> + <threshold trigger="41" clear="39"> + <mitigation name="backlight" level="3" /> + </threshold> + <threshold trigger="50" clear="45"> + <mitigation name="backlight" level="4" /> + </threshold> + </configuration> + <!-- CPU A53 --> <configuration sensor="case_therm"> <threshold> @@ -158,6 +196,16 @@ </threshold> </configuration> + <!-- burn-out protection --> + <configuration sensor="cluster-0-temp"> + <threshold> + <mitigation name="shutdown" level="off" /> + </threshold> + <threshold trigger="120" clear="100"> + <mitigation name="shutdown" level="1" /> + </threshold> + </configuration> + <!-- CPU A72 --> <configuration sensor="case_therm"> <threshold> @@ -201,6 +249,26 @@ </threshold> </configuration> + <!-- burn-out protection --> + <configuration sensor="cluster-1-temp"> + <threshold> + <mitigation name="shutdown" level="off" /> + </threshold> + <threshold trigger="120" clear="100"> + <mitigation name="shutdown" level="1" /> + </threshold> + </configuration> + + <!-- L2 Cache --> + <configuration sensor="tsens_tz_sensor8"> + <threshold> + <mitigation name="cluster-0-clk" level="off" /> + </threshold> + <threshold trigger="90" clear="45"> + <mitigation name="cluster-0-clk" level="3" /> + </threshold> + </configuration> + <!-- GPU --> <configuration sensor="case_therm"> <threshold> @@ -218,47 +286,37 @@ </configuration> <!-- charging --> - <configuration sensor="case_therm"> + <configuration sensor="battery"> <threshold> <mitigation name="charging" level="off" /> </threshold> - <threshold trigger="40" clear="39"> + <threshold trigger="41000" clear="40000"> <mitigation name="charging" level="6" /> </threshold> - <threshold trigger="41" clear="40"> + <threshold trigger="42000" clear="41000"> <mitigation name="charging" level="8" /> </threshold> - <threshold trigger="42" clear="41"> + <threshold trigger="43000" clear="42000"> <mitigation name="charging" level="10" /> </threshold> - <threshold trigger="43" clear="42"> - <mitigation name="charging" level="11" /> - </threshold> - <threshold trigger="44" clear="43"> + <threshold trigger="44000" clear="43000"> <mitigation name="charging" level="12" /> </threshold> - <threshold trigger="45" clear="44"> + <threshold trigger="45000" clear="44000"> <mitigation name="charging" level="13" /> </threshold> </configuration> - <!-- burn-out protection --> - <configuration sensor="cluster-0-temp"> - <threshold> - <mitigation name="shutdown" level="off" /> - </threshold> - <threshold trigger="120" clear="100"> - <mitigation name="shutdown" level="1" /> - </threshold> - </configuration> - <!-- battery protection --> - <configuration sensor="bms"> + <configuration sensor="battery"> <threshold> - <mitigation name="shutdown" level="off" /> + <mitigation name="battery_protect" level="off" /> + </threshold> + <threshold trigger="62000" clear="60000"> + <mitigation name="battery_protect" level="1" /> </threshold> <threshold trigger="67000" clear="63000"> - <mitigation name="shutdown" level="1" /> + <mitigation name="battery_protect" level="2" /> </threshold> </configuration> |
