CN101281416A - Method for ensuring system closedown completion - Google Patents

Method for ensuring system closedown completion Download PDF

Info

Publication number
CN101281416A
CN101281416A CNA200710096814XA CN200710096814A CN101281416A CN 101281416 A CN101281416 A CN 101281416A CN A200710096814X A CNA200710096814X A CN A200710096814XA CN 200710096814 A CN200710096814 A CN 200710096814A CN 101281416 A CN101281416 A CN 101281416A
Authority
CN
China
Prior art keywords
shutdown
finished
guaranteeing
preset time
closedown
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CNA200710096814XA
Other languages
Chinese (zh)
Inventor
卢盈志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inventec Corp
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to CNA200710096814XA priority Critical patent/CN101281416A/en
Publication of CN101281416A publication Critical patent/CN101281416A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method of guaranteeing that the system completes shutdown. The method comprises following steps: firstly receiving a shutdown signal to enter into a system interrupting program; then beginning to count down preset time; and then processing a shutdown program for a control chip of the system; finally directly closing power of the system when the preset time is counted down over, so as to guarantee that the system completes shutdown. The method of the invention can automatically complete shutdown via closing the power even though the control chip of the system cannot complete shutdown, so as to reach the aim of guaranteeing system security and providing using convenience.

Description

Guarantee the method that system closedown is finished
Technical field
The invention relates to a kind of method of shutdown, and particularly relevant for a kind of method of guaranteeing to shut down and finishing.
Background technology
Power management is a general desktop computer and a critical function that relies on the Portable peripheral equipment (for example notebook computer) of battery supplied electric power.With present, most computer system can be supported advanced framework power supply interface, and (Advanced Configuration and Power Interface, ACPI) standard is carried out the management of power supply.Advanced framework power supply interface is according to the interaction between user and the operating system, and replaces the BIOS managing electrical power that gives an order with operating system, therefore can increase the efficient of power management.Advanced framework power supply interface can distribute power supply effectively and is sent to system element, the information such as voltage of collocation hardware detection mainboard temperature, rotation speed of the fan and power supply unit (Power Supply), and then provide suitable power supply and host work frequency, the target that reaches power saving and efficient and deposit.
Under management by advanced framework power supply interface, computer system can operation under different electric source modes such as S0, S1, S2, S3 (suspendto RAM), S4 (hibernate, suspend to disk), S5 (soft off) etc., to adapt to different demands.For instance: under the S0 pattern, all hardware and peripheral equipment are all under the state of operation; Under the S1 pattern, (Central Processor Unit's central processing unit CPU) quits work, to reduce the central processing unit power consumption; Under the S2 pattern, central processing unit then can cut out; Under the S3 pattern, the effect that the operation system state of storing in the storer disappears along with power-off and reaches power saving, electric power only is supplied to storer to move by storer.When getting back to the S0 pattern, operating system can be passed through access memory, and recovery operation system state apace; Under the S4 pattern, then be that the operation system state that will be stored in the storer in the S3 pattern is stored to hard disk, that is to say under the S4 pattern, do not need to provide again electric power to storer, also operation system state can be preserved, so computer system can enter off-mode, to save electric power; Under the S5 pattern, computer system is to enter off-mode equally, but the state of operating system can not be stored in the hard disk as the S4 pattern.
When system boot enters the pattern of S0, Basic Input or Output System (BIOS) (Basic Input/OutputSystem at first, BIOS) every periphery and control chip can be started, the then start magnetic region that just can begin to read memory storages such as hard disk, starting the operating system, and give operating system the control of power management and handle.Relatively, when system closedown enters the pattern of S4 or S5, operating system is set each closing application program, storage user, then operating system is sent off signal, and enter into system management interrupt handling procedure (SystemManagement Interrupt handler, SMI handler), the control of power management returns to Basic Input or Output System (BIOS) carrying out shutdown programm by operating system, and control chip group such as north and south bridge are shut down.
Yet in the process of shutdown, when failing to finish shutdown if the process of linking up each other between control chip group goes wrong, the shutdown programm of system just can't be proceeded, and makes computer system can't finish shutdown.From user's viewpoint, because operating system finishes, even screen also closes, so the user has no way of judging whether shutdown programm goes wrong, and only after waiting for a period of time, ability discovery system can't finish by normal shutdown.At this moment, the user just needs to push power knob and continues 4 seconds, forces power-off.That is to say that the user also must time-consumingly wait for confirming shutdown and whether finishing after shutdown.In addition, when control chip group can't normal shutdown, the user must carry out the shutdown second time troublesomely, had increased the inconvenience of using.
Summary of the invention
The invention provides a kind of method of guaranteeing that system closedown is finished, when control chip group is shut down, one section Preset Time promptly reciprocal, and finish and shutdown when remaining unfulfilled at inverse, directly with power-off, finish to guarantee shutdown.
The present invention proposes a kind of method of guaranteeing that system closedown is finished, is applicable to guarantee that system closedown finishes, and the method comprises the following steps: at first to receive off signal, to enter the system break program.Then begin Preset Time reciprocal.Come again the control chip group of system is carried out shutdown programm.At last when the Preset Time inverse finishes, the direct power supply of shutdown system.
In an embodiment of the present invention, comprise also when Preset Time reciprocal whether the control chip group of judging system finishes shutdown programm,, then stop Preset Time reciprocal if the shutdown programm of control chip group is finished, and the power supply of shutdown system.
In an embodiment of the present invention, the step that begins Preset Time reciprocal comprises and sends the shutdown invert instruction (Baseboard Management Control ler BMC), makes baseboard management controller begin Preset Time reciprocal to baseboard management controller.Wherein, the shutdown invert instruction is for (IntelligentPlatform Management Interface IPMI) sends baseboard management controller to by the intelligent platform management interface.And this shutdown invert instruction is the instruction of intelligent platform management interface.
In an embodiment of the present invention, directly the step of shutdown system power supply comprises when the Preset Time inverse finishes, and sends off signal to South Bridge chip by baseboard management controller.Then transmit the stitch that off signal is given the power supply unit of system, with the shutdown system power supply by South Bridge chip.
In an embodiment of the present invention, the step that begins Preset Time reciprocal is included in and sets one group of Preset Time in the timer.Start timer then and begin Preset Time reciprocal.Wherein, above-mentioned timer is Watch Dog Timer (watchdog timer).
In an embodiment of the present invention, when timer inverse Preset Time, comprise also whether the control chip group of judging system finishes shutdown programm,, then stop the inverse of timer if control chip group is finished shutdown programm, and the shutdown system power supply.Can comprise also that in addition it is that original (default) sets that timer is replied.
In an embodiment of the present invention, the step that the control chip group of system is carried out shutdown programm comprises the input/output port (IO port) with the off signal writing system, and makes control chip group carry out shutdown programm automatically.
In an embodiment of the present invention, receive off signal, comprise the shutdown command of reception by the operating system transmission of system with the step that enters the system break program.Then, the transmitting system look-at-me is given the processor of system, and enters the system break program.
Institute produced when in an embodiment of the present invention, the above-mentioned shutdown command power knob that is included in system was pressed.Moreover, shutdown command be also included within shutdown options on user's interface of system or snooze option when being selected institute produce.
In an embodiment of the present invention, above-mentioned system break program comprise system management interrupt handling procedure, control chip group comprise north bridge chips and South Bridge chip one of them, and Preset Time comprises 4 seconds.
Be that representative system enters and comprises one of them state of dormancy (hibernate) and software shutdown (soft off) when in an embodiment of the present invention, receiving off signal.
The present invention is by promptly began one section Preset Time reciprocal before the closing control chipset, when the Preset Time inverse finishes, and direct powered-down then, and can guarantee that system can finish shutdown.When control chip group can't normal shutdown, the user do not need time-consumingly to wait for confirm to shut down normally whether, do not need to push troublesomely power knob yet and carry out two degree shutdown.
For above-mentioned feature and advantage of the present invention can be become apparent, preferred embodiment cited below particularly, and conjunction with figs. is described in detail below.
Description of drawings
Fig. 1 is the first embodiment of the invention process flow diagram of the method finished of insurance system shutdown really.
Fig. 2 is the second embodiment of the invention process flow diagram of the method finished of insurance system shutdown really.
Fig. 3 is the third embodiment of the invention process flow diagram of the method finished of insurance system shutdown really.
Embodiment
, system can not be controlled the influence that chipset can't normal shutdown in order to ensure finishing shutdown, below each embodiment promptly stipulate one section Preset Time at the shutdown time-histories of control chip, and before control chip group is carried out shutdown programm, promptly begin this Preset Time reciprocal, when the Preset Time inverse finishes, represent that then this control chip group can't normal shutdown, and directly with the power-off of system.Detailed process please refer to the explanation of following each embodiment.
First embodiment
Fig. 1 is the first embodiment of the invention process flow diagram of the method finished of insurance system shutdown really.Please refer to Fig. 1, at first carry out step S110, after system receives the shutdown command that is sent by operating system, promptly can send a system interrupt signals to processor, and enter the system break program.Wherein, when system received off signal, representative system can be carried out dormancy or software shutdown, the S4 of just advanced framework power supply interface or S5 pattern, and this system break program for example is the system management interrupt handling procedure.In the present embodiment, institute produced when the power knob that above-mentioned shutdown command is included in system was pressed, or the shutdown options on user's interface of system or snooze option when being selected institute produce, and do not limit its scope.
For the control chip group that will guarantee system can be shut down, therefore after entering the system break program, before the control chip group of system is carried out shutdown programm, carry out step S120, beginning one section Preset Time reciprocal in one section Preset Time.Because the time-histories of control chip group shutdown is fixed, and only needs several CPU cycles (CPU cycle) usually.Therefore, the slip-stick artist can suitably set Preset Time according to actual situation, and just Preset Time being set at is enough to finish the control chip group shutdown and can allow the user wait for the time too of a specified duration again, for example is made as 4 seconds etc.
After beginning Preset Time reciprocal, can then carry out step S130, the control chip group of system is done setting, to carry out shutdown programm.For example with the input/output port of an off signal writing system, and make control chip group carry out shutdown programm, to enter the pattern of S4 or S5.Wherein, control chip group comprises north bridge chips and South Bridge chip.
Carry out step S140 at last, when the Preset Time inverse finishes, direct shutdown system power supply.That is to say through after the Preset Time, when system still can't shut down, just directly send the corresponding stitch of the signal of forced shutdown to power supply unit, and with power-off.
What deserves to be mentioned is that present embodiment is before carrying out shutdown programm to control chip group, one section Preset Time promptly reciprocal after the Preset Time inverse finishes, is just directly closed system power supply.For the user, the user need be in the face of system because control chip group can't normal shutdown problem.When control chip group can't normal shutdown, the user do not need time-consumingly to wait for confirm to shut down normally whether, do not need to push troublesomely power knob yet and carry out two degree shutdown.
Second embodiment
Present embodiment is the extension of first embodiment, and it is to carry out inverse and powered-down by baseboard management controller that its difference is in present embodiment.Wherein, baseboard management controller is by embedding a chips, as the device that focuses on of hardware platform management on substrate.This baseboard management controller can pass through Intelligent Platform Management Bus (Intelligent Platform Management Bus, IPMB) be connected with chip with the built-in sensor device of mainboard, and reach the effect of monitoring and management computer usefulness and power supply control according to this.
Fig. 2 is the second embodiment of the invention process flow diagram of the method finished of insurance system shutdown really.Please refer to Fig. 2, at first carry out step S210, after system receives the shutdown command that is sent by operating system, promptly can send a system interrupt signals to processor, and enter the system break program.
Before the control chip group of system is carried out shutdown programm, carry out step S220, send the shutdown invert instruction by the intelligent platform management interface and send baseboard management controller to, make baseboard management controller begin Preset Time reciprocal.Wherein, this shutdown invert instruction is the instruction of intelligent platform management interface, and can (Original Equipment Manufacturer OEM) stipulates voluntarily by original equipment manufacturer.With Preset Time 4 seconds was example, present embodiment can be sent by the intelligent platform management interface " Chassis Shutdown Command with 4seconds " the shutdown invert instruction give baseboard management controller, to allow baseboard management controller after 4 seconds, system be shut down.In more detail, this shutdown invert instruction can be the intelligent platform management interface " Chassis netfunction (00) " " Chassis control command (2) ", allowing system enter the pattern of S4 or S5.After the step that the shutdown invert instruction sends baseboard management controller to is finished, then can carry out step S230, the control chip group of system is done setting, to carry out the shutdown programm of control chip group.
During Preset Time reciprocal, carry out step S240, judge whether the shutdown programm that the control chip group of system is carried out is finished, if the shutdown programm of control chip group is finished, then stops Preset Time reciprocal, and shutdown system power supply (step S250).
Carry out step S260 at last, when the Preset Time inverse finished, the control chip group generation problem of expression system and can't normal shutdown was therefore by the direct shutdown system power supply of baseboard management controller.Further, step S260 comprises S262 and S264 two sub-steps.Step S262: when the Preset Time inverse finishes, send off signal to South Bridge chip by baseboard management controller; Step S264: transmit the stitch that off signal is given the power supply unit of system by South Bridge chip, with the shutdown system power supply.
The 3rd embodiment
Fig. 3 is the third embodiment of the invention process flow diagram of the method finished of insurance system shutdown really.Present embodiment also is the extension of first embodiment, and it is to utilize timer to carry out inverse that its difference is in present embodiment.Please refer to Fig. 3, similarly, present embodiment also receives shutdown command earlier, and sends a system interrupt signals to processor, enters system break program (step S310).
Before the control chip group of system is carried out shutdown programm, carry out step S320, begin Preset Time reciprocal.Wherein, step S320 comprises S322 and S324 two sub-steps.Step S322: on timer, set one section Preset Time; Step S324: start timer and begin Preset Time reciprocal.Above-mentioned timer for example is a Watch Dog Timer, and this Watch Dog Timer controllable power supply is closed.
Come again and can do setting, to carry out shutdown programm (step S330) the control chip group of system.Then carry out step S340, judge whether the control chip group of system finishes shutdown programm.If control chip group finishes shutdown programm, then stop the inverse of timer, and by sending a signal to the power supply unit system, and (step S350) closed in the source of system.In addition, when stopping the timer inverse, but also the revertive clocking device is original setting, and for example the numerical value that timer is stored is established back Preset Time, to carry out inverse from Preset Time again when shutting down next time.
Carry out step S360 at last, when the Preset Time inverse finishes, power supply unit is sent signal, with direct shutdown system power supply.That is to say that after the process Preset Time, when system still can't shut down, timer was just directly sent the corresponding stitch of the signal of forced shutdown to power supply unit, and with power-off.
In sum, the present invention requires system to enter the system break program by when receiving off signal, and before control chip group is carried out shutdown programm, carry out the inverse of Preset Time, when the Preset Time inverse finishes, then direct powered-down is finished to guarantee system closedown.When control chip group can't normal shutdown, the user do not need time-consumingly to wait for confirm to shut down normally whether, do not need to push troublesomely power knob yet and carry out two degree shutdown.
Though the present invention discloses as above with preferred embodiment; right its is not in order to limit the present invention; have in the technical field under any and know the knowledgeable usually; without departing from the spirit and scope of the present invention; when can doing a little change and retouching, so protection scope of the present invention is when with being as the criterion that claim was defined.

Claims (18)

1. method of guaranteeing that system closedown is finished is applicable to and guarantees that a system closedown finishes that this method comprises the following steps:
Receive an off signal, to enter a system break program;
Begin a Preset Time reciprocal; And
Control chip group to this system is carried out a shutdown programm;
When this Preset Time inverse finishes, the power supply of directly closing this system.
2. the method for guaranteeing that system closedown is finished as claimed in claim 1 is characterized in that, also comprises when this Preset Time of inverse:
Judge whether this control chip group of this system finishes this shutdown programm; And
If this shutdown programm of this control chip group is finished, then stop this Preset Time reciprocal, and the power supply of closing this system.
3. the method for guaranteeing that system closedown is finished as claimed in claim 1 is characterized in that, the step of beginning this Preset Time reciprocal comprises:
Send a shutdown invert instruction to a baseboard management controller, make this baseboard management controller begin this Preset Time reciprocal.
4. the method for guaranteeing that system closedown is finished as claimed in claim 3 is characterized in that, directly closes the step of the power supply of this system, comprising:
When this Preset Time inverse finishes, send an off signal to a South Bridge chip by this baseboard management controller; And
Transmit the stitch that this off signal is given a power supply unit of this system by South Bridge chip, to close the power supply of this system.
5. the method for guaranteeing that system closedown is finished as claimed in claim 3 is characterized in that, this shutdown invert instruction is for to send this baseboard management controller to by an intelligent platform management interface.
6. the method for guaranteeing that system closedown is finished as claimed in claim 3 is characterized in that, this shutdown invert instruction is the instruction of intelligent platform management interface.
7. the method for guaranteeing that system closedown is finished as claimed in claim 1 is characterized in that, the step of beginning this Preset Time reciprocal comprises:
Set this Preset Time in a timer; And
Start this timer and begin this Preset Time reciprocal.
8. the method for guaranteeing that system closedown is finished as claimed in claim 7 is characterized in that, this timer is a Watch Dog Timer.
9. the method for guaranteeing that system closedown is finished as claimed in claim 7 is characterized in that, also comprises when this this Preset Time of timer inverse:
Judge whether this control chip group of this system finishes this shutdown programm; And
If this control chip group is finished this shutdown programm, then stop the inverse of this timer, and close the power supply of this system.
10. the method for guaranteeing that system closedown is finished as claimed in claim 9 is characterized in that, stops the inverse of this timer, and the step of closing the power supply of this system also comprises:
Replying this timer is original setting.
11. the method for guaranteeing that system closedown is finished as claimed in claim 1 is characterized in that, the step of this control chip group of this system being carried out this shutdown programm comprises:
Write the input/output port of an off signal, and make this control chip group carry out this shutdown programm in this system.
12. the method for guaranteeing that system closedown is finished as claimed in claim 1 is characterized in that, receives this off signal, comprises with the step that enters this system break program:
Reception is by a shutdown command of the operating system transmission of this system; And
Send the processor of a system interrupt signals, and enter this system break program to this system.
13. the method for guaranteeing that system closedown is finished as claimed in claim 12 is characterized in that, institute produced when the power knob that this shutdown command is included in this system was pressed.
14. the method for guaranteeing that system closedown is finished as claimed in claim 12 is characterized in that, this shutdown command be included in a shutdown options on user's interface of this system or snooze option when being selected institute produce.
15. the method for guaranteeing that system closedown is finished as claimed in claim 1 is characterized in that, this system break program comprises the system management interrupt handling procedure.
16. the method for guaranteeing that system closedown is finished as claimed in claim 1 is characterized in that, this control chip group comprise north bridge chips and South Bridge chip one of them.
17. the method for guaranteeing that system closedown is finished as claimed in claim 1 is characterized in that this Preset Time comprises 4 seconds.
18. the method for guaranteeing that system closedown is finished as claimed in claim 1 is characterized in that, receives this off signal Shi Shi and represents this system to enter to comprise shut down one of them state of dormancy and software.
CNA200710096814XA 2007-04-04 2007-04-04 Method for ensuring system closedown completion Pending CN101281416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200710096814XA CN101281416A (en) 2007-04-04 2007-04-04 Method for ensuring system closedown completion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200710096814XA CN101281416A (en) 2007-04-04 2007-04-04 Method for ensuring system closedown completion

Publications (1)

Publication Number Publication Date
CN101281416A true CN101281416A (en) 2008-10-08

Family

ID=40013911

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200710096814XA Pending CN101281416A (en) 2007-04-04 2007-04-04 Method for ensuring system closedown completion

Country Status (1)

Country Link
CN (1) CN101281416A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081452B (en) * 2009-11-26 2012-10-10 宏碁股份有限公司 Computer and protecting method thereof
CN103839016A (en) * 2012-11-21 2014-06-04 鸿富锦精密工业(武汉)有限公司 Computer with CPU protection function
WO2014139332A1 (en) * 2013-03-15 2014-09-18 Tencent Technology (Shenzhen) Company Limited Method and apparatus for acquiring time spent on system shutdown
CN105785810A (en) * 2016-02-26 2016-07-20 北京臻迪机器人有限公司 Cell control method and cell control device
CN108490289A (en) * 2018-03-12 2018-09-04 广东欧珀移动通信有限公司 Testing for electrical equipment method, apparatus and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081452B (en) * 2009-11-26 2012-10-10 宏碁股份有限公司 Computer and protecting method thereof
CN103839016A (en) * 2012-11-21 2014-06-04 鸿富锦精密工业(武汉)有限公司 Computer with CPU protection function
WO2014139332A1 (en) * 2013-03-15 2014-09-18 Tencent Technology (Shenzhen) Company Limited Method and apparatus for acquiring time spent on system shutdown
US9465626B2 (en) 2013-03-15 2016-10-11 Tencent Technology (Shenzhen) Company Limited Method and apparatus for acquiring time spent on system shutdown
CN105785810A (en) * 2016-02-26 2016-07-20 北京臻迪机器人有限公司 Cell control method and cell control device
CN105785810B (en) * 2016-02-26 2019-02-22 北京臻迪机器人有限公司 A kind of battery control method and battery control apparatus
CN108490289A (en) * 2018-03-12 2018-09-04 广东欧珀移动通信有限公司 Testing for electrical equipment method, apparatus and electronic equipment

Similar Documents

Publication Publication Date Title
TW498194B (en) Sleep state transitioning
US7117377B2 (en) Computer apparatus, power supply control method and program for reducing the standby power requirement in a computer supporting a wake-up function
CN107122321B (en) Hardware repair method, hardware repair system, and computer-readable storage device
US8255725B2 (en) Information processing apparatus and power-saving control method
US9501291B2 (en) Method and system for providing hybrid-shutdown and fast startup processes
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
JP4515093B2 (en) CPU power-down method and apparatus therefor
TWI475368B (en) Power control system and method thereof
US20140068302A1 (en) Mechanism for facilitating faster suspend/resume operations in computing systems
US8250393B2 (en) Power management method and related chipset and computer system
CN101154131A (en) Information processing apparatus and system state control method
US9110723B2 (en) Multi-core binary translation task processing
EP2843502B1 (en) Information processing device, information processing method, and program
US20190004818A1 (en) Method of UEFI Shell for Supporting Power Saving Mode and Computer System thereof
TW201411335A (en) Implementing a power off state in a computing device
JPH11288334A (en) Method and device for power down for computer system
CN101281416A (en) Method for ensuring system closedown completion
CN108228109B (en) Method and device for protecting data of electronic equipment and computer storage medium
CN102567178A (en) Electronic device and method for informing remaining electricity and starting method thereof
JP4846862B2 (en) Information processing apparatus and power saving control method
CN103970253B (en) Power-saving operation method and electronic device
WO2012126345A1 (en) Computer startup method, startup apparatus, state transition method, and state transition apparatus
US7272731B2 (en) Information handling system having reduced power consumption
CN101872233A (en) Automatic on-off schedule control method and system thereof
TWI489260B (en) Stand-by management method and related management module and computer system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20081008