[Nexus 4 General] sfrique:
[MENTION=3946657]xanthrax[/MENTION]

Don't know if anyone wil ever use this... but here a script to configure some performance/battery saves on hellscore

I am gonna use with tasker... sets values on boot, when plugged, when battery is low and etc...

needs root.

how to use:

sh script.sh profile

ex:

sh hellscore.sh battery

# Script hellscore configuration

# Cores on touch.
#echo "X" > /sys/module/msm_hotplug/cpus_boosted
#echo "X" > /sys/module/msm_hotplug/min_cpus_online
#echo "X" > /sys/module/msm_hotplug/max_cpus_online
# Freq when screen off
#X can take values 192000, 384000, 540000, 702000, 1026000, 1242000, 1350000, 1512000
#echo "X" > /sys/module/msm_hotplug/suspend_freq
#enable
#echo "1" > /sys/android_touch/sweep2wake

case $1 in
"normal" )
echo "2" > /sys/module/msm_hotplug/cpus_boosted
echo "1" > /sys/module/msm_hotplug/min_cpus_online
echo "4" > /sys/module/msm_hotplug/max_cpus_online
echo "702000" > /sys/module/msm_hotplug/suspend_freq
echo "192000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "1512000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
;;
"battery" )
echo "1" > /sys/module/msm_hotplug/cpus_boosted
echo "1" > /sys/module/msm_hotplug/min_cpus_online
echo "3" > /sys/module/msm_hotplug/max_cpus_online
echo "540000" > /sys/module/msm_hotplug/suspend_freq
echo "192000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "1242000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
;;
"low-battery" )
echo "1" > /sys/module/msm_hotplug/cpus_boosted
echo "1" > /sys/module/msm_hotplug/min_cpus_online
echo "2" > /sys/module/msm_hotplug/max_cpus_online
echo "384000" > /sys/module/msm_hotplug/suspend_freq
echo "192000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "1026000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
;;
"ultra-low-battery" )
echo "1" > /sys/module/msm_hotplug/cpus_boosted
echo "1" > /sys/module/msm_hotplug/min_cpus_online
echo "1" > /sys/module/msm_hotplug/max_cpus_online
echo "384000" > /sys/module/msm_hotplug/suspend_freq
echo "192000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "702000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
;;
"performance" )
echo "2" > /sys/module/msm_hotplug/cpus_boosted
echo "2" > /sys/module/msm_hotplug/min_cpus_online
echo "4" > /sys/module/msm_hotplug/max_cpus_online
echo "1026000" > /sys/module/msm_hotplug/suspend_freq
echo "584000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "1512000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
;;
"high-performance" )
echo "4" > /sys/module/msm_hotplug/cpus_boosted
echo "3" > /sys/module/msm_hotplug/min_cpus_online
echo "4" > /sys/module/msm_hotplug/max_cpus_online
echo "1026000" > /sys/module/msm_hotplug/suspend_freq
echo "702000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "1512000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
;;
"ultra-high-performance" )
echo "4" > /sys/module/msm_hotplug/cpus_boosted
echo "4" > /sys/module/msm_hotplug/min_cpus_online
echo "4" > /sys/module/msm_hotplug/max_cpus_online
echo "1026000" > /sys/module/msm_hotplug/suspend_freq
echo "1026000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "1512000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
;;
* )
echo "Profile not listed"
return 1
;;
esac