TW201617766A - Hibernation management system and method for computer system - Google Patents

Hibernation management system and method for computer system Download PDF

Info

Publication number
TW201617766A
TW201617766A TW103140152A TW103140152A TW201617766A TW 201617766 A TW201617766 A TW 201617766A TW 103140152 A TW103140152 A TW 103140152A TW 103140152 A TW103140152 A TW 103140152A TW 201617766 A TW201617766 A TW 201617766A
Authority
TW
Taiwan
Prior art keywords
computer system
sleep
data
volatile memory
memory
Prior art date
Application number
TW103140152A
Other languages
Chinese (zh)
Inventor
閔捷
陳俊生
Original Assignee
鴻海精密工業股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 鴻海精密工業股份有限公司 filed Critical 鴻海精密工業股份有限公司
Publication of TW201617766A publication Critical patent/TW201617766A/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

A hibernation management system and method for a computer system are disclosed. The method including: receiving a hibernation instruction, compressing data in a memory of the computer system into a data package; storing the data package in a non-volatile storage unit; and transitioning the computer system into a hibernation state.

Description

用於電腦系統中的休眠管理方法及休眠管理系統Sleep management method and sleep management system for computer system

本發明涉及電腦領域,尤指一種用於電腦系統中的休眠管理方法及休眠管理系統。The invention relates to the field of computers, in particular to a sleep management method and a sleep management system for use in a computer system.

高級配置與電源介面(Advanced Configuration and Power Interface)規範,簡稱ACPI規範,是由惠普、英特爾、微軟、東芝等公司所共同制定的在作業系統層面來實現電源管理的一種電腦行業規範。ACPI規範將電腦系統的運行狀態劃分為六種:S0、S1、S2、S3、S4、S5、S6,這六種狀態對應的系統功耗依次下降,S0對應的系統功耗最高,S5對應的系統功耗最低。The Advanced Configuration and Power Interface (ACPI) specification is a computer industry specification developed by HP, Intel, Microsoft, Toshiba, etc. to achieve power management at the operating system level. The ACPI specification divides the operating state of the computer system into six types: S0, S1, S2, S3, S4, S5, and S6. The system power consumption corresponding to the six states decreases in turn, and the system power consumption corresponding to S0 is the highest, and S5 corresponds to The system consumes the least power.

S4狀態,也稱休眠狀態,也稱掛起到硬碟(Suspend to disk,簡稱STD)狀態。當電腦系統進入休眠狀態時,電腦系統將當前的系統工作狀態(記憶體中的所有資料)複製存儲到硬碟,然後關閉主電源。進入休眠狀態後的電腦系統和通常意義上的關機一樣“安靜”,使用者甚至可以完全切斷電源,因為與記憶體不一樣,保存到硬碟的資料不會由於斷電而消失。當電腦系統從休眠狀態被喚醒時,將先前存儲於硬碟中的系統工作狀態讀出,重新載入到到記憶體中,於是電腦系統完全恢復至休眠前的工作狀態,而不需要重新打開檔或運行程式。The S4 state, also known as the sleep state, is also referred to as Suspend to Disk (STD) state. When the computer system goes to sleep, the computer system copies the current system working state (all the data in the memory) to the hard disk, and then turns off the main power. The computer system after entering the sleep state is as "quiet" as the shutdown in the usual sense, and the user can even cut off the power completely, because unlike the memory, the data saved to the hard disk does not disappear due to the power failure. When the computer system wakes up from the sleep state, the system working state previously stored in the hard disk is read out and reloaded into the memory, so that the computer system completely returns to the working state before the sleep, without reopening File or run the program.

然而,隨著電腦系統的記憶體的配置越來越高,以及系統運行過程中對記憶體的需求的日益增加,導致電腦系統在進入休眠狀態時需要備份到硬碟中的資料越來越大。However, with the increasing configuration of the memory of the computer system and the increasing demand for memory during the operation of the system, the data that needs to be backed up to the hard disk when the computer system enters the sleep state is getting larger and larger. .

鑒於以上內容,有必要提供一種用於電腦系統中的休眠管理方法及休眠管理系統,以解決上述問題。In view of the above, it is necessary to provide a sleep management method and a sleep management system for use in a computer system to solve the above problems.

