From b6dd129962760e1e0b05ef8eed0b3acc754d8e40 Mon Sep 17 00:00:00 2001 From: GiaSen Date: Sun, 26 Jul 2020 17:36:03 +0200 Subject: [PATCH] kunlun2: add proper thermal config --- configs/thermal-engine.conf | 107 ++++++++++++++++++++++++++++++++++++ device.mk | 4 ++ 2 files changed, 111 insertions(+) create mode 100755 configs/thermal-engine.conf diff --git a/configs/thermal-engine.conf b/configs/thermal-engine.conf new file mode 100755 index 0000000..919ff3d --- /dev/null +++ b/configs/thermal-engine.conf @@ -0,0 +1,107 @@ +[MSM-THERM0-0] +algo_type ss +sampling 100 +sensor msm-therm-adc +device cpu0 +set_point 50000 +set_point_clr 48000 +device_max_limit 1612800 + +[MSM-THERM0-1] +algo_type ss +sampling 100 +sensor msm-therm-adc +device cpu0 +set_point 52000 +set_point_clr 50000 +device_max_limit 1516800 + +[MSM-THERM0-2] +algo_type ss +sampling 100 +sensor msm-therm-adc +device cpu0 +set_point 54000 +set_point_clr 52000 +device_max_limit 1324800 + +[MSM-THERM0-PERF] +algo_type ss +sampling 100 +sensor msm-therm-adc +device cpu0 +set_point 54000 +set_point_clr 52000 +device_max_limit 1708800 + +[MSM-THERM1-0] +algo_type ss +sampling 100 +sensor msm-therm-adc +device cpu6 +set_point 50000 +set_point_clr 48000 +device_max_limit 2054400 + +[MSM-THERM1-1] +algo_type ss +sampling 100 +sensor msm-therm-adc +device cpu6 +set_point 52000 +set_point_clr 50000 +device_max_limit 1843200 + +[MSM-THERM1-2] +algo_type ss +sampling 100 +sensor msm-therm-adc +device cpu6 +set_point 54000 +set_point_clr 52000 +device_max_limit 1747200 + +[MSM-THERM1-3] +algo_type ss +sampling 100 +sensor msm-therm-adc +device cpu6 +set_point 56000 +set_point_clr 54000 +device_max_limit 1536000 + +[MSM-THERM1-PERF] +algo_type ss +sampling 100 +sensor msm-therm-adc +device cpu6 +set_point 56000 +set_point_clr 54000 +device_max_limit 2054400 + +[SS-GPU] +algo_type ss +sampling 250 +sensor gpu0-usr +device gpu +set_point 85000 +set_point_clr 60000 + + +[MODEM_PROC_TEMP_MITIGATION] +disable 1 + +[MODEM_PA_MITIGATION] +disable 1 + +[CAMERA_SKIN_EXIT_MITIGATION] +disable 1 + +[BATTERY_CHARGING_CTL] +algo_type monitor +sampling 1000 +sensor xo-therm-adc +thresholds 40000 42000 44000 46000 48000 +thresholds_clr 40000 42000 44000 46000 48000 +actions battery battery battery battery battery +action_info 1 2 3 4 5 diff --git a/device.mk b/device.mk index b38e90b..fd1b936 100644 --- a/device.mk +++ b/device.mk @@ -135,6 +135,10 @@ PRODUCT_PACKAGES += \ qti-telephony-utils \ qti_telephony_utils.xml +# Thermal config +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/thermal-engine.conf + # USB PRODUCT_PACKAGES += \ android.hardware.usb@1.0-service.lenovo_kunlun2