diff --git a/configs/thermal-engine-curtana.conf b/configs/thermal-engine-curtana.conf new file mode 100644 index 0000000..10201ea --- /dev/null +++ b/configs/thermal-engine-curtana.conf @@ -0,0 +1,66 @@ +[SS-SKIN-HIGH-CPU7] +algo_type ss +sampling 2000 +sensor quiet-therm-usr +device cpu7 +set_point 43000 +set_point_clr 42000 +device_max_limit 1555200 +time_constant 0 + +[SS-SKIN-LOW-CPU7] +algo_type ss +sampling 2000 +sensor quiet-therm-usr +device cpu7 +set_point 45000 +set_point_clr 44000 +device_max_limit 1324800 +time_constant 0 + +[HOT-SKIN-VIRTUAL] +algo_type virtual +trip_sensor quiet-therm-usr +sensors gpuss-0-usr cpuss-0-usr +list_cnt 2 +weights 1 -1 +thresholds 45000 +thresholds_clr 43000 +sampling 1000 +math 0 + +[VIRTUAL-SS-GPU-SKIN] +algo_type ss +sensor HOT-SKIN-VIRTUAL +device gpu +sampling 1000 +set_point 8000 +set_point_clr 2000 +device_max_limit 565000000 + +[SKIN-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 48000 49000 50000 61000 +thresholds_clr 47000 48000 49000 60000 +actions cpu0+cpu7+gpu cpu0+cpu7+gpu cpu0+cpu7+gpu shutdown +action_info 1248000+1555200+565000000 1017600+1113600+430000000 768000+825600+267000000 1 + +[BATTERY-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 36000 37000 38000 40000 41000 42000 43000 +thresholds_clr 35000 36000 37000 39000 40000 41000 42000 +actions battery battery battery battery battery battery battery +action_info 1 2 3 4 5 6 8 + +[MODEM-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 50000 54000 56000 +thresholds_clr 48000 52000 54000 +actions modem+modem_proc modem+modem_proc modem+modem_proc +action_info 1+1 1+2 3+3 diff --git a/configs/thermal-engine-excalibur.conf b/configs/thermal-engine-excalibur.conf new file mode 100644 index 0000000..b0f6077 --- /dev/null +++ b/configs/thermal-engine-excalibur.conf @@ -0,0 +1,66 @@ +[SS-SKIN-HIGH-CPU7] +algo_type ss +sampling 2000 +sensor quiet-therm-usr +device cpu7 +set_point 43000 +set_point_clr 42000 +device_max_limit 1555200 +time_constant 0 + +[SS-SKIN-LOW-CPU7] +algo_type ss +sampling 2000 +sensor quiet-therm-usr +device cpu7 +set_point 45000 +set_point_clr 44000 +device_max_limit 1324800 +time_constant 0 + +[HOT-SKIN-VIRTUAL] +algo_type virtual +trip_sensor quiet-therm-usr +sensors gpuss-0-usr cpuss-0-usr +list_cnt 2 +weights 1 -1 +thresholds 45000 +thresholds_clr 43000 +sampling 1000 +math 0 + +[VIRTUAL-SS-GPU-SKIN] +algo_type ss +sensor HOT-SKIN-VIRTUAL +device gpu +sampling 1000 +set_point 8000 +set_point_clr 2000 +device_max_limit 565000000 + +[SKIN-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 48000 49000 50000 61000 +thresholds_clr 47000 48000 49000 60000 +actions cpu0+cpu7+gpu cpu0+cpu7+gpu cpu0+cpu7+gpu shutdown +action_info 1248000+1555200+565000000 1017600+1113600+430000000 768000+825600+267000000 1 + +[BATTERY-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 37000 38000 39000 40000 41000 42000 43000 +thresholds_clr 36000 37000 38000 39000 40000 41000 42000 +actions battery battery battery battery battery battery battery +action_info 2 6 9 11 13 14 15 + +[MODEM-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 50000 54000 56000 +thresholds_clr 48000 52000 54000 +actions modem+modem_proc modem+modem_proc modem+modem_proc +action_info 1+1 1+2 3+3 diff --git a/configs/thermal-engine-gram.conf b/configs/thermal-engine-gram.conf new file mode 100644 index 0000000..b0f6077 --- /dev/null +++ b/configs/thermal-engine-gram.conf @@ -0,0 +1,66 @@ +[SS-SKIN-HIGH-CPU7] +algo_type ss +sampling 2000 +sensor quiet-therm-usr +device cpu7 +set_point 43000 +set_point_clr 42000 +device_max_limit 1555200 +time_constant 0 + +[SS-SKIN-LOW-CPU7] +algo_type ss +sampling 2000 +sensor quiet-therm-usr +device cpu7 +set_point 45000 +set_point_clr 44000 +device_max_limit 1324800 +time_constant 0 + +[HOT-SKIN-VIRTUAL] +algo_type virtual +trip_sensor quiet-therm-usr +sensors gpuss-0-usr cpuss-0-usr +list_cnt 2 +weights 1 -1 +thresholds 45000 +thresholds_clr 43000 +sampling 1000 +math 0 + +[VIRTUAL-SS-GPU-SKIN] +algo_type ss +sensor HOT-SKIN-VIRTUAL +device gpu +sampling 1000 +set_point 8000 +set_point_clr 2000 +device_max_limit 565000000 + +[SKIN-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 48000 49000 50000 61000 +thresholds_clr 47000 48000 49000 60000 +actions cpu0+cpu7+gpu cpu0+cpu7+gpu cpu0+cpu7+gpu shutdown +action_info 1248000+1555200+565000000 1017600+1113600+430000000 768000+825600+267000000 1 + +[BATTERY-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 37000 38000 39000 40000 41000 42000 43000 +thresholds_clr 36000 37000 38000 39000 40000 41000 42000 +actions battery battery battery battery battery battery battery +action_info 2 6 9 11 13 14 15 + +[MODEM-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 50000 54000 56000 +thresholds_clr 48000 52000 54000 +actions modem+modem_proc modem+modem_proc modem+modem_proc +action_info 1+1 1+2 3+3 diff --git a/configs/thermal-engine-joyeuse.conf b/configs/thermal-engine-joyeuse.conf new file mode 100644 index 0000000..697beeb --- /dev/null +++ b/configs/thermal-engine-joyeuse.conf @@ -0,0 +1,66 @@ +[SS-SKIN-HIGH-CPU7] +algo_type ss +sampling 2000 +sensor quiet-therm-usr +device cpu7 +set_point 43000 +set_point_clr 42000 +device_max_limit 1555200 +time_constant 0 + +[SS-SKIN-LOW-CPU7] +algo_type ss +sampling 2000 +sensor quiet-therm-usr +device cpu7 +set_point 45000 +set_point_clr 44000 +device_max_limit 1324800 +time_constant 0 + +[HOT-SKIN-VIRTUAL] +algo_type virtual +trip_sensor quiet-therm-usr +sensors gpuss-0-usr cpuss-0-usr +list_cnt 2 +weights 1 -1 +thresholds 45000 +thresholds_clr 43000 +sampling 1000 +math 0 + +[VIRTUAL-SS-GPU-SKIN] +algo_type ss +sensor HOT-SKIN-VIRTUAL +device gpu +sampling 1000 +set_point 8000 +set_point_clr 2000 +device_max_limit 565000000 + +[SKIN-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 48000 49000 50000 61000 +thresholds_clr 47000 48000 49000 60000 +actions cpu0+cpu7+gpu cpu0+cpu7+gpu cpu0+cpu7+gpu shutdown +action_info 1248000+1555200+565000000 1017600+1113600+430000000 768000+825600+267000000 1 + +[BATTERY-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 37000 38000 39000 40000 41000 42000 43000 +thresholds_clr 36000 37000 38000 39000 40000 41000 42000 +actions battery battery battery battery battery battery battery +action_info 2 6 8 9 11 13 14 + +[MODEM-MONITOR] +algo_type monitor +sampling 1000 +sensor quiet-therm-usr +thresholds 50000 54000 56000 +thresholds_clr 48000 52000 54000 +actions modem+modem_proc modem+modem_proc modem+modem_proc +action_info 1+1 1+2 3+3 diff --git a/device.mk b/device.mk index 8906ccb..b6c2cfa 100644 --- a/device.mk +++ b/device.mk @@ -45,6 +45,13 @@ PRODUCT_PACKAGES += \ PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) +# Thermal +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/thermal-engine-curtana.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-curtana.conf \ + $(LOCAL_PATH)/configs/thermal-engine-excalibur.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-excalibur.conf \ + $(LOCAL_PATH)/configs/thermal-engine-gram.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-gram.conf \ + $(LOCAL_PATH)/configs/thermal-engine-joyeuse.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-joyeuse.conf + # Inherit from sm6250-common $(call inherit-product, device/xiaomi/sm6250-common/atoll.mk)