137a09cd7Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 237a09cd7Sopenharmony_ci<!-- 337a09cd7Sopenharmony_ci Copyright (c) 2022-2023 Huawei Device Co., Ltd. 437a09cd7Sopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 537a09cd7Sopenharmony_ci you may not use this file except in compliance with the License. 637a09cd7Sopenharmony_ci You may obtain a copy of the License at 737a09cd7Sopenharmony_ci 837a09cd7Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 937a09cd7Sopenharmony_ci 1037a09cd7Sopenharmony_ci Unless required by applicable law or agreed to in writing, software 1137a09cd7Sopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 1237a09cd7Sopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1337a09cd7Sopenharmony_ci See the License for the specific language governing permissions and 1437a09cd7Sopenharmony_ci limitations under the License. 1537a09cd7Sopenharmony_ci --> 1637a09cd7Sopenharmony_ci 1737a09cd7Sopenharmony_ci<thermal version="0.01" product="lya"> 1837a09cd7Sopenharmony_ci <base> 1937a09cd7Sopenharmony_ci <item tag="history_temp_count" value="10"/> 2037a09cd7Sopenharmony_ci <item tag="temperature_query_enum" value="soc,battery,shell,cpu,charger,ambient,ap,pa"/> 2137a09cd7Sopenharmony_ci <item tag="sim_tz" value="1"/> 2237a09cd7Sopenharmony_ci </base> 2337a09cd7Sopenharmony_ci 2437a09cd7Sopenharmony_ci <level> 2537a09cd7Sopenharmony_ci <sensor_cluster name="screenoff_charge" sensor="battery"> 2637a09cd7Sopenharmony_ci <state screen="0" charge="1"/> 2737a09cd7Sopenharmony_ci <item level="1" threshold="40000" threshold_clr="38000"/> 2837a09cd7Sopenharmony_ci <item level="2" threshold="43000" threshold_clr="41000"/> 2937a09cd7Sopenharmony_ci </sensor_cluster> 3037a09cd7Sopenharmony_ci <sensor_cluster name="base_safe" sensor="battery,charger,cpu,soc"> 3137a09cd7Sopenharmony_ci <item level="1" threshold="40000,38000,30000,40000" threshold_clr="38000,36000,28000,38000"/> 3237a09cd7Sopenharmony_ci <item level="2" threshold="43000,41000,32000,42000" threshold_clr="41000,39000,30000,40000"/> 3337a09cd7Sopenharmony_ci <item level="3" threshold="46000,44000,34000,44000" threshold_clr="44000,42000,32000,42000"/> 3437a09cd7Sopenharmony_ci <item level="4" threshold="48000,46000,36000,46000" threshold_clr="46000,44000,34000,44000"/> 3537a09cd7Sopenharmony_ci </sensor_cluster> 3637a09cd7Sopenharmony_ci <sensor_cluster name="warm_5G" sensor="pa" aux_sensor="ambient"> 3737a09cd7Sopenharmony_ci <item level="1" threshold="40000" threshold_clr="38000" aux_trigger_range="5000_35000"/> 3837a09cd7Sopenharmony_ci <item level="2" threshold="43000" threshold_clr="41000" aux_trigger_range="5000_35000"/> 3937a09cd7Sopenharmony_ci <item level="3" threshold="45000" threshold_clr="44000" aux_trigger_range="5000_35000"/> 4037a09cd7Sopenharmony_ci </sensor_cluster> 4137a09cd7Sopenharmony_ci <sensor_cluster name="warm_safe" sensor="ap,soc" aux_sensor="ambient,shell"> 4237a09cd7Sopenharmony_ci <item level="1" threshold="75000,30000" threshold_clr="71000,28000" aux_trigger_range="0_900000,0_40000"/> 4337a09cd7Sopenharmony_ci </sensor_cluster> 4437a09cd7Sopenharmony_ci <sensor_cluster name="high_safe" sensor="shell"> 4537a09cd7Sopenharmony_ci <item level="1" threshold="40000" threshold_clr="38000" temp_rise_rate="1.5"/> 4637a09cd7Sopenharmony_ci <item level="2" threshold="43000" threshold_clr="41000" temp_rise_rate="1.5"/> 4737a09cd7Sopenharmony_ci <item level="3" threshold="46000" threshold_clr="44000" temp_rise_rate="1.5"/> 4837a09cd7Sopenharmony_ci <item level="4" threshold="48000" threshold_clr="47000" temp_rise_rate="1.5"/> 4937a09cd7Sopenharmony_ci </sensor_cluster> 5037a09cd7Sopenharmony_ci <sensor_cluster name="cold_safe" sensor="battery,soc" desc="1"> 5137a09cd7Sopenharmony_ci <item level="1" threshold="-9000,-8000" threshold_clr="-6000,-5000"/> 5237a09cd7Sopenharmony_ci <item level="2" threshold="-14000,-13000" threshold_clr="-11000,-10000"/> 5337a09cd7Sopenharmony_ci <item level="3" threshold="-19000,-18000" threshold_clr="-16000,-15000"/> 5437a09cd7Sopenharmony_ci <item level="4" threshold="-21000,-20000" threshold_clr="-20000,-19000"/> 5537a09cd7Sopenharmony_ci </sensor_cluster> 5637a09cd7Sopenharmony_ci </level> 5737a09cd7Sopenharmony_ci 5837a09cd7Sopenharmony_ci <state> 5937a09cd7Sopenharmony_ci <item name="scene" param="cam,call,game,test"/> 6037a09cd7Sopenharmony_ci <item name="screen"/> 6137a09cd7Sopenharmony_ci <item name="charge"/> 6237a09cd7Sopenharmony_ci </state> 6337a09cd7Sopenharmony_ci 6437a09cd7Sopenharmony_ci <action> 6537a09cd7Sopenharmony_ci <item name="airplane"/> 6637a09cd7Sopenharmony_ci <item name="cpu_big"/> 6737a09cd7Sopenharmony_ci <item name="cpu_med"/> 6837a09cd7Sopenharmony_ci <item name="cpu_lit"/> 6937a09cd7Sopenharmony_ci <item name="gpu"/> 7037a09cd7Sopenharmony_ci <item name="boost" event="1"/> 7137a09cd7Sopenharmony_ci <item name="isolate" event="1"/> 7237a09cd7Sopenharmony_ci <item name="lcd"/> 7337a09cd7Sopenharmony_ci <item name="volume" uid="2001,2002"/> 7437a09cd7Sopenharmony_ci <item name="current_sc" protocol="current" param="sc" event="1"/> 7537a09cd7Sopenharmony_ci <item name="current_buck" protocol="current" param="buck" event="1"/> 7637a09cd7Sopenharmony_ci <item name="voltage_sc" protocol="voltage" param="sc" event="1"/> 7737a09cd7Sopenharmony_ci <item name="voltage_buck" protocol="voltage" param="buck" event="1"/> 7837a09cd7Sopenharmony_ci <item name="process_ctrl" param="32,64,128,256" event=""/> 7937a09cd7Sopenharmony_ci <item name="shut_down" event="0"/> 8037a09cd7Sopenharmony_ci <item name="thermallevel" event="1"/> 8137a09cd7Sopenharmony_ci <item name="popup"/> 8237a09cd7Sopenharmony_ci <item name="test"/> 8337a09cd7Sopenharmony_ci </action> 8437a09cd7Sopenharmony_ci 8537a09cd7Sopenharmony_ci <policy> 8637a09cd7Sopenharmony_ci <config name="base_safe" level="1"> 8737a09cd7Sopenharmony_ci <airplane>0</airplane> 8837a09cd7Sopenharmony_ci <lcd>1.00</lcd> 8937a09cd7Sopenharmony_ci <lcd scene="cam">0.99</lcd> 9037a09cd7Sopenharmony_ci <lcd scene="call">0.98</lcd> 9137a09cd7Sopenharmony_ci <lcd scene="game">0.97</lcd> 9237a09cd7Sopenharmony_ci <lcd scene="test">0.91</lcd> 9337a09cd7Sopenharmony_ci <cpu_big>1992000</cpu_big> 9437a09cd7Sopenharmony_ci <cpu_med>1991500</cpu_med> 9537a09cd7Sopenharmony_ci <cpu_lit>1991200</cpu_lit> 9637a09cd7Sopenharmony_ci <test>99999</test> 9737a09cd7Sopenharmony_ci <process_ctrl>3</process_ctrl> 9837a09cd7Sopenharmony_ci <cpu_big scene="cam" charge="1">1991800</cpu_big> 9937a09cd7Sopenharmony_ci <cpu_big scene="cam" charge="0">1991600</cpu_big> 10037a09cd7Sopenharmony_ci <gpu screen="0">524288</gpu> 10137a09cd7Sopenharmony_ci <gpu screen="1">512000</gpu> 10237a09cd7Sopenharmony_ci <thermallevel>1</thermallevel> 10337a09cd7Sopenharmony_ci <current_sc>1800</current_sc> 10437a09cd7Sopenharmony_ci <current_sc scene="cam">1200</current_sc> 10537a09cd7Sopenharmony_ci <current_buck>1200</current_buck> 10637a09cd7Sopenharmony_ci <voltage_sc>4000</voltage_sc> 10737a09cd7Sopenharmony_ci <voltage_buck>3000</voltage_buck> 10837a09cd7Sopenharmony_ci <volume>1.0</volume> 10937a09cd7Sopenharmony_ci <boost>1</boost> 11037a09cd7Sopenharmony_ci <isolate>0</isolate> 11137a09cd7Sopenharmony_ci </config> 11237a09cd7Sopenharmony_ci <config name="base_safe" level="2"> 11337a09cd7Sopenharmony_ci <airplane>1</airplane> 11437a09cd7Sopenharmony_ci <lcd>0.90</lcd> 11537a09cd7Sopenharmony_ci <lcd scene="cam">0.89</lcd> 11637a09cd7Sopenharmony_ci <lcd scene="call">0.88</lcd> 11737a09cd7Sopenharmony_ci <lcd scene="game">0.87</lcd> 11837a09cd7Sopenharmony_ci <cpu_big>1991000</cpu_big> 11937a09cd7Sopenharmony_ci <cpu_med>1990500</cpu_med> 12037a09cd7Sopenharmony_ci <cpu_lit>1990200</cpu_lit> 12137a09cd7Sopenharmony_ci <process_ctrl>2</process_ctrl> 12237a09cd7Sopenharmony_ci <cpu_big scene="cam" charge="1">1990800</cpu_big> 12337a09cd7Sopenharmony_ci <cpu_big scene="cam" charge="0">1990600</cpu_big> 12437a09cd7Sopenharmony_ci <gpu screen="0">499712</gpu> 12537a09cd7Sopenharmony_ci <gpu screen="1">487424</gpu> 12637a09cd7Sopenharmony_ci <thermallevel>2</thermallevel> 12737a09cd7Sopenharmony_ci <current_sc>1500</current_sc> 12837a09cd7Sopenharmony_ci <current_sc scene="cam">1000</current_sc> 12937a09cd7Sopenharmony_ci <current_buck>1000</current_buck> 13037a09cd7Sopenharmony_ci <voltage_sc>3000</voltage_sc> 13137a09cd7Sopenharmony_ci <voltage_buck>2000</voltage_buck> 13237a09cd7Sopenharmony_ci <volume>0.8</volume> 13337a09cd7Sopenharmony_ci <boost>1</boost> 13437a09cd7Sopenharmony_ci <isolate>1</isolate> 13537a09cd7Sopenharmony_ci </config> 13637a09cd7Sopenharmony_ci <config name="base_safe" level="3"> 13737a09cd7Sopenharmony_ci <lcd>0.80</lcd> 13837a09cd7Sopenharmony_ci <lcd scene="cam">0.79</lcd> 13937a09cd7Sopenharmony_ci <lcd scene="call">0.78</lcd> 14037a09cd7Sopenharmony_ci <lcd scene="game">0.77</lcd> 14137a09cd7Sopenharmony_ci <cpu_big>1990000</cpu_big> 14237a09cd7Sopenharmony_ci <cpu_med>1989500</cpu_med> 14337a09cd7Sopenharmony_ci <cpu_lit>1989200</cpu_lit> 14437a09cd7Sopenharmony_ci <process_ctrl>1</process_ctrl> 14537a09cd7Sopenharmony_ci <cpu_big scene="cam" charge="1">1989800</cpu_big> 14637a09cd7Sopenharmony_ci <cpu_big scene="cam" charge="0">1989600</cpu_big> 14737a09cd7Sopenharmony_ci <gpu screen="0">475136</gpu> 14837a09cd7Sopenharmony_ci <gpu screen="1">462848</gpu> 14937a09cd7Sopenharmony_ci <thermallevel>3</thermallevel> 15037a09cd7Sopenharmony_ci <current_sc>1300</current_sc> 15137a09cd7Sopenharmony_ci <current_sc scene="cam">800</current_sc> 15237a09cd7Sopenharmony_ci <current_buck>800</current_buck> 15337a09cd7Sopenharmony_ci <voltage_sc>2000</voltage_sc> 15437a09cd7Sopenharmony_ci <voltage_buck>1000</voltage_buck> 15537a09cd7Sopenharmony_ci <volume>0.7</volume> 15637a09cd7Sopenharmony_ci <shut_down>1</shut_down> 15737a09cd7Sopenharmony_ci <boost>0</boost> 15837a09cd7Sopenharmony_ci <isolate>2</isolate> 15937a09cd7Sopenharmony_ci </config> 16037a09cd7Sopenharmony_ci <config name="warm_5G" level="1"> 16137a09cd7Sopenharmony_ci <lcd>0.70</lcd> 16237a09cd7Sopenharmony_ci <thermallevel>4</thermallevel> 16337a09cd7Sopenharmony_ci <process_ctrl>2</process_ctrl> 16437a09cd7Sopenharmony_ci </config> 16537a09cd7Sopenharmony_ci <config name="warm_5G" level="2"> 16637a09cd7Sopenharmony_ci <lcd>0.60</lcd> 16737a09cd7Sopenharmony_ci <process_ctrl>3</process_ctrl> 16837a09cd7Sopenharmony_ci <thermallevel>5</thermallevel> 16937a09cd7Sopenharmony_ci </config> 17037a09cd7Sopenharmony_ci <config name="warm_5G" level="3"> 17137a09cd7Sopenharmony_ci <thermallevel>7</thermallevel> 17237a09cd7Sopenharmony_ci </config> 17337a09cd7Sopenharmony_ci <config name="warm_safe" level="1"> 17437a09cd7Sopenharmony_ci <process_ctrl screen="1">3</process_ctrl> 17537a09cd7Sopenharmony_ci <shut_down screen="1">1</shut_down> 17637a09cd7Sopenharmony_ci <thermallevel>6</thermallevel> 17737a09cd7Sopenharmony_ci </config> 17837a09cd7Sopenharmony_ci <config name="cold_safe" level="1"> 17937a09cd7Sopenharmony_ci <current_sc>1850</current_sc> 18037a09cd7Sopenharmony_ci <thermallevel>0</thermallevel> 18137a09cd7Sopenharmony_ci </config> 18237a09cd7Sopenharmony_ci <config name="cold_safe" level="2"> 18337a09cd7Sopenharmony_ci <current_sc>1550</current_sc> 18437a09cd7Sopenharmony_ci <thermallevel>0</thermallevel> 18537a09cd7Sopenharmony_ci </config> 18637a09cd7Sopenharmony_ci <config name="cold_safe" level="3"> 18737a09cd7Sopenharmony_ci <current_sc>1150</current_sc> 18837a09cd7Sopenharmony_ci <thermallevel>0</thermallevel> 18937a09cd7Sopenharmony_ci </config> 19037a09cd7Sopenharmony_ci </policy> 19137a09cd7Sopenharmony_ci 19237a09cd7Sopenharmony_ci <fan> 19337a09cd7Sopenharmony_ci <sensor_cluster name="fan_fault_detect" sensor="soc,gpu,fan"> 19437a09cd7Sopenharmony_ci <item fault="1" threshold="50000,50000,500"/> 19537a09cd7Sopenharmony_ci <item fault="2" threshold="30000,30000,1500"/> 19637a09cd7Sopenharmony_ci </sensor_cluster> 19737a09cd7Sopenharmony_ci </fan> 19837a09cd7Sopenharmony_ci 19937a09cd7Sopenharmony_ci <idle name="charging"> 20037a09cd7Sopenharmony_ci <thermallevel>1</thermallevel> <!-- thermal level is equal or less than 1 --> 20137a09cd7Sopenharmony_ci <soc>80</soc> <!-- battery soc is equal or more than 80% --> 20237a09cd7Sopenharmony_ci <charging>1</charging> <!-- battery is charging --> 20337a09cd7Sopenharmony_ci <current>1000</current> <!-- battery charging current is equal or more than 1000mA --> 20437a09cd7Sopenharmony_ci </idle> 20537a09cd7Sopenharmony_ci</thermal> 206