1on charger 2 #low power governing 3 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive 4 restorecon_recursive /sys/devices/system/cpu/cpufreq/interactive 5 write /sys/devices/system/cpu/cpu1/online 0 6 write /sys/devices/system/cpu/cpu2/online 0 7 write /sys/devices/system/cpu/cpu3/online 0 8 write /sys/module/lpm_levels/enable_low_power/l2 4 9 write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1 10 write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1 11 write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1 12 write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1 13 write /sys/module/msm_pm/modes/cpu0/retention/idle_enabled 1 14 15on boot 16 # Shamu boots with performance governor. 17 # Switch one core to interactive to set permissions, for power hal and system server. 18 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive 19 restorecon_recursive /sys/devices/system/cpu/cpufreq/interactive 20 chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate 21 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate 22 chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_slack 23 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_slack 24 chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 25 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 26 chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 27 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 28 chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads 29 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/target_loads 30 chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 31 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 32 chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay 33 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay 34 chown system system /sys/devices/system/cpu/cpufreq/interactive/boost 35 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost 36 chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse 37 #chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost 38 #chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost 39 chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration 40 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration 41 chown system system /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 42 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 43 chown system system /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 44 chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 45 46on property:dev.bootcomplete=1 47 write /sys/module/lpm_levels/enable_low_power/l2 4 48 write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1 49 write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1 50 write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1 51 write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1 52 write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1 53 write /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled 1 54 write /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled 1 55 write /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled 1 56 write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1 57 write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1 58 write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1 59 write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1 60 write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1 61 write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1 62 write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1 63 write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1 64 write /sys/module/msm_pm/modes/cpu0/retention/idle_enabled 1 65 write /sys/module/msm_pm/modes/cpu1/retention/idle_enabled 1 66 write /sys/module/msm_pm/modes/cpu2/retention/idle_enabled 1 67 write /sys/module/msm_pm/modes/cpu3/retention/idle_enabled 1 68 write /sys/module/msm_thermal/core_control/enabled 0 69 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive 70 write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor interactive 71 write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor interactive 72 write /sys/module/msm_thermal/core_control/enabled 1 73 write /sys/devices/system/cpu/cpufreq/interactive/io_is_busy 1 74 75 # cpufreq settings 76 write /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay "20000 1400000:40000 1700000:20000" 77 write /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load 90 78 write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 1497600 79 write /sys/devices/system/cpu/cpufreq/interactive/target_loads "85 1500000:90 1800000:70" 80 write /sys/devices/system/cpu/cpufreq/interactive/min_sample_time 40000 81 write /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor 100000 82 write /sys/module/cpu_boost/parameters/input_boost_freq 1497600 83 write /sys/module/cpu_boost/parameters/input_boost_ms 40 84 write /dev/cpuctl/apps/cpu.notify_on_migrate 0 85