forked from peteralfonsojr/android_frameworks_base
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Pulse low battery light" switch.
Implements the framework portion of an optional "Pulse low battery light" switch, which allows the pulsing low battery LED to be disabled. The function and implementation of this switch is analogous to (and borrowed from) the "Pulse notification light" switch. This is motivated by devices (e.g., epicmtd) featuring a battery charging LED, where the LED does not support pulsing in hardware and relies on a kernel (CPU) timer to implement the pulse capability. On these devices, pulsing the LED requires waking the CPU from suspend on every LED on/off event, substantially reducing the proportion of time the CPU can suspend, and thus, substantially increasing power consumption. Therefore, when the these devices reach the low battery threshold, their power consumption, ironically, increases measurably in order to pulse the battery charging LED, which lowers battery life and increases the likelihood of a low-battery shutdown if the user cannot charge the device in a timely fashion. This switch allows the user to disable the pulsing low battery LED in order to maximize their low battery charge. Change-Id: I3a5c8938fd7c444c90b2af123e683982c614cd6e
- Loading branch information
1 parent
04d6d03
commit ed63fec
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters