Battery Info is a desktop application to display health information about the notebook battery.
Screenshots
Description
Application displays current battery health as well as some general information about the battery.- Vendor and Model Battery vendor and model number. This information can be used to source the battery replacement.
- System Computer vendor and model number. This can be useful when acquiring a replacement battery.
- Technology Battery chemistry. Lithium ion is the common proven technology. Lithium polymer allows for thiner batteries.
- Nominal capacity Energy amount the battery can hold by design.
- Actual capacity Actual energy amount the battery can hold as measured by the operating system. To get the most accurate value, fully charge and fully discharge the battery.
- Capacity percentage The ratio between the actual and nominal capacity. Typical values are 90-100% for batteries in good shape. For values below 75% it is recommended to replace the battery.
Install
Please install this application using flatpak. Refer here to setup flatpak if necessary.
Build
First install the requirements.
Checkout the source code from github.
$ git clone https://github.com/her01n/battery-info
You can now build the application, run it locally or install it.
$ make mos
$ ./battery-info
$ sudo make install
For unit testing, first install hdt test library.
Then run hdt
or alternatively make
in the source directory.
This is a guile program. Information is collected using UPower DBus interface, with the gdbus client from Glib library. Native library is accessed using guile's foreign interface. User interface is displayed using Adwaita and Gtk via g-golf library.