12-31-2024, 11:39 PM
I did some battery testing on my phone using the logging method above. Conditions:
I then used the phone for a bit and ran a YouTube video in Firefox at 360p. After starting the YouTube video, battery went from about 78% to 5% in about 30 minutes! I periodically manually logged the battery state and the output is below. From this output it looks like the battery capacity is under-reading when the phone is loaded (by YouTube playback in this instance) since the actual battery voltage isn't dropping anywhere near as fast as the stated capacity:
I shut down the phone at 5%, let the battery rest for an hour, then tested the actual voltage on the battery: 3.82V, which equates to around 50% capacity! So while the phone thinks it's at 5%, in actual fact it's at 50%, which is a huge discrepancy. I left the phone off overnight (which seems to reset the battery meter), then plugged in the battery this morning, and the phone now shows 50% battery capacity, even though I didn't charge it!
TLDR; the phone's battery capacity meter is wonky so don't trust it, and we may actually be able to get a lot better battery life if this is fixed.
- Pinephone Pro with Megi's U-boot bootloader and running PostmarketOS 24.12 Phosh
- Battery fully charged
- SIM card inserted and connected, WiFi enabled
I then used the phone for a bit and ran a YouTube video in Firefox at 360p. After starting the YouTube video, battery went from about 78% to 5% in about 30 minutes! I periodically manually logged the battery state and the output is below. From this output it looks like the battery capacity is under-reading when the phone is loaded (by YouTube playback in this instance) since the actual battery voltage isn't dropping anywhere near as fast as the stated capacity:
Code:
~ $ cat /sys/class/power_supply/rk818-batte
ry/*_now && cat /sys/class/power_supply/rk8
18-battery/capacity && date
-792000
3762000
78
Tue Dec 31 12:22:04 SAST 2024
~ $ cat /sys/class/power_supply/rk818-batte
ry/*_now && cat /sys/class/power_supply/rk8
18-battery/capacity && date
-933000
3679000
71
Tue Dec 31 12:28:31 SAST 2024
~ $ cat /sys/class/power_supply/rk818-batte
ry/*_now && cat /sys/class/power_supply/rk8
18-battery/capacity && date
-810000
3717000
62
Tue Dec 31 12:32:09 SAST 2024
~ $ cat /sys/class/power_supply/rk818-batte
ry/*_now && cat /sys/class/power_supply/rk8
18-battery/capacity && date
-801000
3678000
47
Tue Dec 31 12:37:50 SAST 2024
~ $ cat /sys/class/power_supply/rk818-batte
ry/*_now && cat /sys/class/power_supply/rk8
18-battery/capacity && date
-1313000
3548000
25
Tue Dec 31 12:43:54 SAST 2024
~ $ cat /sys/class/power_supply/rk818-batte
ry/*_now && cat /sys/class/power_supply/rk8
18-battery/capacity && date
-1138000
3616000
14
Tue Dec 31 12:47:24 SAST 2024
~ $ cat /sys/class/power_supply/rk818-batte
ry/*_now && cat /sys/class/power_supply/rk8
18-battery/capacity && date
-855000
3613000
5
Tue Dec 31 12:52:09 SAST 2024
~ $ cat /sys/class/power_supply/rk818-batte
ry/*_now && cat /sys/class/power_supply/rk8
18-battery/capacity && date
-834000
3552000
5
Tue Dec 31 12:52:29 SAST 2024
I shut down the phone at 5%, let the battery rest for an hour, then tested the actual voltage on the battery: 3.82V, which equates to around 50% capacity! So while the phone thinks it's at 5%, in actual fact it's at 50%, which is a huge discrepancy. I left the phone off overnight (which seems to reset the battery meter), then plugged in the battery this morning, and the phone now shows 50% battery capacity, even though I didn't charge it!
TLDR; the phone's battery capacity meter is wonky so don't trust it, and we may actually be able to get a lot better battery life if this is fixed.