How to obtain a laptop battery information and charging state on Linux
Details
admin
Uncategorised
The following commands will help you to obtain the information about your laptop battery such as manufacturer, part type, capacity, voltage etc. First, tool which can be used for this job is dmidecode command. If you currently do not have dmidecode available on your Linux system you can install it by:
From the above output we can see that the battery is currently charging, it was designed to hold up to 93.24 Wh of power and currently can hold only up to 81.53 Wh which gives it 87.441% of its original capacity left. The above upower command output can also be used to monitor any detail about the battery status. For example using the command below we will monitor its charging status: