METHODS FOR DETERMINING BATTERY STATISTICS USING A SYSTEM-WIDE DAEMON
First Claim
1. A computer-implemented 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 and hardware coupled to the battery, the power management daemon being a single system-wide component within the data processing system 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; and
in response to a query received from one of the clients via an application programming interface (API), the power management daemon returning the battery statistics to the client to enable the client to determine 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.
8 Citations
18 Claims
-
1. A computer-implemented 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 and hardware coupled to the battery, the power management daemon being a single system-wide component within the data processing system 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; and in response to a query received from one of the clients via an application programming interface (API), the power management daemon returning the battery statistics to the client to enable the client to determine remaining time of the battery until being recharged. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A 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 and hardware coupled to the battery, the power management daemon being a single system-wide component within the data processing system 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; and in response to a query received from one of the clients via an application programming interface (API), the power management daemon returning the battery statistics to the client to enable the client to determine 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 and hardware coupled to the battery, wherein the apparatus is a single system-wide component within the data processing system 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, wherein in response to a query received from one of the clients via an application programmable interface (API), the statistics calculator is configured to return the battery statistics to the client to enable the client to determine remaining time of the battery until being recharged. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification