本發明係指一種電源管理方法及電腦系統,尤指一種可提升電腦系統中電源管理彈性的電源管理方法及電腦系統。The invention relates to a power management method and a computer system, in particular to a power management method and a computer system capable of improving the flexibility of power management in a computer system.
筆記型電腦有著體積小、重量輕、攜帶方便等特性,能夠讓使用者輕易地在辦公室以外的地方進行工作,並使用電腦系統的各種功能,而不必再被笨重的桌上型電腦限制在桌面之前。為了方便使用者隨身攜帶,筆記型電腦皆配備有用來儲存電力的充電電池,以提供運作時所需的電力。由於充電電池所能儲存之電量有限,當充電電池之電量耗盡時,使用者必需更換電量充足之電池或使用其它電力來源,才能繼續使用筆記型電腦。The notebook's small size, light weight, and portability make it easy for users to work outside the office and use the various functions of the computer system without having to be limited to the desktop by a bulky desktop computer. prior to. For the convenience of the user to carry around, the notebook computer is equipped with a rechargeable battery for storing power to provide the power required for operation. Since the rechargeable battery can store a limited amount of power, when the rechargeable battery is exhausted, the user must replace the battery with sufficient power or use other power sources to continue using the notebook.
因此,為了減少頻繁更換電池所帶來的不便,除了筆記型電腦原有的待機或休眠機制外,一般使用者在不需使用筆記型電腦時,可將筆記型電腦切換至關機狀態。所謂「關機狀態」係指先進組態及電源介面(Advanced Configuration & Power Interface)所定義的狀態S5,表示所有設備皆關閉。理論上,在狀態S5下,筆記型電腦的功耗為0,但實際上,筆記型電腦的嵌入式控制器(Embedded Controller),如鍵盤控制器,係操作於深沉睡眠模式(Deep Sleep Mode),仍會消耗15-20mW的電源,而此電源係用來快速喚醒鍵盤控制器,或是支援網路或數據機啟動(Wakeup on LAN/Wakeup on Modem)等。換言之,即便使用者將筆記型電腦切換至關機狀態,筆記型電腦仍會消耗電源。在此情形下,若筆記型電腦係使用電池電源,勢必會降低電池電量,以致減少可攜使用時間。Therefore, in order to reduce the inconvenience caused by frequent battery replacement, in addition to the original standby or hibernation mechanism of the notebook computer, the general user can switch the notebook computer to the off state without using the notebook computer. The so-called "off state" refers to the state S5 defined by the Advanced Configuration & Power Interface, indicating that all devices are turned off. In theory, in state S5, the power consumption of the notebook computer is 0, but in fact, the embedded controller of the notebook computer, such as the keyboard controller, operates in deep sleep mode (Deep Sleep Mode). It still consumes 15-20mW of power, which is used to quickly wake up the keyboard controller, or to support network or data machine boot (Wakeup on LAN/Wakeup on Modem). In other words, even if the user switches the notebook to the off state, the notebook still consumes power. In this case, if the notebook computer uses battery power, it will inevitably lower the battery power, thus reducing the portable use time.
若要使鍵盤控制器完全不耗電,則需將鍵盤控制器操作於完全停機(Shutdown)模式。然而,當鍵盤控制器處於完全停機模式,當使用者按下電源鍵開機時,會比鍵盤控制器處於深沉睡眠模式的時候,需要更長的啟動時間。主要原因在於,當鍵盤控制器從完全停機模式重新啟動時,鍵盤控制器需要花費時間於執行初始化的程序,包含了檢查各個通用輸入輸出(General Purpose Input/Output)介面的狀態,並執行相對應的程式。一般而言,鍵盤控制器初始化所需的時間,將近0.5秒。因此,若每次關機,鍵盤控制器都進入完全停機模式,由於重新啟動所需要的時間較長(>0.5秒),會對使用者造成影響。To make the keyboard controller completely powerless, you need to operate the keyboard controller in Shutdown mode. However, when the keyboard controller is in the full stop mode, when the user presses the power button to turn it on, it will take longer to start than when the keyboard controller is in deep sleep mode. The main reason is that when the keyboard controller is restarted from the full stop mode, the keyboard controller takes time to execute the initialization program, including checking the status of each general input/output interface and executing the corresponding Program. In general, the time required for keyboard controller initialization is nearly 0.5 seconds. Therefore, if the computer is turned off each time, the keyboard controller enters the full stop mode, and the time required for the restart (>0.5 seconds) will affect the user.
由上述可知,若筆記型電腦關機時,鍵盤控制器係操作於深沉睡眠模式,則可降低啟動時間,但會額外消耗電力。反之,若筆記型電腦關機時,鍵盤控制器係操作於完全停機模式,雖可使功耗降至0,但重新啟動所需要的時間較長。由此可知,習知技術缺乏彈性,無法因應不同狀態而調整關機時的運作方式,實有改進之必要。As can be seen from the above, if the keyboard controller is operated in the deep sleep mode when the notebook is turned off, the startup time can be reduced, but the power consumption is additionally consumed. Conversely, if the notebook is powered off, the keyboard controller operates in a full shutdown mode, which reduces power consumption to zero, but takes longer to restart. It can be seen that the conventional technology lacks flexibility and cannot adjust the operation mode during shutdown according to different states, which is necessary for improvement.
因此,本發明之主要目的即在於提供一種電源供應系統及可攜式電子裝置。Accordingly, it is a primary object of the present invention to provide a power supply system and a portable electronic device.
本發明揭露一種電源管理方法,用於一電腦系統中提升電源管理的彈性,包含有產生一設定指令,使該電腦系統之一嵌入式控制器於該電腦系統關機時切換至一深沉睡眠模式或一完全停機模式;其中,於該深沉睡眠模式,該嵌入式控制器消耗特定電量,使該嵌入式控制器重新啟動時不需執行一初始化程序;其中,於該完全停機模式,該嵌入式控制器不消耗電量,該嵌入式控制器重新啟動時需執行該初始化程序。The invention discloses a power management method for improving the flexibility of power management in a computer system, which comprises generating a setting command, so that an embedded controller of the computer system switches to a deep sleep mode when the computer system is shut down or a full stop mode; wherein, in the deep sleep mode, the embedded controller consumes a specific amount of power, so that the embedded controller does not need to perform an initialization process when restarting; wherein, in the full stop mode, the embedded control The device does not consume power and the initialization process is required when the embedded controller is restarted.
為了提升電腦系統中電源管理的彈性,本發明係增加一機制,由使用者根據所需,自行設定嵌入式控制器(如鍵盤控制器)關機時的模式。In order to improve the flexibility of power management in a computer system, the present invention adds a mechanism for the user to set the mode when the embedded controller (such as a keyboard controller) is turned off according to the needs.
詳細來說,請參考第1圖,第1圖為本發明實施例一電源管理流程10之示意圖。電源管理流程10可提升一電腦系統中電源管理的彈性,其包含以下步驟:In detail, please refer to FIG. 1 , which is a schematic diagram of a power management process 10 according to an embodiment of the present invention. The power management process 10 can increase the flexibility of power management in a computer system, which includes the following steps:
步驟100:開始。Step 100: Start.
步驟102:產生一設定指令CMD_SET,設定指令CMD_SET用來將電腦系統之一嵌入式控制器的一旗標F設定為一第一值V1或一第二值V2。若旗標F等於第一值V1,執行步驟104;反之,若旗標F等於第二值V2,執行步驟106。Step 102: Generate a setting command CMD_SET, and set the command CMD_SET to set a flag F of an embedded controller of the computer system to a first value V1 or a second value V2. If the flag F is equal to the first value V1, step 104 is performed; otherwise, if the flag F is equal to the second value V2, step 106 is performed.
步驟104:於電腦系統關機時,將嵌入式控制器切換至一深沉睡眠模式。Step 104: Switch the embedded controller to a deep sleep mode when the computer system is shut down.
步驟106:於電腦系統關機時,將嵌入式控制器切換至一完全停機模式。Step 106: When the computer system is shut down, the embedded controller is switched to a full shutdown mode.
因此,透過電源管理流程10,使用者可以藉由設定指令CMD_SET,將嵌入式控制器的旗標F設定為第一值V1或第二值V2,使嵌入式控制器於電腦系統關機時切換至深沉睡眠模式或完全停機模式。亦即,當設定指令CMD_SET係將旗標F設定為第一值V1時,嵌入式控制器於電腦系統關機時係切換至深沉睡眠模式,則關機後,嵌入式控制器會消耗特定電量,用來快速喚醒鍵盤控制器,或是支援網路或數據機啟動等功能,使嵌入式控制器重新啟動時不需執行初始化程序。相反地,當設定指令CMD_SET係將旗標F設定為第二值V2時,嵌入式控制器於電腦系統關機時係切換至完全停機模式,則關機後,嵌入式控制器不會消耗電量,因此重新啟動時,嵌入式控制器需執行初始化程序。Therefore, through the power management process 10, the user can set the flag F of the embedded controller to the first value V1 or the second value V2 by setting the command CMD_SET, so that the embedded controller switches to the computer system when the computer system is shut down. Deep sleep mode or full stop mode. That is, when the setting command CMD_SET sets the flag F to the first value V1, the embedded controller switches to the deep sleep mode when the computer system is turned off, and after the shutdown, the embedded controller consumes a certain amount of power, To quickly wake up the keyboard controller, or to support network or modem boot functions, so that the embedded controller does not need to perform initialization procedures when restarting. Conversely, when the setting command CMD_SET sets the flag F to the second value V2, the embedded controller switches to the full stop mode when the computer system is turned off, and the embedded controller does not consume power after the shutdown, so When restarting, the embedded controller needs to perform an initialization procedure.
簡單來說,電腦系統的使用者可以根據所需,自行調整關機後嵌入式控制器的耗電量。例如,若預期將長時間不使用電腦系統,則使用者可將藉由設定指令CMD_SET,將嵌入式控制器的旗標F設定為第二值V2,使嵌入式控制器於關機時係切換至完全停機模式,以降低系統耗電量。若使用者只是短時間內不使用電腦系統,或是希望電腦系統的啟動速度,則使用者可將藉由設定指令CMD_SET,將嵌入式控制器的旗標F設定為第一值V1,使嵌入式控制器於關機時係切換至深沉睡眠模式;如此一來,重新開機時,嵌入式控制器不需執行初始化程序,以減少啟動所需的時間。Simply put, the user of the computer system can adjust the power consumption of the embedded controller after shutdown according to the needs. For example, if it is expected that the computer system will not be used for a long time, the user can set the flag F of the embedded controller to the second value V2 by setting the command CMD_SET, so that the embedded controller switches to the shutdown state when the computer is turned off. Full stop mode to reduce system power consumption. If the user does not use the computer system for a short period of time, or wants the startup speed of the computer system, the user can set the flag F of the embedded controller to the first value V1 by the setting command CMD_SET, so as to be embedded. The controller switches to deep sleep mode when it is turned off; thus, the embedded controller does not need to perform an initialization procedure when restarting to reduce the time required for startup.
由上述可知,藉由設定指令CMD_SET,使用者可自行調整電源管理,以降低關機後的電源消耗,抑或提升重開機時的效率。需注意的是,電源管理流程10僅用以說明本發明之精神,凡依此所做之變化或修飾皆屬本發明之範疇。舉例來說,步驟102中設定指令CMD_SET的產生方式、格式或內容等不限於任何特定規則,例如可透過基本輸入輸出系統(Basic Input/Output System)或應用程式等產生。若設定指令CMD_SET係由基本輸入輸出系統所產生,可由使用者自行設定;若設定指令CMD_SET係由應用程式所產生,則可達成一次性的控制,亦即每次重開機後,先前的設定會被清除。同理,旗標F的格式或內容,及第一值V1、第二值V2所對應的意義等,皆應依不同需求而適當變化,而此等變化應係本領域具通常知識者所熟習之技藝。再者,前述說明中嵌入式控制器不限於鍵盤控制器,亦可以是電腦系統中其它元件或模組的控制器。It can be seen from the above that by setting the command CMD_SET, the user can adjust the power management by himself to reduce the power consumption after the power is turned off, or to improve the efficiency when the power is turned on. It should be noted that the power management process 10 is only for explaining the spirit of the present invention, and any changes or modifications made thereto are within the scope of the present invention. For example, the manner, format, or content of the setting command CMD_SET in step 102 is not limited to any specific rule, and may be generated, for example, by a basic input/output system or an application. If the setting command CMD_SET is generated by the basic input/output system, it can be set by the user. If the setting command CMD_SET is generated by the application, a one-time control can be achieved, that is, after each reboot, the previous setting will be Cleared. Similarly, the format or content of the flag F, and the meaning corresponding to the first value V1 and the second value V2, should be appropriately changed according to different needs, and such changes should be familiar to those having ordinary knowledge in the field. Skills. Furthermore, in the foregoing description, the embedded controller is not limited to the keyboard controller, and may be a controller of other components or modules in the computer system.
另外,本發明所應用之電腦系統較佳地為筆記型電腦,但不以此為限,亦可以是桌上型電腦、平板電腦等。以筆記型電腦為例,透過本發明之電源管理流程10,使用者可自行決定要降低關機後的電源消耗,以延長可攜使用時間,或是犧牲一部分電源,而提升重開機時的效率。因此,本發明提供了彈性化的電源管理機制,使得使用者可根據所需決定關機後的電源消耗或重開機時的效率。In addition, the computer system to which the present invention is applied is preferably a notebook computer, but not limited thereto, and may also be a desktop computer, a tablet computer, or the like. Taking the notebook computer as an example, through the power management process 10 of the present invention, the user can decide to reduce the power consumption after the shutdown, to extend the portable use time, or sacrifice a part of the power supply, thereby improving the efficiency when the power is turned on. Therefore, the present invention provides an elasticized power management mechanism that allows the user to determine the power consumption after shutdown or the efficiency of restarting as needed.
綜上所述,透過本發明,使用者可自行設定電腦系統之嵌入式控制器關機後的操作模式,以選擇降低關機後的電源消耗,抑或提升重開機時的效率。因此,本發明可有效提升電腦系統中電源管理的彈性。In summary, according to the present invention, the user can set the operation mode of the embedded controller of the computer system after shutdown to select to reduce the power consumption after the shutdown, or to improve the efficiency during the restart. Therefore, the present invention can effectively improve the flexibility of power management in a computer system.
以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.
10...電源管理流程10. . . Power management process
100、102、104、106...步驟100, 102, 104, 106. . . step
CMD_SET...設定指令CMD_SET. . . Setting instruction
F...旗標F. . . Flag
V1...第一值V1. . . First value
V2...第二值V2. . . Second value
第1圖為本發明實施例一電源管理流程之示意圖。FIG. 1 is a schematic diagram of a power management process according to an embodiment of the present invention.
10...電源管理流程10. . . Power management process
100、102、104、106...步驟100, 102, 104, 106. . . step
CMD_SET...設定指令CMD_SET. . . Setting instruction
F...旗標F. . . Flag
V1...第一值V1. . . First value
V2...第二值V2. . . Second value
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW99103809ATWI432952B (en) | 2010-02-08 | 2010-02-08 | Power management method and computer system using the same |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW99103809ATWI432952B (en) | 2010-02-08 | 2010-02-08 | Power management method and computer system using the same |
| Publication Number | Publication Date |
|---|---|
| TW201128381A TW201128381A (en) | 2011-08-16 |
| TWI432952Btrue TWI432952B (en) | 2014-04-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW99103809ATWI432952B (en) | 2010-02-08 | 2010-02-08 | Power management method and computer system using the same |
| Country | Link |
|---|---|
| TW (1) | TWI432952B (en) |
| Publication number | Publication date |
|---|---|
| TW201128381A (en) | 2011-08-16 |
| Publication | Publication Date | Title |
|---|---|---|
| TWI464571B (en) | A power saving electronic device for a computer motherboard in a standby dormant state and a computer motherboard | |
| TWI386791B (en) | Transitioning a computing platform to a low power system state | |
| US8255725B2 (en) | Information processing apparatus and power-saving control method | |
| EP2267575B1 (en) | Electronic device for reducing power consumption of computer motherboard and motherboard thereof | |
| US8108704B2 (en) | Method for automatically switching power states | |
| JP3168471U (en) | Computer motherboard capable of reducing power consumption while suspended | |
| US9411402B2 (en) | Power control system and power control method | |
| JP5885881B2 (en) | Implementing a power off state on a computing device | |
| CN101154131A (en) | Information processing device and system state control method | |
| JP2007249660A (en) | Information processing apparatus and system state control method | |
| JP5548753B2 (en) | Integrated PC and its power management method | |
| JP2010262621A (en) | Computer system with power supply control, and power supply control method | |
| CN101907918A (en) | Computer system and related method for saving power consumption in standby/off state | |
| TWI693513B (en) | Server system and power saving method thereof | |
| CN102156523B (en) | Power management method and computer system | |
| TW200917006A (en) | Apparatus and method for power management | |
| JP4846862B2 (en) | Information processing apparatus and power saving control method | |
| JP2014102609A (en) | Information processing apparatus and control method | |
| CN101408792A (en) | Power management device and management method thereof | |
| TWI432952B (en) | Power management method and computer system using the same | |
| CN101872233B (en) | Automatic switch machine scheduling control method and system | |
| TWI751501B (en) | Control setting method for link state transition and electronic device using the same | |
| CN103246342B (en) | Electronic device and power management method thereof | |
| JP2021068074A (en) | Information processing system, information processing device and program | |
| CN104348514B (en) | Integrated circuit, electronic device and operation method thereof |