TW201142710A - Computer system, shutdown and boot method thereof - Google Patents

Computer system, shutdown and boot method thereof Download PDF

Info

Publication number
TW201142710A
TW201142710A TW100112821A TW100112821A TW201142710A TW 201142710 A TW201142710 A TW 201142710A TW 100112821 A TW100112821 A TW 100112821A TW 100112821 A TW100112821 A TW 100112821A TW 201142710 A TW201142710 A TW 201142710A
Authority
TW
Taiwan
Prior art keywords
computer system
memory
basic input
output
change
Prior art date
Application number
TW100112821A
Other languages
Chinese (zh)
Other versions
TWI534707B (en
Inventor
Chih-Chien Liu
Feng-Hsun Chen
Chien-Ting Yeh
Original Assignee
Compal Electronics Inc
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 Compal Electronics Inc filed Critical Compal Electronics Inc
Priority to US13/118,492 priority Critical patent/US9098305B2/en
Publication of TW201142710A publication Critical patent/TW201142710A/en
Application granted granted Critical
Publication of TWI534707B publication Critical patent/TWI534707B/en

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Stored Programmes (AREA)
  • Power Sources (AREA)

Abstract

A computer system and a shutdown and boot method thereof are provided. The computer system has a memory, a chipset, a basic input/output system (BIOS) and an embedded controller, and runs an operating system. The method includes notifying the embedded controller of the preparation for entering a suspend to RAM (ACPI S3) state and setting a register of the chipset in accordance with the ACPI S3 state by the BIOS when intercepting a shutdown instruction issued by the operating system. The method further includes reserving a present working state data of the computer system and continuously supplying power to the memory while putting the computer system into the ACPI S3 state.

Description

201142710 TP2010056 36710twf.doc/I 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種電腦系統的開關機方法,且特別 是有關於一種能減少開機時間的開關機方法與實行此方法 的電腦系統。 【先前技術】 據各項統計’電腦系統的普及率有逐年升高的趨勢, 表示現代人越來越習慣以電腦系統作為日常辦公、溝通聯 繫、資訊瀏覽,以及休閒娛樂時的工具。 一般來說,電腦系統在使用者按下電源鍵後必須經過 一連串的硬體初始化動作,待檢測無誤後才能正常啟動。 其中’基本輸入輸出系統(Basic Inpm/C)utput扣㈣, BIOS)便扮演著相當重要的角色。具體而言,在開啟電腦 系,的電源後’基本輸人輸出系統將被載人記憶體並開始 執灯開機自我測試(power 〇n Self Test,p〇ST ),以對電 腦系統的硬體元件進行初始化及檢測動作,進而確保這些 St::以正常工作。開機自我測試包括初始化電腦系 是否正常:L以檢查中央處理器的旗標與暫存器狀態 =行:關片及北橋晶片的功能、偵測記憶體 以及感測H等並^對鍵盤、滑鼠、輸入輪出埠 的流程進行初始化。待開機自我測試 來選擇開機裝ί,i而Ϊ者會根據使用者指定的開機順序 進而载入作業系統以完成整個電腦系統201142710 TP2010056 36710twf.doc/I VI. Description of the Invention: [Technical Field] The present invention relates to a computer system switching method, and more particularly to a switching machine method capable of reducing boot time and implementing the method Computer system. [Prior Art] According to various statistics, the penetration rate of computer systems has been increasing year by year, indicating that modern people are becoming more accustomed to using computer systems as tools for daily office, communication, information browsing, and entertainment. Generally speaking, the computer system must undergo a series of hardware initialization actions after the user presses the power button, and can be started normally after the detection is correct. Among them, 'Basic Inpm/C utput (four), BIOS) plays a very important role. Specifically, after turning on the power of the computer system, the basic input output system will be loaded with human memory and start the self-test (power 〇n Self Test, p〇ST) to the hardware of the computer system. The components are initialized and tested to ensure that these St:: are working properly. Boot self-test includes initializing whether the computer is normal: L to check the central processor's flag and register status = line: the function of the slice and north bridge chip, detect memory and sense H, etc. The process of the mouse and the input wheel is initialized. Waiting for the boot self-test to select the boot device ί,i and then the user will load the operating system according to the boot sequence specified by the user to complete the entire computer system.

201142710 TP2010056 36710twf.doc/I 的開機流程。 根據先進組態與電力介面(Advanced Configuration and Power Interface,ACPI)的規範,一般的關機流程會使 連電源在内的所有設備全部關閉。此時,電腦系統便進入 關機狀態(S5 state)。而在下次要啟動電腦系統時,必須 費時等待電腦系統完整地執行上述開機流程。因此,如何 加快啟動電腦系統的速度便成為本領域技術人員所致力的 目標。 【發明内容】 有鑑於此’本發明提供一種電腦系統之開關機方法, 用以加快電腦系統啟動時的速度。 本發明提供一種電腦系統,能以較快的速度完成啟 動。 本發明提出一種電腦系統之開關機方法,此電腦系統 包括記憶體、晶片組、基本輸出輸入系統以及嵌入式控制 器’並有一作業系統執行於電腦系統。其中,記憶體可為 動態 機存取記憶體(Dynamic Random Access Memory, DRAM)或非揮發性記憶體。此方法包括當基本輸出輪入 系統攔截到作業系統發出的關機指令時,通知嵌入式控制 器準備進入待機(ACPI S3)狀態。依據待機狀態設定晶 片組之暫存器的内容。保留電腦系統目前的工作狀態資 料’並維持供應電源至記憶體而使電腦系統進入待機狀態。 在本發明之一實施例中,其中在維持供應電源至記憶 4201142710 TP2010056 36710twf.doc/I boot process. According to the Advanced Configuration and Power Interface (ACPI) specification, the general shutdown process shuts down all devices, including the power supply. At this point, the computer system enters the shutdown state (S5 state). The next time you want to start the computer system, you must wait for the computer system to completely execute the above boot process. Therefore, how to speed up the startup of the computer system has become a goal of those skilled in the art. SUMMARY OF THE INVENTION In view of the above, the present invention provides a computer system switching method for speeding up a computer system when it is started. The present invention provides a computer system that can be started up at a faster rate. The present invention provides a computer system switching method that includes a memory, a chipset, a basic output input system, and an embedded controller' and has an operating system implemented in the computer system. The memory may be a dynamic random access memory (DRAM) or a non-volatile memory. The method includes notifying the embedded controller that it is ready to enter the standby (ACPI S3) state when the basic output wheeling system intercepts the shutdown command issued by the operating system. Set the contents of the scratchpad of the wafer group according to the standby state. Keep the current working status of the computer system' and maintain the power supply to the memory to put the computer system into standby. In an embodiment of the invention, wherein the power supply is maintained to the memory 4

201142710 TP2010056 36710twf.doc/I 體而使電腦系統進入待機狀態的步驟之後,此方法更包括 啟動電細系統的電源。判斷電腦糸統是否發生硬體變更。 若否,則利用記憶體中的工作狀態資料回復晶片組之相關 暫存器的5又疋’啟動電腦糸統的視訊圖形陣列(Video Graphics Array ’ VGA)顯示器’執行關於電腦系統之硬碟 的確s忍程序’檢查本地南級可編程中斷控制器(L〇cai Advanced Programmable Interrupt Controller » Local APCI) 之初始化資料的正確性,以及開啟作業系統。 在本發明之一實施例中,其中執行關於硬碟的確認程 序的步驟更包括檢查INT 13中斷服務的功能,檢查進階主 機控制器介面(Advanced Host Controller Interface,AHCI) 之基底位址(base address)的初始化資料的正確性,以及 確認硬碟之輸入輸出介面的功能。 在本發明之一實施例中,其中在判斷電腦系統是否發 生硬體變更的步驟之後,此方法更包括若有發生硬體變 更,則進行完整的開機自我測試(Power On Self Test, POST)以啟動電腦系統。 在本發明之一實施例中,其中硬體變更包括記憶體變 更、中央處理器變更、週邊設備變更(如:硬碟變更、擴充 卡(Extended card)變更、無線區域網路(wireless local area network,WLAN)及3G網路間的變更等等)’以及即時時 脈(Real Time Clock,RTC )電源變更。 在本發明之一實施例中,其中電腦系統的工作狀態資 料是被保留在記憶體,且記憶體為動態隨機存取記憶體 5201142710 TP2010056 36710twf.doc/I After the computer system enters the standby state, the method further includes starting the power supply of the electric system. Determine if the computer system has a hardware change. If not, use the working status data in the memory to reply to the relevant register of the chipset. 5, 'Start the computer graphics system (Video Graphics Array ' VGA) display' to perform the hard disk on the computer system. The s forcing program 'checks the correctness of the initialization data of the local Southern Programmable Interrupt Controller (Local APCI) and turns on the operating system. In an embodiment of the invention, the step of executing the confirmation procedure for the hard disk further comprises checking the function of the INT 13 interrupt service, checking the base address of the Advanced Host Controller Interface (AHCI) (base) The correctness of the initialization data of address) and the function of confirming the input and output interface of the hard disk. In an embodiment of the present invention, after determining the step of determining whether the computer system has a hardware change, the method further comprises performing a complete Power On Self Test (POST) if a hardware change occurs. Start the computer system. In an embodiment of the present invention, the hardware change includes a memory change, a central processor change, and a peripheral device change (eg, a hard disk change, an extended card change, or a wireless local area network). , WLAN) and changes between 3G networks, etc.) and Real Time Clock (RTC) power changes. In an embodiment of the invention, the working state data of the computer system is retained in the memory, and the memory is a dynamic random access memory 5

36710twf.doc/I 201142710 lx ^,^iw56 (Dynamic Random Access Memory,DRAM),而在維持 供應電源至記憶體而使電腦系統進入待機狀態的步驟之 後,此方法更包括判斷電腦系統進入待機狀態的時間是否 到達預設值。若是,則將保留在記憶體中的工作狀態資料 寫入至電腦系統的非揮發性(non-volatile)儲存裝置,並 且執行電腦系統的關機作業程序。 在本發明之一實施例中,其中在啟動電腦系統的電源 的步驟之後,此方法更包括先檢查記憶體内是否存有工作 狀態資料,若否,再判斷非揮發性儲存裝置是否存有工作 狀態資料。若是,則將工作狀態資料載入到記憶體。 從另一觀點來看,本發明提出一種電腦系統,其執行 有一作業系統。此電腦系統包括記憶體、晶片組、嵌入式 控制器,以及基本輸人輸出系統。其中,晶片組搞接至記 隐體嵌人式控制⑽接至晶#組,基本輸人輸出系統可 晶片組或嵌人式控制11。基本輸人輸出系統在攔截 H =統發出的關機指令時,透過晶片組通知嵌入式控 t f待機狀態,依據待機狀態設定晶片組之暫存 :、隹::拖保留電腦系統目前的工作狀態資料,在電腦系 進入賴狀_維持健鶴至記憶體。 後,—5施例中,其中在啟動電腦系統的電源 若否n统判斷電腦系統是否發生硬體變更。 復晶片:之二【記=中的工作狀態資料回 陣列顯干哭存1^的6又疋,啟動電腦系統的視訊圖形 U不盗’執行關於電腦系統之硬碟的確認程序,檢查 636710twf.doc/I 201142710 lx ^, ^iw56 (Dynamic Random Access Memory, DRAM), and after maintaining the power supply to the memory to put the computer system into the standby state, the method further comprises determining that the computer system enters the standby state. Whether the time reaches the preset value. If so, the operational status data retained in the memory is written to a non-volatile storage device of the computer system, and the shutdown operation of the computer system is executed. In an embodiment of the present invention, after the step of starting the power supply of the computer system, the method further comprises: first checking whether there is working state data in the memory, and if not, determining whether the non-volatile storage device has a job. Status data. If so, the work status data is loaded into the memory. Viewed from another point of view, the present invention provides a computer system that executes an operating system. This computer system includes memory, chipset, embedded controller, and basic input output system. The chipset is connected to the hidden body embedded control (10) to the crystal# group, and the basic input output system can be a chipset or an embedded control11. When the basic input output system intercepts the shutdown command issued by H=, the embedded control tf standby state is notified through the chipset, and the temporary storage of the chipset is set according to the standby state: 隹:: Drag and retain the current working state data of the computer system In the computer department, I entered the Lai _ to maintain the crane to the memory. After the -5 example, in which the power of the computer system is started, if not, it is determined whether the computer system has a hardware change. Multi-chip: the second [Record = the working status data back to the array, the display is dry, crying, 1^, 6 and 疋, start the video graphics of the computer system, U do not steal, execute the confirmation procedure for the hard disk of the computer system, check 6

201142710 TP2010056 36710twf.doc/I 本地高級可編程中斷控制器之初始化資料的正確性,以及 開啟作業系統。 在^發明之-實施例中,其中基本輸人輸出系統在執 行關於電腦系統之鶴的確認程序時,會檢查臆丨3中斷 查進階主機控制器介面之基底位址的初始 化m雜’以及確認硬碟之輸人輸出介面的功能。 啟動電腦系統。更時進订完整的開機自我測試以 更、施例中’其中硬體變更包括記憶體變 、处益交更、週邊設備變更(如.砀碟轡争播右 ::=則及30網路間的變更等等),以及即時時 在本發明之一實施例巾, 料是被保留在記龍,且砂體動=統的卫作狀態資 其中,嵌入式控制器在電腦系统^二輕接至晶片組。 ,基本輸人輸 被喚醒是否因為進入待機狀:j,電“充 基本輸入輸出系統透過晶片組將保;=。若是’ 態資料寫入至非揮發性儲存裝置,5己憶體中的工作狀 控制器由嵌入式控制器關閉電腦系 在本發明之一實施例中,其中在啟動電腦系統的電源 201142710201142710 TP2010056 36710twf.doc/I The correctness of the initialization data of the local advanced programmable interrupt controller, and the opening of the operating system. In the embodiment of the invention, wherein the basic input output system performs a verification procedure for the crane of the computer system, it checks the initialization of the base address of the advanced host controller interface of the 臆丨3 interrupt and Confirm the function of the input interface of the hard disk. Start the computer system. More time to complete a complete boot self-test to more, in the case of 'hardware changes, including memory changes, benefits, peripheral devices changes (such as. 砀 辔 辔 right::= then 30 networks) Between changes, etc.), and in the instant embodiment of the invention, the towel is retained in the dragon, and the sand body is in the state of the security state, the embedded controller is in the computer system Connect to the chipset. Whether the basic input loss is awakened because it enters the standby mode: j, the electricity "charges the basic input and output system through the chipset will be guaranteed; =. If the 'state data is written to the non-volatile storage device, the work in the 5 memory The controller is turned off by the embedded controller in an embodiment of the present invention, wherein the power of the computer system is started 201142710

