I don’t have a L5 and I am definitely not a battery expert, but “energy-full” being nearly twice the “energy-full-design” capacity is very strange. Normally that number would be lower than the design number as the battery wears. It seems like it thinks the battery is nearly twice as big as it actually is?
Those two values should be the same (I think, or at least very, very close in their values), therefore please take out your Librem 5 battery during charging of it (you’ll see there 0%), and reinsert it again. Please charge reinserted battery until red LED light goes off (this should help there as well).
I’ve had this happen to me once before. When I asked about this in the Purism community/general Matrix room, I was told that the battery calibration got skewed over time. Following the calibration reset instructions below seemed to work for me.
Transcript from the Matrix room (with names removed):
[Me] Anyone have any idea why I got this weird power drain on my Librem 5? I literally saw the battery percentage tick down in the span of 30 seconds from around 47% down to 4%. I only had Wi-Fi enabled, and Firefox open with Teddit (Reddit frontend open) as far as open apps go, not including background apps. [Purism staff] oh 30 seconds? It could be that the battery calibration is off [Purism staff] power off, remove battery, reinsert battery, and do a full discharge/charge cycle [Purism staff] over time my battery calibration skewed because I mostly have this phone plugged in at my desk or at a laptop dock, and it only runs for an extended time on battery when I run quick errands, As a result the battery monitor eventually became inaccurate
I wonder if battery calibration reset / or optimization can be performed programmatically without battery removal. Apple had to figure it out since the battery cannot be removed. Or where it watches those two values and if they go out of wack it asks to re-calibrate at a certain time e.g. when phone has been on the charger say 5 hours and based on provided PD settings knowns that the battery theoretically must be at full charge, resetting the values at that time.
Calibration off seems to be the case. Powered off the phone, removed battery, waited about a minute or so and reinserted battery. Came back at 30% (from 62%) after booting up again.
Yes, it can be. It’s however much easier and quicker to turn the phone off, take the battery out for a moment and then have the kernel automatically configure the battery gauge back at boot instead of having to take care of that by yourself - especially when in the general case you usually want the calibration data to be retained for as long as possible.
In OPs case, it appears that the gauge has been configured with wrong values. It can happen for example when booting Jumpdrive as the first thing after putting the battery in and then never taking it out again (Jumpdrive defaults to Birch’s device tree, which had a battery with completely different parameters than what’s in Evergreen).