Phone boot-loops when battery is critically low
Describe your issue
What's the expected behaviour?
When plugging a charger cable, and the phone powers on, it should stay on and charge.
What's the current behaviour?
When plugging the charger cable, the phone powers on, but the boot sequence takes more energy that the charger delivers; which causes the OS to detect that the battery level is critically low and not charging, and trigger an emergency shutdown. The phone then restarts automatically because of the charger, and the process starts again endlessly, eating the battery more and more, until the point where the phone automatically reboots as soon as the init sequence starts to take more energy than the charger delivers.
Note that the charger is capable of delivering 2A at 5V, but the phone will charge at 0.45A when completely idle and screen off - so the threshold seems to be around 2.25 watts.
How to reproduce your issue?
Probably with a very old phone that only supports 5V.
What device are you using?
device-samsung-i9100
On what postmarketOS version did you encounter the issue?
-
edge (
master
branch) -
v23.12
-
v23.06
(supported until 2024-01-18) -
I confirm that the issue still is present after running
sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
- GNOME Shell on Mobile
- Phosh
- Plasma Mobile
-
Sxmo (Wayland/Sway) Please post the output of
sxmo_version.sh
- Other: Please fill out
How did you get postmarketOS image?
- from https://images.postmarketos.org
- I built it using pmbootstrap
- It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
2024-02-12
Additional information
The workaround is to boot the phone in download mode, which will print a "battery too low" message; but at least the phone will charge (very slowly). Once the battery is above the emergency threshold the OS can boot.
I believe the only way to really fix this issue is to have a low-power version of what "charging-sdl" was.