I am using the command
upower -i /org/freedesktop/UPower/devices/battery_BAT0 and
acpi -V to check the battery current status. It shows it has history and statistics.
How can I check the history?
I knew there are some apps which can produce a nice graph of the battery history, but that is not what I am looking for. I would like to see the history in a text log. I want to examine the text log with some scripts and editor to determine when the battery status changed etc..
Thanks a lot.
If the question is not possible, how to monitor battery state change event? I need to record the battery information whenever the battery/ac state changes. So checking upower or acpi output at a interval time is not sufficient. Thanks.