一種用於電腦系統中的休眠管理方法,所述方法包括:A sleep management method for use in a computer system, the method comprising:

獲取所述電腦系統進入休眠狀態的休眠指令;Obtaining a sleep instruction that the computer system enters a sleep state;

基於所述休眠指令,根據一壓縮演算法,將所述電腦系統的記憶體中的全部資料壓縮打包為一個資料包;And compressing, according to the sleep instruction, all the data in the memory of the computer system into a data package according to a compression algorithm;

將所述資料包存儲於所述電腦系統的非易失性存儲器中;及Storing the data package in a non-volatile memory of the computer system; and

控制所述電腦系統進入休眠狀態。Controlling the computer system to enter a sleep state.

優選地,所述方法還包括:Preferably, the method further includes:

檢測所述非易失性存儲器的可用空間是否大於所述資料包的大小;及Detecting whether a free space of the non-volatile memory is greater than a size of the data packet; and

若所述非易失性存儲器的可用空間大於所述資料包的大小,將所述資料包存儲於所述非易失性存儲器中。If the available space of the non-volatile memory is larger than the size of the data package, the data package is stored in the non-volatile memory.

優選地,所述方法還包括:Preferably, the method further includes:

若所述非易失性存儲器的可用空間小於所述資料包的大小,在所述電腦系統的顯示器上提示使用者所述非易失性存儲器可用空間不足。If the available space of the non-volatile memory is smaller than the size of the data package, the user of the computer system is prompted to display insufficient space of the non-volatile memory.

優選地,所述方法還包括:Preferably, the method further includes:

獲取所述電腦系統從休眠狀態喚醒的喚醒指令;Acquiring a wake-up command that the computer system wakes up from a sleep state;

基於所述喚醒指令,從所述非易失性存儲器中讀取所述資料包,根據所述壓縮演算法,將所述資料包還原為先前存儲於所述記憶體中的資料;Reading, according to the wake-up instruction, the data package from the non-volatile memory, and restoring the data package to data previously stored in the memory according to the compression algorithm;

將所述還原的資料載入到所述記憶體中;及Loading the reduced data into the memory; and

控制所述電腦系統進入工作狀態。Controlling the computer system to enter a working state.

優選地,所述非易失性存儲器包括一硬碟。Preferably, the non-volatile memory comprises a hard disk.

一種用於電腦系統中的休眠管理系統,所述休眠管理系統包括:A sleep management system for use in a computer system, the sleep management system comprising:

休眠指令獲取模組,用於獲取所述電腦系統進入休眠狀態的休眠指令;a sleep instruction acquisition module, configured to acquire a sleep instruction that the computer system enters a sleep state;

資料壓縮模組,用於基於所述休眠指令,根據一壓縮演算法,將所述電腦系統的記憶體中的全部資料壓縮打包為一個資料包;a data compression module, configured to compress, according to the sleep instruction, all data in the memory of the computer system into a data package according to a compression algorithm;

資料備份模組,用於將所述資料包存儲於所述電腦系統的非易失性存儲器中;及a data backup module, configured to store the data package in a non-volatile memory of the computer system; and

休眠處理模組,用於控制所述電腦系統進入休眠狀態。The sleep processing module is configured to control the computer system to enter a sleep state.

優選地,所述休眠管理系統還包括空間檢測模組,用於檢測所述非易失性存儲器的可用空間是否大於所述資料包的大小;所述資料備份模組用於當所述非易失性存儲器的可用空間大於所述資料包的大小時,將所述資料包存儲於所述非易失性存儲器中。Preferably, the sleep management system further includes a space detecting module, configured to detect whether an available space of the non-volatile memory is greater than a size of the data package; and the data backup module is used to When the free space of the loss memory is larger than the size of the data package, the data package is stored in the non-volatile memory.

優選地,所述休眠管理系統還包括提示模組,用於當所述非易失性存儲器的可用空間小於所述資料包的大小時,在所述電腦系統的顯示器上提示使用者所述非易失性存儲器可用空間不足。Preferably, the sleep management system further includes a prompting module, configured to prompt the user of the non-display on the display of the computer system when the available space of the non-volatile memory is smaller than the size of the data package. There is not enough free space in the volatile memory.

優選地,所述休眠管理系統還包括:Preferably, the dormancy management system further includes:

