diff --git a/conf/init.tegu.rc b/conf/init.tegu.rc index 6c9e457..9820c15 100644 --- a/conf/init.tegu.rc +++ b/conf/init.tegu.rc @@ -8,6 +8,12 @@ on init # eSE streset tool name setprop persist.vendor.se.streset libstreset24 +# Permissions for display +on fs + # Permission for SSC mode enable + chown system system /sys/class/backlight/panel0-backlight/ssc_en + chmod 664 /sys/class/backlight/panel0-backlight/ssc_en + on early-boot # Wait for insmod_sh to finish all common modules wait_for_prop vendor.common.modules.ready 1 diff --git a/perf/powerhint-tegu.json b/perf/powerhint-tegu.json index 503c0f8..ec210a4 100644 --- a/perf/powerhint-tegu.json +++ b/perf/powerhint-tegu.json @@ -29,6 +29,7 @@ "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Values": [ "9999999", + "1539000", "1352000", "1014000", "0" @@ -52,6 +53,7 @@ "1800000", "1548000", "820000", + "610000", "0" ], "ResetOnInit": true @@ -256,6 +258,16 @@ "DefaultIndex": 0, "ResetOnInit": true }, + { + "Name": "CPUSkipMask", + "Path": "/proc/vendor_sched/cpu_skip_mask", + "Values": [ + "0x0", + "0x80" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "BGUClampMaxBoost", "Path": "/proc/vendor_sched/groups/bg/uclamp_max", @@ -281,6 +293,7 @@ "Path": "/proc/vendor_sched/groups/cam/uclamp_min", "Values": [ "765", + "250", "0" ], "ResetOnInit": true @@ -290,6 +303,7 @@ "Path": "/proc/vendor_sched/groups/ta/uclamp_min", "Values": [ "765", + "600", "1" ], "ResetOnInit": true @@ -348,9 +362,10 @@ "0-3", "4-7", "4-6", - "0-6", - "0-7" + "0-7", + "0-6" ], + "DefaultIndex": 3, "ResetOnInit": true }, { @@ -662,10 +677,11 @@ "Name": "PMU_LIT_LIMIT_FREQ", "Path": "/sys/devices/system/cpu/cpufreq/policy0/sched_pixel/limit_frequency", "Values": [ + "1425000", "1328000", "1098000" ], - "DefaultIndex": 0, + "DefaultIndex": 1, "ResetOnInit": true }, { @@ -673,6 +689,8 @@ "Path": "/sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold", "Values": [ "70", + "40", + "55", "42", "35", "30", @@ -686,6 +704,7 @@ "Path": "/sys/devices/system/cpu/cpufreq/policy4/sched_pixel/limit_frequency", "Values": [ "1795000", + "1549000", "1328000" ], "DefaultIndex": 0, @@ -696,6 +715,8 @@ "Path": "/sys/devices/system/cpu/cpufreq/policy4/sched_pixel/spc_threshold", "Values": [ "50", + "32", + "15", "30", "20", "18" @@ -708,7 +729,7 @@ "Values": [ "2363000", "1885000", - "1298000" + "1164000" ], "DefaultIndex": 0 }, @@ -717,8 +738,8 @@ "Path": "/sys/devices/system/cpu/cpufreq/policy7/sched_pixel/spc_threshold", "Values": [ "50", - "22", - "20" + "20", + "22" ], "DefaultIndex": 0 }, @@ -1350,27 +1371,69 @@ }, { "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", - "Node": "CPUBigClusterMaxFreq", - "Duration": 3000, - "Value": "1885000" - }, - { - "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", - "Node": "CPUMidClusterMaxFreq", - "Duration": 3000, - "Value": "1549000" - }, - { - "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", - "Node": "CPULittleClusterMaxFreq", + "Node": "PMU_LIT_LIMIT_FREQ", "Duration": 3000, "Value": "1425000" }, { "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", - "Node": "PMU_POLL", + "Node": "PMU_MID_LIMIT_FREQ", "Duration": 3000, - "Value": "0" + "Value": "1549000" + }, + { + "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", + "Node": "PMU_BIG_LIMIT_FREQ", + "Duration": 3000, + "Value": "1885000" + }, + { + "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", + "Node": "PMU_LIT_SPC_THRESHOLD", + "Duration": 3000, + "Value": "40" + }, + { + "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", + "Node": "PMU_MID_SPC_THRESHOLD", + "Duration": 3000, + "Value": "15" + }, + { + "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", + "Node": "PMU_BIG_SPC_THRESHOLD", + "Duration": 3000, + "Value": "20" + }, + { + "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", + "Node": "TAUClampBoost", + "Duration": 3000, + "Value": "600" + }, + { + "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", + "Node": "CDPreferHighCap", + "Duration": 0, + "Value": "1" + }, + { + "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", + "Node": "CAMUClampBoost", + "Duration": 0, + "Value": "250" + }, + { + "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", + "Node": "CPUSkipMask", + "Duration": 0, + "Value": "0x0" + }, + { + "PowerHint": "CAMERA_THERMAL_SEVERE_BOOST", + "Node": "CDCpuset", + "Duration": 0, + "Value": "0-7" }, { "PowerHint": "CAMERA_SHOT", @@ -1652,7 +1715,7 @@ "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "PMU_BIG_LIMIT_FREQ", "Duration": 0, - "Value": "1298000" + "Value": "1164000" }, { "PowerHint": "CAMERA_STREAMING_EXTREME", @@ -1754,7 +1817,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "DsuMinFreq", "Duration": 0, - "Value": "820000" + "Value": "610000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1766,7 +1829,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_LIT_SPC_THRESHOLD", "Duration": 0, - "Value": "35" + "Value": "55" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1778,13 +1841,13 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_MID_SPC_THRESHOLD", "Duration": 0, - "Value": "20" + "Value": "32" }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "PMU_BIG_LIMIT_FREQ", "Duration": 0, - "Value": "1298000" + "Value": "1164000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1828,12 +1891,6 @@ "Duration": 0, "Value": "0" }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "CDPreferIdle", - "Duration": 0, - "Value": "0" - }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPULittleClusterMaxFreq", @@ -1844,7 +1901,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MemFreq", "Duration": 0, - "Value": "1352000" + "Value": "1539000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", @@ -1858,6 +1915,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "CDPreferIdle", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CDHighCpusetCpus", @@ -1876,6 +1939,12 @@ "Duration": 0, "Value": "4-6" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "CDCpuset", + "Duration": 0, + "Value": "0-6" + }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "VIRTUAL-SKIN-CPU-MID", @@ -1894,6 +1963,12 @@ "Duration": 0, "Value": "700000" }, + { + "PowerHint": "CAMERA_STREAMING_HIGH", + "Node": "CPUSkipMask", + "Duration": 0, + "Value": "0x80" + }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PowerHALCameraRunning", @@ -1910,7 +1985,7 @@ "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PMU_LIT_SPC_THRESHOLD", "Duration": 0, - "Value": "42" + "Value": "55" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", @@ -1922,13 +1997,13 @@ "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PMU_MID_SPC_THRESHOLD", "Duration": 0, - "Value": "18" + "Value": "30" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PMU_BIG_LIMIT_FREQ", "Duration": 0, - "Value": "1298000" + "Value": "1164000" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", @@ -1974,13 +2049,13 @@ }, { "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CDPreferIdle", + "Node": "TAPreferHighCap", "Duration": 0, "Value": "0" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "TAPreferHighCap", + "Node": "TAPreferIdle", "Duration": 0, "Value": "0" }, @@ -2012,7 +2087,7 @@ "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CDCpuset", "Duration": 0, - "Value": "0-7" + "Value": "0-6" }, { "PowerHint": "CAMERA_STREAMING_STANDARD", @@ -2026,6 +2101,12 @@ "Duration": 0, "Value": "camera" }, + { + "PowerHint": "CAMERA_STREAMING_STANDARD", + "Node": "CPUSkipMask", + "Duration": 0, + "Value": "0x80" + }, { "PowerHint": "CAMERA_STREAMING_LOW", "Node": "CPUDVFSHeadroom", @@ -2823,7 +2904,7 @@ "PowerHint": "CAMERA_PROJECT11", "Node": "PMU_BIG_LIMIT_FREQ", "Duration": 0, - "Value": "1885000" + "Value": "1164000" }, { "PowerHint": "CAMERA_PROJECT11", diff --git a/thermal/thermal_info_config_tegu.json b/thermal/thermal_info_config_tegu.json index d89db0d..56c6fd3 100644 --- a/thermal/thermal_info_config_tegu.json +++ b/thermal/thermal_info_config_tegu.json @@ -89,51 +89,12 @@ "Name":"battery_cycle", "Type":"BCL_VOLTAGE" }, - { - "Name":"critical-battery-cell", - "Type":"BCL_VOLTAGE", - "VirtualSensor":true, - "Formula":"COUNT_THRESHOLD", - "TriggerSensor": "vdroop1", - "Combination":["battery", "battery_cycle", "vdroop1"], - "Coefficient":[-10000, 400, 1000], - "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 3.00, "NAN"], - "Multiplier":1, - "PollingDelay":0, - "PassiveDelay":1000, - "SendCallback":true - }, - { - "Name":"FLASH_LED_REDUCE", - "Type":"UNKNOWN", - "VirtualSensor":true, - "Formula":"COUNT_THRESHOLD", - "TriggerSensor": "vdroop1", - "Combination":["battery", "battery_cycle", "vdroop1"], - "Coefficient":[-10000, 400, 1000], - "HotThreshold":["NAN", "NAN", "NAN", "NAN", 3.00, "NAN", "NAN"], - "Multiplier":1, - "PollingDelay":0, - "PassiveDelay":1000, - "SendCallback":true, - "SendPowerHint":true - }, { "Name":"soc", "Type":"BCL_PERCENTAGE", "HotThreshold":["NAN", "NAN", 80, "NAN", "NAN", "NAN", "NAN"], "Multiplier":1 }, - { - "Name":"batoilo", - "Type":"BCL_CURRENT", - "HotThreshold":["NAN", "NAN", "NAN", "NAN", 5000, "NAN", "NAN"], - "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], - "Multiplier":1, - "SendCallback":true, - "PollingDelay":0, - "PassiveDelay":1000 - }, { "Name":"BCL_AUDIO_BAACL", "Type":"BCL_VOLTAGE", @@ -148,36 +109,6 @@ "Multiplier":1, "SendCallback":true }, - { - "Name":"vdroop1", - "Type":"BCL_VOLTAGE", - "HotThreshold":["NAN", "NAN", "NAN", "NAN", 1000, "NAN", "NAN"], - "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], - "Multiplier":1, - "SendCallback":true, - "PollingDelay":0, - "PassiveDelay":1000 - }, - { - "Name":"vdroop2", - "Type":"BCL_VOLTAGE", - "HotThreshold":["NAN", "NAN", "NAN", "NAN", 1200, "NAN", "NAN"], - "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], - "Multiplier":1, - "SendCallback":true, - "PollingDelay":0, - "PassiveDelay":1000 - }, - { - "Name":"smpl_gm", - "Type":"BCL_VOLTAGE", - "HotThreshold":["NAN", "NAN", "NAN", "NAN", 1100, "NAN", "NAN"], - "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 100, 0.0, 0.0], - "Multiplier":1, - "SendCallback":true, - "PollingDelay":0, - "PassiveDelay":1000 - }, { "Name":"VIRTUAL-BTS-WINDOW-PARTIAL", "Type":"UNKNOWN",