# US 12,007,827 B2 · Terminal power saving method and apparatus

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

- Number: US 12,007,827 B2
- Document ID: US12007827B2
- Status: Granted
- Kind: B2
- Application number: 17/641,581
- Filed: 2020-09-10
- Published: 2022-09-22
- Granted: 2024-06-11
- Earliest claimed: 2019-09-11
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xiangyu Niu; Xiaowei Ma
- Web page: https://patentgrep.com/patent/US12007827B2

## CPC

- G06F 1/3206: Monitoring of events, devices or parameters that trigger a change in power modality
- G06F 1/329: by task scheduling
- G06F 1/3212: Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
- G06F 9/4856: {resumption being on a different machine, e.g. task migration, virtual machine migration (G06F9/5088 takes precedence)}
- G06F 9/5094: {where the allocation takes into account power or heat criteria (power management in computers in general G06F1/3203; thermal management in computers in general G06F1/206)}
- Y02D 30/70: in wireless communication networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

The method includes: a primary terminal may select a target secondary terminal from at least one secondary terminal when detecting that the primary terminal currently runs a power consuming process and/or will run a power consuming process, and migrate the currently running power consuming process and/or the to-be-run power consuming process to the target secondary terminal.

## Claims

### Claim 1

A terminal power saving method, applied to a primary terminal, wherein the primary terminal is powered by a battery, the primary terminal and at least two secondary terminals are in a same network, and the method comprises:
selecting a target secondary terminal from the at least two secondary terminals when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process;
migrating the currently running power consuming process or the to-be-run power consuming process to the target secondary terminal, to run the currently running power consuming process or the to-be-run power consuming process by using the target secondary terminal; and
receiving a running result sent by the target secondary terminal;
wherein the selecting of a target secondary terminal from the at least two secondary terminals when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process comprises:
determining a secondary terminal list from the at least two secondary terminals in a networking process, wherein the secondary terminal list comprises at least one secondary terminal; and
selecting the target secondary terminal from the secondary terminal list based on a migration condition when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process, wherein the migration condition comprises: available power meets a power requirement of the currently running power consuming process or the to-be-run power consuming process, and available resources meet a resource requirement of the currently running power consuming process or the to-be-run power consuming process,
wherein the migration condition comprises at least one of the following:
a first-type migration condition that comprises: a power supply supplies power, there is no user operation, and available resources of a secondary terminal are greater than the resource requirement of the currently running power consuming process or the to-be-run power consuming process;
a second-type migration condition that comprises: a power supply supplies power, there is a user operation, and available resources of a secondary terminal are greater than or equal to X resource requirements of the currently running power consuming process or the to-be-run power consuming process;
a third-type migration condition that comprises: a power supply supplies power, a time for which there has been no user operation exceeds a preset time period, and current time falls within a preset time period of a system; or
a fourth-type migration condition that comprises: a battery supplies power, available power of the battery is greater than Y power requirements of the currently running power consuming process or the to-be-run power consuming process, there is no user operation, and available resources of a secondary terminal are greater than or equal to Z resource requirements of the currently running power consuming process or the to-be-run power consuming process, wherein all of X, Y, and Z are greater than or equal to 1; and
wherein priorities of the migration conditions sequentially decrease based on a sequence of the first-type migration condition, the second-type migration condition, the third-type migration condition, and the fourth-type migration condition.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the selecting the target secondary terminal from the secondary terminal list based on a migration condition when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process comprises:
when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process, selecting a first secondary terminal in the secondary terminal list, obtaining current target power and current target resources of each secondary terminal on the secondary terminal list;
determining whether the current target power and the current target resources of the secondary terminal meet the migration condition until a secondary terminal that meets the migration condition is determined; and
determining the secondary terminal that meets the migration condition as the target secondary terminal.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the obtaining a current target power and current target resources that correspond to the secondary terminal comprises:
obtaining a current available power and current available resources that correspond to the secondary terminal; and
separately performing normalization processing on the current available power and the current available resources that correspond to the secondary terminal, to obtain the current target power and the current target resources that correspond to the secondary terminal.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the selecting the target secondary terminal from the secondary terminal list based on a migration condition when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process comprises:
when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process, separately obtaining a current target power and current target resources that correspond to each of secondary terminals in the secondary terminal list;
determining whether the current target power and the current target resources that correspond to each of the secondary terminals in the secondary terminal list meet the migration condition; and
selecting the target secondary terminal from secondary terminals that meet the migration condition.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the selecting the target secondary terminal from the secondary terminals that meet the migration condition comprises:
determining a migration condition type corresponding to each of the secondary terminals that meet the migration condition; and
determining, as the target secondary terminal, a secondary terminal corresponding to a migration condition type with a highest priority.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the determining a secondary terminal list from the at least two secondary terminals in a networking process comprises:
in the networking process, obtaining an available power and available resources that correspond to each of the at least two secondary terminals; and
determining the secondary terminal list based on the available power and the available resources that correspond to each of the at least two secondary terminals, wherein a secondary terminal in the secondary terminal list meets a preset condition.

### Claim 7

A terminal power saving apparatus, applied to a primary terminal, wherein the primary terminal is powered by a battery, the primary terminal and at least two secondary terminals are in a same network, and the apparatus comprises:
a processor,
a storage coupled to the processor, and
a memory coupled to the processor to store instructions, which when executed by the processor, cause the processor to perform the operations, the operations comprising:
selecting a target secondary terminal from the at least two secondary terminals when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process;
migrating the currently running power consuming process or the to-be-run power consuming process to the target secondary terminal, to run the currently running power consuming process or the to-be-run power consuming process by using the target secondary terminal; and
receiving a running result sent by the target secondary terminal;
wherein the selecting a target secondary terminal from the at least two secondary terminals when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process comprises:
determining a secondary terminal list from the at least two secondary terminals in a networking process, wherein the secondary terminal list comprises at least one secondary terminal; and
selecting the target secondary terminal from the secondary terminal list based on a migration condition when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process, wherein the migration condition comprises: available power meets a power requirement of the currently running power consuming process or the to-be-run power consuming process, and available resources meet a resource requirement of the currently running power consuming process or the to-be-run power consuming process,
wherein the migration condition comprises at least one of the following:
a first-type migration condition that comprises: a power supply supplies power, there is no user operation, and available resources of a secondary terminal are greater than the resource requirement of the currently running power consuming process or the to-be-run power consuming process;
a second-type migration condition that comprises: a power supply supplies power, there is a user operation, and available resources of a secondary terminal are greater than or equal to X resource requirements of the currently running power consuming process or the to-be-run power consuming process;
a third-type migration condition that comprises: a power supply supplies power, a time for which there has been no user operation exceeds a preset time period, and current time falls within a preset time period of a system; or
a fourth-type migration condition that comprises: a battery supplies power, available power of the battery is greater than Y power requirements of the currently running power consuming process or the to-be-run power consuming process, there is no user operation, and available resources of a secondary terminal are greater than or equal to Z resource requirements of the currently running power consuming process or the to-be-run power consuming process, wherein all of X, Y, and Z are greater than or equal to 1; and
wherein priorities of the migration conditions sequentially decrease based on a sequence of the first-type migration condition, the second-type migration condition, the third-type migration condition, and the fourth-type migration condition.

### Claim 8 (depends on 7)

The apparatus according to claim 7, wherein the selecting of the target secondary terminal from the secondary terminal list based on a migration condition when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process comprises:
when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process, starting from a first secondary terminal in the secondary terminal list, obtaining a current target power and current target resources of each secondary terminal on the secondary terminal list;
determining whether the current target power and the current target resources of each secondary terminal on the secondary terminal list meet the migration condition; and
selecting a secondary terminal that meets the migration condition as the target secondary terminal.

### Claim 9 (depends on 8)

The apparatus according to claim 8, wherein the obtaining of the current target power and the current target resources that correspond to each of the secondary terminals on the secondary terminal list comprises:
obtaining a current available power and current available resources that correspond to the secondary terminal; and
separately performing normalization processing on the current available power and the current available resources that correspond to the secondary terminal, to obtain the current target power and the current target resources that correspond to the secondary terminal.

### Claim 10 (depends on 7)

The apparatus according to claim 7, wherein the selecting of the target secondary terminal from the secondary terminal list based on a migration condition when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process comprises:
when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process, separately obtaining a current target power and current target resources that correspond to each of secondary terminals in the secondary terminal list;
determining whether the current target power and the current target resources that correspond to each of the secondary terminals in the secondary terminal list meet the migration condition; and
selecting the target secondary terminal from secondary terminals that meet the migration condition.

### Claim 11 (depends on 10)

The apparatus according to claim 10, wherein the selecting of the target secondary terminal from the secondary terminals that meet the migration condition comprises:
determining a migration condition type corresponding to each of the secondary terminals that meet the migration condition; and
determining, as the target secondary terminal, a secondary terminal corresponding to a migration condition type with a highest priority.

### Claim 12 (depends on 7)

The apparatus according to claim 7, wherein the determining a secondary terminal list from the at least two secondary terminals in a networking process comprises:
in the networking process, obtaining an available power and available resources that correspond to each of the at least two secondary terminals; and
determining the secondary terminal list based on the available power and the available resources that correspond to each of the at least two secondary terminals, wherein a secondary terminal in the secondary terminal list meets a preset condition.

### Claim 13

A non-transitory machine-readable storage medium having instructions stored therein, which when executed by a processor, cause the processor to perform operations, the operations comprising:
selecting a target secondary terminal from at least two secondary terminals when it is detected that a primary terminal currently runs a power consuming process or is to run a power consuming process;
migrating the currently running power consuming process or the to-be-run power consuming process to the target secondary terminal, to run the currently running power consuming process or the to-be-run power consuming process by using the target secondary terminal; and
receiving a running result sent by the target secondary terminal;
wherein the selecting a target secondary terminal from the at least two secondary terminals when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process comprises:
determining a secondary terminal list from the at least two secondary terminals in a networking process, wherein the secondary terminal list comprises at least one secondary terminal; and
selecting the target secondary terminal from the secondary terminal list based on a migration condition when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process, wherein the migration condition comprises: available power meets a power requirement of the currently running power consuming process or the to-be-run power consuming process, and available resources meet a resource requirement of the currently running power consuming process or the to-be-run power consuming process;
wherein the migration condition comprises at least one of the following:
a first-type migration condition that comprises: a power supply supplies power, there is no user operation, and available resources of a secondary terminal are greater than the resource requirement of the currently running power consuming process or the to-be-run power consuming process;
a second-type migration condition that comprises: a power supply supplies power, there is a user operation, and available resources of a secondary terminal are greater than or equal to X resource requirements of the currently running power consuming process or the to-be-run power consuming process;
a third-type migration condition that comprises: a power supply supplies power, a time for which there has been no user operation exceeds a preset time period, and current time falls within a preset time period of a system; or
a fourth-type migration condition that comprises: a battery supplies power, available power of the battery is greater than Y power requirements of the currently running power consuming process or the to-be-run power consuming process, there is no user operation, and available resources of a secondary terminal are greater than or equal to Z resource requirements of the currently running power consuming process or the to-be-run power consuming process, wherein all of X, Y, and Z are greater than or equal to 1; and
wherein priorities of the migration conditions sequentially decrease based on a sequence of the first-type migration condition, the second-type migration condition, the third-type migration condition, and the fourth-type migration condition.

### Claim 14 (depends on 13)

The non-transitory machine-readable storage medium according to claim 13, wherein the selecting of the target secondary terminal from the secondary terminal list based on a migration condition when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process comprises:
when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process, starting from a first secondary terminal in the secondary terminal list, obtaining a current target power and current target resources of each secondary terminal on the secondary terminal list;
determining whether the current target power and the current target resources of each secondary terminal on the secondary terminal list meet the migration condition; and
determining a secondary terminal that meets the migration condition as the target secondary terminal.

### Claim 15 (depends on 14)

The non-transitory machine-readable storage medium according to claim 14, wherein the obtaining a current target power and current target resources that correspond to each secondary terminal on the secondary terminal list comprises:
obtaining a current available power and current available resources that correspond to the secondary terminal; and
separately performing normalization processing on the current available power and the current available resources that correspond to the secondary terminal, to obtain the current target power and the current target resources that correspond to the secondary terminal.

### Claim 16 (depends on 13)

The non-transitory machine-readable storage medium according to claim 13, wherein the selecting of the target secondary terminal from the secondary terminal list based on a migration condition when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process comprises:
when it is detected that the primary terminal currently runs a power consuming process or is to run a power consuming process, separately obtaining a current target power and current target resources that correspond to each of secondary terminals in the secondary terminal list;
determining whether the current target power and the current target resources that correspond to each of the secondary terminals in the secondary terminal list meet the migration condition; and
determining the target secondary terminal from the secondary terminals that meet the migration condition.

### Claim 17 (depends on 16)

The non-transitory machine-readable storage medium according to claim 16, wherein the selecting the target secondary terminal from the secondary terminals that meet the migration condition comprises:
determining a migration condition type corresponding to each of the secondary terminals that meet the migration condition; and
determining, as the target secondary terminal, a secondary terminal corresponding to a migration condition type with a highest priority.
