denilsonsa/batterymon-clone — pull request #4 by jceb (2012-12-23 18:29:07+00:00)
Title: Improved support for multiple batteries

The current implementation of batterymon lets every Battery object send updates to the UI. I changed this behavior and let the PowerManagement collect the information from all batteries and ac adapters. The power management than computes the battery lifetime based on all the available devices.
I also implemented a reinitialization of ac adapters and batteries to detect newly added / removed devices.