Is there a tool that can record one's battery life on a periodic or level basis? Preferably for UNIX-y systems. I want to keep a small report of the health of my devices. I think I can probably do some parsing of information from
upower if it's installed.
upower -i /org/freedesktop/UPower/devices/battery_BAT1 on my laptop gives me the following:
❯ upower -i /org/freedesktop/UPower/devices/battery_BAT1 native-path: BAT1 vendor: NVT model: Framewo serial: 0064 power supply: yes updated: Mon 30 May 2022 04:07:08 PM EDT (0 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: charging warning-level: none energy: 45.3684 Wh energy-empty: 0 Wh energy-full: 50.2964 Wh energy-full-design: 55.0088 Wh energy-rate: 15.015 W voltage: 17.377 V time to full: 19.7 minutes percentage: 90% capacity: 89.8096% technology: lithium-ion icon-name: 'battery-full-charging-symbolic' History (charge): 1653941204 90.000 charging History (rate): 1653941226 15.015 unknown 1653941222 15.030 charging 1653941216 15.184 charging 1653941214 15.169 charging 1653941212 15.138 charging 1653941161 14.235 charging
Engagement is powered by Webmentions — a premier standard of the Web to let other sites know you've mentioned them. Learn how to reply from your own site. or from a supported silo Aaron has an interactive post about this. If you've mentioned this URL via another one, use the form below to submit it.
If you don't currently own your replies, then you can click below to do so.