Battery low. Charge now!
This lists information about the batteries that are parsed by Inxi. You can use the below properties to learn more about its information.
Module name according to each operating system:
Linux
004#Graphics
Windows
Win32_VideoController
macOS
N/A
You can call the module either by enumerating through the entire list of batteries, or you can use the index of the battery directly as follows:
HardwareInfo.Battery[0].<property>
which <property> is:
<property>
Name
String
Battery name
Charge
Integer
Battery charge in percent
Condition
Battery charge condition
Volts
Battery voltage
Model
Battery model
Status
Battery status
Compatibility notes:
Battery info is not supported yet on macOS
Last updated 2 years ago