Linux – How to see how long the battery has been running without AC

batterylinux

I am trying to figure out how effective my laptop battery is.
Therefore, I woud like to see for how long the battery has been running without AC, since reboot or since AC was plugged in last.

Is this possible? If not, I'll just have to time it manually myself of course.

I'm running Ubuntu 14.

Best Answer

I think that upower -d can give you some answers, it shows info about the batteries.

Another source of info is /sys/class/power_supply/XX where XX is any battery listed in the folder...

You can see upower official docs to find more info

Related Question