irzuiuu56 36710twf.d〇c/I 後二基本輸入輸出系統先檢查記憶體内是否存有工作狀態 資料,ΐϊ,再判斷非揮發性儲存裝置是否存有工作狀i 資料。若是,基本輸入輸出系統透過晶片組將工作狀能資 料載入到記憶體。 心 基於上述,本發明在關閉電腦作業系統時,控制電腦 系統進入待機狀態而非所有設備都關閉的關機狀態(s5 state).,進而能在記憶體中保留先前的工作狀態資料。基 此,當再次啟動電腦系統時,便能利用記憶體中的資料來 達到快速啟動的目的。 為讓本發明之上述特徵和優點能更明顯易懂,下文特 舉實施例,並配合所附圖式作詳細說明如下。 【實施方式】 圖1A是依照本發明之一實施例所繪示之電腦系統的 方塊圖。請參閱圖1A,電腦系統1〇〇包括記憶體11〇、晶 片組120、嵌入式控制器130,以及基本輸入輸出系統(Bas=Irzuiuu56 36710twf.d〇c/I The second basic input/output system first checks whether there is working status data in the memory, and then determines whether the non-volatile storage device has working data. If so, the basic input/output system loads the workability data into the memory through the chipset. Based on the above, the present invention controls the computer system to enter a standby state instead of a shutdown state (s5 state) in which all devices are turned off when the computer operating system is turned off, thereby retaining the previous working state data in the memory. Therefore, when the computer system is started again, the data in the memory can be utilized to achieve the purpose of quick start. The above described features and advantages of the present invention will become more apparent from the description of the appended claims. [Embodiment] FIG. 1A is a block diagram of a computer system according to an embodiment of the invention. Referring to FIG. 1A, the computer system 1 includes a memory 11A, a wafer set 120, an embedded controller 130, and a basic input/output system (Bas=

Input/Output System,BIOS) 140。其中,當電腦系統 1〇3 在工作狀態時執行有一作業系統。 s己憶體110例如是動態隨機存取記憶體(d ^namicInput/Output System, BIOS) 140. Among them, when the computer system 1〇3 is in the working state, an operating system is executed. The suffix 110 is, for example, a dynamic random access memory (d ^namic

Random Access Memory,DRAM )或非揮發性記憶體 (Non-volatile memory,NVM )。記憶體 11 〇 是電腦系統 100的主記憶體,用以在電腦系統100運作時載入各種^ 式與資料,以供電腦系統1〇〇的中央處理器121執行秩 用。 及運 8 201142710Random Access Memory (DRAM) or Non-volatile memory (NVM). The memory 11 〇 is the main memory of the computer system 100 for loading various types of data and data when the computer system 100 is operating, for the central processing unit 121 of the computer system to perform rank. And transport 8 201142710

TP2010056 36710twf.doc/I 在本實施例中,晶片組120包括中央處理器121、北 橋晶片(north bridge )123 與南橋晶片(south bridge ) 125, 而記憶體110是耦接至晶片組120中的北橋晶片123,且 嵌入式控制器130與基本輸入輸出系統140是耦接至晶片 組120中的南橋晶片125。北橋晶片123與南橋晶片ι25 兩者透過週邊組件互連溝通。其中,北橋晶片123負責中 央處理器121、記憶體11〇與週邊組件互連匯流排之間的 5孔號傳輸’而南橋晶片125則是用以控制其他的週邊設備。 嵌入式控制器130用以控制電腦系統1〇〇的鍵盤(未 繪示)等輸入裝置,並可對電源進行管理。 基本輸入輸出系統140例如是儲存在電腦系統1〇〇之 主機板(未繪示)上唯讀記憶體(Read 〇nly Mem〇ry, ROM,未繪示)中的程式碼。在本實施例中,基本輸入輸 出系統140更特別用以在電腦系統1〇〇關機時執行一特殊 機制’進而將電腦系統1〇〇導入待機(ACPI S3)狀態。 並且,在下次啟動電腦系統100時,省略完整的開機我 測試(PowerOnSelfTest,POST),而達到快速啟動電腦 系統100的目的。 圖1B是依照本發明之另一實施例所繪示之電腦系統 的方塊圖。本實施例之電腦系統100,與圖1A所示之電腦 系統100相似,故以下僅針對差異處進行說明。如圖^ 所示,在電腦系統100’的晶片組120’中,包括整人了 央處理器及北橋晶>{的整合晶片122,以及南橋晶片⑵。 而°己隐體110疋轉接至晶片組12〇’中的整合晶片122且 201142710 ir 層 u56 367l〇twf.d〇c/i 欲入式控制器13〇與基本輸入輸出系統14〇是輛接至晶片 組120中的南橋晶片125。由於除了上述輕接方式的差異 外電腦系、统1〇〇之各構件的功能均與電腦系统刚中 的對應構件相同,故在此不在贅述。 必須特別說明的是,在本發明的其他實施例中,基本 輸入輸出系統14G也可_錢人式控制器13()(如圖ic 之電腦系統1〇〇”所示)。 為了進一步說明基本輸入輸出系統140在電腦系 1〇〇被關機時的詳細運作方式,以下特舉另—實施例來對 本發明進行說明。圖2是依照本發明之一實施例所繪示之 電腦系統之關機方法的流程圖。請同時參關1A與圖2。 對於屬於工作狀態的電腦系統1〇〇來說,在使用者按 下桌面的「開始」按紐或「㈤+Alt+Del」組合鍵,接著選 擇「關機」選項時,如步驟S21〇所示,基本輸入輸出系 統140可攔截到作業系統發出的關機指令。 接著在步驟S22”,基本輸入輸出系统14〇通知般 入式控制H 13G準備進人待機㈣1體而言,基本輸入 輸出系統140可透過設定嵌入式控制器13〇的旗標值進 而通知嵌入式控制器130關閉待機狀態的指示器 (mdlcator),從而使得嵌入式控制_ 13〇得知電腦系統 100接下來要進入的是待機狀態。 /接著如步驟S230所示,基本輸入輸出系統140依據 待機狀態設定晶片組120中-或多個相關暫存器的内容。 在本實施射,基本輸讀出纽⑽將會奴晶片組12〇 201142710 TP2010056 36710twf.doc/I 中南橋晶片125之相關暫存器的内容。此舉是因為作業系 統在準備進入關機狀態(S5 state)時會將相關的設定 入晶片組120中的暫存器’接著晶片組120進行狀態變更。 因此,為了避免晶片組120真正進入關機狀態,基本輸入 輸出系統140會將暫存器的内容改為與待機狀態相關=嗖 定值。 ° 如步驟S240所示,保留電腦系統1〇〇目前的工作狀 態資料(此工作狀態資料是保留在記憶體11〇)。最後如 步驟S250所示,嵌入式控制器130控制電源線路維持供 應電源至記憶體110來保存其中的工作狀態資料’進而使 電腦系統100進入待機狀態。 值得一提的是,由於本實施例是透過基本輸入輸出系 統140通知晶片組120與嵌入式控制器13〇進入待機狀態 而非進入關機狀態,但作業系統本身的行為並未改變,因 此作業系統仍認定電腦系統100準備要進入的是關機狀 態。換言之,從作業系統的角度而言,其狀態與儲存的資 料都與一般進入關機狀態無異。 以下將以圖3來說明當使用者下次要開啟電腦系統 100時,電腦系統100中各構件的詳細運作方式。 首先如步驟S310所示,使用者按下電腦系統刚的 電源鍵以啟動電腦系統1〇〇的電源。在一實施例中,基本 輸入輸出系統140可藉由讀取嵌入式控制器13〇的旗標值 ,其他非揮發性記憶體關斷電㈣統⑽在上次關機時 疋否經歷® 2所不之各步驟。若旗標值顯示電腦系統⑽ 11TP2010056 36710twf.doc/I In this embodiment, the chipset 120 includes a central processing unit 121, a north bridge 123 and a south bridge 125, and the memory 110 is coupled to the wafer set 120. The north bridge wafer 123, and the embedded controller 130 and the basic input output system 140 are coupled to the south bridge wafer 125 in the wafer set 120. Both the north bridge wafer 123 and the south bridge wafer ι25 are interconnected through peripheral components. The north bridge chip 123 is responsible for the 5-hole number transmission between the central processor 121, the memory 11 and the peripheral component interconnect busbars, and the south bridge wafer 125 is used to control other peripheral devices. The embedded controller 130 is used to control an input device such as a keyboard (not shown) of the computer system, and can manage the power. The basic input/output system 140 is, for example, a code stored in a read-only memory (not shown) on a motherboard (not shown) of the computer system 1 (not shown). In the present embodiment, the basic input/output system 140 is more particularly used to perform a special mechanism when the computer system 1 is turned off, thereby introducing the computer system 1 into the standby (ACPI S3) state. Moreover, when the computer system 100 is started next time, the complete PowerOnSelfTest (POST) is omitted, and the purpose of quickly starting the computer system 100 is achieved. 1B is a block diagram of a computer system in accordance with another embodiment of the present invention. The computer system 100 of this embodiment is similar to the computer system 100 shown in FIG. 1A, so the following description will only be made for differences. As shown in Fig. 2, in the chip set 120' of the computer system 100', an integrated wafer 122 of the whole human processor and North Bridge > and a south bridge wafer (2) are included. And the hidden body 110疋 is transferred to the integrated wafer 122 in the chip set 12〇' and the 201142710 ir layer u56 367l〇twf.d〇c/i the in-control controller 13〇 and the basic input/output system 14〇 are The south bridge wafer 125 is connected to the wafer set 120. Since the functions of the components of the computer system and the system are the same as those of the computer system, except for the difference in the above-mentioned light connection methods, they are not described here. It should be particularly noted that in other embodiments of the present invention, the basic input/output system 14G can also be used as a controller (as shown in the computer system 1 of Figure ic). To further illustrate the basics. The detailed operation mode of the input/output system 140 when the computer system is turned off, the following is a specific embodiment to illustrate the present invention. FIG. 2 is a schematic diagram of a computer system shutdown method according to an embodiment of the present invention. Flowchart. Please refer to both 1A and Figure 2. For a computer system that is in a working state, the user presses the "Start" button or "(5) + Alt + Del" on the desktop, and then When the "Shutdown" option is selected, the basic input/output system 140 can intercept the shutdown command issued by the operating system as shown in step S21A. Next, in step S22", the basic input/output system 14 informs the general control that the H13G is ready to enter the standby (four) body. The basic input/output system 140 can notify the embedded by setting the flag value of the embedded controller 13A. The controller 130 turns off the indicator of the standby state (mdlcator), so that the embedded control _ 13〇 knows that the computer system 100 is to enter the standby state next. / Next, as shown in step S230, the basic input/output system 140 is in accordance with the standby. The state sets the content of the - or more related registers in the chipset 120. In this implementation, the basic output readout (10) will be the slave chipset 12〇201142710 TP2010056 36710twf.doc/I the relevant temporary storage of the Southbridge wafer 125 The content of the device is because the operating system changes the state of the register set to the chipset 120 and then the chipset 120 when it is ready to enter the shutdown state (S5 state). Therefore, in order to avoid the chipset 120 When the power is turned off, the basic input/output system 140 changes the contents of the register to the standby state = the fixed value. ° As shown in step S240, the power is reserved. The system 1 〇〇 current working status data (the working status data is retained in the memory 11). Finally, as shown in step S250, the embedded controller 130 controls the power supply line to maintain the supply power to the memory 110 to save the work therein. The status data 'in turn causes the computer system 100 to enter the standby state. It is worth mentioning that, since the embodiment instructs the chip set 120 and the embedded controller 13 to enter the standby state through the basic input/output system 140 instead of entering the shutdown state, The behavior of the operating system itself has not changed, so the operating system still determines that the computer system 100 is ready to enter the shutdown state. In other words, from the perspective of the operating system, its status and stored data are the same as the general shutdown state. The detailed operation mode of each component in the computer system 100 when the user next turns on the computer system 100 will be described below with reference to Fig. 3. First, as shown in step S310, the user presses the power button of the computer system to start the computer. System 1 power supply. In an embodiment, the basic input output system 140 can be read by embedded 13〇 flag value is made, and other non-volatile memory system ⑽ iv shutting off each step at the last shutdown Cloth NO ® 2 are not subjected to the. When the flag value ⑽ computer system display. 11

201142710 ιι*^υιυυ56 3671〇twf.docA 先如是按照傳統流程關閉’基本輸入輸出系統14〇則會進 行元整的開機自我測試(Power On Self Test ’ POST )來啟 動電腦系統1〇〇。亦即在此情況下,必須對所有的硬體元 件執行初始化動作。 但倘若旗標值顯示電腦系統1 〇 〇在上次關機時是以進 入待機狀態來取代進入關機狀態,接著如步驟S32〇所示, 基本輸入輸出系統14〇判斷電腦系統100在處於待機狀態 的期間是否有發生任何的硬體變更。舉例來說,硬體變更 =括記憶體變更(例如更換或擴充記憶體)、中央處理器 Ά更(例如更換中央處理器)、週邊設備變更(例如硬碟 變更、各式擴充卡(Extended card)變更、無線區域網路 „SS 1〇Cal area net_k,WLAN)及 3G 網路間的變 更等等),以及即時時脈(Real Tirne Clock,RTC)電源 變更(例如更換即時時脈晶片的電池)其中之—或其組人 者0 σ ^細地說,倘若發生記紐變更或即時時脈電源變 前的相關硬體型號會與記憶體u〇所記錄的硬 原先丄:狀則可能會喪失 140纖雷1^乍狀態斗。基此,倘若基本輸入輸出系統 -,其+^岛糸統100有發生硬體變更,則如步驟S33〇所 體入ΐ如4G將進行完整關機自我測試(對 -7L件進仃初始化動作)來啟動電腦系統1〇〇。 步驟若並未發生硬體變更,那麼在 基本輸入輸出系統140會利用保存在記憶 12 201142710201142710 ιι*^υιυυ56 3671〇twf.docA If the basic input/output system 14 is turned off according to the traditional process, then the Power On Self Test ' POST will be activated to start the computer system. That is, in this case, an initialization action must be performed on all hardware elements. However, if the flag value indicates that the computer system 1 is in the standby state instead of entering the shutdown state during the last shutdown, then the basic input/output system 14 determines that the computer system 100 is in the standby state as shown in step S32. Are there any hardware changes during the period? For example, hardware changes = memory changes (such as replacing or expanding memory), CPU changes (such as replacing the central processor), peripheral device changes (such as hard disk changes, various expansion cards (Extended card) Change, wireless local area network (SS 1〇Cal area net_k, WLAN) and changes between 3G networks, etc.), and Real Time Clock (RTC) power supply changes (such as replacing the battery of the instant clock chip) ) - or its group of people 0 σ ^ fine, in the event of a change in the name of the note or the current clock power supply before the relevant hardware model will be recorded with the memory of the hard disk: Lose 140 fiber mine 1 ^ 乍 state bucket. Based on this, if the basic input and output system -, its ^ ^ island system 100 has a hardware change, then step S33 〇 ΐ 4 4 4 4 4 4 4 4 4 4 4 4 (Initialize the operation of the -7L piece) to start the computer system. Step If the hardware change has not occurred, then the basic input/output system 140 will be saved in memory 12 201142710

TP2010056 36710twf.doc/I 體110中的工作狀態資料來回復晶片組l2〇之相關暫存器 的設定。 除此之外,基本輸入輪出系統14〇還會對少數的硬體 裝置進行初始化的動作。具體來說,如步驟S350所示, 由於電腦系統100之視訊圖形陣列(Video Graphics Array,VGA)顯示器(未繪示)的相關資料並不會儲存在 兄憶體lio,而是會儲存在VGA顯示器本身的晶片與記憶 體中,因此’基本輸入輪出系統14〇可透過執行VGA顯 不器之VGA BIOS (VBIOS/DXE Driver)的初始化動作來 啟動視訊圖形陣列。 接著如步驟S360所示,為了要能讀取電腦系統ι〇〇 的硬碟(未繪不),基本輸入輸出系統14〇將會執行幾項 關於硬碟的確認程序。舉例來說,基本輸入輪出系統14〇 會對中斷控制器進行檢查,以判斷如INT 13中斷服務的功 能是否正常。此外,在電腦系統1〇〇支援進階主機控制器 "面(Advanced Host Controller Interface,AHCI)的情況 下,基本輸入輸出系統140亦會檢查進階主機控制器介面 之基底位址(base address)的初始化資料是否正確。而基 本輸入輸出系統140也會透過硬碟的輸入輸出介面將指令 傳送至硬碟,進而確認硬碟之輸入輸出介面的功能是否無 誤。 此外,由於電腦系統100之中央處理器所具有之本地 高級可編程中斷控制器(Local Advanced pr0grammable Interrupt Controller ’ Local APCI)的相關資料是儲存在中 13TP2010056 36710twf.doc/I The working status data in the body 110 is used to reply to the setting of the associated register of the chipset l2. In addition to this, the basic input wheeling system 14〇 also initializes a small number of hardware devices. Specifically, as shown in step S350, the related information of the Video Graphics Array (VGA) display (not shown) of the computer system 100 is not stored in the buddy lio, but is stored in the VGA. The display itself is in the chip and memory, so the 'basic input wheeling system 14' can initiate the video graphics array by performing the initialization action of the VGA BIOS (VBIOS/DXE Driver) of the VGA display. Then, as shown in step S360, in order to be able to read the hard disk of the computer system (not shown), the basic input/output system 14 will execute several confirmation procedures regarding the hard disk. For example, the basic input wheeling system 14〇 checks the interrupt controller to determine if the function of the INT 13 interrupt service is normal. In addition, in the case where the computer system 1 supports the Advanced Host Controller Interface (AHCI), the basic input/output system 140 also checks the base address of the advanced host controller interface (base address). ) The initialization data is correct. The basic input/output system 140 also transmits commands to the hard disk through the input/output interface of the hard disk, thereby confirming whether the functions of the input and output interfaces of the hard disk are correct. In addition, since the data of the Local Advanced pr0grammable Interrupt Controller (Local APCI) of the central processing unit of the computer system 100 is stored in the middle 13

36710twf.doc/I 201142710 ,,,器而在電腦系統_處於待機狀態時中央處理器 二又到供電因此為了確保本地高級可編程巾斷控制器 统議運作時能正常負責中央處理 ^如步驟㈣所示,基本輸人輸出系統 地南級可編程情控制ϋ之初始化資料的正確性。一 r =ίΓΓ380中,載入並開啟作業系統以完成電 月6)系統100的開機流程。 隱與圖3所示之實施例中’當電腦㈣100要被 々基本輸入輪出系統140通知晶片幻20以及谈人 二二器光130^進而控制電腦系統100進入待機狀態而非關 並且保留當時打作狀態龍。由於電腦系統⑽ ΐϊΓ寺記憶體110仍會持續被供應電源,因此 ί:?〇〇Γ i被保留下來。待下-次要開啟電腦 =100時,便可利用保留在記憶體11〇中的工作狀 料來快速喊晶4組12()之暫存㈣設定值,而ς 體設備進行檢測之後,便可載人作業系ς以完成 必須特別說明的是,在上述實施例中雖然是 所不之電腦系統100搭配圖2與圖3為例 開關,方法的各步驟,但圖1Β之電腦系統;J本:圖= 之電腦系統100” #能執行圖2與圖3所示之各步:驟。 圖4Α是依照本發明之另一實施例所綠示之電° 的方塊圖。請參關4,電腦系統400包括 …曰 式控制器13〇、基本輸人輸^統14= 14 20114271036710twf.doc/I 201142710,,, and in the computer system _ in the standby state, the central processing unit 2 is powered again, so in order to ensure that the local advanced programmable towel controller is responsible for the central processing when it operates, as in step (4) As shown, the basic input control system is correct for the initialization data of the south level programmable control system. In a r = ΓΓ 380, the operating system is loaded and turned on to complete the power-on process of the system 100). In the embodiment shown in FIG. 3, when the computer (four) 100 is to be notified by the basic input wheeling system 140, the chip phantom 20 and the talker light 130 are controlled to enter the standby state instead of off and retain the time. Play as a state dragon. Since the computer system (10) ΐϊΓ Temple memory 110 is still continuously supplied with power, ί:?〇〇Γ i is retained. When the computer is turned on and off for a while, you can use the work material retained in the memory 11〇 to quickly call the temporary storage (4) setting value of the 4 groups of 12 (), and after the detection of the body device, It should be specially stated that the above-mentioned embodiment is not limited to the computer system 100, and the steps of the method and the steps of the method are shown in FIG. 2 and FIG. 3, but the computer system of FIG. Figure: The computer system 100" can perform the steps shown in Figure 2 and Figure 3. Figure 4 is a block diagram of the green power according to another embodiment of the present invention. , the computer system 400 includes ... 曰 type controller 13 〇, basic input and output system 14 = 14 201142710

TP2010056 36710twf.doc/I 及非揮發性儲存裝置450。在本實施例中,記憶體ii〇為 動態隨機存取記憶體。由於晶片組12〇、嵌入式控制器 與基本輸入輸出系統14〇和圖1A所示之電腦系統刚的 對應構件具有相同或相似的功能,故在此不再贅述。 非揮發性儲存裝置450耦接至晶片組12〇中的南橋晶 片125。非揮發性儲存裝置45〇例如是硬碟、快閃記憶$ (flash memory),或其他任何在喪失電源之後,所儲存 的資料不會消失的儲存裝置。 圖4B是依照本發明之另一實施例所繪示之電腦系統 的方塊圖。圖4B之電腦系統400,與圖4A之電腦系統4〇〇 的架構大致相似,其間的差異在於電腦系統4〇〇,之晶片組 120中的中央處理器與北橋晶片是整合為一整合晶片 122而在電月自系統4〇〇之晶片組12〇中,中央處理器121、 北橋晶片123以及南橋晶片125則為獨立的構件。 圖4C疋依照本發明之另一實施例所繪示之電腦系統 的方塊圖。如圖4C所示,基本輸入輸出系統14〇並非如 圖4A、4B所示的連接至晶片組12〇,在本實施例中基本 輸入輸出系統140係連接至嵌入式控制器丨3〇。 而以下將以圖4A及圖5來說明電腦系統400之關機 方法的詳細流程。由於圖5所示之步驟S51〇至S55〇與圖 2所示之步驟S210至S250相同或相似,故在在此不再作 說明。 當透過步驟S510至S550而使電腦系統400近入待機 狀態後,此時記憶體11〇可接收電源的供電。然而為了更 15TP2010056 36710twf.doc/I and non-volatile storage device 450. In this embodiment, the memory ii is a dynamic random access memory. Since the chip set 12, the embedded controller and the basic input/output system 14A and the corresponding components of the computer system shown in Fig. 1A have the same or similar functions, they will not be described again. The non-volatile storage device 450 is coupled to the south bridge wafer 125 in the wafer set 12A. The non-volatile storage device 45 is, for example, a hard disk, a flash memory, or any other storage device that does not disappear after the power is lost. 4B is a block diagram of a computer system in accordance with another embodiment of the present invention. The computer system 400 of FIG. 4B is substantially similar to the architecture of the computer system 4A of FIG. 4A, with the difference being that the computer system 4, the central processor and the north bridge chip in the chipset 120 are integrated into an integrated wafer 122. In the chipset 12 of the system, the central processing unit 121, the north bridge wafer 123, and the south bridge wafer 125 are independent members. 4C is a block diagram of a computer system in accordance with another embodiment of the present invention. As shown in Fig. 4C, the basic input/output system 14 is not connected to the chip set 12 as shown in Figs. 4A and 4B. In the present embodiment, the basic input output system 140 is connected to the embedded controller. The detailed flow of the shutdown method of the computer system 400 will be described below with reference to Figs. 4A and 5 . Since steps S51 to S55 of Fig. 5 are the same as or similar to steps S210 to S250 shown in Fig. 2, they will not be described here. After the computer system 400 is brought into the standby state through steps S510 to S550, the memory 11 can receive the power supply of the power source. However for the sake of 15

201142710 ^ 36710twf.doc/I 進一步地節省電力消耗,在本實施例中,如步驟S560所 示,嵌入式控制器130反覆判斷電腦系統400進入待機狀 態的時間是否到達一預設值。其中,預設值例如是24小 時,但本發明並不對此加以限制。 若嵌入式控制器13 0判斷電腦系統400進入待機狀態 的時間已到達預設值,則如步驟S565所示,嵌入式控制 器130喚醒電腦系統400。並如步驟S570所示,基本輸入 輸出系統140判斷電腦系統4〇〇被喚醒是否因為電腦系統 400進入待機狀態的時間已到達預設值。 、 右否,則如步驟S580所示,執行正常的開機作業程 序。 ’、 若是,則如步驟S5M所示,基本輸 450,並如步驟S59〇所示 皁生儲存裝置 程序。亦即,基本輸入輸出系=== 機作業 «由&入式_13() , 能進一步降低電源的消耗。且 電源。如此便 =狀態資料也因為被寫人非揮發性 圖6是依照本發明之另一眚 4〇〇之開機方法的詳細流程。:例所緣示之電腦系統 相同,故以下僅就兩者的差異;^ 6與圖3的步驟大致 在步驟S610所示啟私带仃說明。201142710 ^ 36710twf.doc/I Further saving power consumption, in the embodiment, as shown in step S560, the embedded controller 130 repeatedly determines whether the time when the computer system 400 enters the standby state reaches a preset value. The preset value is, for example, 24 hours, but the present invention is not limited thereto. If the embedded controller 130 determines that the time when the computer system 400 has entered the standby state has reached the preset value, the embedded controller 130 wakes up the computer system 400 as shown in step S565. And as shown in step S570, the basic input/output system 140 determines whether the computer system 4 is woken up because the time when the computer system 400 enters the standby state has reached the preset value. If no, the normal booting process is executed as shown in step S580. ', if yes, as shown in step S5M, the basic input 450, and the soap storage device program as shown in step S59. That is, the basic input/output system === machine operation «by & input type _13() can further reduce the power consumption. And power. Thus, the status data is also non-volatile because of the written person. Fig. 6 is a detailed flow chart of another method of starting up in accordance with the present invention. The computer system shown in the example is the same, so the following is only the difference between the two; ^ 6 and the steps of FIG. 3 are roughly described in the step S610.

