Here’s a little scipt I wrote, you might as well just click down-load …
I wanted to play a bit with my new device and see how changing some settings etc. affects battery life. As I am certainly not patient enough to go through a full charge cycle to measure an effect, I wrote this lil script. It can
- dump info on battery and charger
- print charge state (and diff) in intervals
For example, I wanted to see what happens if you disable 3 of 4 cores. (Spoiler: basically nothing)
On the Librem 5, the granularity of the charge level measurements seems to be 3mAh.
Thus when idle, that leads to a changed reading every 30…40s.
In other words, with a 10 second interval, the difference is either 0 or 3mAh.
In a minute, it’s either 3mAh or 6mAh.
Consequently, when measuring an idle device, choose the minute interval ./batteryjuice -w
and wait 10 minutes. Every 10 minutes, an accumulated difference is printed.
Time remaining % °C mAh diff mAh accumulated diff (mAh)
22:41:03 12.47.20 87 28.5 3893.221
22:42:03 13.46.30 87 28.3 3890.221 -3.000
22:43:04 13.43.01 87 28.2 3884.223 -5.998
22:44:04 13.27.56 87 27.9 3878.224 -5.999
22:45:04 13.22.35 87 28.0 3875.224 -3.000
22:46:04 13.17.54 87 28.0 3869.226 -5.998
22:47:04 13.38.26 87 27.9 3866.226 -3.000
22:48:05 13.23.20 86 27.7 3860.227 -5.999
22:49:05 13.18.00 86 27.6 3857.228 -2.999
22:50:05 13.05.37 86 27.7 3851.229 -5.999
22:51:05 13.18.05 86 27.6 3845.230 -5.999 -47.991
...
So, my idle consumption (display off, WiFi+ssh) is 4.5…4.8mAh per minute
And with screen on, very mild usage (playing 2048)
- 15mAh at full brightness
- 10mAh at very low brightness
Which means, at night in your bed you can save about 5mAh per minute
Also, the display seems to consume 5…10mAh per minute, depending on brightness.