Showing posts with label laptop battery. Show all posts
Showing posts with label laptop battery. Show all posts

Thursday, May 10, 2012

Battery Status From Linux Command Line

When you are running a CLI or a minimal desktop environment on a laptop/netbook/notebook, it is necessary to check battery status for some reasons. 'acpi' is a system tool to provide easy human-readable battery status and information. For installing 'acpi' on Ubuntu or Debian systems, type this:
apt-get install acpi
You must be root to do that. Use 'sudo' for Ubuntu/Mint systems. Now, type 'acpi' to see battery status. I got this with a fully charged battery:
# acpi
Battery 0: Full, 100%, rate information unavailable