I will write a simple better suspend code, during suspension and this is it for 'powersave' functionality
easy written for u vuys to understand
if (POWERSAVE == 1)
/* value 1 will be 'light powersave'*/
{
GPUFREQ = 320000;
VDEFREQ = 680000;
MAXSCREENOFFFREQ = 503000;
MINCPU1ON = 816000;
DDR2_MIN_KHZ = 40000;
LPDDR2_MIN_KHZ = 15000;
} else if (POWERSAVE == 2) {
/* value 2 will be 'moderate' powersave */
GPUFREQ = 300000;
VDEFREQ = 600000;
MAXSCREENOFFFREQ = 503000;
MINCPU1ON = 816000;
DDR2_MIN_KHZ = 30000;
LPDDR2_MIN_KHZ = 12000;
} else if (POWERSAVE == 3) {
/* value 3 'aggressive powersave', activating the freeze prone mode ultimate lowest possible safe*/
GPUFREQ = 2800000;
VDEFREQ = 550000;
MAXSCREENOFFFREQ = 389000;
MINCPU1ON = 816000;
DDR2_MIN_KHZ = 10000;
LPDDR2_MIN_KHZ = 8000;
printk("activated the sh1thead, watchout") ;
} else {
/* read user specified value read from spica generated modules located in /data/spica folder */
GPUFREQ = USERSPECGPU;
VDEFREQ = USERSPECVDE;
MAXSCREENOFFFREQ = USERSPECMAXSCOF;
MINCPU1ON = USERSPECMC1ON;
DDR2_MIN_KHZ = USERSPECDMK;
LPDDR2_MIN_KHZ = USERSPECLPDMK;
printk("applying userspec values") ;
}
This code i guess is right simple to be understood for u guys even thats why ive written inhere in the most simple way for you guys to understand how *innocent* kernel operates as directed , yet effective, this is during suspend
.watchout code it (powersave) doesnt touch UV cause I strongly these factors affect battery more recursively not UV. There are many other factors that as well controls battery consumption but later on as it will delay RC12
Sent from my LG-P990 using Tapatalk