喚醒指令獲取模組,用於獲取所述電腦系統從休眠狀態喚醒的喚醒指令;a wake-up instruction acquisition module, configured to acquire a wake-up instruction that the computer system wakes up from a sleep state;

資料解壓模組,用於基於所述喚醒指令,從所述非易失性存儲器中讀取所述資料包,根據所述壓縮演算法,將所述資料包還原為先前存儲於所述記憶體中的資料;a data decompression module, configured to read the data package from the non-volatile memory based on the wake-up instruction, and restore the data package to be previously stored in the memory according to the compression algorithm Information in

資料恢復模組,用於將所述還原的資料載入到所述記憶體中;及a data recovery module, configured to load the restored data into the memory; and

工作處理模組,用於控制所述電腦系統進入工作狀態。The working processing module is configured to control the computer system to enter a working state.

優選地,所述非易失性存儲器包括一硬碟。Preferably, the non-volatile memory comprises a hard disk.

與習知技術相比,上述用於所述電腦系統中的休眠管理系統及休眠管理方法,在獲取休眠指令後,藉由在將所述記憶體中的資料備份到所述非易失性存儲器中之前,將所述記憶體中的資料壓縮成一個資料包,再將該資料包存儲到所述非易失性存儲器中,減小了備份資料的大小,減輕了所述非易失性存儲器的存儲壓力。Compared with the prior art, the sleep management system and the sleep management method used in the computer system, after acquiring the sleep instruction, by backing up the data in the memory to the non-volatile memory Before compressing the data in the memory into a data package, and storing the data package in the non-volatile memory, reducing the size of the backup data, and alleviating the non-volatile memory Storage pressure.

圖1是本發明的一較佳實施方式中的電腦系統的框圖。1 is a block diagram of a computer system in accordance with a preferred embodiment of the present invention.

圖2是本發明的一較佳實施方式中的用於電腦系統中的休眠管理系統的功能框圖。2 is a functional block diagram of a sleep management system for use in a computer system in accordance with a preferred embodiment of the present invention.

圖3是本發明的一較佳實施方式中的用於電腦系統中的休眠管理方法的流程圖。3 is a flow chart of a sleep management method for use in a computer system in accordance with a preferred embodiment of the present invention.

請參閱圖1,在本發明的一較佳實施方式中,一電腦系統10包括一中央處理器101、一記憶體102、一非易失性存儲器103、一顯示器104、及一輸入裝置105。所述電腦系統10可以為桌上型電腦、筆記型電腦、平板電腦、伺服器、工作站,或任何其他類型的電腦系統。Referring to FIG. 1, in a preferred embodiment of the present invention, a computer system 10 includes a central processing unit 101, a memory 102, a non-volatile memory 103, a display 104, and an input device 105. The computer system 10 can be a desktop computer, a notebook computer, a tablet computer, a server, a workstation, or any other type of computer system.

所述中央處理器101用於處理資料和控制管理所述電腦系統10的全部功能元件,包括所述記憶體102、所述非易失性存儲器103、所述顯示器104、及所述輸入裝置105。The central processing unit 101 is configured to process data and control and manage all functional components of the computer system 10, including the memory 102, the non-volatile memory 103, the display 104, and the input device 105. .

所述記憶體102用於存放電腦系統10在工作運行時的資料,包括所述中央處理器101的運算資料和與所述非易失性存儲器103等外部記憶體交換的資料。所述記憶體102具有很高的存取速率,但缺點是斷電後期中存放的資料會全部丟失,故所述記憶體102也稱易失性記憶體。The memory 102 is used to store data of the computer system 10 during operation, including the computing data of the central processing unit 101 and the data exchanged with the external memory such as the non-volatile memory 103. The memory 102 has a high access rate, but has the disadvantage that all the data stored in the late power-off period are lost, so the memory 102 is also called a volatile memory.

所述非易失性存儲器103用於永久性存儲資料,即使斷電,存儲於所述非易失性存儲器103中的資料也不會丟失。在一實施方式中,所述非易失性存儲器包括一硬碟。在其他實施方式中,所述非易失性存儲器還可以包括光碟、快閃記憶體等其他非易失性存儲裝置。The non-volatile memory 103 is used to permanently store data, and even if the power is turned off, the data stored in the non-volatile memory 103 is not lost. In an embodiment, the non-volatile memory includes a hard disk. In other embodiments, the non-volatile memory may also include other non-volatile storage devices such as a compact disc, a flash memory, and the like.

所述顯示器104用於提供使用者介面,向使用者顯示內容。The display 104 is for providing a user interface for displaying content to a user.

所述輸入裝置105用於接收使用者的輸入指令,所述輸入裝置105可以是滑鼠、鍵盤、觸控板等。The input device 105 is configured to receive an input instruction of a user, and the input device 105 may be a mouse, a keyboard, a touch pad, or the like.

所述中央處理器101、所述記憶體102、所述非易失性存儲器103、所述顯示器104、及所述輸入裝置105藉由匯流排106或其他適配的互連架構連接在一起。The central processor 101, the memory 102, the non-volatile memory 103, the display 104, and the input device 105 are connected together by a bus bar 106 or other adapted interconnect fabric.

一休眠管理系統20可應用部署於所述電腦系統10中。A sleep management system 20 is configurable for deployment in the computer system 10.

請參閱圖2,在本發明的一較佳實施方式中,所述休眠管理系統20包括一休眠指令獲取模組201、一資料壓縮模組202、一空間檢測模組203、一提示模組204、一資料備份模組205、一休眠處理模組206、一喚醒指令獲取模組207、一資料解壓模組208、一資料恢復模組209及一工作處理模組210。Referring to FIG. 2, in a preferred embodiment of the present invention, the sleep management system 20 includes a sleep command acquisition module 201, a data compression module 202, a space detection module 203, and a prompt module 204. A data backup module 205, a sleep processing module 206, a wake-up command acquisition module 207, a data decompression module 208, a data recovery module 209, and a work processing module 210.

所述休眠指令獲取模組201,用於獲取所述電腦系統10進入休眠狀態的休眠指令。The sleep instruction acquisition module 201 is configured to acquire a sleep instruction that the computer system 10 enters a sleep state.

所述資料壓縮模組202,用於基於所述休眠指令,根據一壓縮演算法,將所述電腦系統10的所述記憶體102中的全部資料壓縮打包為一個資料包。The data compression module 202 is configured to compress and compress all the data in the memory 102 of the computer system 10 into one data packet according to a compression algorithm based on the sleep instruction.

所述空間檢測模組203,用於檢測所述非易失性存儲器103的可用空間是否大於所述資料包的大小。The space detecting module 203 is configured to detect whether the available space of the non-volatile memory 103 is greater than the size of the data packet.

所述提示模組204,用於當所述非易失性存儲器103的可用空間小於所述資料包的大小時,在所述電腦系統10的所述顯示器104上提示使用者所述非易失性存儲器103的可用空間不足。The prompting module 204 is configured to prompt the user of the non-volatile on the display 104 of the computer system 10 when the available space of the non-volatile memory 103 is smaller than the size of the data package. The available space of the sexual memory 103 is insufficient.

所述資料備份模組205,用於當所述非易失性存儲器103的可用空間大於所述資料包的大小時,將所述資料包存儲於所述電腦系統10的所述非易失性存儲器103中。The data backup module 205 is configured to store the data package in the non-volatile state of the computer system 10 when the available space of the non-volatile memory 103 is greater than the size of the data package. In the memory 103.

所述休眠處理模組206,用於控制所述電腦系統10進入休眠狀態,即S4狀態。The sleep processing module 206 is configured to control the computer system 10 to enter a sleep state, that is, an S4 state.

所述喚醒指令獲取模組207,用於獲取所述電腦系統10從休眠狀態喚醒的喚醒指令。The wake-up instruction acquisition module 207 is configured to acquire a wake-up instruction that the computer system 10 wakes up from a sleep state.

所述資料解壓模組208,用於基於所述喚醒指令,從所述非易失性存儲器103中讀取所述資料包,根據所述壓縮演算法,將所述資料包還原為先前存儲於所述記憶體102中的資料。The data decompression module 208 is configured to read the data package from the non-volatile memory 103 based on the wake-up instruction, and restore the data package to previously stored in the compression algorithm according to the compression algorithm. The data in the memory 102.

所述資料恢復模組209,用於將所述還原的資料載入到所述記憶體102中。The data recovery module 209 is configured to load the restored data into the memory 102.

