aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/thermal-engine.conf34
-rwxr-xr-xmsm8996.mk3
2 files changed, 37 insertions, 0 deletions
diff --git a/configs/thermal-engine.conf b/configs/thermal-engine.conf
new file mode 100644
index 0000000..598ca5a
--- /dev/null
+++ b/configs/thermal-engine.conf
@@ -0,0 +1,34 @@
+# File empty by default.
+# Replace contents of this file with custom configuration.
+
+[SS-GPU]
+#algo_type ss
+disable
+
+[SS-POPMEM]
+#algo_type ss
+sampling 10
+sensor pop_mem
+device cluster1
+set_point 65000
+set_point_clr 55000
+time_constant 16
+
+[SS-CPUS-ALL]
+#algo_type ss
+sampling 10
+sensor VIRTUAL-CPUS
+device cpu_voltage
+set_point 65000
+set_point_clr 55000
+time_constant 0
+
+[battery_monitor]
+algo_type monitor
+sensor tsens_tz_sensor17
+sampling 1000
+thresholds 49000 55000
+thresholds_clr 47000 53000
+actions battery battery battery
+action_info 0 1
+
diff --git a/msm8996.mk b/msm8996.mk
index f6bc26b..e6ddda2 100755
--- a/msm8996.mk
+++ b/msm8996.mk
@@ -400,3 +400,6 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.thermal@1.0-impl \
android.hardware.thermal@1.0-service
+
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf