US 12,242,324 B2
System power consumption control method and electronic device for disabling a network connection of the electronic device when the electronic device is in a first mode
Jianbin Qiu, Shenzhen (CN)
Assigned to Honor Device Co., Ltd., Shenzhen (CN)
Appl. No. 17/904,472
Filed by Honor Device Co., Ltd., Shenzhen (CN)
PCT Filed Apr. 24, 2022, PCT No. PCT/CN2022/088777
§ 371(c)(1), (2) Date Aug. 17, 2022,
PCT Pub. No. WO2023/015945, PCT Pub. Date Feb. 16, 2023.
Claims priority of application No. 202110918392.X (CN), filed on Aug. 11, 2021.
Prior Publication US 2024/0211017 A1, Jun. 27, 2024
Int. Cl. G06F 1/32 (2019.01); G06F 1/3212 (2019.01); G06F 1/3234 (2019.01)
CPC G06F 1/3278 (2013.01) [G06F 1/3212 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A system power consumption control method, comprising:
determining, by an electronic device, that the electronic device has entered a first mode, wherein the first mode comprises a sleep mode, a low-power state, or an idle state of the electronic device;
determining, by the electronic device, a first power loss amount of a battery and a first communication count of background processes, wherein the first power loss amount is a decrease of power with respect to power at a first moment, the first moment is a moment at which the electronic device enters the first mode, and the first communication count is used for indicating a total communication count of all processes currently running in the background with other devices since power-on of the electronic device;
obtaining, by the electronic device, power of the battery corresponding to a second moment and current power of the battery corresponding to a current moment, wherein the second moment is a start moment of a second preset duration, and the second preset duration is a duration within which power records are kept;
obtaining, by the electronic device, a second power loss amount corresponding to the current moment by subtracting the current power of the battery from the power of the battery corresponding to the second moment, wherein the second preset duration is greater than a first preset duration;
obtaining a communication count corresponding to the second moment and a current communication count corresponding to the current moment;
obtaining a communication count variation by subtracting the communication count corresponding to the second moment from the current communication count; and
in response to the electronic device determining that within the first preset duration, the second power loss amount has reached a preset power threshold and the communication count variation has reached a preset variation, disabling, by the electronic device, a network communication connection of the electronic device.