^ S613 , S 4〇檢查記憶體11()中^ S613, S 4〇 check memory 11 ()

201142710 TP2010056 36710twf.doc/I 是否存有工作狀態㈣。若否,則如步驟S615所示,判 斷非揮發性儲存裝置45〇是否存有工作狀態資料。 若非揮發性儲存裝置45〇存有工作狀態資料,則表示 電腦系統400進入待機狀態的時間有超過預設值。此時如 乂驟S620所示’基本輸入輸出系統刚將儲存在非揮發 I·生儲存裝f 450中的工作狀態資料重新載入到記憶體11〇。 接著便如步驟S630至S690所示,在沒有發生硬體變 更的情況下’則利用記憶體11()中的工作狀態資料來快速 啟動電腦系統400。 若在步驟S613判斷記憶體11〇已存有工作狀態資 料,或在步驟S615判斷非揮發性儲存裝置並未儲存 工作狀態資料’本實施例所述之電腦系統働的開機方法 亦將執行步驟S630至S690所示之動作。 在上述實施例中,同樣是以在要關機時控制電腦系統 400進入待機模式而非關機模式,進而將工作狀態資料保 留在記憶體11G。然而-旦進人待機模式的_超過預設 值,便將記憶體110中的工作狀態資料改儲存至即便沒有 供電也能保存資料的非揮發性儲存裝置45〇,如此達到節 省電力的目的。 必須特別說明的是,在上述實施例中雖然是以圖4A 所不之電腦系統400搭配圖5與圖6為例來說明本發明之 開關機方法的各步驟,但圖4B之電腦系統4〇〇’與圖4C 之電腦系統400”亦能執行圖5與圖6所示之各步驟。 綜上所述,本發明所述之電腦系統及其開關機方法是 17 201142710 =>〇 3671〇twf.doc/l 在準備關機時令電齡統進人待機狀態而制機狀離,如 =-來便_當_讀狀態㈣保存在記㈣中 备要再次啟動電㈣統時,便可保存在記憶體中的資 料來加快啟動電腦系統的速度。而在啟動電腦系統時 會對電腦系統衫有發生硬體變更來進行檢查。若在處於 待機狀態_間曾發生硬體變更,齡按照原有的開機流 程,從而確保電腦系統能被正常啟動。 雖然本發明已以實施例揭露如上,然其並非用以限定 本發明,任何所屬技術領域中具有通常知識者,在不脫離 本發明之精神和範圍内,當可作些許之更動與潤飾,故本 發明之保遵範圍當視後附之申請專利範圍所界定者為準。 【圖式簡單說明] 圖1Α至1C是依照本發明之一實施例所繪示之電腦系 統的方塊圖。 圖2疋依照本發明之一實施例所繪示之電腦系統之關 機方法的流程圖。 圖3疋依照本發明之一實施例所繪示之電腦系統之開 機方法的流程圖。 圖4Α至4C是依照本發明之另一實施例所繪示之電腦 系統的方塊圖。 圖5疋依照本發明之另一實施例所繪示之電腦系統之 關機方法的流程圖。 圖6是依照本發明之另一實施例所繪示之電腦系統之 18201142710 TP2010056 36710twf.doc/I Is there a working status (4)? If not, it is determined whether the non-volatile storage device 45 is stored with the operational status data as shown in step S615. If the non-volatile storage device 45 stores the working status data, it indicates that the computer system 400 has entered the standby state for more than the preset value. At this time, as shown in step S620, the basic input/output system has just reloaded the operational status data stored in the non-volatile storage unit f 450 into the memory 11A. Then, as shown in steps S630 to S690, the operating state data in the memory 11() is used to quickly start up the computer system 400 in the case where no hardware change has occurred. If it is determined in step S613 that the memory state has stored the working state data, or in step S615, it is determined that the non-volatile storage device does not store the working state data, and the booting method of the computer system described in this embodiment will also perform step S630. The action shown in S690. In the above embodiment, the same is to control the computer system 400 to enter the standby mode instead of the shutdown mode when the battery is to be turned off, thereby keeping the operational status data in the memory 11G. However, if the _ entering the standby mode exceeds the preset value, the working status data in the memory 110 is stored to the non-volatile storage device 45, which can save the data even if there is no power supply, thus achieving the purpose of saving power. It should be particularly noted that, in the above embodiment, although the computer system 400 of FIG. 4A is combined with FIG. 5 and FIG. 6 as an example to illustrate the steps of the on-off method of the present invention, the computer system of FIG. 4B is The computer system 400 of FIG. 4C can also perform the steps shown in FIG. 5 and FIG. 6. In summary, the computer system and the power switch method thereof according to the present invention are 17 201142710 => 〇 3671〇 Twf.doc/l When the machine is ready to shut down, the battery age is entered into the standby state, and the machine is separated, such as =- _ _ _ read status (four) is saved in the record (four) in preparation for restarting the power (four) system, you can The data stored in the memory speeds up the speed of starting the computer system. When the computer system is started, there is a hardware change in the computer system shirt to check. If there is a hardware change in the standby state, the age is changed. The original booting process, so as to ensure that the computer system can be started normally. Although the invention has been disclosed in the above embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art without departing from the invention. Spirit and scope The scope of the invention is defined by the scope of the appended claims. [FIG. 1A to 1C are diagrams in accordance with an embodiment of the present invention. Figure 2 is a flow chart of a method for shutting down a computer system according to an embodiment of the invention. Figure 3 is a schematic diagram of a computer system according to an embodiment of the invention. Figure 4A to 4C are block diagrams of a computer system according to another embodiment of the present invention. Figure 5 is a flow chart showing a shutdown method of a computer system according to another embodiment of the present invention. Figure 6 is a diagram of a computer system 18 in accordance with another embodiment of the present invention.

201142710. ίΓ^υι νυ56 3671 Otwf.doc/I 開機方法的流程圖。 【主要元件符號說明】 100、100’、1〇〇” :電腦系統 110 :記憶體 120 ·晶月組 121 :中央處理器 122 :整合晶片 123 ♦北橋晶片 125 ·南橋晶片 130 :嵌入式控制器 140 :基本輸入輸出系統 S210〜S250 :本發明之一實施例所述之電腦系統之關 機方法的各步驟 S310〜S380 :本發明之一實施例所述之電腦系統之開 機方法的各步驟 400、400’、400” :電腦系統 450 :非揮發性儲存裝置 S510〜S590 .本發明之另一實施例所述之電腦系統之 關機方法的各步驟 S610〜S690 :本發明之另一實施例所述之電腦系統之 開機方法的各步驟201142710. ίΓ^υι νυ56 3671 Otwf.doc/I Flowchart of the boot method. [Main component symbol description] 100, 100', 1〇〇": computer system 110: memory 120 · crystal moon group 121: central processing unit 122: integrated wafer 123 ♦ north bridge wafer 125 · south bridge wafer 130: embedded controller 140: Basic input and output system S210 to S250: steps S310 to S380 of the shutdown method of the computer system according to an embodiment of the present invention: steps 400 of the booting method of the computer system according to an embodiment of the present invention, 400', 400": computer system 450: non-volatile storage devices S510 to S590. Steps S610 to S690 of the shutdown method of the computer system according to another embodiment of the present invention: another embodiment of the present invention Each step of the boot method of the computer system

Claims (1)

36710twf.d〇c/I 201142710., _____w)6 七、申請專利範圍: 1 · 一種電腦系統之開關機方法,該電腦系統包括一記 憶體、一晶片組、一嵌入式控制器以及一基本輸入輸出系 統,並有一作業系統執行於該電腦系統,該方法包括: 當該基本輸入輸出系統攔截到該作業系統發出的一 關機指令時’通知該嵌入式控制器準備進入一待機(ACPI S3)狀態; 由該基本輸入輸出系統依據該待機狀態設定該晶片 組之至少一暫存器的内容; 保留該電腦系統目前的一工作狀態資料;以及 維持供應電源至該記憶體而使該電腦系統進入該待 機狀態。 2.如申請專利範圍第1項所述之電腦系統之開關機 方法’其中在維持供應電源至該記憶體而使該電腦系統進 入該待機狀態的步驟之後,該方法更包括·· 啟動該電腦系統的電源; 判斷該電腦系統是否發生一硬體變更; 若否,則利用該記憶體中的該工作狀態資料回復該晶 片組之該至少一暫存器的設定; 啟動§亥電腦糸統的一視訊圖形陣列(Video Graphics Array,VGA)顯示器; 執行關於該電腦系統之一硬碟的確認程序; 檢查一本地而級可編程中斷控制器(Local Advanced Programmable Interrupt Controller,Local APCI)之初始化 201142710 1 r ζυ ιυυ56 3671 Otwf.doc/I 資料的正確性;以及 開啟該作業系統。 3. 如申請專利範圍第2項所述之電腦系統之開關機 方法,其中執行關於該硬碟的確認程序的步驟更包括: 檢查一 INT 13中斷服務的功能; 才双查一進階主機控制器介面(Advanced Host Controller Interface,AHCI)之基底位址(base address) 的初始化資料的正確性;以及 確認該硬碟之一輸入輸出介面的功能。 4. 如申請專利範圍第2項所述之電腦系統之開關機 方法,其中在判斷該電腦系統是否發生該硬體變更的步驟 之後,該方法更包括: 若疋’則進行完整的一開機自我測試(p〇wer 〇n Self Test ’ POST)以啟動該電腦系統。 5. 如申請專利範圍第2項所述之電腦系統之開關機 方法’其中δ亥硬體變更包括一記憶體變更、一中央處理写 變更、一週邊設備變更,以及一即時時脈(Real Time Clock ’ RTC )電源變更。 6. 如申請專利範圍第2項所述之電腦系統之開關機 方法,其中δ亥電服系統的§亥工作狀態資料是被保留在該j己 憶體,且該記憶體為一動態隨機存取記憶體(Dynm Random Access Memory , DRAM ),而在維持供應電源至 該記憶體而使該電腦系統進入該待機狀態的步驟之後,該 方法更包括: X 21 201142710 36710twf.doc/I 判斷該電腦系統進入該待機狀態的時間是否到達一 預設值; 若是,則將保留在該記憶體中的該工作狀態資料寫入 至3亥電知系統的一非揮發性(n〇n_v〇latile )儲存裝置:以 及 ’* 執行該電腦系統的一關機作業程序。 7.如申請專利範圍第6項所述之電腦系統之開關機 方法,其中在啟動該電腦系統的電源的步驟之後,該方法 更包括: / ' 檢查該記憶體是否存有該工作狀態資料; 若否,則判斷該非揮發性儲存裝置是否存有該 態資料;以及 若是,則將該工作狀態資料载入到該記憶體。 .8. -種電腦系統’執行有—作㈣統,該電腦系統包 一記憶體; 一晶片組,耦接該記憶體; 甘入入式控制器,輕接該晶片組;以及 -基本輸人輸出系統’输H组或紐入式 =中該基本輸人輸出系統在攔截職作㈣統發出二_ 關機指令時’透過H崎知軸人式控㈣準備進7 -待機狀態,依肋待機狀態設定該晶片組之至少 盗的内容’保留該電腦系統目前的—工作狀態資料,以石 由該嵌入式控繼維持供應電源至該記鐘而使該 22 201142710. ijt^uiw-56 3671〇twf.doc/I 統進入該待機狀態。 9. 如申請專利範圍第8項所述之電腦系統,其中在啟 動該電腦系統的電源後,該基本輸入輸出系統判斷該電腦 系統是否發生一硬體變更, 若否,該基本輸入輸出系統利用該記憶體中的該工作 狀態資料回復該晶片組之該至少一暫存器的設定,啟動該 電腦系統的一視訊圖形陣列顯示器,執行關於該電腦系統 之一硬碟的確認程序,檢查一本地高級可編程中斷控制器 之初始化資料的正確性,以及開啟該作業系統。 10. 如申請專利範圍第9項所述之電腦系統,其中該 基本輸入輸出系統在執行關於該電腦系統之該硬碟的確認 程序時,檢查一 INT 13中斷服務的功能,檢查一進階主機 控制器介面之基底位址的初始化資料的正確性,以及確認 該硬碟之一輸入輸出介面的功能。 11. 如申請專利範圍第9項所述之電腦系統,其中該 基本輸入輸出系統在判斷該電腦系統發生該硬體變更時, 進行完整的一開機自我測試以啟動該電腦系統。 12. 如申請專利範圍第9項所述之電腦系統,其中該 硬體變更包括一記憶體變更、一中央處理器變更、一週邊 設備變更,以及一即時時脈電源變更。 13. 如申請專利範圍第9項所述之電腦系統,其中該 電腦系統的該工作狀態資料是被保留在該記憶體,且該記 憶體為-動態隨機存取記憶體,該電腦系統更包括: 一非揮發性儲存裝置,耦接該晶片組, 23 201142710, 3671〇_c/i 其中該搬人式控制器在該電腦系統進人該待機狀能 的時間到達一預設值時唤醒該電腦系統, 〜 該基本輸人輸出系統峨該電腦純被喚醒是 為該電腦系統進入該待機狀態的時間到達該預設值,若 是,該基本輸入輸出系統透過該晶片組將保留在該記憶體 中的該工作狀態資料寫入至該非揮發性儲存裝置,以^通 知該嵌入式控制器以由該嵌入式控制器關閉該電腦系統及 電源。 14.如申請專利範圍第13項所述之電腦系統,其中在 啟動該電腦系統的電源後’該基本輸入輸出系統檢查該記 憶體是否存有該工作狀態資料, 若否,該基本輸入輸出系統判斷該非揮發性儲存裝置 是否存有該工作狀態資料’ 若是,該基本輸入輸出系統透過δ亥晶片組將該工作狀 態資料載入到該記憶體。 2436710twf.d〇c/I 201142710., _____w)6 VII. Patent application scope: 1 · A computer system switching method, the computer system comprises a memory, a chipset, an embedded controller and a basic input Outputting the system, and having an operating system executed on the computer system, the method comprising: informing the embedded controller to enter a standby (ACPI S3) state when the basic input output system intercepts a shutdown command issued by the operating system Setting, by the basic input/output system, the content of the at least one register of the chipset according to the standby state; retaining a current working state data of the computer system; and maintaining supply power to the memory to enable the computer system to enter the standby mode. 2. The method of switching on and off a computer system according to claim 1, wherein the method further comprises: starting the computer after maintaining the supply of power to the memory to cause the computer system to enter the standby state The power of the system; determining whether the computer system has a hardware change; if not, using the working status data in the memory to restore the setting of the at least one register of the chip set; A Video Graphics Array (VGA) display; a confirmation program for one hard disk of the computer system; an initialization of a Local Advanced Programmable Interrupt Controller (Local APCI) 201142710 1 r ζυ ιυυ56 3671 Otwf.doc/I The correctness of the data; and the opening of the operating system. 3. The method of switching on and off a computer system according to claim 2, wherein the step of executing the confirmation procedure for the hard disk further comprises: checking a function of an INT 13 interrupt service; and double checking an advanced host control The correctness of the initialization data of the base address of the Advanced Host Controller Interface (AHCI); and the function of confirming one of the input and output interfaces of the hard disk. 4. The method of switching on and off a computer system according to claim 2, wherein after determining whether the computer system has the hardware change step, the method further comprises: if 疋', performing a complete booting self Test (p〇wer 〇n Self Test ' POST) to start the computer system. 5. The method of switching on and off a computer system as described in claim 2, wherein the change of the hardware includes a memory change, a central processing write change, a peripheral device change, and an instant clock (Real Time) Clock 'RTC) Power change. 6. The method of switching on and off a computer system according to claim 2, wherein the data of the operating status of the δHai electric service system is retained in the memory, and the memory is a dynamic random memory. Taking a memory (Dynm Random Access Memory, DRAM), and after maintaining the power supply to the memory to bring the computer system into the standby state, the method further includes: X 21 201142710 36710twf.doc/I determining the computer Whether the time when the system enters the standby state reaches a preset value; if yes, the working state data retained in the memory is written to a non-volatile (n〇n_v〇latile) storage of the system Device: and '* A shutdown program that executes the computer system. 7. The method of switching on and off a computer system according to claim 6, wherein after the step of starting the power of the computer system, the method further comprises: / 'checking whether the memory has the working status data; If not, it is determined whether the non-volatile storage device stores the state data; and if so, the working state data is loaded into the memory. .8. - A computer system 'execution--(4) system, the computer system includes a memory; a chipset coupled to the memory; a sweet-in controller, the chipset is lightly connected; and - the basic input Human output system 'transfer H group or new input type=the basic input output system in the interception work (four) unified two _ shutdown command 'through H Saki Axis-style control (four) ready to enter 7 - standby state, depending on the rib The standby state sets at least the stolen content of the chipset 'retains the current state of operation of the computer system, and the stone is maintained by the embedded controller to maintain the power supply to the clock to make the 22 201142710. ijt^uiw-56 3671 〇twf.doc/I enters the standby state. 9. The computer system of claim 8, wherein after the power of the computer system is started, the basic input/output system determines whether a hardware change occurs in the computer system, and if not, the basic input/output system utilizes The working status data in the memory returns the setting of the at least one register of the chip set, activates a video graphics array display of the computer system, performs a confirmation procedure on a hard disk of the computer system, and checks a local The initialization of the advanced programmable interrupt controller is correct and the operating system is turned on. 10. The computer system of claim 9, wherein the basic input/output system checks an INT 13 interrupt service function when performing a confirmation procedure for the hard disk of the computer system, and checks an advanced host. The correctness of the initialization data of the base address of the controller interface, and the function of confirming one of the input and output interfaces of the hard disk. 11. The computer system of claim 9, wherein the basic input/output system performs a complete self-test to start the computer system when determining that the hardware change occurs in the computer system. 12. The computer system of claim 9, wherein the hardware change comprises a memory change, a central processor change, a peripheral device change, and an immediate clock power change. 13. The computer system of claim 9, wherein the working status data of the computer system is retained in the memory, and the memory is a dynamic random access memory, the computer system further includes : a non-volatile storage device coupled to the chip set, 23 201142710, 3671〇_c/i wherein the mobile controller wakes up when the computer system enters the standby state for a predetermined time Computer system, ~ the basic input output system, the computer is simply woken up to reach the preset value for the time when the computer system enters the standby state, and if so, the basic input/output system remains in the memory through the chipset The working status data is written to the non-volatile storage device to notify the embedded controller to shut down the computer system and the power source by the embedded controller. 14. The computer system of claim 13, wherein the basic input/output system checks whether the memory has the working status data after starting the power of the computer system, and if not, the basic input/output system Determining whether the non-volatile storage device stores the working state data. If yes, the basic input/output system loads the working state data into the memory through the δ ray chip set. twenty four
TW100112821A 2010-04-13 2011-04-13 Computer system, shutdown and boot method thereof TWI534707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/118,492 US9098305B2 (en) 2010-04-13 2011-05-30 Computer system and bootup and shutdown method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US34990110P 2010-05-31 2010-05-31

