From 05447bf3ccd2e50c68f3e16ca8a22452b438ae71 Mon Sep 17 00:00:00 2001 From: clarencelol Date: Tue, 10 May 2022 15:30:19 +0800 Subject: [PATCH] sdm660-common: Update thermal blobs from laurel_sprout * Seems to work just fine with 4.19 version of jaswayne * Nuked mi_thermald Signed-off-by: clarencelol Signed-off-by: pix106 --- configs/thermal/thermal-engine-high.conf | 25 ++++++++++++++++++++ configs/thermal/thermal-engine-map.conf | 8 +++---- configs/thermal/thermal-engine-nolimits.conf | 25 ++++++++++++++++++++ configs/thermal/thermal-engine-normal.conf | 25 ++++++++++++++++++++ proprietary-files.txt | 8 +++---- sdm660.mk | 8 +++---- 6 files changed, 85 insertions(+), 14 deletions(-) create mode 100644 configs/thermal/thermal-engine-high.conf create mode 100644 configs/thermal/thermal-engine-nolimits.conf create mode 100644 configs/thermal/thermal-engine-normal.conf diff --git a/configs/thermal/thermal-engine-high.conf b/configs/thermal/thermal-engine-high.conf new file mode 100644 index 00000000..a1d178bc --- /dev/null +++ b/configs/thermal/thermal-engine-high.conf @@ -0,0 +1,25 @@ +# SENSOR : ALIAS + +#debug +#Conf file: /vendor/etc/thermal-engine-high.conf + +[TEMP_STATE] +algo_type monitor +sampling 10000 +sensor xo-therm-adc +thresholds 58000 +thresholds_clr 53000 +actions tempState +action_info 5 + +[TEMP_CPU0] +algo_type ss +sampling 1000 +sensor xo-therm-adc +device cpu2 +set_point 120000 +set_point_clr 100000 +time_constant 2 +device_max_limit 1747200 + + diff --git a/configs/thermal/thermal-engine-map.conf b/configs/thermal/thermal-engine-map.conf index 8079147e..9969953f 100644 --- a/configs/thermal/thermal-engine-map.conf +++ b/configs/thermal/thermal-engine-map.conf @@ -1,5 +1,3 @@ -[0:thermal-engine-default.conf] -[1:thermal-engine-performance.conf] -[2:thermal-engine-battery.conf] -[3:thermal-engine-gameing.conf] -[4:thermal-engine-battery2.conf] +[0:thermal-engine-normal.conf] +[1:thermal-engine-high.conf] +[10:thermal-engine-nolimits.conf] diff --git a/configs/thermal/thermal-engine-nolimits.conf b/configs/thermal/thermal-engine-nolimits.conf new file mode 100644 index 00000000..4372fc51 --- /dev/null +++ b/configs/thermal/thermal-engine-nolimits.conf @@ -0,0 +1,25 @@ +# SENSOR : ALIAS + +#debug +#Conf file: /vendor/etc/thermal-engine-nolimits.conf + +[TEMP_STATE] +algo_type monitor +sampling 10000 +sensor xo-therm-adc +thresholds 58000 +thresholds_clr 53000 +actions tempState +action_info 5 + +[TEMP_CPU0] +algo_type ss +sampling 1000 +sensor xo-therm-adc +device cpu2 +set_point 120000 +set_point_clr 100000 +time_constant 2 +device_max_limit 1747200 + + diff --git a/configs/thermal/thermal-engine-normal.conf b/configs/thermal/thermal-engine-normal.conf new file mode 100644 index 00000000..a9df94e8 --- /dev/null +++ b/configs/thermal/thermal-engine-normal.conf @@ -0,0 +1,25 @@ +# SENSOR : ALIAS + +#debug +#Conf file: /vendor/etc/thermal-engine-normal.conf + +[TEMP_STATE] +algo_type monitor +sampling 10000 +sensor xo-therm-adc +thresholds 58000 +thresholds_clr 53000 +actions tempState +action_info 5 + +[TEMP_CPU0] +algo_type ss +sampling 1000 +sensor xo-therm-adc +device cpu2 +set_point 120000 +set_point_clr 100000 +time_constant 2 +device_max_limit 1747200 + + diff --git a/proprietary-files.txt b/proprietary-files.txt index c90976d7..5fb2dfeb 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -794,11 +794,11 @@ vendor/etc/init/vendor.qti.hardware.soter@1.0-service.rc|76447a61ad5529949365eeb vendor/lib64/hw/vendor.qti.hardware.soter@1.0-impl.so|032e38d60840b5ac7ca21eece486ca5acab7f203 vendor/lib64/vendor.qti.hardware.soter@1.0.so|5496f7816036ef71aec0116864032f8a6078aee7 -# Thermal - from LA.UM.10.2.1.r1-03400-sdm660.0-kunmun -vendor/bin/thermal-engine|6141013a5402a1a495b18ead103f0753277c8afd +# Thermal - from laurel_sprout V12.0.15.0.RFQMIXM +vendor/bin/thermal-engine|c0f7dc730227266d9fbe01a4c730a1ee91a60254 vendor/etc/init/init_thermal-engine.rc|a0310f09da9f09c67e110607b73aec9f9f981c4c --vendor/lib/libthermalclient.so|0fcade69460becdbb5adb54e5ff9d11ff8d32c23 --vendor/lib64/libthermalclient.so|30033f4831c1b6e30d9cee4a93b599fdf97cb3a7 +-vendor/lib/libthermalclient.so|196acc1aaae1810ea9ba56bf9e1bb9ee2e486f6a +-vendor/lib64/libthermalclient.so|8f2411404f56c6d15e6a185124bbc7f8c2adf195 # Time services - from LA.UM.10.2.1.r1-03400-sdm660.0-kunmun -vendor/app/TimeService/TimeService.apk|b3e694ecbf8eccf3b503b2adfc1133f13fa0c176 diff --git a/sdm660.mk b/sdm660.mk index 2b04d522..69a85fea 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -589,12 +589,10 @@ PRODUCT_PACKAGES += \ # Thermal Conf PRODUCT_COPY_FILES += \ $(COMMON_PATH)/configs/thermal/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \ - $(COMMON_PATH)/configs/thermal/thermal-engine-battery.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-battery.conf \ - $(COMMON_PATH)/configs/thermal/thermal-engine-battery2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-battery2.conf \ - $(COMMON_PATH)/configs/thermal/thermal-engine-default.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-default.conf \ - $(COMMON_PATH)/configs/thermal/thermal-engine-gameing.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-gameing.conf \ + $(COMMON_PATH)/configs/thermal/thermal-engine-high.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-high.conf \ $(COMMON_PATH)/configs/thermal/thermal-engine-map.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-map.conf \ - $(COMMON_PATH)/configs/thermal/thermal-engine-performance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-performance.conf + $(COMMON_PATH)/configs/thermal/thermal-engine-nolimits.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-nolimits.conf \ + $(COMMON_PATH)/configs/thermal/thermal-engine-normal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-normal.conf # USB PRODUCT_PACKAGES += \