View Single Post
Posts: 97 | Thanked: 318 times | Joined on Feb 2012 @ Switzerland
#248
Yay... New kernel goodies...

So with new kernel v7, you obviously have to modify '/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq'. Otherwise, you will never reach the new low frequencies.

My first quick test shows that 249'000 might be the 'sweet spot'. Lower frequencies will increase(!) idle battery consumption. I guess because of CPU time? I check my idle consumption over ssh with...
Code:
watch -n1 cat /sys/class/power_supply/battery/current_now
After my first enthusiasm with 'alucard hotplug', I am not that happy anymore. Tu much CPU activity... I am on 'msm_sleeper' now in my test program.

Right now my test settings are...

Code:
# Min/Max Frequency
/bin/echo "1574000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
/bin/echo "249000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

# msm_sleeper
/bin/echo "1" > /sys/devices/platform/msm_sleeper/enabled
/bin/echo "1" > /sys/devices/platform/msm_sleeper/suspend_max_online

# voltage table (undervolt) (kernel v7 with new low frequencies)
/bin/echo "610 640 650 680 680 730 740 760 770 780 800 810 855 870 900 950 1010" > /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
/bin/echo "simple" > /sys/class/kgsl/kgsl-3d0/pwrscale/trustzone/governor

# set governor
/bin/sleep 10
/bin/echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

# set I/O scheduler
/bin/echo "noop" > /sys/block/mmcblk0/queue/scheduler
 

The Following 4 Users Say Thank You to minimec For This Useful Post: