on charger
    #disable zen decision
    write /sys/kernel/zen_decision/enabled 0
    #low power governing
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative
    write /sys/devices/system/cpu/cpu1/online 0
    write /sys/devices/system/cpu/cpu2/online 0
    write /sys/devices/system/cpu/cpu3/online 0
    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/cpu0/power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1
    write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu0/retention/idle_enabled 1

on boot
    # Shamu boots with performance governor.
    chown system system /dev/cpuctl/apps/cpu.notify_on_migrate
    chmod 0660 /dev/cpuctl/cpu.notify_on_migrate
    write /sys/module/msm_thermal/core_control/enabled 0

on property:dev.bootcomplete=1
    stop mpdecision
    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
    write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1
    write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1
    write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1
    write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1
    write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1
    write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu0/retention/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu1/retention/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu2/retention/idle_enabled 1
    write /sys/module/msm_pm/modes/cpu3/retention/idle_enabled 1
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor conservative
    write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor conservative
    write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor conservative
    write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor conservative
    write /dev/cpuctl/cpu.notify_on_migrate 0
    write /sys/module/adreno_idler/parameters/adreno_idler_active Y
    write /sys/module/msm_thermal/parameters/enabled Y
    write /sys/module/msm_thermal/parameters/limit_temp_degC 70
    write /sys/module/msm_thermal/core_control/enabled 0
    write /sys/kernel/fast_charge/force_fast_charge 1
    write /sys/module/cpu_boost/parameters/sync_threshold 0
    write /sys/module/cpu_boost/parameters/input_boost_freq "0:0 1:0 2:0 3:0"
    write /sys/module/cpu_boost/parameters/input_boost_ms 1500

    # cpufreq settings
    write /sys/devices/system/cpu/cpufreq/conservative/up_threshold 95
    write /sys/devices/system/cpu/cpufreq/conservative/down_threshold 30
    write /sys/devices/system/cpu/cpufreq/conservative/freq_step 5
    write /sys/devices/system/cpu/cpufreq/conservative/sampling_down_factor 1
    write /sys/devices/system/cpu/cpufreq/conservative/sampling_rate 2000
    write /sys/devices/system/cpu/cpufreq/conservative/input_boost_freq 1497600

    # Intelli_Plug
    write /sys/kernel/intelli_plug/intelli_plug_active 1
    write /sys/kernel/intelli_plug/boot_lock_duration 2500
    write /sys/kernel/intelli_plug/cpu_nr_run_threshold 500
    write /sys/kernel/intelli_plug/cpus_boosted 1
    write /sys/kernel/intelli_plug/debug_intelli_plug 0
    write /sys/kernel/intelli_plug/def_sampling_ms 268
    write /sys/kernel/intelli_plug/down_lock_duration 2500
    write /sys/kernel/intelli_plug/full_mode_profile 0
    write /sys/kernel/intelli_plug/max_cpus_online 4
    write /sys/kernel/intelli_plug/max_cpus_online_susp 1
    write /sys/kernel/intelli_plug/min_cpus_online 1
    write /sys/kernel/intelli_plug/nr_fshift 3
    write /sys/kernel/intelli_plug/nr_run_hysteresis 8

    # Mako
    write /sys/class/misc/mako_hotplug_control/enabled 0
    write /sys/class/misc/mako_hotplug_control/load_threshold 0
    write /sys/class/misc/mako_hotplug_control/high_load_counter 10
    write /sys/class/misc/mako_hotplug_control/max_load_counter 20
    write /sys/class/misc/mako_hotplug_control/cpufreq_unplug_limit 1800000
    write /sys/class/misc/mako_hotplug_control/min_time_cpu_online 1
    write /sys/class/misc/mako_hotplug_control/timer 1

    # MSM Hotplug
    write /sys/module/msm_hotplug/msm_enabled 0
    write /sys/module/msm_hotplug/min_cpus_online 1
    write /sys/module/msm_hotplug/down_lock_duration 500
    write /sys/module/msm_hotplug/boost_lock_duration 2500
    write /sys/module/msm_hotplug/update_rates "200 5:100 50:50 350:200"
    write /sys/module/msm_hotplug/fast_lane_load 100

    # Bricked
    write /sys/kernel/msm_mpdecision/conf/enabled 0
    write /sys/kernel/msm_mpdecision/conf/min_cpus_online 1
    write /sys/kernel/msm_mpdecision/conf/min_cpus_online_susp 1
    write /sys/kernel/msm_mpdecision/conf/max_cpus_online 4
    write /sys/kernel/msm_mpdecision/conf/max_cpus_online_susp 1
    write /sys/kernel/msm_mpdecision/conf/suspend_defer_time 10
    write /sys/kernel/msm_mpdecision/conf/idle_freq 499200
    write /sys/kernel/msm_mpdecision/conf/startdelay 20000
    write /sys/kernel/msm_mpdecision/conf/delay 20000
