Methods for determining battery statistics using a system-wide daemon
First Claim
1. 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.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for determining battery statistics using a system-wide daemon are described herein. According to one embodiment, a power management daemon is configured to collect operating status data of a battery of a data processing system by accessing at least one of firmware and hardware coupled to the battery. The power management daemon is a single system-wide component within the data processing system to provide the operating status data of the battery to multiple clients. The power management daemon is also configured to compute battery statistics based on the collected operating status data of the battery. In response to a query received from one of the clients via an application programming interface (API), the power management daemon is configured to return the battery statistics to the client to enable the client to determine remaining time of the battery until being recharged. Other methods and apparatuses are also described.
-
Citations
17 Claims
-
1. 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. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A non-transitory computer readable medium including instructions that, when executed by a processing system, cause the processing system to perform 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. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. An apparatus for determining and maintaining battery statistics, comprising:
-
a data collector to collect operating status data of a battery of a data processing system by accessing at least one of firmware or hardware coupled to the battery, and to provide the operating status data of the battery to a plurality of clients; and a statistics calculator coupled to the data collector to compute battery statistics based on the collected operating status data of the battery and determine 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, wherein in response to a query received from one client of the plurality of clients via an application programmable interface (API), the statistics calculator is configured to return 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. - View Dependent Claims (14, 15, 16, 17)
-
Specification