klte-common: update power settings

Change-Id: I3f7d3be0b8046d4664e6895318a20603e9123718
(cherry picked from commit 206c55899f27c918f18ddea210856d196415d964)
This commit is contained in:
OzzysCmAcc 2016-09-27 11:23:21 +02:00 committed by Oskar Kratochvil
parent 80664f82cd
commit 22d0d0eb98
1 changed files with 7 additions and 10 deletions

View File

@ -999,7 +999,7 @@ on property:sys.boot_completed=1
setprop sys.io.scheduler bfq
# Configure the hardware properly
write /sys/module/lpm_resources/enable_low_power/l2 4
write /sys/module/lpm_levels/enable_low_power/l2 4
write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1
write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1
@ -1027,6 +1027,12 @@ on property:sys.boot_completed=1
write /sys/module/msm_thermal/core_control/enabled 1
# Configure the CPU governor
chown root system /sys/devices/system/cpu/cpu1/online
chown root system /sys/devices/system/cpu/cpu2/online
chown root system /sys/devices/system/cpu/cpu3/online
chmod 664 /sys/devices/system/cpu/cpu1/online
chmod 664 /sys/devices/system/cpu/cpu2/online
chmod 664 /sys/devices/system/cpu/cpu3/online
write /sys/devices/system/cpu/cpu1/online 1
write /sys/devices/system/cpu/cpu2/online 1
write /sys/devices/system/cpu/cpu3/online 1
@ -1049,15 +1055,6 @@ on property:sys.boot_completed=1
write /sys/module/msm_thermal/core_control/enabled 1
write /sys/devices/system/cpu/cpufreq/interactive/up_threshold_any_cpu_load 75
write /sys/devices/system/cpu/cpufreq/interactive/up_threshold_any_cpu_freq 1728000
chown root system /sys/devices/system/cpu/mfreq
chmod 220 /sys/devices/system/cpu/mfreq
chown root system /sys/devices/system/cpu/cpu1/online
chown root system /sys/devices/system/cpu/cpu2/online
chown root system /sys/devices/system/cpu/cpu3/online
chmod 664 /sys/devices/system/cpu/cpu1/online
chmod 664 /sys/devices/system/cpu/cpu2/online
chmod 664 /sys/devices/system/cpu/cpu3/online
write /dev/cpuctl/apps/cpu.notify_on_migrate 1
# Configure the cpu-boost module
write /sys/module/cpu_boost/parameters/boost_ms 20