所述工作處理模組210,用於控制所述電腦系統10進入工作狀態,也即S0狀態。The work processing module 210 is configured to control the computer system 10 to enter an active state, that is, an S0 state.

以上所述休眠管理系統20的各個功能模組,可以由所述中央處理器101執行電腦指令來實現,也可以由集成指令的硬體裝置來實現。值得注意的是,上述裝置實施例中所包含的各個模組只是按照功能邏輯進行劃分的,但並不局限於上述的劃分,只要能夠實現相應的功能即可。另外,各功能模組的具體名稱也只是為了便於相互區分,並不用於限制本發明的保護範圍。The various functional modules of the sleep management system 20 described above may be implemented by the central processing unit 101 executing computer instructions, or may be implemented by a hardware device that integrates instructions. It should be noted that each module included in the foregoing device embodiment is only divided according to functional logic, but is not limited to the above-mentioned division, as long as the corresponding functions can be implemented. In addition, the specific names of the respective functional modules are only for convenience of distinguishing from each other, and are not intended to limit the scope of protection of the present invention.

請參閱圖3,圖中示意性的示出了根據本發明一種實施方式的用於所述電腦系統10中的休眠管理方法的流程圖。所述方法包括以下步驟:Referring to FIG. 3, a flow diagram of a sleep management method for use in the computer system 10 in accordance with an embodiment of the present invention is schematically illustrated. The method includes the following steps:

步驟S301,所述休眠指令獲取模組201獲取所述電腦系統10進入休眠狀態的休眠指令。Step S301, the sleep instruction acquisition module 201 acquires a sleep instruction that the computer system 10 enters a sleep state.

步驟S302,所述資料壓縮模組202基於所述休眠指令,根據一壓縮演算法,將所述電腦系統10的所述記憶體102中的全部資料壓縮打包為一個資料包。Step S302, the data compression module 202 compresses all the data in the memory 102 of the computer system 10 into one data packet according to a compression algorithm according to the sleep instruction.

步驟S303,所述空間檢測模組203檢測所述非易失性存儲器103的可用空間是否大於所述資料包的大小,若否,則進入步驟S304,若是,則進入步驟S305。Step S303, the space detecting module 203 detects whether the available space of the non-volatile memory 103 is larger than the size of the data packet. If not, the process proceeds to step S304, and if yes, the process proceeds to step S305.

步驟S304,所述提示模組204在所述電腦系統10的所述顯示器104上提示使用者所述非易失性存儲器103的可用空間不足。In step S304, the prompting module 204 prompts the user on the display 104 of the computer system 10 that the available space of the non-volatile memory 103 is insufficient.

步驟S305,所述資料備份模組205將所述資料包存儲於所述電腦系統10的所述非易失性存儲器103中。In step S305, the data backup module 205 stores the data package in the non-volatile memory 103 of the computer system 10.

步驟S306,所述休眠處理模組206,控制所述電腦系統10進入休眠狀態,即S4狀態。Step S306, the sleep processing module 206 controls the computer system 10 to enter a sleep state, that is, an S4 state.

步驟S307,所述喚醒指令獲取模組207獲取所述電腦系統10從休眠狀態喚醒的喚醒指令。Step S307, the wake-up instruction acquisition module 207 acquires a wake-up instruction that the computer system 10 wakes up from a sleep state.

步驟S308,所述資料解壓模組208基於所述喚醒指令,從所述非易失性存儲器103中讀取所述資料包,根據所述壓縮演算法,將所述資料包還原為先前存儲於所述記憶體102中的資料。Step S308, the data decompression module 208 reads the data package from the non-volatile memory 103 based on the wake-up instruction, and restores the data package to previously stored in the compression algorithm according to the compression algorithm. The data in the memory 102.

步驟S309,所述資料恢復模組209將所述還原的資料載入到所述記憶體102中。In step S309, the data recovery module 209 loads the restored data into the memory 102.

步驟S310,所述工作處理模組210控制所述電腦系統10進入工作狀態,也即S0狀態。In step S310, the work processing module 210 controls the computer system 10 to enter an active state, that is, an S0 state.

與習知技術相比,上述用於所述電腦系統10中的休眠管理系統20及休眠管理方法,在獲取休眠指令後,藉由在將所述記憶體102中的資料備份到所述非易失性存儲器103中之前,將所述記憶體102中的資料壓縮成一個資料包,再將該資料包存儲到所述非易失性存儲器103中,減小了備份資料的大小,減輕了所述非易失性存儲器103的存儲壓力。Compared with the prior art, the sleep management system 20 and the sleep management method used in the computer system 10, after acquiring the sleep instruction, by backing up the data in the memory 102 to the non-easy Before the memory 103 is deleted, the data in the memory 102 is compressed into a data package, and the data package is stored in the non-volatile memory 103, thereby reducing the size of the backup data and reducing the size of the backup data. The storage pressure of the nonvolatile memory 103 is described.

綜上所述,本發明確已符合發明專利之要件,遂依法提出專利申請。惟,以上所述者僅為本發明之較佳實施方式,自不能以此限制本案之申請專利範圍。舉凡熟悉本案技藝之人士爰依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。In summary, the present invention has indeed met the requirements of the invention patent, and has filed a patent application according to law. However, the above description is only a preferred embodiment of the present invention, and it is not possible to limit the scope of the patent application of the present invention. Equivalent modifications or variations made by persons skilled in the art in light of the spirit of the invention are intended to be included within the scope of the following claims.

10‧‧‧電腦系統10‧‧‧ computer system

101‧‧‧中央處理器101‧‧‧Central Processing Unit

102‧‧‧記憶體102‧‧‧ memory

103‧‧‧非易失性存儲器103‧‧‧ Non-volatile memory

104‧‧‧顯示器104‧‧‧ display

105‧‧‧輸入裝置105‧‧‧Input device

106‧‧‧匯流排106‧‧‧ Busbars

20‧‧‧休眠管理系統20‧‧‧sleep management system

201‧‧‧休眠指令獲取模組201‧‧‧sleep instruction acquisition module

202‧‧‧資料壓縮模組202‧‧‧ Data Compression Module

203‧‧‧空間檢測模組203‧‧‧Space Detection Module

204‧‧‧提示模組204‧‧‧Tips module

205‧‧‧資料備份模組205‧‧‧ data backup module

206‧‧‧休眠處理模組206‧‧‧hibernation processing module

207‧‧‧喚醒指令獲取模組207‧‧‧Wake-up command acquisition module

208‧‧‧資料解壓模組208‧‧‧Data decompression module

209‧‧‧資料恢復模組209‧‧‧ Data Recovery Module

210‧‧‧工作處理模組210‧‧‧Work processing module

no

20‧‧‧休眠管理系統 20‧‧‧sleep management system

201‧‧‧休眠指令獲取模組 201‧‧‧sleep instruction acquisition module

202‧‧‧資料壓縮模組 202‧‧‧ Data Compression Module

203‧‧‧空間檢測模組 203‧‧‧Space Detection Module

204‧‧‧提示模組 204‧‧‧Tips module

205‧‧‧資料備份模組 205‧‧‧ data backup module

206‧‧‧休眠處理模組 206‧‧‧hibernation processing module

207‧‧‧喚醒指令獲取模組 207‧‧‧Wake-up command acquisition module

208‧‧‧資料解壓模組 208‧‧‧Data decompression module

209‧‧‧資料恢復模組 209‧‧‧ Data Recovery Module

210‧‧‧工作處理模組 210‧‧‧Work processing module

Claims (10)

