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