Publications (2)

Publication Number Publication Date
TW201142710A true TW201142710A (en) 2011-12-01
TWI534707B TWI534707B (en) 2016-05-21

Family

ID=45009188

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100112821A TWI534707B (en) 2010-04-13 2011-04-13 Computer system, shutdown and boot method thereof

Country Status (2)

Country Link
CN (1) CN102262550A (en)
TW (1) TWI534707B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI479420B (en) * 2013-01-16 2015-04-01 Wistron Corp Computer and booting method thereof

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150288B (en) * 2013-03-14 2016-04-06 福州瑞芯微电子股份有限公司 A kind of SOC of quick turn-on and its implementation
CN105138479B (en) * 2015-08-07 2019-03-29 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105700985B (en) * 2016-01-15 2018-12-28 合肥联宝信息技术有限公司 Loop test jig for laptop
CN105760314A (en) * 2016-03-14 2016-07-13 山东超越数控电子有限公司 Method for controlling starting-up screen luminance of system by virtue of EC SCI
TWI748081B (en) * 2017-04-14 2021-12-01 仁寶電腦工業股份有限公司 Computer device and data protection method therefore
CN113703799B (en) * 2020-05-21 2024-06-04 华为技术有限公司 Computing device and BIOS updating method and medium thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744039B (en) * 2004-08-31 2012-01-25 华硕电脑股份有限公司 Starting-up method, computer system and its production method
CN101515194B (en) * 2008-02-21 2011-11-09 鸿富锦精密工业(深圳)有限公司 Computer operating state converting method
CN101710253B (en) * 2009-11-25 2012-06-13 安凯(广州)微电子技术有限公司 Deep-sleep method of embedded system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI479420B (en) * 2013-01-16 2015-04-01 Wistron Corp Computer and booting method thereof
US9239724B2 (en) 2013-01-16 2016-01-19 Wistron Corporation Computer device and boot method thereof

