| The Following 3 Users Say Thank You to rinigus For This Useful Post: | ||
| The Following 3 Users Say Thank You to deprecated For This Useful Post: | ||
| The Following 5 Users Say Thank You to rinigus For This Useful Post: | ||
| The Following 3 Users Say Thank You to minimec For This Useful Post: | ||
#!/bin/bash
# Toggle script to change power settings on the Nexus 5.
# Used as systemd.service in combination with /etc/systemd/system/cpu-governor
# Can be used as simple 'toggler' without systemd.
start() {
# Max Frequency
/bin/echo "1728000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# blu_plug
/bin/echo "1" > /sys/module/blu_plug/parameters/max_cores_screenoff
/bin/echo "2" > /sys/module/blu_plug/parameters/min_online
# voltage table (undervolt)
/bin/echo "675 675 725 735 755 765 775 795 805 850 865 895 945 1000" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
# simple gpu
/bin/echo "320000000" > /sys/class/kgsl/kgsl-3d0/max_gpuclk
/bin/echo "4" > /sys/module/msm_kgsl_core/parameters/simple_laziness
/bin/echo "7000" > /sys/module/msm_kgsl_core/parameters/simple_ramp_threshold
# set governor
/bin/sleep 10
/bin/echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
}
stop() {
# Max Frequency
/bin/echo "2265600" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
# blu_plug
/bin/echo "2" > /sys/module/blu_plug/parameters/max_cores_screenoff
/bin/echo "2" > /sys/module/blu_plug/parameters/min_online
# voltage table
/bin/echo "775 775 795 805 825 835 845 865 875 910 925 955 995 1050" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
# simple gpu
/bin/echo "450000000" > /sys/class/kgsl/kgsl-3d0/max_gpuclk
/bin/echo "5" > /sys/module/msm_kgsl_core/parameters/simple_laziness
/bin/echo "6000" > /sys/module/msm_kgsl_core/parameters/simple_ramp_threshold
# set governor
/bin/echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*) exit 1
esac
| The Following 3 Users Say Thank You to minimec For This Useful Post: | ||
Added some CPU hotplug governors: - Mako hotplug governor - Alucard hotplug governor - MSM Sleeper hotplug governor - Zen Decision hotplug governor - Blu_plug can be enabled/disabled via sysfs now, so only one kernel build this time. Added support for ARM Neon in kernel mode and some crypto algorithms now use the NEON extensions Added MDSS color control and faux wcd93xx sound control hax to the kernel.
/sys/devices/platform/kcal_ctrl.0/kcal - (0-256 0-256 0-256) - Controls R/G/B Multipliers /sys/devices/platform/kcal_ctrl.0/kcal_min - (0-256) - Controls minimum RGB Multiplier value /sys/devices/platform/kcal_ctrl.0/kcal_enable - (0-1) - Enables/Disables RGB Multiplier Control /sys/devices/platform/kcal_ctrl.0/kcal_invert - (0-1) - Enables/Disables Display Inversion Mode /sys/devices/platform/kcal_ctrl.0/kcal_sat - (224-383 or 128) - Controls saturation intensity - use 128 for grayscale mode /sys/devices/platform/kcal_ctrl.0/kcal_hue - (0-1536) - Controls display hue - may have issues with msm8x26 in the higher values /sys/devices/platform/kcal_ctrl.0/kcal_val - (128-383) - Controls display value /sys/devices/platform/kcal_ctrl.0/kcal_cont - (128-383) - Controls display contrast
/sys/kernel/sound_control_3/

Mako /sys/class/misc/mako_hotplug_control/enabled Alucard /sys/kernel/alucard_hotplug/hotplug_enable blu_plug /sys/module/blu_plug/parameters/enabled msm_sleeper /sys/devices/platform/msm_sleeper/enabled zen_decision /sys/kernel/zen_decision/enabled
| The Following User Says Thank You to deprecated For This Useful Post: | ||

| The Following User Says Thank You to deprecated For This Useful Post: | ||

| The Following 5 Users Say Thank You to mautz For This Useful Post: | ||