From 3a95265dd34cbfcdee9eef1d9d826cf5fc8c88c5 Mon Sep 17 00:00:00 2001 From: Vishalcj17 Date: Wed, 25 Jan 2023 18:52:33 +0530 Subject: [PATCH] avicii: Generate thermal config from OOS. * Generated using the command "adb shell thermal-engine -o > thermal-engine.conf" * We don't use thermal daemon from OOS which has these changes inline, instead, make CAF thermal-engine happy with the config. Change-Id: I02e45dfbf9880c8e8418c4d8d9b4d827b4d7066d thirteen --- configs/thermal-engine.conf | 797 ++++++++++++++++++++++++++++++++++++ device.mk | 4 + proprietary-files.txt | 1 - 3 files changed, 801 insertions(+), 1 deletion(-) create mode 100644 configs/thermal-engine.conf diff --git a/configs/thermal-engine.conf b/configs/thermal-engine.conf new file mode 100644 index 0000000..6debd9f --- /dev/null +++ b/configs/thermal-engine.conf @@ -0,0 +1,797 @@ +# SENSOR : ALIAS + +debug +#Conf file: /vendor/etc/thermal-engine.conf + +[Q6-CX-TJ-MONITOR] +#algo_type monitor +sampling 1000 +sensor q6-hvx-usr +thresholds 100000 +thresholds_clr 95000 +actions camera+camcorder +action_info 10+10 + +Thermal Zones + +[THERMAL_ZONE_0] +algo_type user_space +sensor modem-lte-sub6-pa1 +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_1] +algo_type user_space +sensor modem-lte-sub6-pa2 +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_2] +algo_type user_space +sensor modem-mmw0-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_3] +algo_type user_space +sensor modem-mmw1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_4] +algo_type user_space +sensor modem-mmw2-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_5] +algo_type user_space +sensor modem-mmw3-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_6] +algo_type user_space +sensor modem-skin-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_7] +algo_type user_space +sensor modem-wifi-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_8] +algo_type user_space +sensor modem-ambient-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_9] +algo_type user_space +sensor modem-0-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_10] +algo_type user_space +sensor modem-1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_11] +algo_type user_space +sensor modem-streamer-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_12] +algo_type user_space +sensor modem-mmw0-mod-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_13] +algo_type user_space +sensor modem-mmw1-mod-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_14] +algo_type user_space +sensor modem-mmw2-mod-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_15] +algo_type user_space +sensor modem-mmw3-mod-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_16] +algo_type user_space +sensor aoss0-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_17] +algo_type user_space +sensor cpu-0-0-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 95000 +clr_temp 124000 94000 +[THERMAL_ZONE_18] +algo_type user_space +sensor cpu-0-1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 95000 +clr_temp 124000 94000 +[THERMAL_ZONE_19] +algo_type user_space +sensor cpu-0-2-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 95000 +clr_temp 124000 94000 +[THERMAL_ZONE_20] +algo_type user_space +sensor cpu-0-3-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 95000 +clr_temp 124000 94000 +[THERMAL_ZONE_21] +algo_type user_space +sensor cpu-0-4-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 95000 +clr_temp 124000 94000 +[THERMAL_ZONE_22] +algo_type user_space +sensor cpu-0-5-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 95000 +clr_temp 124000 94000 +[THERMAL_ZONE_23] +algo_type user_space +sensor cpuss-0-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_24] +algo_type user_space +sensor cpuss-1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_25] +algo_type user_space +sensor cpu-1-0-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 95000 +clr_temp 124000 94000 +[THERMAL_ZONE_26] +algo_type user_space +sensor cpu-1-1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_27] +algo_type user_space +sensor cpu-1-2-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 95000 +clr_temp 124000 94000 +[THERMAL_ZONE_28] +algo_type user_space +sensor cpu-1-3-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_29] +algo_type user_space +sensor gpuss-0-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 95000 +clr_temp 124000 94000 +[THERMAL_ZONE_30] +algo_type user_space +sensor gpuss-1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_31] +algo_type low_limits_floor +sensor min-temp-0-lowf +polling_delay 0 +passive_delay 0 +set_temp 5000 +clr_temp 10000 +device cx +upper_limit 00 +lower_limit 00 +[THERMAL_ZONE_32] +algo_type low_limits_cap +sensor min-temp-0-lowc +polling_delay 0 +passive_delay 0 +set_temp 5000 +clr_temp 10000 +device lmh-cpu-vdd0+lmh-cpu-vdd1 +upper_limit 01+01 +lower_limit 01+01 +[THERMAL_ZONE_33] +algo_type user_space +sensor aoss-1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_34] +algo_type user_space +sensor cwlan-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_35] +algo_type user_space +sensor video-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_36] +algo_type user_space +sensor ddr-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_37] +algo_type user_space +sensor q6-hvx-usr +polling_delay 0 +passive_delay 0 +set_temp 100000 115000 +clr_temp 99000 114000 +[THERMAL_ZONE_38] +algo_type user_space +sensor cmpss-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_39] +algo_type user_space +sensor npu-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_40] +algo_type user_space +sensor camera-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_41] +algo_type user_space +sensor mdm-vec-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_42] +algo_type user_space +sensor mdm-scl-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_43] +algo_type user_space +sensor mdm-core-0-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_44] +algo_type user_space +sensor mdm-core-1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 115000 +clr_temp 124000 114000 +[THERMAL_ZONE_45] +algo_type step_wise +sensor gpuss-max-step +polling_delay 100 +passive_delay 10 +set_temp 95000 +clr_temp 95000 +device gpu +upper_limit 03 +lower_limit 00 +[THERMAL_ZONE_46] +algo_type step_wise +sensor cpu-0-max-step +polling_delay 0 +passive_delay 0 +set_temp 120000 +clr_temp 120000 +[THERMAL_ZONE_47] +algo_type step_wise +sensor cpu-1-max-step +polling_delay 0 +passive_delay 0 +set_temp 120000 +clr_temp 120000 +[THERMAL_ZONE_48] +algo_type step_wise +sensor cpu-0-0-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate0 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_49] +algo_type step_wise +sensor cpu-0-1-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate1 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_50] +algo_type step_wise +sensor cpu-0-2-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate2 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_51] +algo_type step_wise +sensor cpu-0-3-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate3 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_52] +algo_type step_wise +sensor cpu-0-4-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate4 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_53] +algo_type step_wise +sensor cpu-0-5-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate5 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_54] +algo_type step_wise +sensor cpu-1-0-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate6 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_55] +algo_type step_wise +sensor cpu-1-1-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate7 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_56] +algo_type step_wise +sensor cpu-1-2-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate6 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_57] +algo_type step_wise +sensor cpu-1-3-step +polling_delay 0 +passive_delay 0 +set_temp 110000 +clr_temp 100000 +device cpu-isolate7 +upper_limit 01 +lower_limit 01 +[THERMAL_ZONE_58] +algo_type step_wise +sensor q6-hvx-step +polling_delay 0 +passive_delay 0 +set_temp 100000 +clr_temp 95000 +device gpu+npu+cdsp+modem_pa+modem_tj +upper_limit 02+05+03+03+03 +lower_limit 02+05+03+03+03 +[THERMAL_ZONE_59] +algo_type low_limits_floor +sensor min-temp-1-lowf +polling_delay 0 +passive_delay 0 +set_temp 5000 +clr_temp 10000 +device cx +upper_limit 00 +lower_limit 00 +[THERMAL_ZONE_60] +algo_type low_limits_cap +sensor min-temp-1-lowc +polling_delay 0 +passive_delay 0 +set_temp 5000 +clr_temp 10000 +device lmh-cpu-vdd0+lmh-cpu-vdd1 +upper_limit 01+01 +lower_limit 01+01 +[THERMAL_ZONE_61] +algo_type step_wise +sensor npu-step +polling_delay 0 +passive_delay 10 +set_temp 95000 +clr_temp 95000 +device npu +upper_limit 05 +lower_limit 00 +[THERMAL_ZONE_62] +algo_type step_wise +sensor mdm-vec-step +polling_delay 0 +passive_delay 0 +set_temp 95000 105000 115000 +clr_temp 80000 90000 100000 +device modem_tj modem_tj modem_tj +upper_limit 01 02 03 +lower_limit 01 02 03 +[THERMAL_ZONE_63] +algo_type step_wise +sensor mdm-scl-step +polling_delay 0 +passive_delay 0 +set_temp 95000 105000 115000 +clr_temp 80000 90000 100000 +device modem_tj modem_tj modem_tj +upper_limit 01 02 03 +lower_limit 01 02 03 +[THERMAL_ZONE_64] +algo_type step_wise +sensor mdm-core-0-step +polling_delay 0 +passive_delay 0 +set_temp 95000 105000 115000 +clr_temp 80000 90000 100000 +device modem_tj modem_tj modem_tj +upper_limit 01 02 03 +lower_limit 01 02 03 +[THERMAL_ZONE_65] +algo_type step_wise +sensor mdm-core-1-step +polling_delay 0 +passive_delay 0 +set_temp 95000 105000 115000 +clr_temp 80000 90000 100000 +device modem_tj modem_tj modem_tj +upper_limit 01 02 03 +lower_limit 01 02 03 +[THERMAL_ZONE_66] +algo_type step_wise +sensor pm8150_tz +polling_delay 0 +passive_delay 100 +set_temp 95000 115000 145000 +clr_temp 95000 115000 145000 +device cpu0+cpu6+cpu7 cpu-isolate1+cpu-isolate2+cpu-isolate3+cpu-isolate5+cpu-isolate6+cpu-isolate7+cpu-isolate4 +upper_limit 08+07+07 01+01+01+01+01+01+01 +lower_limit 08+07+07 01+01+01+01+01+01+01 +[THERMAL_ZONE_67] +algo_type step_wise +sensor pm7250b-tz +polling_delay 0 +passive_delay 100 +set_temp 95000 115000 145000 +clr_temp 95000 115000 145000 +device battery battery +upper_limit 09 10 +lower_limit 09 10 +[THERMAL_ZONE_68] +algo_type step_wise +sensor pm7250b-ibat-lvl0 +polling_delay 0 +passive_delay 0 +set_temp 5500 +clr_temp 5300 +[THERMAL_ZONE_69] +algo_type step_wise +sensor pm7250b-ibat-lvl1 +polling_delay 0 +passive_delay 0 +set_temp 6000 +clr_temp 5800 +[THERMAL_ZONE_70] +algo_type low_limits_cap +sensor pm7250b-vbat-lvl0 +polling_delay 0 +passive_delay 0 +set_temp 2989 +clr_temp 3189 +[THERMAL_ZONE_71] +algo_type low_limits_cap +sensor pm7250b-vbat-lvl1 +polling_delay 0 +passive_delay 0 +set_temp 2800 +clr_temp 3000 +[THERMAL_ZONE_72] +algo_type low_limits_cap +sensor pm7250b-vbat-lvl2 +polling_delay 0 +passive_delay 0 +set_temp 2600 +clr_temp 2800 +[THERMAL_ZONE_73] +algo_type step_wise +sensor pm7250b-bcl-lvl0 +polling_delay 0 +passive_delay 100 +set_temp 1 +clr_temp 0 +device cpu-isolate6+cpu-isolate7 +upper_limit 01+01 +lower_limit 01+01 +[THERMAL_ZONE_74] +algo_type step_wise +sensor pm7250b-bcl-lvl1 +polling_delay 0 +passive_delay 100 +set_temp 1 +clr_temp 0 +device cpu-isolate6+cpu-isolate7 +upper_limit 01+01 +lower_limit 01+01 +[THERMAL_ZONE_75] +algo_type step_wise +sensor pm7250b-bcl-lvl2 +polling_delay 0 +passive_delay 100 +set_temp 1 +clr_temp 0 +device cpu-isolate6+cpu-isolate7 +upper_limit 01+01 +lower_limit 01+01 +[THERMAL_ZONE_76] +algo_type low_limits_cap +sensor soc +polling_delay 0 +passive_delay 5000 +set_temp 5 15 +clr_temp 5 15 +device cpu-isolate6+cpu-isolate7 +upper_limit 01+01 +lower_limit 01+01 +[THERMAL_ZONE_77] +algo_type step_wise +sensor pm8150l_tz +polling_delay 0 +passive_delay 100 +set_temp 95000 115000 145000 +clr_temp 95000 115000 145000 +[THERMAL_ZONE_78] +algo_type low_limits_cap +sensor pm8150l-vph-lvl0 +polling_delay 0 +passive_delay 0 +set_temp 2989 +clr_temp 3189 +[THERMAL_ZONE_79] +algo_type low_limits_cap +sensor pm8150l-vph-lvl1 +polling_delay 0 +passive_delay 0 +set_temp 2750 +clr_temp 2950 +[THERMAL_ZONE_80] +algo_type low_limits_cap +sensor pm8150l-vph-lvl2 +polling_delay 0 +passive_delay 0 +set_temp 2500 +clr_temp 2700 +[THERMAL_ZONE_81] +algo_type step_wise +sensor pm8150l-bcl-lvl0 +polling_delay 0 +passive_delay 100 +set_temp 1 +clr_temp 0 +device cpu-isolate6+cpu-isolate7 +upper_limit 01+01 +lower_limit 01+01 +[THERMAL_ZONE_82] +algo_type step_wise +sensor pm8150l-bcl-lvl1 +polling_delay 0 +passive_delay 100 +set_temp 1 +clr_temp 0 +device cpu-isolate6+cpu-isolate7 +upper_limit 01+01 +lower_limit 01+01 +[THERMAL_ZONE_83] +algo_type step_wise +sensor pm8150l-bcl-lvl2 +polling_delay 0 +passive_delay 100 +set_temp 1 +clr_temp 0 +device cpu-isolate6+cpu-isolate7 +upper_limit 01+01 +lower_limit 01+01 +[THERMAL_ZONE_84] +algo_type step_wise +sensor skin-therm +polling_delay 0 +passive_delay 0 +set_temp 46000 48000 50000 52000 +clr_temp 44000 46000 48000 50000 +device cpu6+cpu7 cpu6+cpu7+gpu cpu0+cpu-isolate5+cpu-isolate6+cpu-isolate7+cpu-isolate4 cpu0 +upper_limit 03+04 04+05+01 05+01+01+01+01 06 +lower_limit 03+04 04+05+01 05+01+01+01+01 06 +[THERMAL_ZONE_85] +algo_type user_space +sensor charger-therm-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_86] +algo_type user_space +sensor usb-tem2-therm-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_87] +algo_type user_space +sensor usb-tem1-therm-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_88] +algo_type user_space +sensor mmw-pa2-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_89] +algo_type user_space +sensor camera-therm-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_90] +algo_type user_space +sensor xo-therm-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_91] +algo_type user_space +sensor pa-therm1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_92] +algo_type user_space +sensor mmw-pa3-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_93] +algo_type user_space +sensor pa-therm2-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_94] +algo_type step_wise +sensor msm-therm +polling_delay 0 +passive_delay 0 +set_temp 55000 57000 +clr_temp 53000 55000 +device cpu6+cpu7 cpu0+gpu +upper_limit 02+01 04+02 +lower_limit 02+01 04+02 +[THERMAL_ZONE_95] +algo_type user_space +sensor mmw-pa1-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[THERMAL_ZONE_96] +algo_type user_space +sensor mmw-pa4-usr +polling_delay 0 +passive_delay 0 +set_temp 125000 +clr_temp 124000 +[Error_THERMAL_ZONE_97] + +[Error_THERMAL_ZONE_98] + +[Error_THERMAL_ZONE_99] + diff --git a/device.mk b/device.mk index 087ff28..cac8fdc 100644 --- a/device.mk +++ b/device.mk @@ -413,6 +413,10 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \ frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml +# Thermal +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf + # Touch PRODUCT_PACKAGES += \ vendor.lineage.touch@1.0-service.oplus diff --git a/proprietary-files.txt b/proprietary-files.txt index 226bdf5..3f7b97e 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1189,7 +1189,6 @@ vendor/lib64/vendor.qti.hardware.soter@1.0.so # Thermal engine vendor/bin/thermal-engine vendor/etc/init/init_thermal-engine.rc -vendor/etc/thermal-engine.conf -vendor/lib/libthermalclient.so -vendor/lib64/libthermalclient.so