zenfone7: Import thermal-engine.conf from Asus release
Change-Id: Id68beaaee2d2f363ea9ab5ba7aa84520a9efe817
Signed-off-by: micky387 <mickaelsaibi@free.fr>
diff --git a/configs/thermal-engine.conf b/configs/thermal-engine.conf
new file mode 100644
index 0000000..647ca1d
--- /dev/null
+++ b/configs/thermal-engine.conf
@@ -0,0 +1,441 @@
+#debug
+
+#Conf file: /vendor/etc/thermal-engine.conf
+
+
+########### NORMAL ###########
+[ASUS_THERM_NORMAL]
+algo_type monitor
+sampling 1000
+sensor virtual-therm
+thresholds 38000 39000 41000 43000 49000 52000
+thresholds_clr 37000 38000 40000 42000 47000 50000
+actions cpu4+cpu7+gpu cpu4+cpu7+gpu cpu4+cpu7+gpu cpu4+cpu7+gpu cpu4+cpu7+gpu cpu4+cpu7+gpu
+action_info 1862400+1747200+525000000 1766400+1632000+490000000 1574400+1401600+441600000 1382400+1305600+441600000 1286400+1305600+400000000 1056000+844800+305000000
+
+########### PERF ###########
+[ASUS_THERM_PERF_CPU0]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu0
+set_point 51000
+set_point_clr 49000
+device_perf_floor 1708800
+
+[ASUS_THERM_PERF_CPU4]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu4
+set_point 51000
+set_point_clr 49000
+device_perf_floor 2246400
+
+[ASUS_THERM_PERF_CPU7]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu7
+set_point 51000
+set_point_clr 49000
+device_perf_floor 2265600
+
+[ASUS_THERM_PERF_GPU]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device gpu
+set_point 51000
+set_point_clr 49000
+device_perf_floor 490000000
+
+########### PERF2 ###########
+[ASUS_THERM_PERF2_CPU0]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu0
+set_point 51000
+set_point_clr 49000
+device_perf_floor 1708800
+
+[ASUS_THERM_PERF2_CPU4]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu4
+set_point 51000
+set_point_clr 49000
+device_perf_floor 2246400
+
+[ASUS_THERM_PERF2_CPU7]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu7
+set_point 51000
+set_point_clr 49000
+device_perf_floor 2265600
+
+[ASUS_THERM_PERF2_GPU]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device gpu
+set_point 51000
+set_point_clr 49000
+device_perf_floor 490000000
+
+########### BENCH ###########
+[ASUS_THERM_BENCH_CPU0]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu0
+set_point 51000
+set_point_clr 49000
+device_perf_floor 1708800
+
+[ASUS_THERM_BENCH_CPU4]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu4
+set_point 51000
+set_point_clr 49000
+device_perf_floor 2246400
+
+[ASUS_THERM_BENCH_CPU7]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu7
+set_point 51000
+set_point_clr 49000
+device_perf_floor 2265600
+
+[ASUS_THERM_BENCH_GPU]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device gpu
+set_point 59000
+set_point_clr 57000
+device_perf_floor 490000000
+
+########### GAME ###########
+[ASUS_THERM_GAME_CPU0]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu0
+set_point 42000
+set_point_clr 41000
+device_perf_floor 1804800
+
+[ASUS_THERM_GAME_CPU4]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu4
+set_point 42000
+set_point_clr 41000
+device_perf_floor 1670400
+
+[ASUS_THERM_GAME_CPU7]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device cpu7
+set_point 42000
+set_point_clr 41000
+device_perf_floor 1632000
+
+[ASUS_THERM_GAME_GPU]
+algo_type ss
+disable 1
+sampling 3000
+sensor virtual-therm
+device gpu
+set_point 42000
+set_point_clr 41000
+device_perf_floor 490000000
+
+[ASUS_SHUTDOWN]
+algo_type monitor
+sampling 1000
+sensor virtual-therm
+thresholds 62000 65000
+thresholds_clr 60000 63000
+actions cpu4+cpu7+gpu cpu4+cpu7+gpu+shutdown
+action_info 825600+844800+257000000 710400+844800+257000000+5000
+
+
+[ASUS_CAM_THERM]
+
+algo_type monitor
+
+sampling 1000
+
+sensor camera-therm-usr
+
+thresholds 125000
+
+thresholds_clr 120000
+
+actions cpu0
+
+action_info 1804800
+
+
+############ CPU TSense #############
+[ASUS_TSCPU_0]
+algo_type monitor
+sampling 250
+sensor cpu-1-0-usr
+thresholds 55000 65000
+thresholds_clr 50000 58000
+actions cpu4 cpu4
+action_info 1478400 1075200
+
+[ASUS_TSCPU_1]
+algo_type monitor
+sampling 250
+sensor cpu-1-1-usr
+thresholds 55000 65000
+thresholds_clr 50000 58000
+actions cpu4 cpu4
+action_info 1478400 1075200
+
+[ASUS_TSCPU_2]
+algo_type monitor
+sampling 250
+sensor cpu-1-2-usr
+thresholds 55000 65000
+thresholds_clr 50000 58000
+actions cpu4 cpu4
+action_info 1478400 1075200
+
+[ASUS_TSCPU_3]
+algo_type monitor
+sampling 250
+sensor cpu-1-3-usr
+thresholds 55000 65000
+thresholds_clr 50000 58000
+actions cpu7 cpu7
+action_info 1478400 1075200
+
+[ASUS_TSCPU_4]
+algo_type monitor
+sampling 250
+sensor cpu-1-4-usr
+thresholds 55000 65000
+thresholds_clr 50000 58000
+actions cpu4 cpu4
+action_info 1478400 1075200
+
+[ASUS_TSCPU_5]
+algo_type monitor
+sampling 250
+sensor cpu-1-5-usr
+thresholds 55000 65000
+thresholds_clr 50000 58000
+actions cpu4 cpu4
+action_info 1478400 1075200
+
+[ASUS_TSCPU_6]
+algo_type monitor
+sampling 250
+sensor cpu-1-6-usr
+thresholds 55000 65000
+thresholds_clr 50000 58000
+actions cpu4 cpu4
+action_info 1190400 1075200
+
+[ASUS_TSCPU_7]
+algo_type monitor
+sampling 250
+sensor cpu-1-7-usr
+thresholds 55000 65000
+thresholds_clr 50000 58000
+actions cpu7 cpu7
+action_info 1190400 1075200
+
+
+############ CPU TSense2 #############
+[ASUS_TSCPU2_0]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-0-usr
+thresholds 65000
+thresholds_clr 58000
+actions cpu4
+action_info 1075200
+
+[ASUS_TSCPU2_1]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-1-usr
+thresholds 65000
+thresholds_clr 58000
+actions cpu4
+action_info 1075200
+
+[ASUS_TSCPU2_2]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-2-usr
+thresholds 65000
+thresholds_clr 58000
+actions cpu4
+action_info 1075200
+
+[ASUS_TSCPU2_3]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-3-usr
+thresholds 65000
+thresholds_clr 58000
+actions cpu7
+action_info 1075200
+
+[ASUS_TSCPU2_4]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-4-usr
+thresholds 65000
+thresholds_clr 58000
+actions cpu4
+action_info 1075200
+
+[ASUS_TSCPU2_5]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-5-usr
+thresholds 65000
+thresholds_clr 58000
+actions cpu4
+action_info 1075200
+
+[ASUS_TSCPU2_6]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-6-usr
+thresholds 65000
+thresholds_clr 58000
+actions cpu4
+action_info 1075200
+
+[ASUS_TSCPU2_7]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-7-usr
+thresholds 65000
+thresholds_clr 58000
+actions cpu7
+action_info 1075200
+
+############ CPU TSense3 #############
+[ASUS_TSCPU3_0]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-0-usr
+thresholds 85000
+thresholds_clr 78000
+actions cpu4
+action_info 1766400
+
+[ASUS_TSCPU3_1]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-1-usr
+thresholds 85000
+thresholds_clr 78000
+actions cpu4
+action_info 1766400
+
+[ASUS_TSCPU3_2]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-2-usr
+thresholds 85000
+thresholds_clr 78000
+actions cpu4
+action_info 1766400
+
+[ASUS_TSCPU3_3]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-3-usr
+thresholds 85000
+thresholds_clr 78000
+actions cpu7
+action_info 1516800
+
+[ASUS_TSCPU3_4]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-4-usr
+thresholds 85000
+thresholds_clr 78000
+actions cpu4
+action_info 1766400
+
+[ASUS_TSCPU3_5]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-5-usr
+thresholds 85000
+thresholds_clr 78000
+actions cpu4
+action_info 1766400
+
+[ASUS_TSCPU3_6]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-6-usr
+thresholds 85000
+thresholds_clr 78000
+actions cpu4
+action_info 1766400
+
+[ASUS_TSCPU3_7]
+algo_type monitor
+disable 1
+sampling 250
+sensor cpu-1-7-usr
+thresholds 85000
+thresholds_clr 78000
+actions cpu7
+action_info 1516800
diff --git a/device.mk b/device.mk
index 3e56e41..65308fe 100755
--- a/device.mk
+++ b/device.mk
@@ -134,6 +134,9 @@
hardware/google/pixel
# Thermal
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf
+
PRODUCT_PACKAGES += \
android.hardware.thermal-service.qti
diff --git a/proprietary-files-vendor.txt b/proprietary-files-vendor.txt
index b69c348..1f91b18 100644
--- a/proprietary-files-vendor.txt
+++ b/proprietary-files-vendor.txt
@@ -985,7 +985,6 @@
vendor/etc/ssg/ta_config.json
vendor/etc/ssg/tz_whitelist.json
vendor/etc/system_properties.xml
-vendor/etc/thermal-engine.conf
vendor/etc/usb_audio_policy_configuration.xml
vendor/etc/vintf/manifest/android.hardware.gnss@2.1-service-qti.xml
vendor/etc/vintf/manifest/android.hardware.neuralnetworks@1.3-service-qti-hta.xml