triggers
A trigger defines the phone's state when to and the profile to load on reaching this state.
CPU tuner activates the trigger that has the biggest battery level which is still smaller than the devices current battery level.
Depending on the state of the device a profile is chosen.
The states are evaluated in the following order:
- Call in progress
If this profile exists and a phone call is active profile is chosen.
This state can be enable/disabled in the settings.
- Battery hot
If this profile exists and the battery is hot this profile is chosen.
- AC Power
If the device is connected to a external power source this profile is chosen.
- Screen locked
If the screen is off this profile is chosen.
- On Battery
The battery profile is chosen, if no other state is valid.
The order of AC Power and Screen locked
is configurable in settings.
The sequence in which the profiles are chosen is:
Call in progress, Battery hot, Screen locked, AC Power and finally On Battery.
The first match is taken.
CPU tuner does not constantly run and poll those states,
but it gets activated by events concerning those states sent by the android system.
What triggers do I need to save battery?