TWI475486B - Method for executing key function and electronic apparatus - Google Patents

Method for executing key function and electronic apparatus Download PDF

Info

Publication number
TWI475486B
TWI475486B TW101120260A TW101120260A TWI475486B TW I475486 B TWI475486 B TW I475486B TW 101120260 A TW101120260 A TW 101120260A TW 101120260 A TW101120260 A TW 101120260A TW I475486 B TWI475486 B TW I475486B
Authority
TW
Taiwan
Prior art keywords
memory unit
record
state
enabled
boot
Prior art date
Application number
TW101120260A
Other languages
Chinese (zh)
Other versions
TW201351284A (en
Inventor
Chi Hsuan Lo
Rung Lung Lin
Shao Cheng Lu
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to TW101120260A priority Critical patent/TWI475486B/en
Publication of TW201351284A publication Critical patent/TW201351284A/en
Application granted granted Critical
Publication of TWI475486B publication Critical patent/TWI475486B/en

Links

Landscapes

  • Stored Programmes (AREA)

Description

執行按鍵功能的方法及電子裝置Method and electronic device for performing button function

本發明是有關於一種開機方法,且特別是有關於一種在開機階段中執行按鍵功能的方法及電子裝置。The present invention relates to a booting method, and more particularly to a method and an electronic device for performing a button function in a booting phase.

在電腦主機系統啟動後,作業系統(Operating System,OS)取得控制權之前,電腦主機系統會有一連串的機制負責檢測並初始化電腦主機系統及其周邊硬體裝置的開機(boot)階段。一旦顯示裝置初始化完成,顯示裝置便於螢幕上開始顯示各類的裝置和偵錯訊息。舉例而言,顯示裝置包括顯示基本輸入輸出系統(Basic Input Output System,BIOS)資訊、處理器資訊、記憶體資訊等等的初始化訊息。After the computer host system is started, before the operating system (OS) obtains control, the computer host system has a series of mechanisms for detecting and initializing the boot phase of the computer host system and its surrounding hardware devices. Once the display device is initialized, the display device facilitates the display of various types of devices and debug messages on the screen. For example, the display device includes an initialization message that displays basic input output system (BIOS) information, processor information, memory information, and the like.

而在BIOS執行開機自我測試(Power On Self Test,POST)的過程中(例如,螢幕中已開始顯示初始化訊息的階段),可以藉由已定義之熱鍵(hot key)執行對應的功能。例如,開啟BIOS的設置選單介面、選擇開機裝置、開機至安全模式等功能。然而,隨著開機時間的縮短,使用者要提高其反應力以在短短的時間內觸發相關的熱鍵,因而容易錯失致能熱鍵的時間。In the process of the BIOS performing the Power On Self Test (POST) (for example, the stage in which the initialization message is already displayed on the screen), the corresponding function can be performed by the defined hot key. For example, open the BIOS setup menu interface, select boot device, boot to safe mode and more. However, as the boot time is shortened, the user has to increase their responsiveness to trigger the associated hotkey in a short period of time, thus easily omitting the time to enable the hotkey.

本發明提供一種執行按鍵功能的方法與電子裝置,可 執行開機階段中任一時間點所觸發之按鍵對應的功能。The invention provides a method and an electronic device for performing a button function, which can Perform the function corresponding to the button triggered at any point in the boot phase.

本發明提出一種執行按鍵功能的方法,適用於電子裝置。在此方法中,接收開機訊號,以執行開機程序。而在執行開機程序的期間,當偵測到鍵盤的按鍵被致能時,將被致能的按鍵對應的狀態致能記錄儲存至暫存區。並且,將儲存在暫存區的狀態致能記錄映射(mapping)至記憶單元。而自記憶單元中讀取被映射的狀態致能記錄,以執行狀態致能記錄對應的功能。The present invention provides a method of performing a button function suitable for use in an electronic device. In this method, a boot signal is received to perform a boot process. During the execution of the boot process, when the button of the keyboard is detected to be enabled, the state-enabled record corresponding to the enabled button is stored in the temporary storage area. And, the state enabled record stored in the temporary storage area is mapped to the memory unit. The mapped state enabled record is read from the memory unit to perform the function of the status enable record.

在本發明之一實施例中,上述在將儲存在暫存區的狀態致能記錄映射至記憶單元之前,初始化記憶單元。In an embodiment of the invention, the memory unit is initialized prior to mapping the state enabled record stored in the temporary storage area to the memory unit.

在本發明之一實施例中,上述在將儲存暫存區的狀態致能記錄映射至記憶單元之後,可在開機程序執行至一指定時間時,檢查記憶單元是否存在狀態致能記錄,以自記憶單元中讀取被映射的狀態致能記錄。在此,上述指定時間在載入作業系統之前。In an embodiment of the present invention, after the state enabled record of the storage temporary storage area is mapped to the memory unit, the memory unit may be checked for presence of the status enable record when the boot process is executed for a specified time. The mapped state enabled record is read in the memory unit. Here, the above specified time is before the loading of the operating system.

在本發明之一實施例中,上述在檢查記憶單元是否存在狀態致能記錄之後,若記憶單元中不存在狀態致能記錄,繼續執行開機程序,以載入作業系統。In an embodiment of the present invention, after checking whether the memory unit has a state enabled record, if there is no state enabled record in the memory unit, the booting process is continued to load the operating system.

在本發明之一實施例中,上述自記憶單元中讀取被映射的狀態致能記錄之後,可進一步判斷狀態致能記錄是否符合預設熱鍵組合。若狀態致能記錄不符合預設熱鍵組合,繼續執行開機程序,以載入作業系統。若狀態致能記錄符合預設熱鍵組合,執行狀態致能記錄對應的功能。In an embodiment of the present invention, after reading the mapped state enabled record from the memory unit, it may further determine whether the state enable record meets the preset hot key combination. If the status enable record does not match the preset hotkey combination, continue the boot process to load the operating system. If the status enable record meets the preset hotkey combination, the execution status enables the corresponding function to be recorded.

本發明另提出一種電子裝置,包括記憶單元、鍵盤、 嵌入式控制器以及開機模組。其中,上述鍵盤包括多個按鍵。嵌入式控制器包括一暫存區,並且嵌入式控制器耦接至上述鍵盤,藉以偵測上述按鍵是否被致能。開機模組分別耦接至嵌入式控制器與記憶單元,透過開機模組接收開機訊號,以執行開機程序。在此,當在執行開機程序的期間,透過嵌入式控制器偵測到有按鍵被致能時,將被致能的按鍵對應的狀態致能記錄儲存至暫存區,並且,透過嵌入式控制器或開機模組將儲存在暫存區的狀態致能記錄映射至記憶單元,而利用開機模組自記憶單元中讀取被映射的狀態致能記錄,以執行狀態致能記錄對應的功能。The invention further provides an electronic device, comprising a memory unit, a keyboard, Embedded controller and boot module. Wherein, the keyboard includes a plurality of buttons. The embedded controller includes a temporary storage area, and the embedded controller is coupled to the keyboard to detect whether the button is enabled. The boot modules are respectively coupled to the embedded controller and the memory unit, and receive the boot signal through the boot module to execute the boot process. Here, during the execution of the boot process, when the embedded controller detects that a button is enabled, the state-enabled record corresponding to the enabled button is stored in the temporary storage area, and through the embedded control The device or the boot module maps the status enable record stored in the temporary storage area to the memory unit, and uses the boot module to read the mapped status enable record from the memory unit to perform the function corresponding to the status enable record.

在本發明之一實施例中,上述開機模組初始化記憶單元,使得嵌入式控制器或開機模組將儲存在暫存區的狀態致能記錄映射至記憶單元。In an embodiment of the invention, the booting module initializes the memory unit such that the embedded controller or the booting module maps the state enabled record stored in the temporary storage area to the memory unit.

在本發明之一實施例中,在開機程序執行至指定時間時,開機模組還會檢查記憶單元是否存在狀態致能記錄,以自記憶單元中讀取被映射的狀態致能記錄。在此,上述指定時間在載入作業系統之前。In an embodiment of the present invention, when the booting process is executed to a specified time, the booting module also checks whether the memory unit has a status enabled record to read the mapped state enabled record from the memory unit. Here, the above specified time is before the loading of the operating system.

在本發明之一實施例中,當記憶單元中不存在狀態致能記錄時,開機模組會繼續執行開機程序,以載入作業系統。In an embodiment of the invention, when there is no state enabled record in the memory unit, the boot module continues to execute the boot process to load the operating system.

在本發明之一實施例中,上述開機模組還會判斷狀態致能記錄是否符合預設熱鍵組合。若狀態致能記錄符合預設熱鍵組合,由開機模組執行狀態致能記錄對應的功能。若狀態致能記錄不符合預設熱鍵組合,則開機模組會繼續 執行開機程序,以載入作業系統。In an embodiment of the invention, the boot module further determines whether the status enable record matches the preset hot key combination. If the status enable record meets the preset hotkey combination, the corresponding function is enabled by the boot module execution status. If the status enable record does not match the preset hotkey combination, the boot module will continue Execute the boot process to load the operating system.

基於上述,可在開機階段中任一時間點觸發鍵盤上的按鍵,以執行被觸發按鍵對應的功能。並且,並且,將被致能按鍵的狀態致能記錄映射在記憶單元中,因而可直接存取記憶單元,進而可加快存取的速度。Based on the above, the keys on the keyboard can be triggered at any point in the booting phase to perform the function corresponding to the triggered keys. Moreover, the state enabled record of the enabled button is mapped in the memory unit, so that the memory unit can be directly accessed, thereby speeding up the access.

為讓本發明之上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the present invention will be more apparent from the following description.

圖1是依照本發明一實施例之一種電子裝置的方塊圖。請參照圖1,電子裝置100包括記憶單元110、開機模組120、嵌入式控制器130以及鍵盤140。其中,開機模組120分別耦接至記憶單元110與嵌入式控制器130,而嵌入式控制器130耦接至鍵盤140。1 is a block diagram of an electronic device in accordance with an embodiment of the present invention. Referring to FIG. 1 , the electronic device 100 includes a memory unit 110 , a boot module 120 , an embedded controller 130 , and a keyboard 140 . The booting module 120 is coupled to the memory unit 110 and the embedded controller 130, and the embedded controller 130 is coupled to the keyboard 140.

另外,電子裝置100更包括有處理單元150與系統控制單元160。處理單元150透過系統控制單元160與各個構件相耦接,而系統控制單元160耦接至電子裝置100的各個周邊裝置,包括記憶單元110、開機模組120以及鍵盤140等。其中,系統控制單元160是透過嵌入式控制器130耦接至開機模組120與鍵盤140。In addition, the electronic device 100 further includes a processing unit 150 and a system control unit 160. The processing unit 150 is coupled to each component through the system control unit 160, and the system control unit 160 is coupled to each peripheral device of the electronic device 100, including the memory unit 110, the boot module 120, and the keyboard 140. The system control unit 160 is coupled to the boot module 120 and the keyboard 140 through the embedded controller 130.

記憶單元110例如為隨機存取記憶體(Random Access Memory,RAM)。在此,電子裝置100中所有構件的驅動程式以及作業系統等等,都會先載入(load)到記憶單元110,以供處理單元150讀取。例如,透過記憶體映射 (Shadow RAM)的方式將開機模組120中的系統韌體載入至記憶單元110中,以供處理單元150來存取。The memory unit 110 is, for example, a random access memory (RAM). Here, the drivers and operating systems of all components in the electronic device 100 are first loaded into the memory unit 110 for reading by the processing unit 150. For example, through memory mapping The method of (Shadow RAM) loads the system firmware in the boot module 120 into the memory unit 110 for access by the processing unit 150.

處理單元150例如為中央處理單元(Central Processing Unit,CPU),其是執行電子裝置100中的硬體、韌體以及處理軟體內的資料。系統控制單元160則為處理單元150對外訊息交換的橋樑。在本實施例中,系統控制單元160包括北橋晶片與南橋晶片,在其他實施例中,系統控制單元160亦可以為南橋晶片,而北橋晶片則與處理單元110互相整合,然,並不以此為限。The processing unit 150 is, for example, a central processing unit (CPU), which is a device that executes hardware, firmware, and processing software in the electronic device 100. The system control unit 160 is a bridge for the external exchange of information by the processing unit 150. In this embodiment, the system control unit 160 includes a north bridge wafer and a south bridge wafer. In other embodiments, the system control unit 160 may also be a south bridge wafer, and the north bridge wafer is integrated with the processing unit 110. Limited.

在本實施例中,嵌入式控制器130包括暫存區131,由嵌入式控制器130來偵測鍵盤140中的按鍵是否被致能。在此,嵌入式控制器130中包括鍵盤控制器(Keyboard Controller,KBC),或者嵌入式控制器130即為鍵盤控制器。當電子裝置100接上電源時,嵌入式控制器130便會開始運作。並且,在電子裝置100接收到開機訊號而開始執行開機程序時,可由嵌入式控制器130來偵測鍵盤140上的按鍵是否有被致能。例如,當其中一個按鍵被按下時,被按壓的按鍵會產生一個狀態致能記錄,並將狀態致能記錄傳送至嵌入式控制器130。In this embodiment, the embedded controller 130 includes a temporary storage area 131, and the embedded controller 130 detects whether the keys in the keyboard 140 are enabled. Here, the embedded controller 130 includes a keyboard controller (KBC), or the embedded controller 130 is a keyboard controller. When the electronic device 100 is powered on, the embedded controller 130 will begin to operate. Moreover, when the electronic device 100 receives the boot signal and starts executing the boot process, the embedded controller 130 can detect whether the button on the keyboard 140 is enabled. For example, when one of the buttons is pressed, the pressed button generates a status enable record and transmits the status enable record to the embedded controller 130.

開機模組120在接收到開機訊號時,會去執行開機程序。在此,開機模組120例如為儲存有基本輸入輸出系統(Basic Input or Output System,BIOS)等系統韌體的晶片。舉例來說,開機程序可以分為啟動區塊(boot block)階段以及開機自我測試(Power On Self Test,POST)階段, 在此僅為舉例說明,並不以此為限。在啟動區塊階段中,由於記憶單元110尚未被初始化因此為無法使用狀態。在接收到開機訊號或重置(reset)訊號時,處理單元150會去執行開機模組120中的啟動區塊,藉此將記憶單元110與系統控制單元160初始化。在記憶單元110初始化後,再將開機模組120中的系統韌體載入至記憶單元110,藉以執行POST。When the boot module 120 receives the boot signal, it will execute the boot process. Here, the boot module 120 is, for example, a wafer in which a system firmware such as a Basic Input or Output System (BIOS) is stored. For example, the boot process can be divided into a boot block phase and a Power On Self Test (POST) phase. This is for illustrative purposes only and is not intended to be limiting. In the boot block phase, the memory unit 110 is in an unusable state since it has not yet been initialized. Upon receiving the power-on signal or the reset signal, the processing unit 150 will execute the boot block in the boot module 120, thereby initializing the memory unit 110 and the system control unit 160. After the memory unit 110 is initialized, the system firmware in the boot module 120 is loaded into the memory unit 110 to perform POST.

當電子裝置100在執行開機程序的期間,透過嵌入式控制器130偵測到有按鍵被致能時,嵌入式控制器130會將被致能的按鍵對應的狀態致能記錄儲存至暫存區131。之後,可透過嵌入式控制器130或開機模組120將儲存在暫存區131的狀態致能記錄映射至記憶單元110,而利用開機模組120自記憶單元110中讀取被映射的狀態致能記錄,以執行狀態致能記錄對應的功能。When the electronic device 100 detects that a button is enabled through the embedded controller 130 during the execution of the booting process, the embedded controller 130 stores the state enabled record corresponding to the enabled button to the temporary storage area. 131. Then, the state enabled record stored in the temporary storage area 131 can be mapped to the memory unit 110 through the embedded controller 130 or the booting module 120, and the mapped state is read from the memory unit 110 by using the booting module 120. It can be recorded to perform the status-enabled recording of the corresponding function.

底下再舉一實施例來詳細說明執行按鍵功能的方法的各步驟。圖2是依照本發明一實施例之一種執行按鍵功能的方法流程圖。請同時參照圖1及圖2,在步驟S205中,接收開機訊號,以執行開機程序。舉例來說,當電源按鈕(power button)被致能時,電源按鈕會將開機訊號傳送至處理單元150,使得處理單元150驅動開機模組120來執行開機程序。An additional embodiment will be described below to detail the steps of the method of performing the button function. 2 is a flow chart of a method of performing a button function according to an embodiment of the invention. Referring to FIG. 1 and FIG. 2 simultaneously, in step S205, a boot signal is received to execute a boot process. For example, when the power button is enabled, the power button transmits a power-on signal to the processing unit 150, so that the processing unit 150 drives the power-on module 120 to execute the boot process.

在執行開機程序的期間,如步驟S210所示,當嵌入式控制器130偵測到鍵盤的按鍵被致能時,將被致能的按鍵對應的狀態致能記錄儲存至暫存區131。During the execution of the booting process, as shown in step S210, when the embedded controller 130 detects that the key of the keyboard is enabled, the state enabled record corresponding to the enabled button is stored in the temporary storage area 131.

接著,在步驟S215中,將儲存在暫存區131的狀態致能記錄映射至記憶單元110。舉例來說,可由嵌入式控制器130或開機模組120將暫存區131中的資料(例如,當中包括有狀態致能記錄)映射至記憶單元110中。Next, in step S215, the state enabled record stored in the temporary storage area 131 is mapped to the memory unit 110. For example, the data in the temporary storage area 131 (eg, including the state enabled recording) may be mapped into the memory unit 110 by the embedded controller 130 or the boot module 120.

之後,在步驟S220中,自記憶單元110中讀取被映射的狀態致能記錄,以執行狀態致能記錄對應的功能。例如,開機模組120可在一指定時間自動去讀取暫存區131映射在記憶單元110中的區域,倘若存在有狀態致能記錄,便執行狀態致能記錄對應的功能。上述指定時間例如是在執行中斷向量INT 19h之前,即載入作業系統之前。Thereafter, in step S220, the mapped state enable record is read from the memory unit 110 to perform a function corresponding to the state enable record. For example, the boot module 120 can automatically read the area of the temporary storage area 131 mapped in the memory unit 110 at a specified time. If there is a status enabled record, the function corresponding to the status enable record is executed. The above specified time is, for example, before the interrupt vector INT 19h is executed, that is, before the operating system is loaded.

舉例來說,在記憶單元110尚未被初始化時,假設使用者在執行開機程序的期間按下按鍵“ESC”。此時,嵌入式控制器130會將所獲得的按鍵“ESC”的狀態致能記錄(例如為掃瞄碼)儲存在暫存區131中。在記憶單元110完成初始化之後,可由嵌入式控制器130或開機模組120將暫存區131中的按鍵“ESC”的狀態致能記錄映射至記憶單元110,使得開機模組120能夠直接去記憶單元110中讀取按鍵“ESC”的狀態致能記錄,進而執行按鍵“ESC”對應的快速鍵功能。例如,開啟BIOS的設定選項介面。For example, when the memory unit 110 has not been initialized, it is assumed that the user presses the button "ESC" during the execution of the boot process. At this time, the embedded controller 130 stores the obtained state-enabled record of the button "ESC" (for example, a scan code) in the temporary storage area 131. After the initialization of the memory unit 110 is completed, the status enable record of the button "ESC" in the temporary storage area 131 can be mapped to the memory unit 110 by the embedded controller 130 or the boot module 120, so that the boot module 120 can directly memorize The state of the button "ESC" is read in the unit 110 to enable recording, and the quick key function corresponding to the button "ESC" is executed. For example, open the BIOS setup options interface.

而在記憶單元110被初始化之後,倘若使用者在執行開機程序的期間按下按鍵“ESC”等熱鍵。此時,嵌入式控制器130同樣會將所獲得的按鍵“ESC”的狀態致能記錄儲存在暫存區131中。之後,再將暫存區131中的按鍵“ESC”的狀態致能記錄映射至記憶單元110。在此,可以設定在 開機模組120欲去讀取記憶單元110中的狀態致能記錄之前,再將暫存區131映射至記憶單元110。然,在此僅為舉例說明,並不以此為限。After the memory unit 110 is initialized, if the user performs a booting procedure, a hotkey such as the button "ESC" is pressed. At this time, the embedded controller 130 also stores the obtained state-enabled record of the button "ESC" in the temporary storage area 131. Thereafter, the state enable record of the button "ESC" in the temporary storage area 131 is mapped to the memory unit 110. Here, you can set it at The boot module 120 maps the temporary storage area 131 to the memory unit 110 before reading the status enable record in the memory unit 110. However, this is merely an example and is not limited thereto.

另外,在暫存區131已存有一組狀態致能記錄之後,倘若嵌入式控制器130又偵測到鍵盤140中有其他按鍵被致能,則可以最後所獲得的狀態致能記錄來覆蓋掉原本存在於暫存區131的狀態致能記錄,以執行最後被致能的按鍵所對應的功能。In addition, after the temporary storage area 131 has stored a set of state enabled records, if the embedded controller 130 detects that other keys in the keyboard 140 are enabled, the last obtained state enabled record can be overwritten. The state that was originally present in the temporary storage area 131 enables the recording to perform the function corresponding to the last enabled button.

而上述流程是在開機階段中執行,以下再舉一實施例來說明開機方法的各步驟。The above process is executed in the booting phase, and an embodiment is further described below to explain the steps of the booting method.

圖3是依照本發明一實施例的一種開機方法流程圖。請同時參照圖1及圖3,在步驟S305中,處理單元150接收開機訊號,以執行開機模組120。FIG. 3 is a flow chart of a booting method according to an embodiment of the invention. Referring to FIG. 1 and FIG. 3 simultaneously, in step S305, the processing unit 150 receives the boot signal to execute the boot module 120.

在執行開機程序的期間,如步驟S310所示,當嵌入式控制器130偵測到鍵盤140的按鍵被致能時,將被致能的按鍵對應的狀態致能記錄儲存至暫存區131中。此時,開機模組120會持續執行開機程序。During the execution of the booting process, as shown in step S310, when the embedded controller 130 detects that the button of the keyboard 140 is enabled, the state enabled record corresponding to the enabled button is stored in the temporary storage area 131. . At this time, the boot module 120 will continue to execute the boot process.

接著,在步驟S315中,由嵌入式控制器130將儲存在暫存區131的狀態致能記錄映射至記憶單元110。在執行步驟S315之前,開機模組120會先將記憶單元110初始化。在記憶單元110未被初始化之前所偵測到的狀態致能記錄會先儲存在嵌入式控制器130的暫存區131中,待記憶單元110完成初始化之後,可在記憶單元110中配置一狀態致能記錄區塊,以將暫存區131映射至狀態致能記 錄區域。另外,在記憶單元110完成初始化之後所偵測到的狀態致能記錄亦會先儲存在嵌入式控制器130的暫存區131。Next, in step S315, the state enabled record stored in the temporary storage area 131 is mapped to the memory unit 110 by the embedded controller 130. Before executing step S315, the boot module 120 first initializes the memory unit 110. The state enable record detected before the memory unit 110 is not initialized is first stored in the temporary storage area 131 of the embedded controller 130. After the memory unit 110 completes initialization, a state can be configured in the memory unit 110. Enable the recording of blocks to map the temporary storage area 131 to the state enablement Recorded area. In addition, the status enable record detected after the memory unit 110 completes initialization is also stored in the temporary storage area 131 of the embedded controller 130.

另外,在其他實施例中,亦可由開機模組120將暫存區131的狀態致能記錄映射至記憶單元110。In addition, in other embodiments, the state enablement record of the temporary storage area 131 may also be mapped to the memory unit 110 by the boot module 120.

接著,在步驟S320中,在到達指定時間時,藉由開機模組120檢查記憶單元110是否存在狀態致能記錄。在開機程序執行至指定時間時,開機模組120會自動詢問記憶單元110中是否存在狀態致能記錄。在此,上述指定時間是在載入作業系統之前。並且,在載入作業系統之前,可設定一個或一個以上的指定時間。Next, in step S320, when the specified time is reached, the boot module 120 checks whether the memory unit 110 has a status enabled record. When the boot process is executed to the specified time, the boot module 120 automatically queries whether there is a status enable record in the memory unit 110. Here, the above specified time is before loading the operating system. Also, one or more specified times can be set before loading the operating system.

另外,還可以進一步設定在開機程序執行至指定時間之前的時間點,執行步驟S315。例如,開機模組120在執行中斷向量INT 19h之前(指定時間),即載入作業系統之前,會先將暫存區131的資料映射至記憶單元110,再去記憶單元110中讀取是否有被映射的狀態致能記錄。In addition, it is also possible to further set a time point before the booting process is executed until the specified time, and step S315 is performed. For example, before the interrupt vector INT 19h is executed (specified time), that is, before the operating system is loaded, the data of the temporary storage area 131 is first mapped to the memory unit 110, and then the memory unit 110 reads whether there is any The mapped state enables the recording.

倘若記憶單元110中不存在狀態致能記錄,如步驟S340所示,開機模組120繼續執行開機程序,以載入作業系統。另一方面,倘若記憶單元中存在狀態致能記錄,如步驟S325所示,開機模組120會自記憶單元110中讀取被映射的狀態致能記錄。If there is no state enabled record in the memory unit 110, as shown in step S340, the boot module 120 continues to execute the boot process to load the operating system. On the other hand, if there is a state enabled record in the memory unit, the boot module 120 reads the mapped state enable record from the memory unit 110 as shown in step S325.

之後,在步驟S330中,開機模組120可進一步判斷狀態致能記錄是否符合預設熱鍵組合。例如,在開機模組120中儲存有熱鍵對照表,在熱鍵對照表中定義有多個具 有特殊功能的預設熱鍵組合。倘若狀態致能記錄不符合預設熱鍵組合,如步驟S340所示,開機模組120繼續執行開機程序,以載入作業系統。反之,若狀態致能記錄符合預設熱鍵組合,如步驟S335所示,開機模組120執行狀態致能記錄對應的功能。例如,依據熱鍵對照表來執行對應的功能。Thereafter, in step S330, the boot module 120 can further determine whether the status enable record meets the preset hotkey combination. For example, a hotkey comparison table is stored in the boot module 120, and a plurality of profiles are defined in the hotkey comparison table. A preset hotkey combination with special features. If the status enable record does not match the preset hotkey combination, as shown in step S340, the boot module 120 continues to execute the boot process to load the operating system. On the other hand, if the state enabling record meets the preset hotkey combination, as shown in step S335, the booting module 120 performs the state enabling recording of the corresponding function. For example, the corresponding function is performed according to the hot key comparison table.

另外,在結束上述功能之後,開機模組120可繼續執行開機程序以載入作業系統,或是將電子裝置100重新開機。In addition, after the above functions are completed, the booting module 120 may continue to execute the booting process to load the operating system or reboot the electronic device 100.

綜上所述,將被致能按鍵的狀態致能記錄儲存在嵌入式控制器的暫存器中,之後,再將被致能按鍵的狀態致能記錄映射至記憶單元。據此,使用者可在開機階段中的任一時間點去致能按鍵,而不用等待初始化訊息何時出現於螢幕。並且,由於被致能按鍵的狀態致能記錄映射在記憶單元中,因而可直接存取記憶單元,進而可加快存取的速度。In summary, the state enabled record of the enabled button is stored in the register of the embedded controller, and then the state enabled record of the enabled button is mapped to the memory unit. Accordingly, the user can turn the enable button at any point during the boot phase without waiting for the initialization message to appear on the screen. Moreover, since the state of the enabled button is enabled to be mapped in the memory unit, the memory unit can be directly accessed, thereby speeding up the access.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,故本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.

100‧‧‧電子裝置100‧‧‧Electronic devices

110‧‧‧記憶單元110‧‧‧ memory unit

120‧‧‧開機模組120‧‧‧Power Module

130‧‧‧嵌入式控制器130‧‧‧ embedded controller

131‧‧‧暫存區131‧‧‧Scratch area

140‧‧‧鍵盤140‧‧‧ keyboard

150‧‧‧處理單元150‧‧‧Processing unit

160‧‧‧系統控制單元160‧‧‧System Control Unit

S205~S220‧‧‧執行按鍵功能的方法各步驟S205~S220‧‧‧Methods for performing button functions

S305~S340‧‧‧開機方法各步驟S305~S340‧‧‧Starting method steps

圖1是依照本發明一實施例之一種電子裝置的方塊圖。1 is a block diagram of an electronic device in accordance with an embodiment of the present invention.

圖2是依照本發明一實施例之一種執行按鍵功能的方法流程圖。2 is a flow chart of a method of performing a button function according to an embodiment of the invention.

圖3是依照本發明一實施例的一種開機方法流程圖。FIG. 3 is a flow chart of a booting method according to an embodiment of the invention.

S205~S220‧‧‧執行按鍵功能的方法各步驟S205~S220‧‧‧Methods for performing button functions

Claims (10)

一種執行按鍵功能的方法,適用於一電子裝置,該方法包括:接收一開機訊號,以執行一開機程序;在執行該開機程序的期間,當偵測到一鍵盤的多個按鍵其中之一被致能時,將被致能的按鍵對應的一狀態致能記錄儲存至一暫存區;將儲存在該暫存區的該狀態致能記錄映射至一記憶單元;以及自該記憶單元中讀取被映射的該狀態致能記錄,以執行該狀態致能記錄對應的功能。A method for performing a button function, which is applicable to an electronic device, the method comprising: receiving a boot signal to execute a boot process; and during detecting the boot process, detecting one of a plurality of buttons of a keyboard is When enabled, storing a state-enabled record corresponding to the enabled button to a temporary storage area; mapping the state-enabled record stored in the temporary storage area to a memory unit; and reading from the memory unit The mapped state enabled record is taken to perform the state enablement recording of the corresponding function. 如申請專利範圍第1項所述之執行按鍵功能的方法,其中在儲存在該暫存區的該狀態致能記錄映射至該記憶單元的步驟之前,更包括:初始化該記憶單元。The method for performing a button function as described in claim 1, wherein before the step of storing the state-enabled record stored in the temporary storage area to the memory unit, the method further comprises: initializing the memory unit. 如申請專利範圍第1項所述之執行按鍵功能的方法,其中在將儲存在該暫存區的該狀態致能記錄映射至該記憶單元的步驟之後,更包括:在該開機程序執行至一指定時間時,檢查該記憶單元是否存在該狀態致能記錄,以自該記憶單元中讀取被映射的該狀態致能記錄,其中該指定時間在載入一作業系統之前。The method for performing a button function as described in claim 1, wherein after the step of mapping the state enabled record stored in the temporary storage area to the memory unit, the method further comprises: executing the boot process to the When the time is specified, the memory unit is checked for the presence of the status enable record to read the mapped status enable record from the memory unit, wherein the specified time is before loading a job system. 如申請專利範圍第3項所述之執行按鍵功能的方法,其中在檢查該記憶單元是否存在該狀態致能記錄的步 驟之後,更包括:若該記憶單元中不存在該狀態致能記錄,繼續執行該開機程序,以載入該作業系統。A method for performing a button function as described in claim 3, wherein the step of checking whether the memory unit has the state enables recording After the step, the method further includes: if the state enabling record does not exist in the memory unit, continuing the booting process to load the operating system. 如申請專利範圍第1項所述之執行按鍵功能的方法,其中自該記憶單元中讀取被映射的該狀態致能記錄的步驟之後,更包括:判斷該狀態致能記錄是否符合一預設熱鍵組合;若該狀態致能記錄不符合該預設熱鍵組合,繼續執行該開機程序,以載入該作業系統;以及若該狀態致能記錄符合該預設熱鍵組合,執行該狀態致能記錄對應的功能。The method for performing a button function as described in claim 1, wherein the step of reading the mapped state enabled record from the memory unit further comprises: determining whether the state enabled record meets a preset a hotkey combination; if the state enable record does not conform to the preset hotkey combination, continue to execute the boot process to load the operating system; and if the state enable record conforms to the preset hotkey combination, execute the state Enables the recording of the corresponding function. 一種電子裝置,包括:一記憶單元;一鍵盤,包括多個按鍵;一嵌入式控制器,包括一暫存區,該嵌入式控制器耦接至該鍵盤,偵測該些按鍵是否被致能;以及一開機模組,分別耦接至該嵌入式控制器與該記憶單元,透過該開機模組接收一開機訊號,以執行一開機程序;其中,當在執行該開機程序的期間,透過該嵌入式控制器偵測到該個按鍵其中之一被致能時,將被致能的按鍵對應的一狀態致能記錄儲存至該暫存區,並且,透過該嵌入式控制器或該開機模組將儲存在該暫存區的該狀態致能記錄映射至該記憶單元,而利用該開機模組自該記憶單元中讀取被映射的該狀態致能記錄,以執行該狀態致能記錄 對應的功能。An electronic device includes: a memory unit; a keyboard including a plurality of buttons; an embedded controller including a temporary storage area, the embedded controller coupled to the keyboard, detecting whether the keys are enabled And a booting module coupled to the embedded controller and the memory unit, respectively, receiving a boot signal through the booting module to execute a booting process; wherein, during execution of the booting process, When the embedded controller detects that one of the keys is enabled, a state-enabled record corresponding to the enabled button is stored in the temporary storage area, and the embedded controller or the booting mode is transmitted through the embedded controller or the booting mode The group maps the state enable record stored in the temporary storage area to the memory unit, and uses the boot module to read the mapped state enable record from the memory unit to perform the status enable record Corresponding function. 如申請專利範圍第6項所述之電子裝置,其中該開機模組初始化該記憶單元,使得該嵌入式控制器或該開機模組將儲存在該暫存區的該狀態致能記錄映射至該記憶單元。The electronic device of claim 6, wherein the booting module initializes the memory unit, so that the embedded controller or the booting module maps the state enabled record stored in the temporary storage area to the Memory unit. 如申請專利範圍第6項所述之電子裝置,其中在該開機程序執行至一指定時間時,該開機模組還會檢查該記憶單元是否存在該狀態致能記錄,以自該記憶單元中讀取被映射的該狀態致能記錄,其中該指定時間在載入一作業系統之前。The electronic device of claim 6, wherein the booting module further checks whether the memory unit has the status enabling record to read from the memory unit when the booting process is executed for a specified time. The state enabled record is mapped, wherein the specified time is before loading a job system. 如申請專利範圍第6項所述之電子裝置,其中當該記憶單元中不存在該狀態致能記錄時,該開機模組會繼續執行該開機程序,以載入該作業系統。The electronic device of claim 6, wherein when the state-enabled recording is not present in the memory unit, the booting module continues to execute the booting process to load the operating system. 如申請專利範圍第6項所述之電子裝置,其中該開機模組還會判斷該狀態致能記錄是否符合一預設熱鍵組合,而若該狀態致能記錄符合該預設熱鍵組合,由該開機模組執行該狀態致能記錄對應的功能,而若該狀態致能記錄不符合該預設熱鍵組合,則該開機模組會繼續執行該開機程序,以載入該作業系統。The electronic device of claim 6, wherein the boot module further determines whether the status enable record meets a preset hot key combination, and if the status enable record matches the preset hot key combination, The status module enables the corresponding function to be recorded by the boot module, and if the status enable record does not match the preset hot key combination, the boot module continues to execute the boot process to load the operating system.
TW101120260A 2012-06-06 2012-06-06 Method for executing key function and electronic apparatus TWI475486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101120260A TWI475486B (en) 2012-06-06 2012-06-06 Method for executing key function and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101120260A TWI475486B (en) 2012-06-06 2012-06-06 Method for executing key function and electronic apparatus

Publications (2)

Publication Number Publication Date
TW201351284A TW201351284A (en) 2013-12-16
TWI475486B true TWI475486B (en) 2015-03-01

Family

ID=50158049

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101120260A TWI475486B (en) 2012-06-06 2012-06-06 Method for executing key function and electronic apparatus

Country Status (1)

Country Link
TW (1) TWI475486B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812392B (en) 2022-08-09 2023-08-11 宏碁股份有限公司 Electronic apparatus and hotkey prompt method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1170220C (en) * 2001-09-27 2004-10-06 英业达股份有限公司 Automatic renew method of keyboard basic input output system
CN1713118A (en) * 2004-06-23 2005-12-28 明基电通股份有限公司 Button determination by user and portable communicating device thereby
CN100543676C (en) * 2003-12-18 2009-09-23 大同股份有限公司 The method of firmware update
US7757182B2 (en) * 2003-06-25 2010-07-13 Microsoft Corporation Taskbar media player

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1170220C (en) * 2001-09-27 2004-10-06 英业达股份有限公司 Automatic renew method of keyboard basic input output system
US7757182B2 (en) * 2003-06-25 2010-07-13 Microsoft Corporation Taskbar media player
CN100543676C (en) * 2003-12-18 2009-09-23 大同股份有限公司 The method of firmware update
CN1713118A (en) * 2004-06-23 2005-12-28 明基电通股份有限公司 Button determination by user and portable communicating device thereby

Also Published As

Publication number Publication date
TW201351284A (en) 2013-12-16

Similar Documents

Publication Publication Date Title
TWI453581B (en) Method for detecting hardware
TWI590044B (en) Test system and test method thereof
US20110252225A1 (en) Computer system and bootup and shutdown method thereof
TWI588747B (en) Method for switching operating systems and electronic apparatus
WO2013075499A1 (en) Power on self test information output method, virtual machine manager and processor
US8909989B2 (en) Method for outputting power-on self test information, virtual machine manager, and processor
TW201335762A (en) Electronic device capable of automatically switching modes of a memory module and related method
TWI486874B (en) Electronic apparatus and booting method
TW201314574A (en) Method and device for updating BIOS program for computer system
TWI582699B (en) Boot Status Notification Method and Server System Using the Same
US7213159B2 (en) Method for testing and verifying power management features of computer system
JP5788611B2 (en) Method and apparatus for saving state prior to reset for evaluation after reset
TWI475486B (en) Method for executing key function and electronic apparatus
CN110955566B (en) Error detecting method
CN102024099B (en) A personal computer booting identification method and a system for the same
TWI475487B (en) Booting method and electronic device
TW201734800A (en) Method for setting redundant array of independent disks
TW201222240A (en) Testing method for automatically rebooting a motherboard and recording related debug information and rebooting device thereof
TWI228219B (en) Method for recording test procedure
US20090049294A1 (en) Method for booting computer system
TWI413934B (en) Booting method
TWI497283B (en) Supervisory control apparatus
TWI801412B (en) Debug method
US20130232326A1 (en) Electronic Device Booting Method and Electronic Device Applying the Same
TWI382343B (en) Basic input/output system instruction controlling method