Skip to content

Instantly share code, notes, and snippets.

@vinecodes
Last active March 8, 2018 19:03
Show Gist options
  • Save vinecodes/f0c59fce97d3521d80b02204d6d2b572 to your computer and use it in GitHub Desktop.
Save vinecodes/f0c59fce97d3521d80b02204d6d2b572 to your computer and use it in GitHub Desktop.
G4c Candy ROM - Remove mpdecision
on early-init
on boot
# Enable low power modes
write /sys/module/lpm_levels/parameters/sleep_disabled 0
# HMP scheduler load tracking settings
write /proc/sys/kernel/sched_ravg_hist_size 3
# HMP Task packing settings for 8916
write /proc/sys/kernel/sched_small_task 20
write /proc/sys/kernel/sched_mostly_idle_load 30
write /proc/sys/kernel/sched_mostly_idle_nr_run 3
# disable thermal core_control to update interactive governor settings
write /sys/module/msm_thermal/core_control/enabled 0
# enable governor
write /sys/devices/system/cpu/cpu0/online 1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 800000
write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay "25000 1094400:50000"
write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 90
write /sys/devices/system/cpu/cpufreq/interactive/timer_rate 30000
write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 998400
write /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 0
write /sys/devices/system/cpu/cpufreq/interactive/target_loads "1 800000:85 998400:90 1094400:80"
write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 50000
# enable thermal core_control now
write /sys/module/msm_thermal/core_control/enabled 1
# Adaptive LMK
write /sys/module/lowmemorykiller/parameters/lmk_fast_run 0
write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1
write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059
on charger
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
on property:sys.boot_completed=1
write /sys/block/mmcblk0/queue/scheduler cfq
# bring all CPUs 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
start perfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment