Patent ID: 8375236

Claim:
A method comprising: collecting, by a power management daemon, operating status data of a battery of a data processing system by accessing at least one of firmware or hardware coupled to the battery, the power management daemon to provide the operating status data of the battery to a plurality of clients; computing, by the power management daemon, battery statistics based on the collected operating status data of the battery; determining a plurality of correction values, each of the plurality of correction values corresponding to an amount of battery charge remaining, and adjusting a remaining time of the battery based on the amount of battery charge remaining and the corresponding one of the plurality of correction values; and in response to a query received from one client of the plurality of clients via an application programming interface (API), the power management daemon returning the battery statistics and the one of the plurality of correction values corresponding to the amount of battery charge remaining to the one client to enable the one client to determine the remaining time of the battery until being recharged.