TW411409B - Suspension method for computer system - Google Patents

Suspension method for computer system Download PDF

Info

Publication number
TW411409B
TW411409B TW88101487A TW88101487A TW411409B TW 411409 B TW411409 B TW 411409B TW 88101487 A TW88101487 A TW 88101487A TW 88101487 A TW88101487 A TW 88101487A TW 411409 B TW411409 B TW 411409B
Authority
TW
Taiwan
Prior art keywords
status
memory
vga
state
cpu
Prior art date
Application number
TW88101487A
Other languages
Chinese (zh)
Inventor
Jung-Jr Dung
Min-Tian Shr
Original Assignee
Mitac Int Corp
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 Mitac Int Corp filed Critical Mitac Int Corp
Priority to TW88101487A priority Critical patent/TW411409B/en
Application granted granted Critical
Publication of TW411409B publication Critical patent/TW411409B/en

Links

Landscapes

  • Power Sources (AREA)

Abstract

A suspension method for computer system combines 2 functions that are Suspend to RAM and Suspend to Disk. The method uses automatic self-refresh type memory that is energized by the independent power supply and pre-stored the operation status. This method is that if the computer system is restarted after system power switch-off, the computer system can be resumed quickly to the operation state that is exactly the same as in the previous running condition before the power switch-off. It can reduce the long period of time for waiting the power-on and operation system loading.

Description

411409411409

種將電腦系統懸置(Suspend)之方法,在其將系統 ^置之後 7讓系統在電源關閉後再啟動時,無須經過冗 長時間等待開機及等待作業系統載入,即可恢復關機前 統之操作狀態。 ’' 般而π ’在使用電腦時開機之後必須經過開機測試 以及几長之作業系統(〇 S )載入時間。如果使用者只是要 查詢一小段資料,那麼在等待開機、載入〇s將會損失 之時間。 因此,為了節省開機、載入〇s之時間,實有必要提出 一種方法’來達成隨開即用(〇n Now Function)之功效。 在目前電腦系統上’所有電源管理功能(p〇werA method of suspending a computer system (Suspend). When the system is suspended 7 and the system is restarted after the power is turned off, there is no need to wait for a long time to boot up and wait for the operating system to load before the system can be restored to shutdown. Operation status. ‘'Common and π’ After the computer is turned on, it must go through a boot test and a long operating system (〇 S) loading time. If the user only wants to query a short piece of data, the time will be lost while waiting for the startup and loading 0s. Therefore, in order to save the time of booting and loading 0s, it is really necessary to propose a method 'to achieve the function of On Now Function. On current computer systems ’all power management functions (p〇wer

Management Function)都具有懸置記憶體(Suspend t〇 RAM)和懸置磁碟(Suspend t〇 Disk)之功能。就Suspend to RAM方式而言,其處理時間較快,但是有較多之晶片 (chip)沒有切斷電源,故仍有大量電力消耗之問題阳以 Suspend to Disk方式而言,雖然整個系統是處於電源關 閉之狀態,但是由於需將必要之狀態資料儲存於磁碟中, 所以其處理之時間會比較久。 本發明提出將Suspend to RAM和Suspend to Disk 兩 種功能加以結合之方式’利用自動更新復原(Se丨f — Refresh)型式之記憶體’透過獨立的電源供給電力給上述 記憶體,將系統懸置前之各種狀態保存於記憶體中之後 再關閉系統電源。由於無須將狀態值存於磁碟中,所以可 節省運作處理時間’由於貯存狀態資料之記憶體系由獨^Management Function) all have the functions of Suspend t RAM and Suspend t Disk. As for the Suspend to RAM method, its processing time is faster, but there are many chips that have not been cut off, so there is still a lot of power consumption problems. In the Suspend to Disk method, although the entire system is in The power is off, but because the necessary status data needs to be stored in the disk, it will take longer to process. The present invention proposes a way of combining the two functions of Suspend to RAM and Suspend to Disk 'using the memory of an automatic refresh recovery (Se 丨 f — Refresh) type' to supply power to the above-mentioned memory through an independent power source, and suspend the system After the previous states are saved in the memory, turn off the system power. Because there is no need to store the status value in the magnetic disk, it can save the operation and processing time.

