[G2 Android Development] johnbeetee:
It's not a big secret really :) ; the main things have been mentioned previously already by [MENTION=1812052]faithraze[/MENTION]

http://xdaforums.com/showpost.php?p=52408818&postcount=825

The high sot values are mainly the effect of limiting the cpu max.freq. to a lower value for the less demanding tasks (browsing/reading/mailing/messaging), and using alucard hotplug/ondemandplus gov.. And a lower screen brightness also helps.

For the more demanding tasks, switching to a higher config. would be nice.

Tasker comes in very handy to automate this.

For users who have tasker, here a

short intro to tasker and the profile/tasks to build themselves (very simple, really):

short intro ; in tasker you see 4 tabs : profiles, tasks, scenes and vars ; we'll start with the first two for now

idea behind tasker (used simple) :

you define tasks and give them a name ; a task is an action or group of actions to perform

with profiles you can define when a task should be performed and you call the task by its name.

lets define a simple task:

1. goto the task tab (if you press the tab, you can select import and then import the tasks you downloaded, but we'll define them from scratch)

2. press the + sign in the lower right corner

3. enter a name (for example CPU_LOW) and accept (now you are in the task screen)

4. press again on the + sign (you will see the categories)

5. choose Misc

6. select CPU (leave the first line at 0)

7. press the magnifying glass next to governor and select ondemandplus

8. press the magnifying glass next to Max Freq. and set to 1728000

9. press back button twice and you are back in the tasks tab and your first taks is defined

Now do this again and name it CPU_MEDIUM, choose for governor : intellidemand and max.freq. 2265000

...and once again and name it CPU_HIGH, choose for governor : ondemand and max.freq. 2265000

Now you have 3 tasks in your tasks tab. (you can change them by tapping them and changing the choices to whatever you like)

But for now you have these as examples.

Now go to the profiles tab

press the + sign

press event ( event is when something takes place ; the system notifies all processes of this, when it happens )

choose display

choose display off

leave the next choice at normal

press back button

you get a list of tasks to choose from

choose CPU_LOW

you profile is now set

you can long press it and then the capital A on the upper side off the screen and give it a different name if you want, for example SCREEN_OFF

What you have done now is : you told tasker, that when screen goes off, he must execute CPU_LOW, and put the system (this puts max freq to 1728000 and ondemandplus)

When you turn on the screen, this will still be effective

Now exit tasker with back button and on your home screen (or some other one) do as if you want to add a widget, and in the choice bar move to the ones 'task" and 'tasker shortcut'

use tasker shortcut ; it will take you to tasker ; choose CPU_LOW ; when you press the back button to go back, it will alert you to choose an icon for the task ; do this ; choose built-in icon ; choose one that you like for this task ; press back button and it should put this on your screen

It will also remember this icon for this task

Do the same for the other two tasks you made.

Now when you turn the screen on (it will be on CPU_LOW, because when screen turned off it activated this) you can choose to do nothing and use it with CPU_LOW, or hit one of the icons for CPU_MEDIUM or CPU_HIGH, and do your thing...

When you turn screen back off, it will go back to CPU_LOW (because of the profile you made.

A bit more advanced would be to define a profile in which some apps are grouped, and when these become active, tasker automatically swithes to the right CPU_xx speed ; but try the above first and see if you get it right....

[MENTION=3890097]iall5tar[/MENTION] made a nice widget interface for these three profiles ; maybe he would like to share this (...or with his permission, i can post t here :) )

with courtesy of [MENTION=3890097]iall5tar[/MENTION] see attached below

Personally I do a bit more to preserve battery :

I use Lux lite app to determine screen brightness [ especially on KK, the autobrightness is less battery-friendly than on JB (brighter than needed) ] ; you can use Lux as an autobrightness or invoke it from tasker for a one-shot adjusment.

I use tasker to turn off data when screen off, and on when screen on.

2G all the time, when needed I can switch to 3G on the fly (still need to automate that ; coming soon ; need exposed framework for that)

Tasker also automates my syncing (once an hour) by turning data on, syncing and turn it off again. Looking at the results I get now, I may step this up a bit (once every 20 min.)

At night it sets the phone in aiplane mode from 00:00 to 07:00.

In a nutshell that's about it...

It's just a matter of energy management ; less when less is enough, and more when needed. Automation is the key :)

And all the rest is thanks to this amazing kernel, having an excellent deepsleep as of v4.5 and a gigantic broad range of coverage, spanning from extreme battery-friendly to perfect high performance settings. So most credit goes to [MENTION=2376110]dorimanx[/MENTION] :good: