Posts Tagged ‘status’

Linux Check Laptop battery status from Console / Terminal

Tuesday, September 15th, 2009

I needed to have a quick way to check my battery status via terminal and I googled around looking
for a solution. I found the following website explaining in a pretty good way “How to check your battery status in Console”.
.Just like the blog explains the proper way to do that in Linux is via the acpi command. In case if you don’t have, yet the commandplease install it.
1. The fastest way to check the laptop battery status is via: $ acpiThe output would be something like this:Battery 1: discharging, 91%, 02:00:09 remaining2. Check laptop battery temperature:$ acpi -t3. Check laptop battery AC Power Status$ acpi -a4. Check everything related to acpi$ acpi -V
Another possible way to check for your notebook battery status from console in Linux is via:
acpitool
1. Command to show general information for battery status:$ acpitool2. For detailed battery information use:$ acpitool -B add “-v” for verbose output3. Show information about AC power.$ acpitool -a
Some of the other possible ways to check your battery charge status via console are either via: yabs ( Yet Another Battery Status ) script or via:
cat /proc/acpi/battery/BAT0/state orcat /proc/acpi/battery/BAT0/info
END—–