五 _41i4G! 發明說明(2) 應電力,所以可以將系統電源完全切 由ΐί體Π跳出懸置狀態(即重新啟動小統電源)Ϊ低功 二可快速啟動復原系統關機前之操作狀態,冑,,裝置 Θ機、和0S載入過程。 免几長之 二達f上述㈣,本發明提出將電腦系統懸置之 時門等η系統在電源關閉後再啟動時,無須經過冗長 時間等待開機及等待作業系統载入::長 之操作狀態,其方法包括: m复關機則系統 =上述系統正常運作下’執行一懸置程序 ϋ驟:貯存CPU之狀態值;貯存系統記憶體的型式和仃如 =大小至(:_中;貯存VGA記憶體之内S、以及VGA之狀離 =,貯存所有必要電路裝置之狀態值;以及,M閉系^ 在重新啟動系統電源之後,進行如下步驟:從CM0S中 ,取系統記憶體之型式和容量大小;CPU進入系統管理模 f運作;恢復所有必要裝置在系統懸置前之狀態;恢復在 系統懸置之前VGA記憶體之内容、以及VGA之狀餌.栊戏 cpu之狀態值;以及,離開系統管理模式。狀L,恢復 其中’上述CPU之狀態值,VGA記憶體之内容、VGA之 $態值,以及所有必要裝置之狀態值,岣儲存於系統記憶 圖式之簡單說明:Five_41i4G! Description of the invention (2) It should be powered, so the system power can be completely cut from the hanging state (that is, restart the small system power). Low power two can quickly start to restore the operating state before the system is shut down. Alas, the Θ machine and the OS loading process. To avoid the above problems, the present invention proposes that when the computer system is suspended, the door and other η systems are restarted after the power is turned off, without waiting for a long time to start and wait for the operating system to load :: Long operating state , Its method includes: m restart the system = the above system is under normal operation 'execute a suspension procedure step: store the state value of the CPU; store the type of system memory and if = size to (: _ in; store VGA S and VGA in the memory = store state values of all necessary circuit devices; and M is closed ^ After restarting the system power, perform the following steps: From the CM0S, take the type of the system memory and Capacity; CPU enters system management mode f operation; restores all necessary devices to the state before the system is suspended; restores the contents of the VGA memory before the system is suspended and the state of the VGA. The state value of the cpu; and, Exit the system management mode. State L, restore the 'status value of the above CPU, the contents of the VGA memory, the value of the VGA, and the status values of all necessary devices, and store them in the system memory Brief description of the schema:

第5頁 五、發明說明(幻 ,為讓本發明之上述目的、特徵、和優點能更明顯易懂 ’下文特舉較佳實施例,並配合所附圖式,做詳細說明如 圖; 第1圖顯示於本發明實施例中,懸置程序之動作流 程 第2圖顯示本發明實施例中,跳出懸置狀態而重新啟 動系統之流程圖。 實施例 下 之動作 提 統電源 閉時, 用之記 當 序(Sus 軟體來 置。 Su (statu 憶體的 記憶體 統記憶 文將參照第1、2圖所示之流程圖,詳細說明本發明 〇 供一電腦系統,系統記憶體之電源係由一獨立於系 之電壓源(例如電池)所提供。因此’當系統電源關 儲存於系統記憶體内之資料不會流失。而且,所使 憶體係為自動更新復原型式。 電腦系統在正常運作下時,若使用者執行一懸置程 pend Pr〇cess),可由硬體(例如按Power Off)或是 觸發,電腦系統則進行如下步驟,而將電腦系統懸 spend動作開始之後,首先,將CPU之狀態值 s )貯存於系統記憶體中(步驟11 )。接著,將系統記 型式和容量大小儲存至CMOS中(步驟12)。再將VGA 之内容(如晝面資料)、以及VGA之狀態值貯存至系 中(步驟13)。Page 5 V. Description of the Invention Fig. 1 shows the flow of the suspension procedure in the embodiment of the present invention. Fig. 2 shows the flow chart of restarting the system from the suspension state in the embodiment of the present invention. The book should be set by Sus software. Su (statu memory memory system memory text will be described in detail with reference to the flowchart shown in Figures 1 and 2) For a computer system, the power of the system memory is provided by A voltage source (such as a battery) is provided independently of the system. Therefore, the data stored in the system memory will not be lost when the system power is turned off. Moreover, the memory system is automatically updated and restored. The computer system is under normal operation At this time, if the user executes a pendant pendant, it can be triggered by hardware (for example, by pressing Power Off) or triggered. The computer system performs the following steps to suspend the pendant of the computer system. After the start, first, the state value s of the CPU is stored in the system memory (step 11). Then, the system memory type and capacity are stored in the CMOS (step 12). Then, the contents of the VGA (such as the daytime surface) Data), and the VGA status values are stored in the system (step 13).

Ιϋϋ 411409 五、發明說明(4) " 然後’再貯存所有必要電路裝置之狀態值(步驟14); 例^ ’貯存所有控制裝置之狀態(步驟14a);貯存鍵盤、 通信痒、印表機列印埠等之狀態值(步驟丨4b );以及,貯 存即時時鐘、中斷控制器(例如8 2 5 9 )、和計時器(例如 8 2 5 4)之狀態值(步驟丨4 c )。最後,將系統電源關閉(步驟 1 5 )’而完成將電腦系統懸置之動作。 當使用者想要使用電腦系統時,則可重新啟動系統電 源時,而進行如下步驟,以便快速恢復系統未被懸置前之 狀態。 重新啟動系統電源之後,首先,從CMOS中讀取系統記 憶體之型式和容量大小(步驟21)。接著,讓cpu進入系統 管理模式(System Management Mode)之運作(步驟22)。 然後’恢復所有必要裝置在系統懸置前之狀態(步驟 2 3)’例如’恢復所有控制裝置之狀態(步驟2 3 a );恢復鍵 盤、通信埠、印表機列印埠等之狀態值(步驟23b);以及 ’恢復即時時鐘、中斷控制器、和計時器之狀態值(2 3 c) 〇 之後’恢復在系統懸置之前VGA記憶體之内容、以及 VGA之狀態值(步驟24);以及’恢復Cpu之狀態值(步驟25 )。最後,讓CPU離開系統管理模式,即完成重新啟動電腦 系統之動作。 由上述可知’當電腦系統進入懸置狀態時,由於將 CPU、週邊、控制裝置…等狀態值存於系統記憶體中,因Ιϋϋ 411409 V. Description of the invention (4) " Then 'store the state values of all necessary circuit devices (step 14); for example ^' store the state of all control devices (step 14a); store keyboard, communication itch, printer Status values of the print port (step 4b); and status values of the real-time clock, interrupt controller (for example 8 2 5 9), and timer (for example 8 2 5 4) are stored (step 4 c). Finally, the system power is turned off (step 15) to complete the suspension of the computer system. When the user wants to use the computer system, he can restart the system power and perform the following steps to quickly restore the state before the system was not suspended. After restarting the system power, first, read the type and capacity of the system memory from the CMOS (step 21). Next, the CPU is put into the operation of the System Management Mode (step 22). Then 'Restore the state of all necessary devices before the system is suspended (Step 2 3)' For example, 'Restore the state of all control devices (Step 2 3 a); restore the state values of the keyboard, communication port, printer print port, etc. (Step 23b); and 'Restore the status values of the real-time clock, interrupt controller, and timer (2 3 c) 〇' Restore the contents of the VGA memory before the system is suspended, and the status values of the VGA (Step 24) ; And 'Restore the status value of the CPU (step 25). Finally, let the CPU leave the system management mode to complete the restart of the computer system. It can be known from the above that when the computer system enters the suspended state, since the state values of the CPU, peripherals, control devices, etc. are stored in the system memory,

$ 7頁 4ίί4ύ8$ 7 pages 4ίί4ύ8

五、發明說明(5) 此,可有如Suspend to RAM具有處理快速之優點。又,因 為系統記憶體係由獨立之電源供應電力’所以在懸置狀態 中,可以將系統電源關閉,而降低功率消耗’所以也具有 Suspend to Disk功能之優點。 當電腦重新啟動系統電源,而使電腦系統跳出懸置& 態時’因為僅需將系統懸置前之各種狀態由系統記憶體 供給各個對應之裝置即可,所以不再需要等待開機^ 專待作業系統之載入,因此可以節省許多時間。 雖然本發明已以較佳實施例揭露如上,然其並非用以 =定本發明,任何熟悉本項技藝者,在不脫離本發明之精 砷和範圍内,當可做些許之更動和潤冑,因此本發明之保 護範圍當視後附之申請專利範圍所界定者為準。V. Description of the invention (5) This can have the advantage of fast processing as Suspend to RAM. In addition, because the system memory system is powered by an independent power source ', in the suspended state, the system power can be turned off and the power consumption is reduced', so it also has the advantage of the Suspend to Disk function. When the computer restarts the system power and makes the computer system out of the suspension & state, because it only needs to supply the system memory to each corresponding device from the state before the suspension, so there is no need to wait for the boot. You can save a lot of time by waiting for the operating system to load. Although the present invention has been disclosed as above with a preferred embodiment, it is not intended to define the present invention. Anyone familiar with the art can make some changes and improvements without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the scope of the appended patent application.

Claims (1)

4ii4G9 六 申請專利範圍 1. 一種將電腦系統懸置之 — 再啟料’無須經過冗長時間得系統電源在 忐包括: 系統之操作狀態’其 在上述系統正常運作 下步噼: 仃—懸置程序,而進行如 貯存CPU之狀態值; 貯存系統記憶體的型式和容 貯存VGA記憶體之内容、以及VGA=C^中; 貯存所有必要電路裝置之狀態值;^值, 關閉系統電源; 反 在重新啟動系統電源時之後,進行如下步 從CMOS中讀取系統記憶體之型式和容 CPU進入系統管理模式運作; ’ 恢復所有必要電路裝置在系統懸置前之狀態; 恢復在系統懸置之前VGA記憶體之内容、以及VGA 恢復CPU之狀態值;以及 離開系統管理模式; 狀其中’上述CPU之狀態值,VGA記憶體之内容、VGA之 記Ϊ Ϊ ’以及所有必要電路裝置之狀態值,均儲存於系統 lnsi趙中。 2,如申請專利範圍第1項所述之方法,其中,上述系 、Ί饿體為自動更新復原(Self-Ref resh)型式之記憶體,4ii4G9 Six applications for patent scope 1. A method of suspending a computer system—re-starting the material, “the system power supply is not required after a long period of time, including: the operating state of the system”, which steps under the normal operation of the above system: 仃 —suspension program For example, the state value of the CPU is stored; the type of the system memory and the content of the VGA memory are stored; and VGA = C ^; the state values of all necessary circuit devices are stored; the value is turned off; After restarting the system power, perform the following steps to read the type of system memory from CMOS and allow the CPU to enter the system management mode operation; 'Restore all the necessary circuit devices to the state before the system is suspended; restore the VGA before the system is suspended The contents of the memory, and the status value of the VGA recovery CPU; and leaving the system management mode; the status value of the above-mentioned CPU, the contents of the VGA memory, the note of the VGA, and the status values of all necessary circuit devices are all Stored in the system lnsi Zhao. 2. The method as described in item 1 of the scope of patent application, wherein the above-mentioned system is a self-refresh type memory, UHQd 六、申請專利範圍 係由獨立於上述系統電源> μ ^ 系統能夠應電力,以便在 . 3利範圍第1項所述之方法’其中,上述貯 存所有必要電路裝置狀態值的步驟,包括:貯存所有控制 裝置之狀態’貯存鍵盤、通信埠、印表機列印埠等之狀態 值;以及,貯存即時時鐘、中斷控制器、和計時器等之狀 態值卜, 而恢復所有必要電路裝置在系統懸置前狀態之步驟, 包括:恢復所有控制裝置之狀態;恢復鍵盤、通信埠、印 表機列印埠等之狀態值;以及,恢復即時時鐘、中斷控制 器、和計時器之狀態值。UHQd VI. The scope of patent application is independent of the above-mentioned system power supply> μ ^ The system can respond to electricity in order to use the method described in item 1 of the above-mentioned range. Among them, the above steps of storing all necessary circuit device state values include : Store the status of all control devices' store the status values of keyboard, communication port, printer print port, etc .; and store the status values of real-time clock, interrupt controller, and timer, and restore all necessary circuit devices The steps before the system is suspended include: restoring the status of all control devices; restoring the status values of keyboard, communication port, printer print port, etc .; and restoring the status of real-time clock, interrupt controller, and timer value. 第10頁Page 10
TW88101487A 1999-02-01 1999-02-01 Suspension method for computer system TW411409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW88101487A TW411409B (en) 1999-02-01 1999-02-01 Suspension method for computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW88101487A TW411409B (en) 1999-02-01 1999-02-01 Suspension method for computer system

Publications (1)

Publication Number Publication Date
TW411409B true TW411409B (en) 2000-11-11

Family

ID=21639585

Family Applications (1)

Application Number Title Priority Date Filing Date
TW88101487A TW411409B (en) 1999-02-01 1999-02-01 Suspension method for computer system

Country Status (1)

Country Link
TW (1) TW411409B (en)

Similar Documents

Publication Publication Date Title
US6243831B1 (en) Computer system with power loss protection mechanism
US8028177B2 (en) Method for changing power states of a computer
US7757060B2 (en) Reducing wake latency time for power conserving state transition
US6618813B1 (en) Method for suspending, resuming, and turning on a computer system without being affected by an abnormal power failure
TWI436199B (en) Method and controller for power management
US20170147363A1 (en) System and method for reducing hibernate and resume time
TWI528284B (en) Method for switching operating system and electronic apparatus using thereof
JPH077317B2 (en) System restart device
JP4175838B2 (en) Information processing apparatus with standby mode, standby mode start method and standby mode cancel method
JPH07101376B2 (en) System restart device
JP5885881B2 (en) Implementing a power off state on a computing device
TW201525869A (en) System and method for dual OS memory switching
US20030070065A1 (en) Suspending to nonvolatile storage
WO2012163275A1 (en) Control method, control device and computer system
WO2022121475A1 (en) Operating-state switching method and apparatus, and electronic device and storage medium
TWI546661B (en) Resuming a system using state information
TW201237756A (en) Method for fast resuming computer system and computer system
JP2000214963A (en) Computer system and automatic setting method for setting information
JP2000215100A (en) Power-saving memory management system
JP2003085041A (en) Disc cache system
TW411409B (en) Suspension method for computer system
JP2001014050A (en) Information processor and storage medium
CN1293461C (en) Method for suspending state of computer system
WO2012126345A1 (en) Computer startup method, startup apparatus, state transition method, and state transition apparatus
US10061597B2 (en) Computing device with first and second operating systems

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees