Terminal power saving method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsXiangyu Niu, Xiaowei Ma
Life of this patent
Estimating the term…
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.
Claims17
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.
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.
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.
Dependencies are inferred from the claim text.