CN1402142A - Method and system for executing hot key function - Google Patents
Method and system for executing hot key function Download PDFInfo
- Publication number
- CN1402142A CN1402142A CN02132357.7A CN02132357A CN1402142A CN 1402142 A CN1402142 A CN 1402142A CN 02132357 A CN02132357 A CN 02132357A CN 1402142 A CN1402142 A CN 1402142A
- Authority
- CN
- China
- Prior art keywords
- hot key
- operating system
- type
- function
- state value
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000006870 function Effects 0.000 claims description 47
- 238000012545 processing Methods 0.000 claims description 13
- 230000005055 memory storage Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 3
- 239000011159 matrix material Substances 0.000 description 3
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001052 transient effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
A method for executing hot key function of computer system includes such steps as detecting a system control interrupt event, generating a system interrupt command, judging if said interrupt event is a hot key pressing one, examining the type of operating system if it is, reading the state value relative to the hot key pressing event from BIOS if it is the first type and executing the relative function, or sending the state value to operating system for executing relative function if it is the second type.
Description
Technical field
The present invention relates to a kind of computer system, particularly a kind of method and system that need not use the execution hot key function of embedded controller with hot key.
Background technology
Fig. 1 shows that a tradition can carry out the computer system of hot key function.Computer system 100 has comprised a central processing unit that couples with north bridge chips 106 via cpu bus (CPU) 102.North bridge chips 106 also is coupled to a main array 104 via a memory bus, also is coupled to a graphics controller 108 via Accelerated Graphics Port (AGP) bus.North bridge chips 106 couples central processing unit 102, main array 104 and graphics controller 108 peripheral unit with other via a main expansion bus (BUS A).Main expansion bus (BUS A) can be peripheral components connecting interface bus (PCI bus), or EISA bus (EISA bus).Any use is with the communications protocol of main expansion bus compatibility or the device that meets necessary requirement on electric performance all can be connected with main expansion bus, as audio unit 114, IEEE1394 interface arrangement 116 or adapter 118.Computer system 100 can have more than one adapter, as adapter 119.These devices can directly be incorporated in the motherboard, or insert in the slot 110 of main expansion bus.
Expansion bus also can be provided one time in computer system 100 usually, just can use this moment South Bridge chip 112 that main expansion bus (BUS A) is coupled to time expansion bus (BUS B).The communications protocol of any use and time expansion bus compatibility or the device that meets necessary requirement on electric performance all can be connected with inferior expansion bus is as hard disk controller 122, flash read only memory 124, export controller 126.These devices can be connected with time expansion bus by the mode of inserting slot 120.Flash read only memory 124 has stored a ROM-BIOS (system BIOS) and has carried out when computer system 100 starts for central processing unit 102.
Controller 126 is gone in output can comprise a cmos memory (CMOS memory) that uses battery supply to store the ROM-BIOS parameter of computer system 100 required uses, can also comprise a counter that real-time clock signal (RTC) be provided.Clock signal is in order to the operation that follows some device (as hard disk 122 and main expansion bus) in real time, behind the one section Preset Time of stopping action at these devices, can start sleep pattern or battery saving mode.In addition, in order to carry out hot key function, output is gone into controller 126 and has also been comprised an embedded controller, pushes the generation of incident and carries out necessary programs to detect hot key.
Fig. 2 shown the tradition can carry out the embedded controller that uses in the computer system of hot key function.Embedded controller 1261 is among controller 126 is gone in output and be coupled between South Bridge chip 112 and the keyboard 130.For instance, button in keyboard 130 " Fn " and " F2 " be when being pressed simultaneously, and keyboard 130 can be respectively sent a relative scan code (scan code) and sent one via output terminal Fn_SMI and represent signal that interrupt event (interruptevent) takes place extremely the input end KBD_IN and the GPE_IN of embedded controller 1261 via output terminal KBD_0.General keyboard mainly is made up of a microprocessor controller, code translator and keyboard switch matrix three parts.Because keyboard arrangement becomes matrix format, keyboard scancode is that the microprocessor controller by keyboard produces by code translator.Microprocessor controller periodically carries out the scanning of row, column to keyboard switch matrix scanning, detects whether a button is pressed, and calculates the position of button and produce relative keyboard scancode.In addition, for the identification of special function keys, keyboard also have a logical circuit (as with door) judge whether a certain function key and another button are pushed simultaneously, when both are pushed simultaneously, just this logical circuit can produce the signal of above-mentioned representative interrupt event.Embedded controller 1261 is then delivered to South Bridge chip 112 with scan code, and issue a signal transmitted to the input end EXT_SMI of South Bridge chip 112 and carry out ACPI source language program code (Advanced Configuration and Power Interface (ACPI) the Source language code that is stored in the ROM-BIOS, abbreviation ASL code), carry out the executive routine of hot key function.
Fig. 3 is example to use hot key to carry out the display handoff functionality, has shown the method flow of above-mentioned conventional computer system execution hot key function.
In step 31, the user has pushed " Fn " and " F2 " on the keyboard 130 simultaneously, pushes incident and produce a hot key, makes keyboard 130 export a relative scan code and the signal of representing interrupt event to take place respectively at KBD_0 end and Fn_SMI end.
In step 32, central processing unit 102 just begins to carry out this operating system after the startup of finishing whole computer system 100 and loading are stored in operating system in the hard disk 122.At this moment, sending the signal of representing interrupt event by keyboard 130 will make central processing unit 102 receive system control interrupt instruction, the execution of temporary transient interrupt operation system.
In step 33, embedded controller 1261 receives the signal sent by keyboard 130 and the ACPI source language program code that makes central processing unit 102 begin to carry out to be stored in the ROM-BIOS via South Bridge chip 112.
In step 34, ACPI source language program code judges whether the interrupt event that is taken place is that a hot key is pushed incident, and then operating system is got back in the execution of direct termination routine code if not; If then execution in step 35.
In step 35, ACPI source language program code can be checked the OS Type that present computer system 100 is performed, if when OS Type was Microsft Windows operating system 98 editions (Microsoft Windows 98) or Microsft Windows operating system Millennium version (Microsoft Windows ME), then execution in step 361; If when Microsft Windows operating system 2000 editions (Microsoft Windows 2000) or Microsft Windows operating system professional versions (Microsofi Windows XP), then execution in step 362.
In step 361, ACPI source language program code is sent to the scan code of keyboard 130 outputs the driver of hot key special use, and discern the relative state value of scan code therewith by driver, the ROM-BIOS that drives image is again carried out the switching of display.
In step 362, ACPI source language program code is discerned and hot key scan code relative status value by embedded controller 1261, and is sent to operating system and carries out the switching of display with the ROM-BIOS that drives image.
Can carry out in the computer system of hot key in above-mentioned tradition, owing to must be specially increasing by an embedded controller, thereby improve the cost of manufacture and the complexity of circuit for carrying out hot key function.Simultaneously, the technician must cooperate the special letter formula of the required use of embedded controller to write ACPI original program code, causes extra burden.
Summary of the invention
In order to address the above problem, the invention provides a kind of execution hot key function method and system that need not use embedded controller, to reduce hardware cost, simplify circuit complexity and to save the special letter formula of using embedded controller or the necessity that installs driver additional.
A purpose of the present invention is to provide a kind of method of carrying out hot key function.This method is applicable to a computer system, may further comprise the steps: the system that records controls interrupt event and sends system control interruptive command; Judge on behalf of a hot key, whether this system's control interrupt event push incident; When on behalf of this hot key, this system's control interrupt event push incident, check the OS Type that this computer system is used; When this OS Type is a first kind, reads in the ROM-BIOS of this computer system certainly with this hot key and push the relative state value of incident, and carry out a function relative with this state value; When this OS Type is one second type, in this ROM-BIOS of this computer system, read with this hot key and push this relative state value of incident, and this state value is sent to this operating system, make this operating system carry out this function relative with this state value.
Another object of the present invention is to provide a kind of system that carries out hot key function, comprise first, second memory storage, a keyboard, a bridge-set and a central processing unit.Wherein, first storing device for storing, one operating system.Second storing device for storing, one program code and a plurality of state value.Keyboard has first and second button, when this first and second button is pressed simultaneously, send one first and second push signal.When this first and second button is pressed simultaneously, bridge-set receive this first and second push signal, and produce system control look-at-me.Central processing unit is carried out this operating system, when this first and second button is pressed simultaneously, receives this system and controls look-at-me and read this program code to carry out following steps: judge on behalf of a hot key, whether this system's control look-at-me push incident; When on behalf of this hot key, this system's control look-at-me push incident, check this OS Type; When this OS Type is a first kind, reads in this second memory storage with this hot key certainly and push one of these relative state values of incident, and carry out a function relative with this state value that reads; And when this OS Type is one second type, read with this hot key from this second memory storage and to push one of these relative state values of incident, and the state value that this reads is sent to this operating system, make this operating system carry out this function relative with this reading state value.
By this, utilization of the present invention is stored in ACPI source language program code (the ACPI source language code in the ROM-BIOS, be called for short ASL code), the control of generation system interrupts carrying out hot key function when the hot key incident of pushing takes place, and in ROM-BIOS, read the state value relative with hot key, directly carry out relative hot key function again or transfer to the operating system execution, replaced the method that the embedded controller of traditional use is discerned hot key function.
Description of drawings
Below, accompanying drawings a kind of embodiment that carries out the hot key function method and system of the present invention.
Fig. 1 shows the computer system that a tradition can be carried out hot key function;
Fig. 2 shows a tradition can carry out the embedded control circuit that uses in the computer system of hot key function;
Fig. 3 shows the method flow diagram that a tradition is carried out hot key function;
Fig. 4 shows the computer system that can carry out hot key function in one embodiment of the invention; With
Fig. 5 shows the method flow diagram of carrying out hot key function in one embodiment of the invention.
Embodiment
Fig. 4 shows the computer system 400 that can carry out hot key function in one embodiment of the invention.Except having used the output that does not contain embedded controller to go into the controller 426, it is identical with traditional computer system 100 among Fig. 1.Keyboard 130 in the present embodiment is that directly going into controller 426 via general output is coupled to South Bridge chip 112.For instance, button in keyboard 130 " Fn " and " F2 " are when being pressed simultaneously, keyboard 130 is exported the signal that on behalf of interrupt event, a relative scan code and take place respectively, and directly be sent to South Bridge chip 112, notice central processing unit 102 is carried out the ACPI source language program code (ACPI source language code) that is stored in the ROM-BIOS, carries out the executive routine of hot key function.
Fig. 5 is example to use hot key to carry out the display handoff functionality, shows the process flow diagram of computer system execution hot key function method in the present embodiment.Yet the present invention is not restricted to carry out the blocked operation of display.
In step 51, the user has pushed " Fn " and " F2 " on the keyboard 130 simultaneously, pushes incident and produce a hot key, makes keyboard 130 export a relative scan code and the signal of representing interrupt event to take place respectively.
In step 52, central processing unit 102 just begins to carry out this operating system after the startup of finishing whole computer system 100 and loading are stored in operating system in the hard disk 122.At this moment, sending the signal of representing interrupt event by keyboard 130 will make central processing unit 102 receive system control interrupt instruction, the execution of temporary transient interrupt operation system.
In step 53, embedded controller 1261 receives the signal sent by keyboard 130 and the ACPI source language program code that makes central processing unit 102 begin to carry out to be stored in the ROM-BIOS via South Bridge chip 112.
In step 54, ACPI source language program code judges whether the interrupt event that is taken place is that a hot key is pushed incident, and then operating system is got back in the execution of direct termination routine code if not; If then execution in step 55.
In step 55, the OS Type that the present computer system of ACPI source language program code inspection 400 is performed, if when OS Type was Microsft Windows operating system 98 editions (Microsoft Windows 98) or Microsft Windows operating system Millennium version (Microsoft Windows ME), then execution in step 561; If when Microsft Windows operating system 2000 editions (Microsoft Windows 2000) or Microsft Windows operating system professional versions (Microsoft Windows XP), then execution in step 562.
In step 561, ACPI source language program code reads relative state value according to the scan code of keyboard 130 output to ROM-BIOS storer 124, this state value is sent to carry out the switching of display in the ROM-BIOS of image again.
In step 562, ACPI source language program code reads relative state value according to the scan code of keyboard 130 outputs to the storer 124 of ROM-BIOS, and being sent to operating system, the ROM-BIOS that is driven image by operating system is carried out the switching of display.
Comprehensively above-mentioned, the invention provides a kind of execution hot key function method and system that need not use embedded controller, utilization is stored in the ACPI source language program code in the ROM-BIOS, the control of generation system interrupts carrying out hot key function when the hot key incident of pushing takes place, and the state value relative with hot key is stored in the ROM-BIOS, reading the back by program code directly carries out relative function or transfers to the operating system execution, replace the embedded control circuit of traditional use and discerned the method for hot key function, thereby can reduce hardware cost, simplify circuit complexity and save necessity of using special letter formula and installing driver additional.
Though the present invention discloses as above with a preferred embodiment; right its is not in order to qualification the present invention, any those skilled in the art, without departing from the spirit and scope of the present invention; can do some changes and retouching, so protection scope of the present invention is looked appended claim and is as the criterion.
Claims (10)
1. a method of carrying out hot key function is applicable to a computer system, may further comprise the steps:
Record system control interrupt event and send system control interruptive command;
Judge whether this system's control interrupt event is that a hot key is pushed incident;
When this system's control interrupt event is pushed incident for this hot key, check the OS Type that this computer system is used;
When this OS Type is a first kind, reads in the ROM-BIOS of this computer system certainly with this hot key and push the relative state value of incident, and carry out a function relative with this state value; And
When this OS Type is one second type, in this ROM-BIOS of this computer system, read with this hot key and push this relative state value of incident, and this state value is sent to this operating system, make this operating system carry out this function relative with this state value.
2. the method for execution hot key function as claimed in claim 1, wherein this computer system has first and second button, produces to represent this hot key to push this system's control interrupt event of incident when this first and second button is pressed simultaneously.
3. the method for execution hot key function as claimed in claim 1, wherein this first kind is one of Microsoft's Window operating system 98 editions and Microsoft's Window operating system Millennium version.
4. the method for execution hot key function as claimed in claim 1, wherein this second type is one of Microsoft's Window operating system version in 2000 and Microsoft's Window operating system professional version.
5. system that carries out hot key function comprises:
One first memory storage stores an operating system;
One second memory storage stores a program code and a plurality of state value;
One keyboard has first and second button, when this first and second button is pressed simultaneously, send one first and second push signal;
One bridge-set, when this first and second button is pressed simultaneously, receive this first and second push signal, and produce an interrupt event signal; And
One central processing unit is carried out this operating system, when this first and second button is pressed simultaneously, receives this interrupt event signal and reads this program code to carry out following steps:
Sending system control interrupts;
Judge whether this interrupt event is that a hot key is pushed incident;
When this interrupt event is pushed incident for this hot key, check this OS Type;
When this OS Type is a first kind, reads in this second memory storage with this hot key certainly and push one of these relative state values of incident, and carry out a function relative with this state value that reads; And
When this OS Type is one second type, read with this hot key from this second memory storage and to push one of these relative state values of incident, and the state value that this reads is sent to this operating system, make this operating system carry out this function relative with this reading state value.
6. the method for execution hot key function as claimed in claim 5, wherein this first kind is one of Microsoft's Window operating system 98 editions and Microsoft's Window operating system Millennium version.
7. the method for execution hot key function as claimed in claim 5, wherein this second type is one of Microsoft's Window operating system version in 2000 and Microsoft's Window operating system professional version.
8. the method for execution hot key function as claimed in claim 5, wherein this first memory storage is a hard disk.
9. the method for execution hot key function as claimed in claim 5, wherein this second memory storage is a ROM (read-only memory).
10. the method for execution hot key function as claimed in claim 5, wherein this program code is an ACPI source language program code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021323577A CN1177282C (en) | 2002-09-24 | 2002-09-24 | Method and system for executing hot key function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB021323577A CN1177282C (en) | 2002-09-24 | 2002-09-24 | Method and system for executing hot key function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1402142A true CN1402142A (en) | 2003-03-12 |
CN1177282C CN1177282C (en) | 2004-11-24 |
Family
ID=4746747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB021323577A Expired - Lifetime CN1177282C (en) | 2002-09-24 | 2002-09-24 | Method and system for executing hot key function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1177282C (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799279A (en) * | 2011-05-26 | 2012-11-28 | 联想(北京)有限公司 | Key identification method, keyboard and electronic device |
US8760321B2 (en) | 2007-07-27 | 2014-06-24 | Getac Technology Corporation | Method for detecting and processing key scan codes of computer keyboard |
CN106528099A (en) * | 2016-10-21 | 2017-03-22 | 合肥联宝信息技术有限公司 | Method and device for recognizing operation command based on different operation systems |
CN107704228A (en) * | 2017-11-16 | 2018-02-16 | 山东超越数控电子股份有限公司 | A kind of multi-display switching method and device |
CN113360257A (en) * | 2021-04-16 | 2021-09-07 | 山东英信计算机技术有限公司 | Information operation method and device based on BIOS, storage medium and equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7793059B2 (en) * | 2006-01-18 | 2010-09-07 | Apple Inc. | Interleaving policies for flash memory |
-
2002
- 2002-09-24 CN CNB021323577A patent/CN1177282C/en not_active Expired - Lifetime
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8760321B2 (en) | 2007-07-27 | 2014-06-24 | Getac Technology Corporation | Method for detecting and processing key scan codes of computer keyboard |
CN102799279A (en) * | 2011-05-26 | 2012-11-28 | 联想(北京)有限公司 | Key identification method, keyboard and electronic device |
CN106528099A (en) * | 2016-10-21 | 2017-03-22 | 合肥联宝信息技术有限公司 | Method and device for recognizing operation command based on different operation systems |
CN107704228A (en) * | 2017-11-16 | 2018-02-16 | 山东超越数控电子股份有限公司 | A kind of multi-display switching method and device |
CN113360257A (en) * | 2021-04-16 | 2021-09-07 | 山东英信计算机技术有限公司 | Information operation method and device based on BIOS, storage medium and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN1177282C (en) | 2004-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7170498B2 (en) | Computer system provided with hotkeys | |
EP1426859B1 (en) | Method of computer rapid start-up | |
US7913072B2 (en) | Information-processing apparatus and activation method thereof | |
US6721881B1 (en) | System and method for determining if a display device configuration has changed by comparing a current indicator with a previously saved indicator | |
US7069472B2 (en) | Method for restoring CMOS in a jumperless system | |
US6356965B1 (en) | Hotkey for network service boot | |
US20030163611A1 (en) | Electronic device and method of controlling the same | |
JP2608532B2 (en) | Method of emulating the presence of a user input device in a computer system | |
CN1834915A (en) | Method of updating firmware in computer server systems | |
CN1177282C (en) | Method and system for executing hot key function | |
US20040225874A1 (en) | Method for reduced BIOS boot time | |
JP2963426B2 (en) | Bus bridge device and transaction forward method | |
CN101047310A (en) | Overheat protection circuit and system circuit board | |
CN1391164A (en) | Test method of computer main board power on and off | |
CN101436097B (en) | Electronic device and wake-up method thereof | |
CN1801831A (en) | Method for increasing handset starting response speed | |
CN1251051C (en) | Method and apparatus for rousing computer | |
CN100386751C (en) | Method and device for automatic initialization of USB equipment | |
CN1369802A (en) | Method for recording and automatically restoring flow state | |
CN1252546A (en) | Computer device and method for entering operation mode from power saving mode | |
CN2570871Y (en) | Computer motherboard switch test device | |
CN1369762A (en) | Dual-purpose computer keyboard and method for automatically detecting interface state | |
CN100347689C (en) | Circuit for protecting data on hard disc | |
CN1940887A (en) | Method and apparatus for master-controlled applied programm of self-repairing built-in equipment | |
CN112068888B (en) | Linux system equipment starting method and device and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CX01 | Expiry of patent term |
Granted publication date: 20041124 |
|
CX01 | Expiry of patent term |