# US 2025/0085765 A1 · Prevention of Unexpected Shutdown

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0085765 A1
- Document ID: US20250085765A1
- Status: Published application
- Kind: A1
- Application number: 18/465,785
- Filed: 2023-09-12
- Published: 2025-03-13
- Earliest claimed: 2023-09-12
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Chee Lim Nge; Peter Hyungrok Sung; Douglas A. MacKay; Diwakar N. Tundlam; Jun Hou; Tu Le; Vishal Gupta; Ning Tian; Daniele Perretta; Bo Zhou; Michael Eng
- Web page: https://patentgrep.com/patent/US20250085765A1

## CPC

- G06F 1/3212: Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
- G06F 1/3265: {Power saving in display device}
- G01R 31/387: Determining ampere-hour charge capacity or SoC
- G06F 1/3218: of display devices
- G06F 1/3203: Power management, i.e. event-based initiation of a power-saving mode
- G06F 1/3287: by switching off individual functional units in the computer system
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)

## Abstract

Systems and methods are disclosed for allocating and distributing power management budgets for subsystems of a computer system. For each of a plurality of subsystems, a power management system may generate a long-term power budget and a closed-loop power budget, and then determine a final power budget to provide to the subsystem, e.g., by applying a min function, a weighted sum, or some other function to the long-term power budget and the closed-loop power budget. The closed-loop power budget is determined based on observations of power draw over a past period of time, and therefore cannot respond immediately to large changes in power. The long-term power budget is generated based on a prediction of battery capability over an upcoming window of time, and may therefore provide a power cap before the system is under duress.

## Claims

### Claim 1

A battery-powered device comprising:
a battery;
a plurality of subsystems configured to draw power from the battery, wherein each subsystem of the plurality of subsystems is configured to adjust its power usage based on a respective power budget; and
a power management module configured to:
generate an estimate of power that will be drawn from the battery over an upcoming window of time;
generate an estimate of battery capability over the upcoming window of time, based on the estimate of power;
generate a first respective power budget for each of one or more of the subsystems, based on the estimate of battery capability;
generate a second respective power budget for each of the one or more of the subsystems, based on a closed-loop feedback path;
determine a final respective power budget for each of the one or more of the subsystems, based on the first respective power budget and the second respective power budget; and
provide the final respective power budget to each of the one or more of the subsystems.

### Claim 2 (depends on 1)

The device of claim 1, wherein a first subsystem of the plurality of subsystems comprises a display.

### Claim 3 (depends on 2)

The device of claim 2, wherein the first subsystem is configured to adjust its power usage based on the final respective power budget by adjusting a brightness level of the display.

### Claim 4 (depends on 1)

The device of claim 1, wherein the final respective power budget comprises an indication of a maximum power level for use by the applicable subsystem, wherein the applicable subsystem is configured to adjust its power usage based on the final respective power budget by adjusting its operating parameters such that its power usage remains below the maximum power level.

### Claim 5 (depends on 1)

The device of claim 1, wherein the first respective power budget for a first subsystem of the plurality of subsystems is configured to prevent the first subsystem from drawing power in excess of the estimate of battery capability over the upcoming window of time.

### Claim 6 (depends on 1)

The device of claim 1, wherein the estimate of battery capability is further based on a present state of the battery.

### Claim 7 (depends on 1)

The device of claim 1, wherein determining the final respective power budget comprises selecting between the first respective power budget and the second respective power budget, wherein the respective power budget indicating a lower maximum power level is selected.

### Claim 8 (depends on 1)

The device of claim 1, wherein determining the final respective power budget comprises determining a weighted sum of the first respective power budget and the second respective power budget.

### Claim 9 (depends on 1)

The device of claim 1, wherein generating the estimate of battery capability over the upcoming window of time is performed periodically, wherein the period varies based on at least one of present power output of the battery or the most recent estimate of long-term battery capability.

### Claim 10 (depends on 1)

The device of claim 1, wherein generating the estimate of battery capability over the upcoming window of time is performed in response to a trigger event.

### Claim 11 (depends on 10)

The device of claim 10, wherein the trigger event is determining that a subsystem of the plurality of subsystems is performing an action that will cause a step increase in power.

### Claim 12

A method comprising:
generating an estimate of power that will be drawn from a battery over an upcoming window of time;
generating an estimate of battery capability over the upcoming window of time, based on the estimate of power;
generating a first power budget for a subsystem powered by the battery, the first power budget based on the estimate of battery capability;
generating a second power budget for the subsystem, the second power budget based on a closed-loop feedback path;
determining a final power budget for the subsystem, the final power budget based on the first power budget and the second power budget;
providing the final power budget to the subsystem; and
adjusting power usage of the subsystem based on the final power budget.

### Claim 13 (depends on 12)

The method of claim 12, wherein the final power budget comprises an indication of a maximum power level for use by the subsystem.

### Claim 14 (depends on 13)

The method of claim 13, wherein the subsystem comprises a speaker, wherein adjusting power usage of the subsystem based on the final power budget comprises adjusting a volume level of audio output from the speaker such that the power level of the subsystem remains below the maximum power level.

### Claim 15 (depends on 12)

The method of claim 12, wherein determining the final power budget comprises selecting between the first power budget and the second power budget, wherein the power budget indicating a lower maximum power level is selected.

### Claim 16 (depends on 12)

The method of claim 12, wherein generating the estimate of battery capability over the upcoming window of time is performed in response to determining that the subsystem is performing an action that will cause a step increase in power.

### Claim 17

A power management device comprising:
a long-term power estimator configured to generate an estimate of power that will be drawn from a battery over an upcoming window of time;
a long-term battery capability predictor configured to generate an estimate of capability of the battery over the upcoming window of time, based on the estimate of power and a present state of the battery;
a long-term controller configured to generate one or more long-term power budgets for respective one or more subsystems powered by the battery, wherein the long-term power budgets are configured to prevent the one or more subsystems from exceeding the capability of the battery over the upcoming window of time;
a closed-loop controller configured to generate one or more closed-loop power budgets for the one or more subsystems, wherein the closed-loop power budgets are based on power levels observed over a past window of time; and
a budget controller configured to provide one or more output power budgets to the one or more subsystems, wherein the output power budgets are generated based on the long-term budgets and the closed-loop budgets.

### Claim 18 (depends on 17)

The power management device of claim 17, wherein each of the output power budgets is generated by selecting between a respective one of the long-term power budgets and a respective one of the closed-loop power budgets, wherein the respective power budget indicating a lower maximum power level is selected.

### Claim 19 (depends on 17)

The power management device of claim 17, wherein each of the output power budgets is generated by determining a weighted sum of a respective one of the long-term power budgets and a respective one of the closed-loop power budgets.

### Claim 20 (depends on 17)

The power management device of claim 17, wherein generating the estimate of capability of the battery over the upcoming window of time is performed periodically, wherein the period varies based on at least one of present power output of the battery or the most recent estimate of capability of the battery.
