diff --git a/configs/thermal-engine-8974.conf b/configs/thermal-engine-8974.conf new file mode 100644 index 0000000..4ed678c --- /dev/null +++ b/configs/thermal-engine-8974.conf @@ -0,0 +1,141 @@ +sampling 5000 +c_mode 3 + +[CPU_LCD_management] +algo_type monitor +sensor xo_therm_pu2 +sampling 10000 +thresholds 45000 47000 49000 51000 53000 55000 +thresholds_clr 44000 45500 47500 49500 51500 53500 +actions cpu+lcd cpu+lcd cpu+lcd cpu+lcd cpu+lcd cpu+lcd +action_info FFFFFFF+255 1958400+255 1574400+245 1497600+235 1497600+225 1267200+225 +action_type 25000 + +[GPU_management] +algo_type monitor +sensor xo_therm_pu2 +sampling 10000 +thresholds 54000 +thresholds_clr 48000 +actions gpu +action_info 330000000 +action_type 25000 + +[battery_monitor] +algo_type monitor +sensor xo_batt +sampling 10000 +thresholds 47000 48000 49000 50000 51000 +thresholds_clr 46000 47000 48000 49000 50000 +actions battery battery battery battery battery +action_info 1024 768 512 410 307 + +[iusb_monitor] +algo_type monitor +sensor xo_batt +sampling 10000 +thresholds 47000 50000 +thresholds_clr 45000 47500 +actions iusb iusb +action_info 1500 1000 + +[wlchg_monitor] +algo_type monitor +sensor xo_therm_pu2 +sampling 10000 +thresholds 52000 +thresholds_clr 50000 +actions wlchg +action_info 512 + +[batt_therm_monitor] +algo_type monitor +sensor batt_therm +sampling 10000 +thresholds 560000 +thresholds_clr 520000 +actions lcd +action_info 93 + +[CPU0_MONITOR] +algo_type monitor +sensor cpu0 +sampling 65 +thresholds 120000 +thresholds_clr 115000 +actions shutdown +action_info 0 + +[CPU1_MONITOR] +algo_type monitor +sensor cpu1 +sampling 65 +thresholds 120000 +thresholds_clr 115000 +actions shutdown +action_info 0 + +[CPU2_MONITOR] +algo_type monitor +sensor cpu2 +sampling 65 +thresholds 120000 +thresholds_clr 115000 +actions shutdown +action_info 0 + +[CPU3_MONITOR] +algo_type monitor +sensor cpu3 +sampling 65 +thresholds 120000 +thresholds_clr 115000 +actions shutdown +action_info 0 + +[SS-CPU0] +algo_type ss +sampling 65 +sensor cpu0 +device cpu +set_point 85000 +set_point_clr 55000 +action_type 10000 + +[SS-CPU1] +algo_type ss +sampling 65 +sensor cpu1 +device cpu +set_point 85000 +set_point_clr 55000 +action_type 10000 + +[SS-CPU2] +algo_type ss +sampling 65 +sensor cpu2 +device cpu +set_point 85000 +set_point_clr 55000 +action_type 10000 + +[SS-CPU3] +algo_type ss +sampling 65 +sensor cpu3 +device cpu +set_point 85000 +set_point_clr 55000 +action_type 10000 + +[SS-POPMEM] +algo_type ss +sampling 65 +sensor pop_mem +device cpu +set_point 80000 +set_point_clr 55000 +time_constant 16 +action_type 20000 + diff --git a/device.mk b/device.mk index c17e5a8..c6aee81 100644 --- a/device.mk +++ b/device.mk @@ -27,6 +27,10 @@ PRODUCT_PACKAGES += \ init.galbi.bt.sh \ init.galbi.bt_vendor.rc +# Thermal +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/thermal-engine-8974.conf:system/etc/thermal-engine-8974.conf + # Wifi PRODUCT_PACKAGES += \ libwcnss_qmi \