PinePhone: battery charges to full capacity and then discharges to 0%
Description
If the batteries status is Charging, then it will continue to charge until the capacity reaches 100%, at which point the status will change from Charging to Discharging. Once the status is discharging, the battery will continue to discharge until it reaches 0% and the phone powers off. If the phone is plugged in, then it will reboot immediately, but will remain in a discharging status thus resulting in a cycle of booting and powering off until ultimately the battery is removed or has no power left to initiate a boot sequence.
Expected behaviour
When the phone is plugged in the batteries status oscillates between Charging and Discharging as required to maintain a capacity close to 100%.
How to reproduce
- Prerequisite: battery capacity < 100%, Phone powered off
- Install pmos
- Plug phone into charger, thus powering on the phone.
- Monitor capacity
- The phone's status will initially be Charging. Observe that once capacity reaches 100% the status will change from Charging to Discharging and will remain so indefinitely.
- Continue to monitor capacity until battery is fully discharged and then observe as the phone enters an endless cycle of rebooting and powering off.
- Remove battery
Note
- I use an SD card for convenience so that when the test is over I can swap in a new install of pmos, thus recharging the battery.
- Running
reboot
before the battery is fully discharged will cause the phone to boot with the battery status set to Charging again. The same is true ifpoweroff
is run, followed by manually powering the phone.
Tested Platform
- hardware: PinePHone Braveheart
- Mobile UI: Plasma Mobile
- Media: SD card
- pmaports Commit:
- pmbootstrap Commit:
Edited by Administrator