diff --git a/configs/thermal-engine-rtwo.conf b/configs/thermal-engine-rtwo.conf new file mode 100644 index 0000000..52e98ea --- /dev/null +++ b/configs/thermal-engine-rtwo.conf @@ -0,0 +1,236 @@ +[FRONT_TEMP] +algo_type virtual +trip_sensor msm-therm +thresholds -18000 +thresholds_clr -20000 +sensors msm-therm pa0-therm quiet-therm mchg-therm pa1-therm +weights 18 5 55 17 5 +offsets -4000 0 0 0 0 +sampling 2000 +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 + +[FUSE_TEMP] +algo_type virtual +trip_sensor msm-therm +thresholds -18000 +thresholds_clr -20000 +sensors msm-therm pa0-therm quiet-therm mchg-therm pa1-therm +weights 18 5 55 17 5 +offsets 0 0 0 0 0 +sampling 2000 +math 0 +sys_temp + +[BACK_TEMP] +algo_type virtual +trip_sensor msm-therm +thresholds -18000 +thresholds_clr -20000 +sensors msm-therm quiet-therm mchg-therm +weights 15 56 29 +offsets -4000 0 0 +sampling 2000 +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-MSM-CPU0] +algo_type monitor +sampling 2000 +sensor FUSE_TEMP +thresholds 42000 45000 48000 +thresholds_clr 39000 42000 45000 +actions cpu0 cpu0 cpu0 +action_info 1670400 1459200 1228800 + +[MON-MSM-CPU3] +algo_type monitor +sampling 2000 +sensor FUSE_TEMP +thresholds 38000 40000 42000 44000 46000 50000 +thresholds_clr 35000 38000 40000 42000 44000 46000 +actions cpu3 cpu3 cpu3 cpu3 cpu3 cpu3 +action_info 2188800 1920000 1785600 1536000 1286400 1171200 + +[MON-MSM-CPU7] +algo_type monitor +sampling 2000 +sensor FUSE_TEMP +thresholds 38000 40000 42000 44000 46000 50000 +thresholds_clr 35000 38000 40000 42000 44000 46000 +actions cpu7 cpu7 cpu7 cpu7 cpu7 cpu7 +action_info 2092800 1708800 1593600 1248000 1132800 998400 + +[MON-MSM-GPU] +algo_type monitor +sampling 2000 +sensor FUSE_TEMP +thresholds 40000 41000 42000 45000 50000 +thresholds_clr 38000 40000 41000 42000 45000 +actions gpu gpu gpu gpu gpu +action_info 615000000 550000000 475000000 348000000 295000000 + +[FCHG_TEMP] +algo_type virtual +trip_sensor msm-therm +thresholds -18000 +thresholds_clr -20000 +sensors msm-therm pa0-therm quiet-therm mchg-therm pa1-therm +weights 18 5 55 17 5 +offsets 0 0 0 0 0 +sampling 2000 +math 0 + +[FCHG1_TEMP] +algo_type virtual +trip_sensor msm-therm +thresholds -18000 +thresholds_clr -20000 +sensors msm-therm pa0-therm quiet-therm mchg-therm pa1-therm +weights 18 5 55 17 5 +offsets -500 0 0 0 0 +sampling 2000 +math 0 + +[DETECT-STANDBY] +algo_type virtual +trip_sensor msm-therm +thresholds -18000 +thresholds_clr -20000 +sensors lcd_brightness_value +weights 400 +sampling 1000 +math 8 +less_than + +[OVERRIDE-CHG] +algo_type monitor +sampling 2000 +sensor DETECT-STANDBY +thresholds 0 +thresholds_clr 1 +actions internal_override +action_info 1 +descending + +[SS-BATT0] +algo_type ss +sampling 2000 +sensor FCHG_TEMP +device battery +set_point 35000 +set_point_clr 33000 +time_constant 0 +device_max_limit 10 +override_c -3500 + +[SS-BATT1] +algo_type ss +sampling 2000 +sensor FCHG_TEMP +device battery +set_point 37000 +set_point_clr 36000 +time_constant 0 +device_max_limit 9 +override_c -3500 + +[SS-BATT2] +algo_type ss +sampling 2000 +sensor FCHG1_TEMP +device battery +set_point 38500 +set_point_clr 37000 +time_constant 0 +device_max_limit 8 +override_c -3500 + +[SS-BATT3] +algo_type ss +sampling 2000 +sensor FCHG1_TEMP +device battery +set_point 40500 +set_point_clr 40200 +time_constant 0 +device_max_limit 7 +override_c -3500 + +[SS-BATT4] +algo_type ss +sampling 2000 +sensor FCHG_TEMP +device battery +set_point 42500 +set_point_clr 41500 +time_constant 0 +device_max_limit 6 +override_c -3500 + +[MON-BATT5] +algo_type monitor +sampling 1000 +sensor FCHG_TEMP +thresholds 43500 45500 47500 50500 52000 +thresholds_clr 42500 43500 45500 47500 50500 +actions battery battery battery battery battery +action_info 5 4 3 2 1 +override_c -3500 + +[BACK_MDM] +algo_type virtual +sensors msm-therm pa0-therm quiet-therm mchg-therm pa1-therm +weights 18 5 55 17 5 +trip_sensor mdmss-0 mdmss-1 mdmss-2 mdmss-3 +trip_sensor_logic || || || +thresholds 60000 60000 60000 60000 +thresholds_clr 40000 40000 40000 40000 +offsets 1000 0 0 0 0 +sampling 2000 +math 0 + +[MON-wireless-charge] +algo_type monitor +sampling 2000 +sensor FCHG_TEMP +thresholds 38000 41500 45500 +thresholds_clr 33000 40000 41500 +actions wireless_current wireless_current wireless_current +action_info 1000 850 625 + +[MON-MDM-FR1-1] +algo_type monitor +sampling 2000 +sensor BACK_MDM +thresholds 43000 44000 45000 47000 52000 +thresholds_clr 42000 43000 44000 45000 47000 +actions modem_nr_dsc modem_nr_dsc modem_nr_dsc modem_nr_dsc modem_nr_dsc +action_info 5 7 8 9 10 + +[MON-MDM-FR1-2] +algo_type monitor +sampling 2000 +sensor BACK_MDM +thresholds 43000 44000 46000 47000 52000 +thresholds_clr 42000 43000 44000 46000 47000 +actions modem_nr_scg_dsc modem_nr_scg_dsc modem_nr_scg_dsc+modem_lte_dsc modem_nr_scg_dsc+modem_lte_dsc modem_nr_scg_dsc +action_info 5 7 8+9 9+10 10 diff --git a/device.mk b/device.mk index fc83582..e03752b 100644 --- a/device.mk +++ b/device.mk @@ -112,8 +112,11 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf +# Thermal +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/thermal-engine-rtwo.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-rtwo.conf + # Touch -# PowerShare PRODUCT_PACKAGES += \ vendor.lineage.touch@1.0-service.rtwo diff --git a/proprietary-files.txt b/proprietary-files.txt index c677618..a63715d 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -748,7 +748,6 @@ vendor/etc/sensors/config/tcs3720_0_tianma_always.json vendor/etc/sensors/sns_reg_config # Thermal engine - configs -vendor/etc/thermal-engine-rtwo.conf vendor/etc/thermal-engine.conf # Touchscreen firmware