From 08ae7e3f90a13b370a35fb293c944b335c3afc8e Mon Sep 17 00:00:00 2001 From: Marc Bourgoin Date: Mon, 2 Oct 2023 14:26:27 -0600 Subject: [PATCH] dubai: Import thermal-engine config into device tree Change-Id: I0e1dcc5c8734f79b37e80b4a0379d4efd4068582 --- configs/thermal-engine-dubai.conf | 119 ++++++++++++++++++++++++++++++ device.mk | 4 + proprietary-files.txt | 1 - 3 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 configs/thermal-engine-dubai.conf diff --git a/configs/thermal-engine-dubai.conf b/configs/thermal-engine-dubai.conf new file mode 100644 index 0000000..e1af95c --- /dev/null +++ b/configs/thermal-engine-dubai.conf @@ -0,0 +1,119 @@ +[DETECT-STANDBY] +algo_type virtual +trip_sensor msm_therm +thresholds -18000 +thresholds_clr -20000 +sensors lcd_brightness_value +weights 20 +sampling 1000 +less_than +math 7 + +[OVERRIDE-CHG] +algo_type monitor +sampling 1000 +sensor DETECT-STANDBY +thresholds 1 +thresholds_clr 0 +actions internal_override +action_info 1 + +[FREEZE-CHG] +algo_type monitor +sampling 1000 +descending +sensor DETECT-STANDBY +thresholds 0 +thresholds_clr 1 +actions freeze_rule +action_info 1 + +[FRONT_TEMP] +algo_type virtual +trip_sensor msm_therm +thresholds -18000 +thresholds_clr -20000 +sensors pa_therm1 battery +weights 35 65 +offsets 0 0 +sampling 5000 +math 0 +sys_temp + +[REPORT-FRONT-TEMP] +algo_type monitor +sampling 300000 +sensor FRONT_TEMP +thresholds 42000 +thresholds_clr 40000 +actions report +action_info 1 + +[BACK_TEMP] +algo_type virtual +trip_sensor msm_therm +thresholds -18000 +thresholds_clr -20000 +sensors msm_therm battery +weights 50 50 +offsets -800 +sampling 5000 +math 0 +sys_temp + +[REPORT-BACK-TEMP] +algo_type monitor +sampling 300000 +sensor BACK_TEMP +thresholds 42000 +thresholds_clr 40000 +actions report +action_info 1 + +[MON-PDPOWER1] +algo_type monitor +sampling 1000 +sensor quiet_therm +thresholds 43000 43500 44000 44500 46000 47500 48500 70000 +thresholds_clr 41000 41500 42000 42500 44000 45500 46500 68000 +actions battery battery battery battery battery battery battery battery +action_info 8 7 6 5 4 3 2 2 +freezing + +[MON-PDPOWER2] +algo_type monitor +sampling 1000 +sensor msm_therm +thresholds 41000 42000 43000 44000 46000 48000 50000 70000 +thresholds_clr 39000 40000 41000 42000 44000 46000 48000 68000 +actions battery battery battery battery battery battery battery battery +action_info 8 6 5 4 3 2 1 1 +override_c 15000 + + +[MON-MSM-CPU47] +algo_type monitor +sampling 1000 +sensor msm_therm +thresholds 45000 46000 47000 48000 49000 51000 53000 70000 +thresholds_clr 42000 44000 45000 46000 47000 49000 51000 68000 +actions cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 cpu4+cpu7 +action_info 21312000+2380800 2054400+2208000 1900800+2035200 1651200+1862400 1516800+1766400 1344000+1516800 1228800+1324800 1228800+1324800 + +[MON-MSM-CPU0] +algo_type monitor +sampling 1000 +sensor msm_therm +thresholds 46000 48000 50000 52000 54000 70000 +thresholds_clr 44000 46000 48000 50000 52000 68000 +actions cpu0 cpu0 cpu0 cpu0 cpu0 cpu0 +action_info 1651200 1516800 1324800 1152000 940800 940800 + +[MON-PA-FR1] +algo_type monitor +sampling 5000 +sensor BACK_TEMP +thresholds 47000 +thresholds_clr 46000 +actions modem_pa_fr1 +action_info 1 diff --git a/device.mk b/device.mk index d23de72..c3a208d 100644 --- a/device.mk +++ b/device.mk @@ -97,5 +97,9 @@ PRODUCT_COPY_FILES += \ # Soong namespaces PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH) +# Thermal +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/thermal-engine-dubai.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-dubai.conf + # Inherit from vendor blobs $(call inherit-product, vendor/motorola/dubai/dubai-vendor.mk) diff --git a/proprietary-files.txt b/proprietary-files.txt index 6843d8d..ac50014 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -509,7 +509,6 @@ vendor/etc/sensors/proto/sns_wrist_tilt_gesture.proto vendor/etc/sensors/sns_reg_config # Thermal engine - configs -vendor/etc/thermal-engine-dubai.conf vendor/etc/thermal-engine.conf # Touchscreen firmware