Let's formally track the status in this issue, please help with answering. If we are confident, that everything is working, we can close this issue and have it show up in the milestone as resolved.
does charging work 100% of the time?
can we display the percentage properly?
is charging-sdl working?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
the kernel (or u-boot) currently has no knowledge of the boot reason. The AXP803 contains the "Power up/down reason register" which can be queried for the status but nothing currently does that.
When the phone is left off for a few days, the battery apparently drains well below "0%" indication, because subsequent charging spends quite a lot of time (15 minutes) at 0%. I guess this calls for a hardware change that prevents the battery from going into such deep discharge.
I have probed the battery and terminals using a multimeter and found that [+ve] and [-ve] are constantly drawing 1.5mA. If my math isn't garbage, with the battery at full charge, it would take more than 83 days to fully drain. But if the battery is already low then it will continue to discharge below that amount. I would assume that eventually the protection circuit would kick in so it would not over-discharge at some point, but nonetheless it is an issue. My guess is that the "stuck at 0%" issue must be software, since I do believe reading the charge is not accurate at this time. Correct me if I am wrong.