Ticket #848 (closed enhancement: fixed)
A charger mode for uboot
|Reported by:||Tuukka.Hastrup@…||Owned by:||michael@…|
|Component:||u-boot||Version:||current svn head|
|Blocking:||Estimated Completion (week):|
Current power management implications are difficult for users to understand as
we don't hide the underlying hardware details. One part we should do is a
special mode in uboot that can be entered for charging the phone when it's off.
One simple part of this is the logic to not boot a kernel while there would be
too little charge (10%?) in the battery to start and shut down the system
cleanly with still some charge left to get back to uboot. We could simply power
off the phone if there is too little charge, but better usability could be
achieved with a mode that shows the charging progress: whether we are currently
charging and the current battery charge percentage.
In the mode, the user could have a menu with these entries:
- Fully shut down the phone (going back to 100mA charge?)
- Toggle: Do/don't boot automatically as soon as there's enough charge
- Boot now (inactive if not enough charge yet)
If there is some trouble in the charging process or the source disappears, we
should show a warning message. If this continues, the message should be stored
for display at the next boot, and the phone should be fully shut down.