一種用於電腦系統中的休眠管理方法,所述方法包括:
獲取所述電腦系統進入休眠狀態的休眠指令;
基於所述休眠指令,根據一壓縮演算法,將所述電腦系統的記憶體中的全部資料壓縮打包為一個資料包;
將所述資料包存儲於所述電腦系統的非易失性存儲器中;及
控制所述電腦系統進入休眠狀態。
A sleep management method for use in a computer system, the method comprising:
Obtaining a sleep instruction that the computer system enters a sleep state;
And compressing, according to the sleep instruction, all the data in the memory of the computer system into a data package according to a compression algorithm;
Storing the data package in a non-volatile memory of the computer system; and controlling the computer system to enter a sleep state.
如申請專利範圍第1項所述之用於電腦系統中的休眠管理方法,其中所述方法還包括:
檢測所述非易失性存儲器的可用空間是否大於所述資料包的大小;及
若所述非易失性存儲器的可用空間大於所述資料包的大小,將所述資料包存儲於所述非易失性存儲器中。
The sleep management method for a computer system according to claim 1, wherein the method further comprises:
Detecting whether a free space of the non-volatile memory is greater than a size of the data package; and if the available space of the non-volatile memory is greater than a size of the data package, storing the data package in the non- Volatile memory.
如申請專利範圍第2項所述之用於電腦系統中的休眠管理方法,其中所述方法還包括:
若所述非易失性存儲器的可用空間小於所述資料包的大小,在所述電腦系統的顯示器上提示使用者所述非易失性存儲器可用空間不足。
The sleep management method for a computer system according to claim 2, wherein the method further comprises:
If the available space of the non-volatile memory is smaller than the size of the data package, the user of the computer system is prompted to display insufficient space of the non-volatile memory.
如申請專利範圍第1項所述之用於電腦系統中的休眠管理方法,其中所述方法還包括:
獲取所述電腦系統從休眠狀態喚醒的喚醒指令;
基於所述喚醒指令,從所述非易失性存儲器中讀取所述資料包,根據所述壓縮演算法,將所述資料包還原為先前存儲於所述記憶體中的資料;
將所述還原的資料載入到所述記憶體中;及
控制所述電腦系統進入工作狀態。
The sleep management method for a computer system according to claim 1, wherein the method further comprises:
Acquiring a wake-up command that the computer system wakes up from a sleep state;
Reading, according to the wake-up instruction, the data package from the non-volatile memory, and restoring the data package to data previously stored in the memory according to the compression algorithm;
Loading the restored data into the memory; and controlling the computer system to enter a working state.
如申請專利範圍第1項所述之用於電腦系統中的休眠管理方法,其中所述非易失性存儲器包括一硬碟。The sleep management method for a computer system according to claim 1, wherein the nonvolatile memory comprises a hard disk. 一種用於電腦系統中的休眠管理系統,所述休眠管理系統包括:
休眠指令獲取模組,用於獲取所述電腦系統進入休眠狀態的休眠指令;
資料壓縮模組,用於基於所述休眠指令,根據一壓縮演算法,將所述電腦系統的記憶體中的全部資料壓縮打包為一個資料包;
資料備份模組,用於將所述資料包存儲於所述電腦系統的非易失性存儲器中;及
休眠處理模組,用於控制所述電腦系統進入休眠狀態。
A sleep management system for use in a computer system, the sleep management system comprising:
a sleep instruction acquisition module, configured to acquire a sleep instruction that the computer system enters a sleep state;
a data compression module, configured to compress, according to the sleep instruction, all data in the memory of the computer system into a data package according to a compression algorithm;
a data backup module, configured to store the data package in a non-volatile memory of the computer system; and a sleep processing module, configured to control the computer system to enter a sleep state.
如申請專利範圍第6項所述之用於電腦系統中的休眠管理系統,其中所述休眠管理系統還包括空間檢測模組,用於檢測所述非易失性存儲器的可用空間是否大於所述資料包的大小;所述資料備份模組用於當所述非易失性存儲器的可用空間大於所述資料包的大小時,將所述資料包存儲於所述非易失性存儲器中。The sleep management system for use in a computer system according to claim 6, wherein the sleep management system further includes a space detecting module, configured to detect whether the available space of the non-volatile memory is greater than the The data backup module is configured to store the data package in the non-volatile memory when the available space of the non-volatile memory is greater than the size of the data package. 如申請專利範圍第7項所述之用於電腦系統中的休眠管理系統,其中所述休眠管理系統還包括提示模組,用於當所述非易失性存儲器的可用空間小於所述資料包的大小時,在所述電腦系統的顯示器上提示使用者所述非易失性存儲器可用空間不足。The sleep management system for use in a computer system according to claim 7, wherein the sleep management system further includes a prompting module, configured to: when the available space of the non-volatile memory is smaller than the data package When the size is small, the user is prompted on the display of the computer system that the non-volatile memory has insufficient free space. 如申請專利範圍第6項所述之用於電腦系統中的休眠管理系統,其中所述休眠管理系統還包括:
喚醒指令獲取模組,用於獲取所述電腦系統從休眠狀態喚醒的喚醒指令;
資料解壓模組,用於基於所述喚醒指令,從所述非易失性存儲器中讀取所述資料包,根據所述壓縮演算法,將所述資料包還原為先前存儲於所述記憶體中的資料;
資料恢復模組,用於將所述還原的資料載入到所述記憶體中;及
工作處理模組,用於控制所述電腦系統進入工作狀態。
The sleep management system for use in a computer system according to claim 6, wherein the sleep management system further comprises:
a wake-up instruction acquisition module, configured to acquire a wake-up instruction that the computer system wakes up from a sleep state;
a data decompression module, configured to read the data package from the non-volatile memory based on the wake-up instruction, and restore the data package to be previously stored in the memory according to the compression algorithm Information in
a data recovery module, configured to load the restored data into the memory; and a work processing module, configured to control the computer system to enter a working state.
如申請專利範圍第6項所述之用於電腦系統中的休眠管理系統,其中所述非易失性存儲器包括一硬碟。
The sleep management system for use in a computer system according to claim 6, wherein the nonvolatile memory comprises a hard disk.
TW103140152A 2014-11-11 2014-11-20 Hibernation management system and method for computer system TW201617766A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410630431.6A CN105573860A (en) 2014-11-11 2014-11-11 STD (Suspend to disk) management method and STD management system used in computer system