Also Published As

Publication number Publication date
TWI534707B (en) 2016-05-21
CN102262550A (en) 2011-11-30

Similar Documents

Publication Publication Date Title
US9098305B2 (en) Computer system and bootup and shutdown method thereof
TW201142710A (en) Computer system, shutdown and boot method thereof
US20230236654A1 (en) System on chip for reducing wake-up time, method of operating same, and computer system including same
CN104412224B (en) Processing system the reinitializing from volatile memory when recovering from low power state
US8910177B2 (en) Dynamic mapping of logical cores
US7971081B2 (en) System and method for fast platform hibernate and resume
US10067834B1 (en) Systems and methods for resetting one or more system components in response to a watchdog timer (WDT) event
TWI493460B (en) Electronic device and booting method
TW201237606A (en) Debug registers for halting processor cores after reset or power off
US9645625B2 (en) System and method for power management of computing devices in a virtual desktop infrastructure
US10545869B2 (en) Power button override for persistent memory enabled platforms
CN102144214A (en) Method and system for providing hybrid-shutdown and fast startup processes
CN107797642B (en) power backup method and device
TW201237755A (en) Method for switching operating system and electronic apparatus using thereof
US20160231935A1 (en) Memory Configuration Operations for a Computing Device
TW201011524A (en) Method and controller for power management
TW201337534A (en) Constrained boot techniques in multi-core platforms
US10872018B2 (en) Memory data preservation solution
WO2021233363A1 (en) Computing device and bios update method therefor, and medium
US8745368B2 (en) Notebook computer for performing part of power-on self-test according to proximity sensor before displaying image after power switch is triggered
CN103197933A (en) Computer and rapid starting method thereof
TWI379234B (en) Motherboard, storage device and controller thereof and booting method
TW201214918A (en) Computer and method for charging portable electronic apparatus thereof
TW201118714A (en) Hot swap method for DRAM
JP5378451B2 (en) Method and computer for reducing start-up reliability and POST time