US 12,169,432 B2
Device suspend method and computing device
Liang Shi, Shanghai (CN); Xiaolong Shen, Shenzhen (CN); Weilan Wang, Shanghai (CN); Junfeng Zhao, Shenzhen (CN); Fangmin Lu, Shenzhen (CN); and Xin Yan, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Sep. 29, 2022, as Appl. No. 17/955,695.
Application 17/955,695 is a continuation of application No. PCT/CN2021/083400, filed on Mar. 26, 2021.
Claims priority of application No. 202010245862.6 (CN), filed on Mar. 31, 2020.
Prior Publication US 2023/0023461 A1, Jan. 26, 2023
Int. Cl. G06F 1/00 (2006.01); G06F 1/3296 (2019.01); G06F 9/4401 (2018.01)
CPC G06F 1/3296 (2013.01) [G06F 9/4418 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A device suspension method, comprising:
when a system of a device is in an idle state, terminating a background process that is unrelated to a foreground process and that runs in the system, and releasing memory space occupied by the background process;
storing running information of the system in a memory of the device, wherein the running information of the system does not comprise information about the background process; and
controlling the device to enter a suspended state,
wherein the memory of the device comprises a plurality of memory units, and the controlling the device to enter a suspended state comprises powering off components in the device other than at least a part of the memory units in the memory of the device, and
wherein before the controlling the device to enter a suspended state, the method further comprises:
compressing data in a first part of memory units in the memory and then migrating compressed data to a second part of memory units in the memory, wherein occupied storage space in the first part of memory units is less than a threshold, and the second part of memory units comprises a memory unit that stores data of an operating system and a memory unit whose occupied storage space is greater than or equal to the threshold; and
the controlling the device to enter a suspended state comprises:
powering off components in the device other than the second part of memory units.