Laptop battery status

Recently the battery of my laptop is play up. It is constantly hungry for a powercord. And this is not the reason why I am using a laptop. The battery health was rapidly declining.

So I installed a new laptop battery, An now I want to check the battery health periodically.

The command upower can give information about know battery held devices.

upower -i $(upower -e | grep 'BAT')

This commend present much information if not all information about the battery. To entertain my needs I only need;

upower -i $(upower -e | grep 'BAT') | egrep "design|full:"
This entry was posted in CCNP and tagged , , . Bookmark the permalink.