WO2005071531A1 - A method and device for start up computer - Google Patents

A method and device for start up computer Download PDF

Info

Publication number
WO2005071531A1
WO2005071531A1 PCT/CN2004/000460 CN2004000460W WO2005071531A1 WO 2005071531 A1 WO2005071531 A1 WO 2005071531A1 CN 2004000460 W CN2004000460 W CN 2004000460W WO 2005071531 A1 WO2005071531 A1 WO 2005071531A1
Authority
WO
WIPO (PCT)
Prior art keywords
computer
power
state
signal
operating system
Prior art date
Application number
PCT/CN2004/000460
Other languages
French (fr)
Chinese (zh)
Inventor
Junhong Jiang
Xiaolong Li
Original Assignee
Lenovo (Beijing) Limited
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 Lenovo (Beijing) Limited filed Critical Lenovo (Beijing) Limited
Publication of WO2005071531A1 publication Critical patent/WO2005071531A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Definitions

  • the invention belongs to the field of computer application technology, and particularly relates to a method and a device for realizing fast startup of a computer. Background of the invention
  • S3 state In this state, the computer is in the hibernation state suspended to the memory.
  • the computer saves the various field information of the computer before entering the hibernation state in the memory.
  • the memory keeps working under the +5 volt auxiliary voltage 5VSB power supply, and Other hardware is turned off.
  • S3 sleep wake event When the S3 sleep wake event is triggered, the computer reads and executes the saved field information from the memory, so that the computer returns to the state before entering S3 sleep;
  • S4 state In this state, the computer is in the hibernation state of the hard disk.
  • the computer saves all field information of the computer before entering S4 hibernation in the hard disk, and each hardware in the computer is turned off.
  • the S4 wake-up event is triggered by the power switch, the computer writes all the scene information stored in the hard disk before entering the S4 state to the original position through the operating system or the basic input and output system (BIOS), so that the hibernation state is consistent;
  • BIOS basic input and output system
  • G3 state. In this state, the external AC power of the computer is powered off, and only the battery on the computer's main board is powered.
  • Method 1 Set the default operation of the "Shutdown” button of the computer power management system to "Standby", so that when the user shuts down, the system will enter standby state S3, the computer suspends to memory, and when the system enters this S3 state, it will All information before the computer enters S3 hibernation is stored in the memory, where all the information stored in the memory includes central processing unit (CPU) information, operating system information, application information, various hardware information, and the value of related registers, etc. Computer field information; In this S3 state, all hardware in the computer is turned off, and only the memory is continuously refreshed under the +5 volt auxiliary voltage 5 VSB power supply to ensure the integrity of the content stored in the memory unit. Among them, when the computer is in the power-on SO state and the normal power-off S5 state, the computer power source is connected to AC power, and 5VSB exists as an auxiliary voltage.
  • CPU central processing unit
  • the computer When the computer is triggered by an S3 sleep wake event such as a keyboard wake-up or a mouse wake-up, the computer returns each scene information stored in the memory to the position where the information corresponds to before the S3 sleep state, and executes the information at the corresponding positions , So that the computer returns to the state before S3 sleep after the S3 sleep wake event is triggered.
  • S3 sleep wake event such as a keyboard wake-up or a mouse wake-up
  • the computer When the system AC is powered off, the corresponding 5VSB auxiliary voltage does not exist. Therefore, the computer cannot maintain the S3 state, and the system will enter the G3 state. In this G3 state, except for the battery power on the computer motherboard, external power is supplied. Shut down, after AC is restored, the system It will enter the S5 state, and then complete the boot process from the S5 state.
  • the S5 state is the state where the computer is normally shut down. This state cannot save the system state information before entering the S5 state. The information in the memory will be lost when entering this state, so that in the case of AC power failure, when the AC recovers and restarts, the normal boot process that lasts for nearly 40 seconds will still be used, so that fast boot cannot be achieved.
  • Method 2 Under a certain computer configuration, the computer's BIOS reduces the initialization of some components in the computer, thereby shortening the system startup time.
  • this solution although it can achieve fast boot and system AC power failure recovery Fast startup, but during the startup process, some of the computer's initialization actions will be reduced, and these initialization actions will inevitably be performed after the computer enters the system, which will inevitably reduce the system's operating speed, which is not conducive to the specific application of the user;
  • this method can achieve fast startup, the effect is not obvious. Compared with the first fast startup method, a delay of 25 to 35 seconds is still required. Summary of the invention
  • the main object of the present invention is to provide a method for achieving fast startup, which can still achieve fast startup after AC power is restored.
  • the present invention provides a method for achieving quick startup. If a computer has a system AC power loss AC, the method includes:
  • Step A The computer records the power-down information and causes the computer's operating system to enter the S4 / G3 state;
  • Step B Determine whether the AC is restored. If not, the computer remains in the S4 / G3 state and return to step B until the AC is restored. If so, the operating system starts automatically and the operating system according to the saved in step A during the startup process. Power-down information enters the S3 state from the S4 / G3 state. Then, the computer operating system maintains the S3 state until the S3 trigger event is triggered and the computer enters the operating system.
  • the computer recording the power-down information in step A includes:
  • the computer mainboard receives a power-down notification signal, and determines from the power-down notification signal that a system AC power failure is currently occurring on the computer.
  • the computer mainboard records a value on a battery-powered register of the computer mainboard as power-down information.
  • the power-down notification signal is a high-level ON-BATT signal sent by the backup battery to the motherboard, and the motherboard determines that a system AC power failure has occurred according to the high-level status of the signal. Then, the step of recording power-down information on a register is performed.
  • the power-off information recorded by the computer in step A includes:
  • the idle general-purpose input and output GPIO bits on the south bridge of the computer motherboard detect the received ON-BATT signal. When the signal is detected to be at a high level, the value is recorded in a register powered by the computer motherboard on the south bridge of the motherboard. To indicate that the computer has lost power.
  • the power-down notification signal is 3.3 VSB
  • the computer motherboard determines that a system AC power failure has occurred based on the presence of the 3.3 VSB, and then executes the step of recording power-down information on a register.
  • step B the operating system entering the S3 state from the S4 / G3 state according to the power-down information saved in step A during the startup process includes:
  • Step B1 The computer's basic input-output system BIOS reads a value recorded by the register from the register powered by the battery of the computer motherboard, and judges based on the value that the computer has a system AC power failure;
  • Step B2 The BIOS continuously sends an instruction to enter the S3 state to the operating system until the operating system receives and responds to the instruction, and the operating system enters the S3 state according to the received instruction to enter the S3 state.
  • step A when there is a backup battery power supply on the computer motherboard, in step A, the computer's operating system enters the S4 state; when there is no backup battery power supply on the computer motherboard, step A The computer's operating system enters the G3 state.
  • the present invention further provides a device for achieving quick startup, which at least includes: a first pulse generation module, a detection module, a second pulse generation module, and a startup signal generation link module, wherein:
  • the first pulse generation module is used to generate a trigger pulse that triggers sleep after receiving the power-down notification signal and send the pulse to the detection module, so that the detection module leads the operating system 1 to S4 / G3 through the power-on signal generation link module.
  • the detection module is used to record the power-down information according to the power-down notification signal when the system AC is powered off, and is also used to send the power-down recovery signal to the second pulse generation module according to the recorded power-down information when the AC recovers;
  • the second pulse generation module is used to generate a trigger pulse and send it to the detection module after receiving the power-down recovery signal sent by the detection module, so that the detection module guides the operating system from the S4 / G3 state through the power-on signal generation link module.
  • the power-on signal generation module is used to send a power on / off signal to the power supply of the computer according to the signal received by the self-test module.
  • the device further includes a backup battery, which is used to send an ON-BATT signal as a power failure notification signal to the first pulse generation module and the detection module when the AC system is powered off.
  • the device and method provided by the present invention can enable the computer to enter and maintain the S3 state after AC power failure, so that a fast boot can be achieved when the S3 trigger event is triggered, thereby reducing the time it takes to enter the operating system when booting. time. Therefore, the method and the device provided by the present invention are beneficial to avoid the long waiting time of the user during the system startup process, thereby bringing convenience to the user, and the present invention can realize fast booting for the special case of AC power failure. Therefore, the present invention has a wider application range. Brief description of the drawings
  • FIG. 1 is an overall flowchart of the present invention for realizing fast booting.
  • FIG. 2 is a flowchart of quick startup when the system AC is powered off and restored according to the present invention.
  • FIG. 3 is a block diagram of a device for implementing fast booting provided by the present invention in an embodiment of the present invention. Mode of Carrying Out the Invention
  • the invention is a method and a device for realizing fast booting.
  • the power failure information is recorded in a corresponding memory, and when the AC recovers, according to the recorded power failure information
  • the computer's operating system enters and maintains the S3 state until the S3 trigger event is triggered to achieve fast boot.
  • the detection module detects an AC power failure event, and the detection module uses the pulses generated by the first pulse generation module and the second pulse generation module to control the power-on signal generation module to operate the computer.
  • the system enters and stays in the S3 state, so as to meet the needs of fast startup.
  • the present invention implements fast booting by entering the operating system from the S3 state.
  • the quick booting includes the following steps:
  • Step 100 According to the user's operation, the operating system of the computer is in any one of the states S0, S3, S4, and S5.
  • Step 101 The operating system determines whether a system AC power failure has occurred. If so, step 102 and subsequent steps are performed. Otherwise, the operating system maintains the current state and returns to step 101 until AC power failure occurs, and then step 102 or the operating system is performed. After changing the current state according to the user's operation, the process ends;
  • Step 102 The computer records AC power-down information, and after the AC recovers, enables the operating system Enter and maintain the S3 state. After the user triggers the S3 trigger event, the S3 state enters the operating system, thereby achieving fast boot.
  • step 102 specifically includes the following steps:
  • Step 200 After the system is powered off, the computer records the power-down information.
  • the power-down information is recorded according to the level state of the power-down information indicator (ON-VBA) signal.
  • the ON-VBA signal is the power-off signal identifier (ON-BATT M signal from the backup battery, and when there is no backup battery on the motherboard, the ON-VBA signal is the 3.3VSB signal on the motherboard, the ON The -VBA signal is used to indicate whether an AC power failure has occurred.
  • the system records power-down information according to the ON-VBA signal.
  • the specific implementation is as follows:
  • Method 1 When the backup battery is powered on the motherboard:
  • the backup battery on the computer motherboard always sends a power-down notification signal ON-BATT to the motherboard, which is always in a low-level state, only when the computer is in the system AC power-off state
  • the ON-BATT signal is pulled high to a high-level state.
  • the motherboard receives the high-level ON-BATT signal and records the power-down information in a register of the motherboard;
  • Method 2 When there is no backup battery power supply on the motherboard: If the computer loses AC power, then 3.3VSB does not exist. Based on the 3.3VSB non-existence judgment, the motherboard obtains the current system AC power failure, and records it in the register of the motherboard. Electrical information; Among them, 3.3VSB is a power supply voltage on the motherboard. When the computer is still in the S5 state while the AC plug is still connected to the power supply, 3.3VSB exists; and when the computer is in the G3 state when the AC plug is not connected to the power supply, 3.3VSB Does not exist, therefore, the present invention uses the 3.3 VSB signal as a signal for determining whether the AC is powered off;
  • the main board is provided with a backup battery for power supply. Therefore, the embodiment of the present invention adopts the first manner to implement recording of power-down information, and the specific implementation is as follows:
  • the idle general-purpose input and output on the south bridge of the motherboard detects the received ON-BATT signal. When this signal is detected to be at a high level, the corresponding value is recorded in the corresponding register on the south bridge of the motherboard.
  • a 1 is recorded in the M-BATT register of the south bridge of the motherboard, which is used to indicate that the previous state of the system has a power-down record.
  • a 0 in the M-BATT register indicates that the system AC power supply is normal.
  • different registers on the motherboard may be used to record the power-off information, but the used registers must be powered by the computer motherboard battery.
  • a register which can ensure that the values stored on it are not lost under the states of S3, S4, S5, and G3, for the BIOS to query the power-down information recorded in the register when the system is restarted; in other embodiments of the present invention You can also use other different values to record in the corresponding register to indicate the power-down situation of the system. The value recorded in this register and each value and power-down Correspondence relationship does not affect the state of implementation of the invention;
  • Step 201 After the computer is powered off, the computer enters the S4 / G3 state.
  • the backup battery module is provided on the motherboard. Therefore, in this step, the computer enters the S4 state.
  • S4 refers to the state where the computer is suspended to the hard disk, which is different from the S3 state where the computer is suspended to the memory.
  • S4 refers to the state where the computer is suspended to the hard disk, which is different from the S3 state where the computer is suspended to the memory.
  • the computer When the computer enters the S4 state, it will enter the S4 state. All computer field information before hibernation is stored in the hard disk. In this S4 state, the hardware in the computer is turned off.
  • the computer will save it in the operating system or BIOS All computer field information before the S4 state in the hard disk is written to the original location as it is, so that the hibernation state is consistent;
  • Step 202 Determine whether the AC is restored, and if so, perform step 203 and subsequent steps, otherwise, return to step 201 to keep the computer in the S4 / G3 state, and perform step 203 and subsequent steps until the AC is restored;
  • Steps 203 to 204 The system recovers from the AC according to the preset settings in the BIOS. After the automatic startup, during the system startup process, the BIOS queries the power-off record in step 200 to determine whether the computer has been powered off, and if so, perform step 205 and subsequent steps, otherwise, perform step 208;
  • the BIOS reads the recorded value from the M-BATT register. If the value is 1, it is determined that the computer has been powered off. If the value is 0, it is determined that the computer has not been powered off.
  • Steps 205 to 207 The BIOS sends an instruction to the system to enter the S3 state, and the system receives and responds to the instruction. Then, the system enters the S3 state, and after triggering the S3 state trigger event, the computer enters the operating system according to the trigger event to end the fast The process of booting; thus, the computer enters and maintains the S3 state after AC power is restored, and the system can be awakened by triggering the S3 trigger event, thereby achieving the purpose of fast startup;
  • the GPIO signal on the south bridge of the computer motherboard is used to trigger the power-on (POWERBT) signal, and the POWERBT is used as an instruction to the system to enter the S3 state by the BIOS, and the system enters the S3 state after receiving the instruction;
  • POWERBT power-on
  • Step 208 After the BIOS determines that the computer has not been powered down through inquiry, the BIOS boots the system into the S5 state, and then executes step 207.
  • the BIOS boots the system from the S5 state to the operating system according to a trigger action of the user, for example, by pressing a boot button.
  • the content of this step 208 is content that can be implemented by a person skilled in the art without creative labor, and the BIOS enters the operating system through the S5 state that is not within the scope of fast booting.
  • This step included in this process is only for the realization of this process. Strictly, this step should not be considered as a necessary step to achieve fast booting according to the present invention.
  • the present invention uses the circuit device shown in FIG. 3 to implement the fast boot.
  • the circuit device specifically includes: a first pulse generating module 301, a detection The module 302, the second pulse generating module 303, the start-up signal generating link module 304, and the backup battery 305, of which: If the computer has a system AC power failure, the backup battery 305 immediately starts and sends a high-potential ON-BATT signal to the first month permanent charge generation module 301.
  • the first pulse generation module 301 After the first pulse generation module 301 receives the ON-BATT signal, Generate a trigger pulse SLEEPS + for triggering sleep, and send the trigger pulse to the detection module 302; after receiving the SLEEPSW +, the detection module 302 records power-down information according to the ON-BATT signal received from the backup battery 305, and The detection module 302 sends a power-on request signal PWROK to the power-on signal generation module 304. After receiving the PWROK signal, the power-on signal generation module 304 sends a host power-on signal PS-ON #, thereby turning on the host power and allowing the operating system to automatically enter S4 status;
  • the detection module 302 detects that the AC has recovered.
  • the detection module 302 turns on the power of the host through the power-on signal generation link module 304 to make the system wake up from the S4 state;
  • the detection module 302 determines whether a power failure has occurred according to the saved power-down information. If it is found that the system has lost power, the detection module 302 will continuously issue AC after entering the operating system -UP signal to the second pulse generation module 303. After receiving the AC-UP signal, the second pulse generation module 303 continuously generates a trigger pulse PWRBT # indicating that the AC power is restored, and sends the trigger pulse to the detection module 302, the detection module 302 After receiving the pulse, it continuously sends a power-on request PW OK to the power-on signal generation link module 304, and the power-on signal generation link module 304 suspends the computer to the memory, so that the system enters the S3 state;
  • the computer can always be maintained in the S3 state, and the user can quickly enter the operating system after the user triggers the S3 trigger event, thereby achieving fast booting;
  • the circuit device provided by the present invention for realizing fast startup may not have a backup battery, and does not affect the implementation of the present invention.
  • the detection module and the first pulse generation module determine whether a system AC power failure occurs according to the 3.3 VSB on the motherboard, and record the power down information when the system AC power failure occurs, so that the operating system enters the G3 state.
  • the detection The module, the second pulse generating module and the power-on signal generating link module enable the system to enter from the G3 state and maintain the S3 state, so as to realize fast booting when the user triggers the S3 trigger event.

Abstract

The present invention relates to a method and device for rapidly starting up computer, the key of the method is: If the alternating current (AC) shut down in the computer, rapidly starting up the computer is achieved by the following steps of: Step A: The computer records the shut-down information, and makes the operating system of the computer into stage S4/G3; Step B: judge whether the AC has been resumed, if not, the computer keeps in stage S4/G3, and returns back to step B; if yes, the operating system starts up automatically, and the operating system turns from stage S4/G3 into stage S3 according to the shut-down information stored in Step A in starting up the computer, then the operating system keeps in stage S3 until triggering S3 the trigger event to rapidly start up the computer. The device provided in the present invention can detect the shut-down of AC and store the shut-down information, and keep the computer in stage S3 according to the shut-down information to meet the need of rapidly starting up the computer.

Description

一种实现快速开机的方法及装置  Method and device for realizing fast startup
技术领域 Technical field
本发明属于计算机应用技术领域, 尤其涉及一种实现计算机快速开 机的方法及装置。 发明背景  The invention belongs to the field of computer application technology, and particularly relates to a method and a device for realizing fast startup of a computer. Background of the invention
随着计算机的操作系统的日益庞大, 系统的启动时间越来越长, 尽 管计算机技术的飞跃发展使得计算机的处理速度和计算速度越来越快, 但由于计算机处理速度和计算速度对缩短系统启动时间并没有明显的 作用, 因此使得计算机的启动时间随着系统的不断庞大而日益增加。  As the computer's operating system becomes larger and larger, the system's startup time is getting longer and longer. Although the rapid development of computer technology has made the computer's processing speed and calculation speed faster and faster, the computer processing speed and calculation speed have shortened the system startup. Time does not play a significant role, so the startup time of the computer increases with the increasing size of the system.
在本发明中, 涉及到以下的几个计算机所处状态, 分别是:  In the present invention, the following computer states are involved:
SO状态, 在此状态下, 计算机处于正常开机状态;  SO state, in which the computer is in a normal power-on state;
S3状态, 在此状态下, 计算机处于挂起到内存的休眠状态, 计算机 将进入休眠状态之前的计算机的各个现场信息保存在内存中, 内存在 +5 伏的辅助电压 5VSB供电下保持工作, 而其它的硬件则处于关闭状态; 在触发 S3休眠唤醒事件时, 计算机从内存中读取并执行保存的各个现 场信息, 从而使计算机恢复至进入 S3休眠之前的状态;  S3 state. In this state, the computer is in the hibernation state suspended to the memory. The computer saves the various field information of the computer before entering the hibernation state in the memory. The memory keeps working under the +5 volt auxiliary voltage 5VSB power supply, and Other hardware is turned off. When the S3 sleep wake event is triggered, the computer reads and executes the saved field information from the memory, so that the computer returns to the state before entering S3 sleep;
S4状态, 在此状态下, 计算机处于挂起到硬盘的休眠状态, 计算机 将进入 S4休眠前的计算机的各个现场信息保存在硬盘中, 计 机中的 各个硬件处于关闭状态, 在通过例如按动电源开关而触发 S4唤醒事件 时 , 计算机通过操作系统或基本输入输出系统( BIOS )将保存在硬盘中 的进入 S4状态前的各个现场信息原样写入原先的位置, 从而 ^到休眠 状态前后一致;  S4 state. In this state, the computer is in the hibernation state of the hard disk. The computer saves all field information of the computer before entering S4 hibernation in the hard disk, and each hardware in the computer is turned off. When the S4 wake-up event is triggered by the power switch, the computer writes all the scene information stored in the hard disk before entering the S4 state to the original position through the operating system or the basic input and output system (BIOS), so that the hibernation state is consistent;
S5 状态, 在此状态下, 计算机处于正常关机状态, 且外部交流电 AC仍然向计算机供电; S5 state, in which the computer is in a normal shutdown state and external AC power AC is still powering the computer;
G3状态, 在此状态下, 计算机的外部交流电 AC掉电, 只有计算机 主板上的电池供电。  G3 state. In this state, the external AC power of the computer is powered off, and only the battery on the computer's main board is powered.
为了缩短系统启动时间以为用户提供快速的开机体验,现有技术中, 采用如下两种方式实现快速开机:  In order to shorten the system startup time to provide users with a fast startup experience, in the prior art, the following two methods are used to achieve fast startup:
方式 1 : 将计算机电源管理系统的 "关机 " 按钮的默认操作设置为 "待机", 从而, 当用户关机时, 系统将进入待机状态 S3 , 计算机挂起 到内存, 系统进入该 S3状态时, 将计算机进入 S3休眠前的所有信息保 存在内存中,其中,保存在内存中的这些所有信息包括中央处理器( CPU ) 信息、 操作系统信息、 应用程序信息、 各个硬件信息以及相关寄存器的 值等所有计算机现场信息; 在该 S3状态下, 计算机中的各个硬件均处 于关闭状态,只有内存仍在 +5伏的辅助电压 5 VSB供电下不断进行刷新 以保证内存单元中所保存内容的完整性。 其中, 在计算机处于开机 SO 状态和正常关机 S5状态时, 计算机电源连接交流电, 5VSB作为辅助电 压均存在。  Method 1: Set the default operation of the "Shutdown" button of the computer power management system to "Standby", so that when the user shuts down, the system will enter standby state S3, the computer suspends to memory, and when the system enters this S3 state, it will All information before the computer enters S3 hibernation is stored in the memory, where all the information stored in the memory includes central processing unit (CPU) information, operating system information, application information, various hardware information, and the value of related registers, etc. Computer field information; In this S3 state, all hardware in the computer is turned off, and only the memory is continuously refreshed under the +5 volt auxiliary voltage 5 VSB power supply to ensure the integrity of the content stored in the memory unit. Among them, when the computer is in the power-on SO state and the normal power-off S5 state, the computer power source is connected to AC power, and 5VSB exists as an auxiliary voltage.
当计算机被例如键盘唤醒或鼠标唤醒的 S3休眠唤醒事件触发时,计 算机将内存中所保存的各个现场信息均返回至这些信息在 S3休眠状态 之前所对应的位置, 并在对应位置分别执行这些信息, 从而使计算机在 经 S3休眠唤醒事件触发后恢复到 S3休眠之前的状态。  When the computer is triggered by an S3 sleep wake event such as a keyboard wake-up or a mouse wake-up, the computer returns each scene information stored in the memory to the position where the information corresponds to before the S3 sleep state, and executes the information at the corresponding positions , So that the computer returns to the state before S3 sleep after the S3 sleep wake event is triggered.
该种快速开机方式虽然能够大大缩短开机时间, 但是此种快速开机 方式无法解决系统掉电,也就是通常提供给计算机的 220V交流电( AC ) 断电后的快速开机问题, 其主要原因在于:  Although this quick boot method can greatly shorten the boot time, this quick boot method cannot solve the system power failure, that is, the fast boot problem after the 220V alternating current (AC) that is usually provided to the computer is powered off. The main reasons are:
当系统 AC掉电后, 由于相应的 5VSB辅助电压相应不存在, 因此, 计算机无法保持 S3状态, 系统将进入 G3状态, 在该 G3状态下, 除了 计算机主板上的电池供电外, 外部供电均被切断, 在 AC恢复后, 系统 将进入 S5状态, 然后再由 S5状态完成开机过程, 其中, 该 S5状态为 计算机正常关机后所处的状态, 该状态不能保存在进入该 S5状态之前 的系统状态信息, 在掉电前保存在内存中的信息会在进入该状态时丟 失, 从而使得在系统 AC掉电的情况下, AC恢复从而重新开机时, 仍 会采用历时将近 40秒的正常开机过程, 从而无法实现快速开机。 When the system AC is powered off, the corresponding 5VSB auxiliary voltage does not exist. Therefore, the computer cannot maintain the S3 state, and the system will enter the G3 state. In this G3 state, except for the battery power on the computer motherboard, external power is supplied. Shut down, after AC is restored, the system It will enter the S5 state, and then complete the boot process from the S5 state. The S5 state is the state where the computer is normally shut down. This state cannot save the system state information before entering the S5 state. The information in the memory will be lost when entering this state, so that in the case of AC power failure, when the AC recovers and restarts, the normal boot process that lasts for nearly 40 seconds will still be used, so that fast boot cannot be achieved.
方式 2:在计算机配置一定的情况下,计算机的 BIOS减少对计算机 中部分部件的初始化动作, 从而缩短系统的启动时间; 采用此种方案, 虽然能够实现快速开机, 以及系统 AC掉电恢复后的快速开机, 但是开 机过程中会减少计算机一些部件的初始化动作 , 而这些初始化动作在计 算机进入系统后又不可避免的会被执行, 必然会降低系统的运行速度, 不利于用户的具体应用; 另外, 该种方式虽然能够实现快速开机, 但效 果不 ί艮明显, 相对于第一种快速开机方式仍需要延迟 25~35秒。 发明内容  Method 2: Under a certain computer configuration, the computer's BIOS reduces the initialization of some components in the computer, thereby shortening the system startup time. With this solution, although it can achieve fast boot and system AC power failure recovery Fast startup, but during the startup process, some of the computer's initialization actions will be reduced, and these initialization actions will inevitably be performed after the computer enters the system, which will inevitably reduce the system's operating speed, which is not conducive to the specific application of the user; In addition, Although this method can achieve fast startup, the effect is not obvious. Compared with the first fast startup method, a delay of 25 to 35 seconds is still required. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种实现快速开机的方法, 该方法能够在 AC掉电恢复后仍然实现快速开机。  In view of this, the main object of the present invention is to provide a method for achieving fast startup, which can still achieve fast startup after AC power is restored.
为实现上述目的, 本发明提供了一种实现快速开机的方法, 如果计 算机出现系统交流电 AC掉电, 该方法包括:  In order to achieve the foregoing objective, the present invention provides a method for achieving quick startup. If a computer has a system AC power loss AC, the method includes:
步驟 A: 计算机记录掉电信息, 并使计算机的操作系统进入 S4/G3 状态;  Step A: The computer records the power-down information and causes the computer's operating system to enter the S4 / G3 state;
步骤 B: 判断 AC是否恢复, 如果不是, 则计算机保持 S4/G3状态, 返回步骤 B, 直至 AC恢复; 如果是, 则操作系统自动启动, 并且操作 系统在启动过程中根据步骤 A中所保存的掉电信息,由 S4/G3状态进入 S3状态, 然后, 计算机操作系统保持 S3状态, 直至触发 S3触发事件, 计算机进入操作系统。 其中, 步骤 A所述计算机记录掉电信息包括: Step B: Determine whether the AC is restored. If not, the computer remains in the S4 / G3 state and return to step B until the AC is restored. If so, the operating system starts automatically and the operating system according to the saved in step A during the startup process. Power-down information enters the S3 state from the S4 / G3 state. Then, the computer operating system maintains the S3 state until the S3 trigger event is triggered and the computer enters the operating system. Wherein, the computer recording the power-down information in step A includes:
计算机主板收到掉电通知信号, 根据该掉电通知信号判断得到计算 机当前出现系统 AC掉电, 计算机主板在由计算机主板电池供电的寄存 器上记录数值, 以作为掉电信息。  The computer mainboard receives a power-down notification signal, and determines from the power-down notification signal that a system AC power failure is currently occurring on the computer. The computer mainboard records a value on a battery-powered register of the computer mainboard as power-down information.
其中, 计算机主板具有备用电池供电时, 所述掉电通知信号为备用 电池向主板发送的高电平状态的 ON-BATT信号, 主板根据该信号的高 电平状态判断得到发生系统 AC掉电, 则执行所述在寄存器上记录掉电 信息的步骤。  When the computer motherboard has a backup battery for power supply, the power-down notification signal is a high-level ON-BATT signal sent by the backup battery to the motherboard, and the motherboard determines that a system AC power failure has occurred according to the high-level status of the signal. Then, the step of recording power-down information on a register is performed.
其中, 步骤 A所述计算机记录掉电信息包括:  Wherein, the power-off information recorded by the computer in step A includes:
计算机主板南桥上空闲的通用输入输出 GPIO 位侦测接收到的 ON-BATT信号, 在侦测得到该信号处于高电平时, 则在主板南桥上由 计算机主板供电的寄存器中记录数值, 用以表示计算机发生掉电。  The idle general-purpose input and output GPIO bits on the south bridge of the computer motherboard detect the received ON-BATT signal. When the signal is detected to be at a high level, the value is recorded in a register powered by the computer motherboard on the south bridge of the motherboard. To indicate that the computer has lost power.
其中, 计算机主板没有备用电池供电时, 所述掉电通知信号为 3.3VSB,计算机主板根据该 3.3VSB不存在判断得到发生系统 AC掉电, 则执行所述在寄存器上记录掉电信息的步骤。  Wherein, when the computer motherboard is not powered by a backup battery, the power-down notification signal is 3.3 VSB, and the computer motherboard determines that a system AC power failure has occurred based on the presence of the 3.3 VSB, and then executes the step of recording power-down information on a register.
其中, 步骤 B中, 所述操作系统在启动过程中根据步骤 A中所保存 的掉电信息由 S4/G3状态进入 S3状态包括:  Wherein, in step B, the operating system entering the S3 state from the S4 / G3 state according to the power-down information saved in step A during the startup process includes:
步骤 B1 : 计算机的基本输入输出系统 BIOS从所述由计算机主板电 池供电的寄存器中读取该寄存器所记录的数值, 根据该数值判断得到计 算机曾经出现系统 AC掉电;  Step B1: The computer's basic input-output system BIOS reads a value recorded by the register from the register powered by the battery of the computer motherboard, and judges based on the value that the computer has a system AC power failure;
步骤 B2: BIOS向操作系统不断发出进入 S3状态的指令, 直至操作 系统收到并响应该指令为止, 操作系统根据收到的进入 S3状态的指令 进入 S3状态。  Step B2: The BIOS continuously sends an instruction to enter the S3 state to the operating system until the operating system receives and responds to the instruction, and the operating system enters the S3 state according to the received instruction to enter the S3 state.
其中, 在计算机主板上有备用电池供电时, 步骤 A中, 计算机的操 作系统进入 S4状态; 在计算机的主板上没有备用电池供电时, 步骤 A 中, 计算机的操作系统进入 G3状态。 Wherein, when there is a backup battery power supply on the computer motherboard, in step A, the computer's operating system enters the S4 state; when there is no backup battery power supply on the computer motherboard, step A The computer's operating system enters the G3 state.
为实现上述目的, 本发明还提供了一种实现快速开机的装置, 该装 置至少包括: 第一脉冲发生模块、 检测模块、 第二脉冲发生模块、 以及 开机信号产生环节模块, 其中:  To achieve the above objective, the present invention further provides a device for achieving quick startup, which at least includes: a first pulse generation module, a detection module, a second pulse generation module, and a startup signal generation link module, wherein:
第一脉冲发生模块用于在收到掉电通知信号后, 产生触发休眠的触 发脉冲并将该脉冲发送给检测模块, 以使得检测模块通过开机信号产生 环节模块将操作系统 1导进入 S4/G3状态;  The first pulse generation module is used to generate a trigger pulse that triggers sleep after receiving the power-down notification signal and send the pulse to the detection module, so that the detection module leads the operating system 1 to S4 / G3 through the power-on signal generation link module. Status
检测模块用于在系统 AC掉电时,根据掉电通知信号记录掉电信息, 还用于在 AC恢复时, 根据记录的掉电信息向第二脉冲发生模块发送掉 电恢复信号;  The detection module is used to record the power-down information according to the power-down notification signal when the system AC is powered off, and is also used to send the power-down recovery signal to the second pulse generation module according to the recorded power-down information when the AC recovers;
第二脉冲发生模块用于在接收到检测模块所发送的掉电恢复信号 后, 产生触发脉冲并发送至检测模块, 以使得检测模块通过开机信号产 生环节模块将操作系统由 S4/G3状态引导进入 S3状态;  The second pulse generation module is used to generate a trigger pulse and send it to the detection module after receiving the power-down recovery signal sent by the detection module, so that the detection module guides the operating system from the S4 / G3 state through the power-on signal generation link module. S3 status;
开机信号产生环节模块用于根据自检测模块收到的信号, 向计算机 主机电源发送开启 /关闭电源的信号。  The power-on signal generation module is used to send a power on / off signal to the power supply of the computer according to the signal received by the self-test module.
其中, 所述装置进一步包括备用电池, 该备用电池用于在出现 AC 系统掉电时向第一脉冲发生模块和检测模块发送作为掉电通知信号的 ON-BATT信号。  Wherein, the device further includes a backup battery, which is used to send an ON-BATT signal as a power failure notification signal to the first pulse generation module and the detection module when the AC system is powered off.
可见, 利用本发明所提供的装置及方法, 能够使得计算机发生 AC 掉电后, 进入并保持 S3状态, 以使得在触发 S3触发事件时能够实现快 速开机, 从而减少了开机时进入操作系统所历经的时间。 因此, 本发明 所提供的方法及装置有利于避免使用者在系统启动过程中的漫长等待, 从而为用户带来使用上的便利, 并且, 本发明能够针对 AC掉电这一特 殊情况实现快速开机, 从而使得本发明具有更广的应用范围。 附图简要说明 It can be seen that the device and method provided by the present invention can enable the computer to enter and maintain the S3 state after AC power failure, so that a fast boot can be achieved when the S3 trigger event is triggered, thereby reducing the time it takes to enter the operating system when booting. time. Therefore, the method and the device provided by the present invention are beneficial to avoid the long waiting time of the user during the system startup process, thereby bringing convenience to the user, and the present invention can realize fast booting for the special case of AC power failure. Therefore, the present invention has a wider application range. Brief description of the drawings
图 1为本发明实现快速开机的整体流程图。  FIG. 1 is an overall flowchart of the present invention for realizing fast booting.
图 2为本发明在系统 AC掉电并恢复时, 实现快速开机的流程图。 图 3为本发明一实施例中, 本发明所提供的实现快速开机的装置的 模块图。 实施本发明的方式  FIG. 2 is a flowchart of quick startup when the system AC is powered off and restored according to the present invention. FIG. 3 is a block diagram of a device for implementing fast booting provided by the present invention in an embodiment of the present invention. Mode of Carrying Out the Invention
下面结合附图对本发明进行详细描述。  The present invention is described in detail below with reference to the drawings.
本发明为一种实现快速开机的方法及装置, 在该方法中, 当计算机 出现系统 AC掉电时, 将掉电信息记录在相应的存储器中 , 在 AC恢复 时, 根据所记录的掉电信息, 计算机的操作系统进入并保持 S3状态, 直至触发 S3 触发事件实现快速开机。 在本发明所提供的装置中, 利用 检测模块检测 AC掉电这一事件, 并且, 检测模块利用第一脉冲发生模 块和第二脉冲发生模块所产生的脉冲 , 控制开机信号产生模块使计算机 的操作系统进入并保持在 S3状态, 从而满足快速开机的需要。  The invention is a method and a device for realizing fast booting. In this method, when a system AC power failure occurs in a computer, the power failure information is recorded in a corresponding memory, and when the AC recovers, according to the recorded power failure information The computer's operating system enters and maintains the S3 state until the S3 trigger event is triggered to achieve fast boot. In the device provided by the present invention, the detection module detects an AC power failure event, and the detection module uses the pulses generated by the first pulse generation module and the second pulse generation module to control the power-on signal generation module to operate the computer. The system enters and stays in the S3 state, so as to meet the needs of fast startup.
下面结合附图对本发明进行详细描述。  The present invention is described in detail below with reference to the drawings.
参见图 1,本发明采用从 S3状态进入操作系统的方式实现快速开机, 该快速开机包括以下步骤:  Referring to FIG. 1, the present invention implements fast booting by entering the operating system from the S3 state. The quick booting includes the following steps:
步骤 100: 根据使用者的操作, 计算机的操作系统处于 S0、 S3、 S4 和 S5状态中的任意一种状态;  Step 100: According to the user's operation, the operating system of the computer is in any one of the states S0, S3, S4, and S5.
步骤 101 : 操作系统判断是否出现系统 AC掉电, 如果是, 则执行 步骤 102及其后续步驟,否则,操作系统保持当前状态,并返回步骤 101 , 直至出现 AC掉电执行步驟 102, 或操作系统根据使用者的操作改变当 前状态后, 结束本流程;  Step 101: The operating system determines whether a system AC power failure has occurred. If so, step 102 and subsequent steps are performed. Otherwise, the operating system maintains the current state and returns to step 101 until AC power failure occurs, and then step 102 or the operating system is performed. After changing the current state according to the user's operation, the process ends;
步骤 102: 计算机记录 AC掉电信息, 并在 AC恢复后, 使操作系统 进入并保持 S3状态, 在使用者触发 S3触发事件后, 由 S3状态进入操 作系统, 从而实现快速开机。 Step 102: The computer records AC power-down information, and after the AC recovers, enables the operating system Enter and maintain the S3 state. After the user triggers the S3 trigger event, the S3 state enters the operating system, thereby achieving fast boot.
其中, 在本发明实施例中, 参见图 2, 实现上述步骤 102具体包括 以下步騰:  In the embodiment of the present invention, referring to FIG. 2, implementing the above step 102 specifically includes the following steps:
步驟 200: 系统掉电后, 该计算机记录掉电信息, 在本发明实施例 中, 采用根据掉电信息标志符(ON-VBA )信号的电平状态记录掉电信 息,在主板具有备用电池时,该 ON-VBA信号为备用电池所发出的掉电 信号标志符( ON-BATT M言号,而在主板上没有备用电池时,该 ON-VBA 信号则为主板上的 3.3VSB信号, 该 ON-VBA信号用以表示是否发生了 AC掉电, 系统根据该 ON-VBA信号来记录掉电信息, 其具体实现方式 如下:  Step 200: After the system is powered off, the computer records the power-down information. In the embodiment of the present invention, the power-down information is recorded according to the level state of the power-down information indicator (ON-VBA) signal. When the motherboard has a backup battery, , The ON-VBA signal is the power-off signal identifier (ON-BATT M signal from the backup battery, and when there is no backup battery on the motherboard, the ON-VBA signal is the 3.3VSB signal on the motherboard, the ON The -VBA signal is used to indicate whether an AC power failure has occurred. The system records power-down information according to the ON-VBA signal. The specific implementation is as follows:
方式一, 在主板上具有备用电池供电时: 计算机主板上的备用电池 向主板始终发送一个掉电通知信号 ON-BATT, 该信号始终处于低电平 状态, 只有在计算机处于系统 AC掉电状态时, 该 ON-BATT信号才被 拉高为高电平状态, 在发生系统 AC掉电时, 主板收到该高电平状态的 ON-BATT信号后, 在主板的寄存器中记录掉电信息;  Method 1: When the backup battery is powered on the motherboard: The backup battery on the computer motherboard always sends a power-down notification signal ON-BATT to the motherboard, which is always in a low-level state, only when the computer is in the system AC power-off state The ON-BATT signal is pulled high to a high-level state. When a system AC power failure occurs, the motherboard receives the high-level ON-BATT signal and records the power-down information in a register of the motherboard;
方式二, 在主板上没有备用电池供电时: 如果计算机发生 AC掉电, 则 3.3VSB不存在,主板根据该 3.3VSB不存在判断得到当前发生了系统 AC掉电, 则在主板的寄存器中记录掉电信息; 其中, 3.3VSB是主板上 的一种供电电压, 当计算机在 AC插头仍然连接电源而处于 S5状态时, 3.3VSB存在; 而在 AC插头不连接电源使得计算机处于 G3状态时, 3.3VSB不存在, 因此, 本发明采用该 3.3VSB信号作为判断 AC是否掉 电的一个的信号;  Method 2: When there is no backup battery power supply on the motherboard: If the computer loses AC power, then 3.3VSB does not exist. Based on the 3.3VSB non-existence judgment, the motherboard obtains the current system AC power failure, and records it in the register of the motherboard. Electrical information; Among them, 3.3VSB is a power supply voltage on the motherboard. When the computer is still in the S5 state while the AC plug is still connected to the power supply, 3.3VSB exists; and when the computer is in the G3 state when the AC plug is not connected to the power supply, 3.3VSB Does not exist, therefore, the present invention uses the 3.3 VSB signal as a signal for determining whether the AC is powered off;
在本发明实施例中, 主板上具有备用电池供电, 因此, 本发明实施 例采用上述的方式一实现记录掉电信息, 其具体实现为: 主板南桥上空闲的通用输入输出( GPIO M立侦测接收到的 ON-BATT 信号, 当侦测到该信号处于高电平时, 则在主板南桥上的相应寄存器中 记录下相应的值, 本发明实施例中, 如果侦测到 ON-BATT信号处于高 电平, 则在主板南桥的 M-BATT寄存器中记录 1, 用以表示系统的前一 个^ 态有过掉电记录, 相应的, 该 M-BATT寄存器中记录 0则表示系统 AC 供电正常; 在本发明的各个实施例中, 可以采用主板上不同的寄存 器 ¾录掉电信息, 但所采用的寄存器必须为计算机主板电池供电的寄存 器, 该寄存器能够在 S3、 S4、 S5以及 G3状态下保证存储在其上的值不 丢失, 以供再次启动开机时 BIOS查询该寄存器中所记录的掉电信息; 在本发明其它实施例中, 也可采用其它不同的数值记录在相应的寄存器 中, 用以表示系统的掉电情况, 该寄存器中所记录的数值以及各个数值 与掉电状态的对应关系并不影响本发明的实现; In the embodiment of the present invention, the main board is provided with a backup battery for power supply. Therefore, the embodiment of the present invention adopts the first manner to implement recording of power-down information, and the specific implementation is as follows: The idle general-purpose input and output on the south bridge of the motherboard (GPIO M detects the received ON-BATT signal. When this signal is detected to be at a high level, the corresponding value is recorded in the corresponding register on the south bridge of the motherboard. In the embodiment of the present invention, if it is detected that the ON-BATT signal is at a high level, a 1 is recorded in the M-BATT register of the south bridge of the motherboard, which is used to indicate that the previous state of the system has a power-down record. A 0 in the M-BATT register indicates that the system AC power supply is normal. In various embodiments of the present invention, different registers on the motherboard may be used to record the power-off information, but the used registers must be powered by the computer motherboard battery. A register, which can ensure that the values stored on it are not lost under the states of S3, S4, S5, and G3, for the BIOS to query the power-down information recorded in the register when the system is restarted; in other embodiments of the present invention You can also use other different values to record in the corresponding register to indicate the power-down situation of the system. The value recorded in this register and each value and power-down Correspondence relationship does not affect the state of implementation of the invention;
步骤 201: 计算机在掉电后, 进入 S4/G3状态, 在本发明实施例中, 由于主板上有备用电池模块供电, 因此, 本步骤中, 计算机进入 S4状 态, 在本发明其它实施例中, 如果没有主板上的备用电池供电, 则该计 算机选择进入 G3状态; 其中, S4是指计算机挂起到硬盘的状态, 不同 于挂起到内存的 S3状态, 计算机在进入 S4状态时, 将进入 S4休眠前 的所有计算机现场信息保存在硬盘中, 在该 S4状态下, 计算机中的硬 件处于关闭状态, 如果用户通过例如按动电源开关而触发 S4唤醒条件, 计算机则通过操作系统或 BIOS将保存在硬盘中的 S4状态前的所有计算 机现场信息原样写入原先的位置, 从而达到休眠状态前后一致;  Step 201: After the computer is powered off, the computer enters the S4 / G3 state. In the embodiment of the present invention, the backup battery module is provided on the motherboard. Therefore, in this step, the computer enters the S4 state. In other embodiments of the present invention, If there is no backup battery on the motherboard, the computer chooses to enter the G3 state; S4 refers to the state where the computer is suspended to the hard disk, which is different from the S3 state where the computer is suspended to the memory. When the computer enters the S4 state, it will enter the S4 state. All computer field information before hibernation is stored in the hard disk. In this S4 state, the hardware in the computer is turned off. If the user triggers the S4 wake-up condition by, for example, pressing the power switch, the computer will save it in the operating system or BIOS All computer field information before the S4 state in the hard disk is written to the original location as it is, so that the hibernation state is consistent;
步骤 202: 判断 AC是否恢复, 如果是, 则执行步骤 203及后续步 骤, 否则, 返回步骤 201 , 使得计算机保持 S4/G3状态, 直至 AC恢复 后执行步骤 203及其后续步骤;  Step 202: Determine whether the AC is restored, and if so, perform step 203 and subsequent steps, otherwise, return to step 201 to keep the computer in the S4 / G3 state, and perform step 203 and subsequent steps until the AC is restored;
步驟 203〜步骤 204: 系统根据在 BIOS中的预先设定, 在 AC恢复 后自动启动, 在系统启动的过程中, BIOS查询在步骤 200中的掉电记 录, 以判断该计算机是否曾经掉电, 如果是, 则执行步骤 205及其后续 步骤, 否则, 执行步骤 208; Steps 203 to 204: The system recovers from the AC according to the preset settings in the BIOS. After the automatic startup, during the system startup process, the BIOS queries the power-off record in step 200 to determine whether the computer has been powered off, and if so, perform step 205 and subsequent steps, otherwise, perform step 208;
在本发明实施例中, BIOS从 M-BATT寄存器中读取所记录的数值, 如果该数值为 1 , 则判断得到计算机曾经掉电, 如果该数值为 0, 则判 断得到该计算机不曾掉电;  In the embodiment of the present invention, the BIOS reads the recorded value from the M-BATT register. If the value is 1, it is determined that the computer has been powered off. If the value is 0, it is determined that the computer has not been powered off.
步骤 205〜步骤 207: BIOS向系统发出进入 S3状态的指令, 系统收 到并响应该指令, 然后,该系统进入 S3状态,触发 S3状态触发事件后, 计算机根据触发事件进入操作系统, 以结束快速开机的流程; 从而, 使 得计算机在 AC掉电恢复后进入并保持 S3状态, 通过触发 S3触发事件 即可唤醒系统, 从而达到快速启动的目的;  Steps 205 to 207: The BIOS sends an instruction to the system to enter the S3 state, and the system receives and responds to the instruction. Then, the system enters the S3 state, and after triggering the S3 state trigger event, the computer enters the operating system according to the trigger event to end the fast The process of booting; thus, the computer enters and maintains the S3 state after AC power is restored, and the system can be awakened by triggering the S3 trigger event, thereby achieving the purpose of fast startup;
在本发明实施例中 , 采用计算机主板南桥上的 GPIO信号触发开机 ( POWERBT )信号, 以该 POWERBT作为 BIOS向系统发出的进入 S3 状态的指令, 系统收到该指令后进入 S3状态;  In the embodiment of the present invention, the GPIO signal on the south bridge of the computer motherboard is used to trigger the power-on (POWERBT) signal, and the POWERBT is used as an instruction to the system to enter the S3 state by the BIOS, and the system enters the S3 state after receiving the instruction;
步骤 208: 在 BIOS通过查询判断得到该计算机未曾掉电后, BIOS 引导系统进入 S5状态, 然后再执行步驟 207, BIOS根据使用者例如按 动开机按钮的触发动作, 引导系统由 S5状态进入操作系统; 本步骤 208 的内容为本领域技术人员无需创造性劳动即可实现的内容, 且 BIOS通 过 S5状态进入操作系统不属于快速开机的范畴之内, 本流程中包括该 步驟仅为该流程的实现更加严谨, 不应认为该步骤是实现本发明所述快 速开机的必要步骤。  Step 208: After the BIOS determines that the computer has not been powered down through inquiry, the BIOS boots the system into the S5 state, and then executes step 207. The BIOS boots the system from the S5 state to the operating system according to a trigger action of the user, for example, by pressing a boot button. The content of this step 208 is content that can be implemented by a person skilled in the art without creative labor, and the BIOS enters the operating system through the S5 state that is not within the scope of fast booting. This step included in this process is only for the realization of this process. Strictly, this step should not be considered as a necessary step to achieve fast booting according to the present invention.
参见图 3, 为了实现以上图 2所示的 AC掉电后的快速开机过程, 本发明采用图 3所示的电路装置来实现快速开机,该电路装置具体包括: 第一脉冲发生模块 301、 检测模块 302、 第二脉冲发生模块 303、 开机信 号产生环节模块 304以及备用电池 305, 其中: 如果计算机出现系统 AC掉电的情况, 则备用电池 305立即启动并 向第一月永冲产生模块 301发送高电位的 ON-BATT信号, 第一脉冲产生 模块 301收到该 ON-BATT信号后, 产生一个用于触发休眠的触发脉冲 SLEEPS +, 并将该触发脉冲发送给检测模块 302; 检测模块 302收到 该 SLEEPSW+后, 根据从备用电池 305所接收的 ON-BATT信号记录掉 电信息, 同时, 检测模块 302向开机信号产生环节模块 304发出开机请 求信号 PWROK, 开机信号产生环节模块 304收到该 PWROK信号后, 发出主机电源开启信号 PS-ON#, 从而开启主机电源, 使操作系统自动 进入 S4状态; Referring to FIG. 3, in order to implement the fast booting process after the AC power-down shown in FIG. 2 above, the present invention uses the circuit device shown in FIG. 3 to implement the fast boot. The circuit device specifically includes: a first pulse generating module 301, a detection The module 302, the second pulse generating module 303, the start-up signal generating link module 304, and the backup battery 305, of which: If the computer has a system AC power failure, the backup battery 305 immediately starts and sends a high-potential ON-BATT signal to the first month permanent charge generation module 301. After the first pulse generation module 301 receives the ON-BATT signal, Generate a trigger pulse SLEEPS + for triggering sleep, and send the trigger pulse to the detection module 302; after receiving the SLEEPSW +, the detection module 302 records power-down information according to the ON-BATT signal received from the backup battery 305, and The detection module 302 sends a power-on request signal PWROK to the power-on signal generation module 304. After receiving the PWROK signal, the power-on signal generation module 304 sends a host power-on signal PS-ON #, thereby turning on the host power and allowing the operating system to automatically enter S4 status;
当 AC恢复时, 检测模块 302会检测到 AC已经恢复, 该检测模块 302通过开机信号产生环节模块 304开启主机电源,使系统从 S4状态唤 醒;  When the AC recovers, the detection module 302 detects that the AC has recovered. The detection module 302 turns on the power of the host through the power-on signal generation link module 304 to make the system wake up from the S4 state;
系统从 S4状态唤醒后, 在自检过程中检测模块 302根据所保存的 掉电信息判断是否曾经发生掉电, 如果发现系统曾经掉电, 则会在进入 操作系统后由检测模块 302不断发出 AC-UP信号给第二脉冲产生模块 303 , 第二脉冲产生模块 303收到该 AC-UP信号后, 不断产生表示交流 电恢复的触发脉冲 PWRBT#, 并将该触发脉冲发送给检测模块 302, 检 测模块 302收到该脉冲后, 不断向开机信号产生环节模块 304发出开机 请求 PW OK, 开机信号产生环节模块 304将计算机挂起到内存, 从而 使系统进入 S3状态;  After the system wakes up from the S4 state, during the self-test, the detection module 302 determines whether a power failure has occurred according to the saved power-down information. If it is found that the system has lost power, the detection module 302 will continuously issue AC after entering the operating system -UP signal to the second pulse generation module 303. After receiving the AC-UP signal, the second pulse generation module 303 continuously generates a trigger pulse PWRBT # indicating that the AC power is restored, and sends the trigger pulse to the detection module 302, the detection module 302 After receiving the pulse, it continuously sends a power-on request PW OK to the power-on signal generation link module 304, and the power-on signal generation link module 304 suspends the computer to the memory, so that the system enters the S3 state;
利用图 3所示电路, 能够使得计算机始终保持在 S3状态, 在使用 者触发 S3 触发事件后能够使计算机快速进入操作系统, 从而实现快速 开机;  By using the circuit shown in FIG. 3, the computer can always be maintained in the S3 state, and the user can quickly enter the operating system after the user triggers the S3 trigger event, thereby achieving fast booting;
其中, 在本发明其它实施例中, 本发明所提供的用于实现快速开机 的电路装置可不具有备用电池, 并不影响本发明的实现; 在这些实施例 中, 检测模块以及第一脉冲发生模块根据主板上的 3.3VSB判断是否发 生系统 AC掉电, 并在发生系统 AC掉电时记录掉电信息, 使操作系统 进入 G3状态, 在 AC恢复时, 检测模块、 第二脉冲发生模块以及开机 信号产生环节模块使系统由 G3状态进入并保持在 S3状态,以在使用者 触发 S3触发事件时实现快速开机。 Wherein, in other embodiments of the present invention, the circuit device provided by the present invention for realizing fast startup may not have a backup battery, and does not affect the implementation of the present invention. In these embodiments, The detection module and the first pulse generation module determine whether a system AC power failure occurs according to the 3.3 VSB on the motherboard, and record the power down information when the system AC power failure occurs, so that the operating system enters the G3 state. When the AC recovers, the detection The module, the second pulse generating module and the power-on signal generating link module enable the system to enter from the G3 state and maintain the S3 state, so as to realize fast booting when the user triggers the S3 trigger event.
以上所述仅为本发明的较佳实施例而已 , 并不用以限制本发明, 凡 在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均 应包舍在本发明的保护范围之内。  The above descriptions are merely preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the present invention. Within the scope of protection.

Claims

权利要求书 Claim
1、 一种实现快速开机的方法, 其特征在于, 如果计算机出现系统交 流电 AC掉电, 该方法包括: 1. A method for realizing fast booting, characterized in that, if the computer experiences system AC power loss, the method includes:
步骤 A: 计算机记录掉电信息, 并使计算机的操作系统进入 S4/G3 状态;  Step A: The computer records the power-down information and causes the computer's operating system to enter the S4 / G3 state;
步骤 B: 判断 AC是否恢复, 如果不是, 则计算机保持 S4/G3状态, 返回步骤 B, 直至 AC恢复; 如果是, 则操作系统自动启动, 并且操作 系统在启动过程中根据步骤 A中所保存的掉电信息,由 S4/G3状态进入 S3状态, 然后, 计算机操作系统保持 S3状态, 直至触发 S3触发事件, 计算机进入操作系统。  Step B: Determine whether the AC is restored. If not, the computer remains in S4 / G3 state and return to Step B until AC is restored. If so, the operating system starts automatically and the operating system according to the saved in step A during the startup process. Power-down information enters the S3 state from the S4 / G3 state. Then, the computer operating system maintains the S3 state until the S3 trigger event is triggered and the computer enters the operating system.
2、 根据权利要求 1所述的方法, 其特征在于, 步骤 A所述计算机 记录掉电信息包括:  2. The method according to claim 1, wherein the step A of the computer recording power-down information comprises:
计算机主板收到掉电通知信号, 根据该掉电通知信号判断得到计算 机当前出现系统 AC掉电, 计算机主板在由计算机主板电池供电的寄存 器上记录数值, 以作为掉电信息。  The computer mainboard receives a power-down notification signal, and determines from the power-down notification signal that a system AC power failure is currently occurring on the computer. The computer mainboard records a value on a battery-powered register of the computer mainboard as power-down information.
3、根据权利要求 2所述的方法, 其特征在于, 计算机主板具有备用 电池供电时, 所述掉电通知信号为备用电池向主板发送的高电平状态的 ON-BATT信号,主板根据该信号的高电平状态判断得到发生系统 AC掉 电, 则执行所述在寄存器上记录掉电信息的步骤。  3. The method according to claim 2, characterized in that, when the computer motherboard has a backup battery for power supply, the power-down notification signal is a high-level ON-BATT signal sent by the backup battery to the motherboard, and the motherboard is based on the signal If it is determined that the system AC power-off occurs, the step of recording the power-down information on the register is performed.
4、 根据权利要求 3所述的方法, 其特征在于, 步骤 A所述计算机 记录掉电信息包括:  4. The method according to claim 3, wherein the step A of the computer recording power-down information comprises:
计算机主板南桥上空闲的通用输入输出 GPIO 位侦测接收到的 ON-BATT信号, 在侦测得到该信号处于高电平时, 则在主板南桥上由 计算机主板供电的寄存器中记录数值, 用以表示计算机发生掉电。 The idle general-purpose input and output GPIO bits on the south bridge of the computer motherboard detect the received ON-BATT signal. When the signal is detected to be at a high level, the value is recorded in a register powered by the computer motherboard on the south bridge of the motherboard. To indicate that the computer has lost power.
5、根据权利要求 2所述的方法, 其特征在于, 计算机主板没有备用 电池供电时, 所述掉电通知信号为 3.3VSB, 计算机主板根据该 3.3VSB 不存在判断得到发生系统 AC掉电, 则执行所述在寄存器上记录掉电信 息的步驟。 5. The method according to claim 2, wherein, when the computer motherboard is not powered by a backup battery, the power-down notification signal is 3.3VSB, and the computer motherboard obtains a system AC power failure according to the 3.3VSB non-existence judgment. The step of recording power-down information on a register is performed.
6、 根据权利要求 2所述的方法, 其特征在于, 步骤 B中, 所述操 作系统在启动过程中根据步骤 A中所保存的掉电信息由 S4/G3状态进入 S3状态包括:  6. The method according to claim 2, characterized in that, in step B, the operating system entering the S3 state from the S4 / G3 state according to the power-down information saved in step A during startup includes:
步驟 B1: 计算机的基本输入输出系统 BIOS从所述由计算机主板电 池供电的寄存器中读取该寄存器所记录的数值, 根据该数值判断得到计 算机曾经出现系统 AC掉电;  Step B1: The computer's basic input-output system BIOS reads a value recorded by the register from the register powered by the battery of the computer's motherboard, and judges based on the value that the computer has experienced a system AC power failure;
步骤 B2: BIOS向操作系统不断发出进入 S3状态的指令,直至操作 系统收到并响应该指令为止, 操作系统根据收到的进入 S3状态的指令 进入 S3状态。  Step B2: The BIOS continuously sends instructions to the operating system to enter the S3 state until the operating system receives and responds to the instructions, and the operating system enters the S3 state according to the received instructions to enter the S3 state.
7、根据权利要求 1所述的方法, 其特征在于, 在计算机主板上有备 用电池供电时, 步驟 A中, 计算机的操作系统进入 S4状态; 在计算机 的主板上没有备用电池供电时, 步骤 A中, 计算机的操作系统进入 G3 状态。  7. The method according to claim 1, characterized in that when a backup battery is powered on the computer motherboard, in step A, the computer's operating system enters the S4 state; when there is no backup battery on the computer's motherboard, step A The computer's operating system enters the G3 state.
8、 一种实现快速开机的装置, 其特征在于, 该装置至少包括: 第一 脉冲发生模块、 检测模块、 第二脉冲发生模块、 以及开机信号产生环节 模块, 其中:  8. A device for realizing fast startup, characterized in that the device comprises at least: a first pulse generation module, a detection module, a second pulse generation module, and a startup signal generation link module, wherein:
第一脉冲发生模块用于在收到掉电通知信号后, 产生触发休眠的触 发脉冲并将该脉沖发送给检测模块, 以使得检测模块通过开机信号产生 环节模块将操作系统引导进入 S4/G3状态;  The first pulse generation module is used to generate a trigger pulse that triggers sleep after receiving the power-down notification signal and send the pulse to the detection module, so that the detection module guides the operating system into the S4 / G3 state through the power-on signal generation link module. ;
检测模块用于在系统 AC掉电时,根据掉电通知信号记录掉电信息, 还用于在 AC恢复时, 根据记录的掉电信息向第二脉冲发生模块发送掉 电恢复信号; The detection module is used to record the power-down information according to the power-down notification signal when the system AC is powered off, and is also used to send the power-off information to the second pulse generation module according to the recorded power-down information when the AC is restored. Electrical recovery signal
第二脉冲发生模块用于在接收到检测模块所发送的掉电恢复信号 后, 产生触发脉冲并发送至检测模块, 以使得检测模块通过开机信号产 生环节模块将操作系统由 S4/G3状态引导进入 S3状态;  The second pulse generation module is used to generate a trigger pulse and send it to the detection module after receiving the power-down recovery signal sent by the detection module, so that the detection module guides the operating system from the S4 / G3 state through the power-on signal generation link module. S3 status;
开机信号产生环节模块用于根据自检测模块收到的信号, 向计算机 主机电源发送开启 /关闭电源的信号。  The power-on signal generation module is used to send a power on / off signal to the power supply of the computer according to the signal received by the self-test module.
9、根椐权利要求 8所述的装置, 其 征在于, 所述装置进一步包括 备用电池, 该备用电池用于在出现 AC系统掉电时向第一脉冲发生模块 和检测模块发送作为掉电通知信号的 ON-BATT信号。  9. The device according to claim 8, characterized in that the device further comprises a backup battery for sending the first pulse generation module and the detection module as a power failure notification when the AC system is powered off. ON-BATT signal of the signal.
PCT/CN2004/000460 2004-01-15 2004-05-09 A method and device for start up computer WO2005071531A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200410000590.4 2004-01-15
CNB2004100005904A CN100339828C (en) 2004-01-15 2004-01-15 Method and device for realizing rapid start

Publications (1)

Publication Number Publication Date
WO2005071531A1 true WO2005071531A1 (en) 2005-08-04

Family

ID=34800340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2004/000460 WO2005071531A1 (en) 2004-01-15 2004-05-09 A method and device for start up computer

Country Status (2)

Country Link
CN (1) CN100339828C (en)
WO (1) WO2005071531A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110252225A1 (en) * 2010-04-13 2011-10-13 Compal Electronics, Inc. Computer system and bootup and shutdown method thereof
GB2475015B (en) * 2008-09-05 2013-02-27 Hewlett Packard Development Co Method and system for providing hybrid-shutdown and fast startup processes
CN112905389A (en) * 2021-03-25 2021-06-04 北京计算机技术及应用研究所 Method for starting-up recovery and shutdown storage under Feiteng server platform
CN114168393A (en) * 2021-10-31 2022-03-11 苏州浪潮智能科技有限公司 Server testing method, system, equipment and medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183801B (en) * 2007-12-07 2011-03-16 杭州华三通信技术有限公司 Power-off protection method, system and device
CN101727328B (en) * 2008-10-17 2013-10-09 华擎科技股份有限公司 Method for shortening starting-up time and computer system used by same
CN102455774A (en) * 2010-10-18 2012-05-16 无锡江南计算技术研究所 Host with host channel adapter (HCA) equipment, and sleeping and awakening methods for host
CN103513742B (en) * 2012-06-28 2019-01-15 联想(北京)有限公司 Terminal device
CN103853304A (en) * 2012-11-28 2014-06-11 精英电脑股份有限公司 Computer and external power supply module thereof
CN104345850B (en) * 2013-08-09 2018-05-08 瑞祺电通股份有限公司 Intelligent auto power on device
CN106060651B (en) * 2016-06-06 2019-08-16 深圳Tcl数字技术有限公司 The starting method and system of smart television
CN107807728B (en) * 2016-09-09 2020-07-21 佛山市顺德区顺达电脑厂有限公司 Shutdown discharge system
CN107613546B (en) * 2017-07-21 2021-01-26 海信视像科技股份有限公司 BLE chip, control method of designated element in BLE chip and Bluetooth low-power-consumption equipment
CN113010215B (en) * 2021-03-12 2023-03-21 山东英信计算机技术有限公司 Method, device and equipment for quickly restarting operating system and readable medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010053904A (en) * 1999-12-02 2001-07-02 윤종용 Computer system and method for quickly booting
CN1459722A (en) * 2002-05-16 2003-12-03 智邦科技股份有限公司 Computer-system capable of fast starting

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1020971C (en) * 1990-10-07 1993-05-26 深圳华德电子有限公司 Computer field data guard and recovery method for breaking
JP3943665B2 (en) * 1997-09-01 2007-07-11 株式会社東芝 Sleep control method and event notification method
JPH11353161A (en) * 1998-06-09 1999-12-24 Daiwa Industries Ltd Starting method for control program
CN1145104C (en) * 2000-12-08 2004-04-07 英业达股份有限公司 Test and processing method and device for accident stop of computer system
CN1421774A (en) * 2001-11-30 2003-06-04 英业达股份有限公司 Method and system of initiating personal digital assistant operation system of portable computer
CN2572463Y (en) * 2002-09-04 2003-09-10 联想(北京)有限公司 Controller for auxiliary power supply used in computer switching off state

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010053904A (en) * 1999-12-02 2001-07-02 윤종용 Computer system and method for quickly booting
CN1459722A (en) * 2002-05-16 2003-12-03 智邦科技股份有限公司 Computer-system capable of fast starting

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2475015B (en) * 2008-09-05 2013-02-27 Hewlett Packard Development Co Method and system for providing hybrid-shutdown and fast startup processes
US8914653B2 (en) 2008-09-05 2014-12-16 Hewlett-Packard Development Company, L.P. Method and system for providing hybrid-shutdown and fast startup processes
US9501291B2 (en) 2008-09-05 2016-11-22 Hewlett-Packard Development Company, L.P. Method and system for providing hybrid-shutdown and fast startup processes
US20110252225A1 (en) * 2010-04-13 2011-10-13 Compal Electronics, Inc. Computer system and bootup and shutdown method thereof
US9098305B2 (en) * 2010-04-13 2015-08-04 Compal Electronics, Inc. Computer system and bootup and shutdown method thereof
CN112905389A (en) * 2021-03-25 2021-06-04 北京计算机技术及应用研究所 Method for starting-up recovery and shutdown storage under Feiteng server platform
CN114168393A (en) * 2021-10-31 2022-03-11 苏州浪潮智能科技有限公司 Server testing method, system, equipment and medium
CN114168393B (en) * 2021-10-31 2023-11-21 苏州浪潮智能科技有限公司 Server testing method, system, equipment and medium

Also Published As

Publication number Publication date
CN1641573A (en) 2005-07-20
CN100339828C (en) 2007-09-26

Similar Documents

Publication Publication Date Title
US6760850B1 (en) Method and apparatus executing power on self test code to enable a wakeup device for a computer system responsive to detecting an AC power source
US7228444B2 (en) System and method for preserving state data of a personal computer in a standby state in the event of an AC power failure
JP5128677B2 (en) System and method for fast platform hibernation and resume
JP3688603B2 (en) Computer system and standby mode control method thereof
TWI298436B (en) An operation method in an apparatus, an electronic system therefor, and a computer readable medium therefor
US8055889B2 (en) BIOS management device and method for managing BIOS setting value
CN110806794A (en) Power-down protection method, system, computer device and medium for storage system
WO2005071531A1 (en) A method and device for start up computer
WO2011063584A1 (en) Deep standby method and device for embedded system
JP5885881B2 (en) Implementing a power off state on a computing device
KR20090026895A (en) Apparatus and method for reducing power consumption in system on chip
US10394307B2 (en) Information processing apparatus, information processing method, and program
JPH11288334A (en) Method and device for power down for computer system
US6408397B1 (en) Using RTC wake-up to enable recovery from power failures
CN1584847B (en) Operational state preservation in the absence of AC power
TW515995B (en) Method allowing to configure computer system as wake on LAN
TWI230328B (en) Method and computer system for reducing occurrence of cold reset
CN1327344C (en) Bios for saving and restoring operational state in the absence of AC power
TWI693513B (en) Server system and power saving method thereof
US6567931B1 (en) Preventing false remote system wake events following AC power loss
TWI274245B (en) An electronic system, its method of operation and a data storage device for power conservation
US20090289803A1 (en) Method for protecting data in non-volatile storage device and computer thereof
TW201322685A (en) System and method for restoring network configuration parameters
EP1229430B1 (en) Power management system and method
WO2012126345A1 (en) Computer startup method, startup apparatus, state transition method, and state transition apparatus

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): BW GH GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase