Summary of the invention
Based on above-mentioned purpose; The embodiment of the invention has disclosed a kind of false touch protection method; It is applicable to computer apparatus; This computer apparatus comprises the internal memory of power key, embedded controller, Basic Input or Output System (BIOS) and the running of matching embedded type controller at least, and the electric source modes of this computer apparatus is under the shutdown mode.This embedded controller of initialization, and judge whether this power key is pressed.If this power key is pressed, then this embedded controller judges whether preset switches time delay is arranged in this internal memory.If preset switches time delay is arranged, then this embedded controller is carried out switching delay service, and judges that time that this power key is pressed is whether greater than this preset switches time delay.If time of being pressed of this power key, then this embedded controller started the computer system of this computer apparatus greater than this preset switches time delay.
The embodiment of the invention has also disclosed a kind of false touch protection method, and it is applicable to computer apparatus, and this computer apparatus comprises power key, embedded controller, Basic Input or Output System (BIOS) and internal memory at least, and the electric source modes of this computer apparatus is under the power on mode.This embedded controller judges whether this power key is pressed.If this power key is pressed, then this embedded controller judges whether preset switches time delay is arranged in this internal memory.If preset switches time delay is arranged, then this embedded controller is carried out switching delay service, and judges that time that this power key is pressed is whether greater than this preset switches time delay.If time of being pressed of this power key, then this embedded controller made the computer system of this computer apparatus get into standby mode or sleep pattern, perhaps closes this computer system greater than this preset switches time delay.
The embodiment of the invention has also disclosed a kind of computer apparatus, comprises power key, Basic Input or Output System (BIOS), internal memory and embedded controller.But this Basic Input or Output System (BIOS) provides configuration switch to postpone the setting picture of option, and wherein this switching delay option provides at least one switching delay time for you to choose.The setting of the above-mentioned switching delay option of this memory storage.The electric source modes of this computer apparatus is in shutdown mode following time, and this embedded controller is initialised and judges whether this power key is pressed.If this power key is pressed, then this embedded controller judges whether preset switches time delay is arranged in this internal memory.If preset switches time delay is arranged, then this embedded controller is carried out switching delay service, and judges that time that this power key is pressed is whether greater than this preset switches time delay.If time of being pressed of this power key, then this embedded controller started the computer system of this computer apparatus greater than this preset switches time delay.
Embodiment
For let the object of the invention, characteristic, and advantage can be more obviously understandable, hereinafter is special lifts preferred embodiment, and conjunction with figs. is done detailed explanation.Instructions of the present invention provides various embodiment that the technical characterictic of the different embodiments of the present invention is described.Wherein, the usefulness that is configured to explanation of each assembly among the embodiment is not in order to restriction the present invention.And the part of reference numerals repeats among the embodiment, is for the purpose of simplifying the description, is not the relevance that means between the different embodiment.
The embodiment of the invention has disclosed a kind of computer apparatus that utilizes false touch protection method that power switch delay realizes and this method of use.
The false touch protection method of the embodiment of the invention utilizes user's interface (for example, the BIOS of computer system sets picture or application programming interfaces), makes the user set up the delay behavior pattern of power key on their own.Thus, can prevent user's false touch power key and make starting up for computer, perhaps cause computer system to get into sleep pattern or shutdown, and cause executory application program to be interrupted suddenly.
Fig. 1 is the configuration diagram of computer apparatus of the use false touch protection method of the embodiment of the invention.
The computer apparatus of the embodiment of the invention (for example comprises power key 110, embedded controller at least; KBC (Keyboard Controller; Abbreviate KBC as)) 120, Basic Input or Output System (BIOS) (BasicInput/Output System; Abbreviate BIOS as) but 130 with electronic type clear program ROM (read-only memory) (Electrically Erasable Programmable Read-Only Memory abbreviates EEPROM as) 140.Power key 110 is connected with embedded controller 120 by general input and output (General Purpose Input/Output abbreviates GPIO as) pin position.Embedded controller 120 is by low pin number (Low Pin Count; Abbreviating LPC as) bus is connected with Basic Input or Output System (BIOS) 130; And by System Management Bus (SystemManagement Bus; Abbreviate SM-BUS as))/integrated circuit intermediary bus (Inter-Integrated CircuitBus abbreviates I2C-BUS as) but be connected with electronic type clear program ROM (read-only memory) 140.
At first, in the setting picture (not shown) of Basic Input or Output System (BIOS) 130, increase a switching delay option, the user can be selected to select a time delay among [Disable] or oneself [2sec], [4sec], [6sec], [8sec].After person to be used has set,, but and the option of setting deposited in the electronic type clear program ROM (read-only memory) 140 by Basic Input or Output System (BIOS) 130 notify keyboard controllers 120.When next user presses power key 110 start, promptly carry out retardance start, retardance shutdown or get into operations such as sleep pattern with the option of setting.
Fig. 2 is the method step process flow diagram of the setting power switch delay of the embodiment of the invention.The method of this setting power switch delay is applicable to a computer apparatus; This computer apparatus comprise at least power key, embedded controller (for example, KBC (KBC), Basic Input or Output System (BIOS) (BIOS) but with electronic type clear program ROM (read-only memory) (EEPROM).
At first, in the setting picture of this BIOS, increase a switching delay option (step S21), let the user can select a switching delay time at [Disable] or in [2sec], [4sec], [6sec], [8sec].After the user has set; Notify this KBC (step S22) by this BIOS; And deposit the switching delay time of setting among the EEPROM (step S23); In case this KBC reinitializes the back and complementary metal-oxide layer-semiconductor (Complementary Metal-Oxide-Semiconductor abbreviates CMOS as) is synchronous.Thus, when pressing the power key start next time, this KBC was carried out retardance start or power-off operation or is got into sleep pattern according to the preset switching delay time.
Fig. 3 is the flow chart of steps of the false touch protection method of the embodiment of the invention.This false touch protection method method is applicable to computer apparatus; This computer apparatus (for example comprises power key, embedded controller at least; KBC (KBC), Basic Input or Output System (BIOS) (BIOS) but with electronic type clear program ROM (read-only memory) (EEPROM), and the electric source modes of this computer apparatus is under the S5 pattern.
At first, after this KBC initialization (step S31), the power key of judging this computer apparatus whether be pressed (step S32).If this power key is not pressed, then this KBC is carried out other program (step S33).If this power key is pressed, but then this KBC judges in this electronic type clear program ROM (read-only memory) whether be preset with the switching delay time (step S34).If not preset this switching delay time, then this KBC starts the computer system (step S37) of this computer apparatus.
If preset this switching delay time is arranged, then this KBC is carried out switching delay service (step S35), and judges that whether this power key is pressed the time greater than this switching delay time (step S36).If the time that this power key is pressed is not more than this switching delay time, then get back to step S33.If the time that this power key is pressed, then this KBC started the computer system (step S37) of this computer apparatus greater than this switching delay time.
Fig. 4 is the flow chart of steps of the false touch protection method of another embodiment of the present invention.This false touch protection method method is applicable to computer apparatus; This computer apparatus (for example comprises power key, embedded controller at least; KBC (KBC), Basic Input or Output System (BIOS) (BIOS) but with electronic type clear program ROM (read-only memory) (EEPROM); And the electric source modes of this computer apparatus is under the S0 pattern, and wherein the central processing unit of this computer apparatus of S0 modal representation (CPU) is carried out operations at full speed so the consumption of power is maximum.
At first, this KBC is carried out other program (step S41), the power key of judging this computer apparatus then whether be pressed (step S42).If this power key is not pressed, then get back to step S41.If this power key is pressed, but then this KBC judges in this electronic type clear program ROM (read-only memory) whether be preset with the switching delay time (step S43).If not preset this switching delay time; Then this KBC makes this computer system get into standby mode (S3 pattern) or sleep pattern (S4 pattern) or closes the computer system (S5 pattern) (step S46) of this computer apparatus; Wherein, The S3 pattern is to exist operating system all data preservations in the internal memory motionless now, gets into " false shutdown " then, and the S4 pattern is existing in the hard disk the data integrity in the internal memory of operating system; Deng when start just directly from hard disk complete data are read internal memory, and S5 modal representation shutdown.
If be preset with this switching delay time, then this KBC is carried out switching delay service (step S44), and judges that whether time that this power key is pressed is greater than this switching delay time (step S45).If the time that this power key is pressed is then got back to step S41 not greater than this switching delay time.If time of being pressed of this power key is greater than this switching delay time, then this KBC makes this computer system get into standby mode (S3 pattern) or sleep pattern (S4 pattern) or closes the computer system (S5 pattern) (step S46) of this computer apparatus.
The false touch protection method that utilizes power switch delay to realize of the embodiment of the invention can set at least 2 seconds~the delay behavior pattern of 8 seconds power key; Prevent the false touch power key and make starting up for computer; Perhaps cause computer system to get into sleep pattern or shutdown, and cause executory application program to be interrupted suddenly.
The present invention also provides a kind of recording medium (for example discs, disk sheet and removable hard drive or the like), and the authority sign-off program that its record computer-readable is got is so that carry out above-mentioned false touch protection method.At this; Be stored in the authority sign-off program on the recording medium; Basically (for example the setting up organization chart code segment, sign-off forms code segment, setting program code snippet and deployment program code snippet) formed by a plurality of code segment, and the function of these code segment corresponds to the step of said method and the functional block diagram of said system.