Publications (1)

Publication Number Publication Date
TW201617766A true TW201617766A (en) 2016-05-16

Family

ID=55884027

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103140152A TW201617766A (en) 2014-11-11 2014-11-20 Hibernation management system and method for computer system

Country Status (2)

Country Link
CN (1) CN105573860A (en)
TW (1) TW201617766A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108445802B (en) * 2018-03-19 2020-10-16 浙江国自机器人技术有限公司 Robot sleep control method and circuit, communication device and robot
CN109739563B (en) * 2018-12-29 2022-04-22 龙芯中科技术股份有限公司 Terminal control method, device, system and storage medium
CN113467923A (en) * 2020-03-31 2021-10-01 华为技术有限公司 Equipment dormancy method and computing equipment
CN114258114A (en) * 2020-09-22 2022-03-29 展讯通信(上海)有限公司 Data transmission method and communication device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070112899A1 (en) * 2005-11-14 2007-05-17 Edwards Matthew F Method and apparatus for fast boot of an operating system
CN101515194B (en) * 2008-02-21 2011-11-09 鸿富锦精密工业(深圳)有限公司 Computer operating state converting method
CN101969502A (en) * 2010-10-13 2011-02-09 华为终端有限公司 Mobile terminal service recovering method and mobile terminal

Also Published As

Publication number Publication date
CN105573860A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
US8327171B2 (en) Method and apparatus for facilitating device hibernation
US9436251B2 (en) Fast platform hibernation and resumption of computing systems
US7519808B2 (en) Method and apparatus for quickly reanimating devices from hibernation
US7900074B2 (en) Method and apparatus for quickly reanimating devices from hibernation
US8028177B2 (en) Method for changing power states of a computer
EP1351146A1 (en) Power management system and method with recovery after power failure
US11609767B2 (en) Technologies for operating system transitions in multiple-operating-system environments
CN104850435B (en) Power source management controller and method
JP6399916B2 (en) Information processing apparatus and control method thereof
JP5885881B2 (en) Implementing a power off state on a computing device
US10545869B2 (en) Power button override for persistent memory enabled platforms
TW201525869A (en) System and method for dual OS memory switching
US20170147363A1 (en) System and method for reducing hibernate and resume time
TW201617766A (en) Hibernation management system and method for computer system
TW201531867A (en) System and method for transferring data between operating systems
TWI546661B (en) Resuming a system using state information
TW201423400A (en) System and methods for DIMM-targeted power saving for hypervisor systems
US20130179672A1 (en) Computer and quick booting method thereof
TW201327160A (en) Method for hibernation mechanism and computer system therefor
EP1335291A1 (en) Power management system and method
TWI522924B (en) Electronic device and operating system switching method thereof
EP1229430A1 (en) Power management system and method
TW201348948A (en) Method and system for recording shutdown information in notebook computer
CN105224399A (en) The method of electronic installation and switching operating system thereof
WO2022159107A1 (en) Application security and mobility