[go: up one dir, main page]

TWI898466B - Method for configurating key layout of touchpad and electronic apparatus - Google Patents

Method for configurating key layout of touchpad and electronic apparatus

Info

Publication number
TWI898466B
TWI898466B TW113108029A TW113108029A TWI898466B TW I898466 B TWI898466 B TW I898466B TW 113108029 A TW113108029 A TW 113108029A TW 113108029 A TW113108029 A TW 113108029A TW I898466 B TWI898466 B TW I898466B
Authority
TW
Taiwan
Prior art keywords
touchpad
key
key layout
layout information
firmware
Prior art date
Application number
TW113108029A
Other languages
Chinese (zh)
Other versions
TW202536605A (en
Inventor
汪健珊
Original Assignee
宏碁股份有限公司
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 宏碁股份有限公司 filed Critical 宏碁股份有限公司
Priority to TW113108029A priority Critical patent/TWI898466B/en
Publication of TW202536605A publication Critical patent/TW202536605A/en
Application granted granted Critical
Publication of TWI898466B publication Critical patent/TWI898466B/en

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method for configurating key layout of touchpad and an electronic apparatus are provided. The method includes the following steps. A BIOS is executed, wherein the BIOS includes key layout information of the touchpad. The key layout information in the BIOS is loaded into a system memory. During the execution phase of the operating system, the key layout information in the system memory is provided to a touchpad firmware of the touchpad through a driver. The touchpad firmware controls the touchpad to provide a button function according to the button layout information.

Description

觸控板的按鍵佈局配置方法與電子裝置Touch panel key layout configuration method and electronic device

本發明是有關於一種電子裝置,且特別是有關於一種觸控板的按鍵佈局配置方法與電子裝置。 The present invention relates to an electronic device, and more particularly to a touch panel key layout configuration method and the electronic device.

目前,觸控板已經是許多電子產品的必要輸入裝置,市面上眾多電子產品皆可透過觸控板接收使用者操作。像是,筆記型電腦的使用者可透過觸控板以操控滑鼠游標。隨著科技的日新月異,可提供功能鍵功能的觸控板也已經被開發出來提昇觸控板的功能性,以使觸控板具有類似於鍵盤的按鍵輸入功能。具體而言,觸控板的觸控區域可劃分為一或多個功能鍵,使用者可碰觸觸控板呈現的功能鍵來操作電子裝置。然而,現行觸控板所支援的按鍵佈局都儲存於觸控板韌體中。也就是說,對於消費者來說,現行觸控板所支援的按鍵佈局是無法變更的。對於電子產品的製造商來說,當不同型號的電子產品的觸控板需要支援不同按 鍵佈局時,製造商需要修改觸控板韌體而生成不同韌體設計,進而導致製造管理上的困擾與不便。 Currently, touchpads are essential input devices for many electronic products, and many electronic products on the market can accept user operations through touchpads. For example, laptop users can use the touchpad to control the mouse cursor. With the rapid advancement of technology, touchpads that can provide function keys have also been developed to enhance the functionality of touchpads, so that touchpads have key input functions similar to keyboards. Specifically, the touch area of the touchpad can be divided into one or more function keys, and users can touch the function keys displayed on the touchpad to operate electronic devices. However, the key layouts supported by current touchpads are all stored in the touchpad firmware. This means that for consumers, the key layout supported by current touchpads cannot be changed. For electronics manufacturers, when different models of electronic products require touchpads with different key layouts, manufacturers must modify the touchpad firmware and create different firmware designs, which in turn causes trouble and inconvenience in manufacturing management.

有鑑於此,本發明提出一種電子裝置與其觸控板的按鍵佈局配置方法,其可解決上述技術問題。 In view of this, the present invention proposes a key layout configuration method for an electronic device and its touch panel, which can solve the above-mentioned technical problems.

本發明實施例提供一種觸控板的按鍵佈局配置方法,適用於包括觸控板的電子裝置。所述方法包括下列步驟。執行一基本輸入輸出系統,其中此基本輸入輸出系統包括觸控板的按鍵佈局資訊。將基本輸入輸出系統中的按鍵佈局資訊載入系統記憶體。在作業系統的執行階段,透過驅動程式將系統記憶體中的按鍵佈局資訊提供給觸控板的觸控板韌體。由觸控板韌體根據按鍵佈局資訊控制觸控板提供按鍵功能。 An embodiment of the present invention provides a method for configuring a touchpad key layout, applicable to an electronic device including a touchpad. The method includes the following steps: executing a basic input/output system (BIOS), wherein the BIOS includes touchpad key layout information; loading the key layout information in the BIOS into system memory; during the execution phase of the operating system, providing the key layout information in the system memory to the touchpad firmware of the touchpad via a driver; and controlling the touchpad firmware to provide key functions based on the key layout information.

本發明實施例提供一種電子裝置,其包括觸控板模組、儲存裝置、系統記憶體,以及處理器。觸控板模組包括觸控板韌體與觸控板。儲存裝置記錄一基本輸入輸出系統。此基本輸入輸出系統包括觸控板的按鍵佈局資訊。系統記憶體載入有一驅動程式。處理器耦接觸控板模組、儲存裝置與系統記憶體,經配置以執行下列步驟。執行基本輸入輸出系統。將基本輸入輸出系統中的按鍵佈局資訊載入系統記憶體。在作業系統的執行階段,透過驅動程式將系統記憶體中的按鍵佈局資訊提供給觸控板的觸控板韌體。之後,觸控板韌體根據按鍵佈局資訊控制觸控板提供按鍵功能。 An embodiment of the present invention provides an electronic device comprising a touchpad module, a storage device, a system memory, and a processor. The touchpad module comprises a touchpad firmware and a touchpad. The storage device stores a basic input/output system (BIOS). The BIOS includes key layout information for the touchpad. A driver is loaded into the system memory. The processor is coupled to the touchpad module, the storage device, and the system memory and is configured to perform the following steps: Execute the BIOS. Load the key layout information in the BIOS into the system memory. During the operating system's runtime, the driver provides the touchpad's touchpad firmware with key layout information stored in the system memory. The touchpad firmware then controls the touchpad to provide key functions based on the key layout information.

基於上述,於本發明的實施例中,觸控板的按鍵佈局資訊可記錄於基本輸入輸出系統之中。在執行基本輸入輸出系統之後,觸控板的按鍵佈局資訊可載入系統記憶體,並且由特定驅動程式來將擷取按鍵佈局資訊並傳送給觸控板韌體。於是,觸控板韌體可根據驅動程式提供的按鍵佈局資訊來實現觸控板的按鍵功能。基此,觸控板可作為擴充功能鍵區,進而達到提昇使用便利性的目的。並且,觸控板的按鍵佈局資訊可獨立定義於觸控板韌體之外,以使觸控板韌體所使用的按鍵佈局資訊可經由更新基本輸入輸出系統來變更。 Based on the above, in an embodiment of the present invention, the touchpad's key layout information can be recorded in the Basic Input/Output System (BIOS). After the BIOS is executed, the touchpad's key layout information can be loaded into system memory. A specific driver then retrieves this key layout information and transmits it to the touchpad firmware. The touchpad firmware then implements the touchpad's key functions based on the key layout information provided by the driver. This allows the touchpad to function as an extended function keypad, thereby enhancing user convenience. Furthermore, the touchpad's key layout information can be defined independently of the touchpad firmware, so that the key layout information used by the touchpad firmware can be changed by updating the BIOS.

100:電子裝置 100: Electronic devices

110:觸控板模組 110: Touch panel module

111:觸控板韌體 111: Touchpad Firmware

112:觸控板 112: Touch panel

120:儲存裝置 120: Storage device

130:系統記憶體 130: System Memory

140:處理器 140: Processor

B1:基本輸入輸出系統 B1: Basic Input/Output System

A1:按鍵佈局資訊 A1: Keyboard layout information

SL1,SL2:按鍵佈局樣式 SL1, SL2: Keyboard layout style

K1:數字鍵 K1: Numeric keys

K2:功能鍵 K2: Function key

S402~S408、S502~S514:步驟 S402~S408, S502~S514: Steps

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

圖2是依照本發明一實施例的電子裝置的示意圖。 Figure 2 is a schematic diagram of an electronic device according to an embodiment of the present invention.

圖3A是依照本發明一實施例的觸控板的按鍵佈局樣式的示意圖。 Figure 3A is a schematic diagram of a key layout pattern of a touch panel according to an embodiment of the present invention.

圖3B是依照本發明一實施例的觸控板的按鍵佈局樣式的示意圖。 Figure 3B is a schematic diagram of a key layout pattern of a touch panel according to an embodiment of the present invention.

圖4是依照本發明一實施例的觸控板的按鍵佈局配置方法的流程圖。 Figure 4 is a flow chart of a method for configuring a touch panel key layout according to an embodiment of the present invention.

圖5是依照本發明一實施例的觸控板的按鍵佈局配置方法的流程圖。 Figure 5 is a flow chart of a method for configuring a touch panel key layout according to an embodiment of the present invention.

本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的方法與裝置的範例。 Some embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Component numbers used in the following description will be used to identify identical or similar components when the same component numbers appear in different drawings. These embodiments are only part of the present invention and do not disclose all possible implementations of the present invention. Rather, these embodiments are merely examples of the methods and apparatus within the scope of the present invention's patent application.

圖1是依照本發明一實施例的電子裝置的方塊圖。請參照圖1,電子裝置100包括觸控板模組110、儲存裝置120、系統記憶體130,以及處理器140。於一些實施例中,電子裝置100可實施為本身就內建有觸控板模組110的電子產品,像是筆記型電腦等等。或者,於一些實施例中,電子裝置100可實施為可外接有觸控板模組110的電子產品,像是筆記型電腦、桌上型電腦或平板電腦等等。本發明並不對此限制。 Figure 1 is a block diagram of an electronic device according to one embodiment of the present invention. Referring to Figure 1 , electronic device 100 includes a touchpad module 110, a storage device 120, a system memory 130, and a processor 140. In some embodiments, electronic device 100 may be implemented as an electronic product with a built-in touchpad module 110, such as a laptop computer. Alternatively, in some embodiments, electronic device 100 may be implemented as an electronic product with an externally connected touchpad module 110, such as a laptop computer, desktop computer, or tablet computer. The present invention is not limited to this.

觸控板模組110包括觸控板韌體111與觸控板112。觸控板112作為使用者輸入操作指令之用,例如觸控板112可以偵測使用者的觸控操作以使電子裝置100執行對應動作。在本範例實施例中,觸控板112可以是電阻式觸控面板、電容式觸控面板、光學觸控面板、紅外線觸控面板或電磁感應觸控面板等,本發明並不對觸控板112的種類加以限制。 The touchpad module 110 includes a touchpad firmware 111 and a touchpad 112. The touchpad 112 is used for user input of operational commands. For example, the touchpad 112 can detect user touch operations and cause the electronic device 100 to perform corresponding actions. In this exemplary embodiment, the touchpad 112 can be a resistive touch panel, a capacitive touch panel, an optical touch panel, an infrared touch panel, or an electromagnetic induction touch panel. The present invention is not limited to the type of touchpad 112.

觸控板韌體111用以控制觸控板112。於一些實施例中,觸控板韌體111可嵌入於一觸控板控制電路中。當使用者觸碰到 觸控板112時,觸控板韌體111可將觸碰訊號轉換為觸碰位置有關的資訊,例如觸碰座標。或者,觸控板韌體111可依據感測門檻值來過濾觸控板112的觸碰訊號,並將大於感測門檻值的觸碰訊號轉換為觸碰座標。 The touchpad firmware 111 is used to control the touchpad 112. In some embodiments, the touchpad firmware 111 may be embedded in a touchpad control circuit. When a user touches the touchpad 112, the touchpad firmware 111 may convert the touch signal into information related to the touch location, such as the touch coordinates. Alternatively, the touchpad firmware 111 may filter the touch signal from the touchpad 112 based on a sensing threshold and convert touch signals greater than the sensing threshold into touch coordinates.

請參照圖2,其是依照本發明一實施例的電子裝置的示意圖。電子裝置100係以筆記型電腦為範例。觸控板112一般設置於鍵盤的下方。當操作於一般觸控模式下,觸控板112可用以感測使用者的觸控手勢,例如點擊手勢、滑動手勢或多指操控手勢等等,以讓使用者可根據觸控手勢來控制電子裝置100。 Please refer to Figure 2, which is a schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device 100 is exemplified by a laptop computer. The touchpad 112 is typically located below the keyboard. When operating in normal touch mode, the touchpad 112 can sense user touch gestures, such as clicks, swipes, or multi-finger gestures, allowing the user to control the electronic device 100 based on these gestures.

值得一提的是,本發明實施例的觸控板112可提供按鍵功能。當操作於按鍵模式下,觸控板112的可觸控區域的至少一部份區塊可實現成至少一按鍵。使用者可透過觸碰觸控板112上的按鍵來控制電子裝置100。於一些實施例中,觸控板112的部份或全部可觸控區域可分割為多個觸控區塊,各個觸控區塊可對應為一個按鍵。亦即,觸控板112可用以感測使用者點擊觸控板112上的按鍵的觸控操作。舉例來說,當操作於按鍵模式下,觸控板112的可觸控區域可轉換為一數字鍵盤,使用者可透過觸碰觸控板112上的數字鍵來輸入數字。 It is worth noting that the touchpad 112 of the present embodiment can provide a key function. When operating in key mode, at least a portion of the touchable area of the touchpad 112 can be implemented as at least one key. The user can control the electronic device 100 by touching the keys on the touchpad 112. In some embodiments, part or all of the touchable area of the touchpad 112 can be divided into multiple touch blocks, each of which can correspond to a key. In other words, the touchpad 112 can be used to sense touch operations of the user clicking a key on the touchpad 112. For example, when operating in keypad mode, the touchable area of the touchpad 112 can be converted into a numeric keypad, and the user can input numbers by touching the numeric keys on the touchpad 112.

於一些實施例中,觸控板112包括發光裝置與圖案層。圖案層可包括透光區域與不透光區域。發光裝置例如是發光二極體或其他發光裝置。當觸控板韌體111控制發光裝置發光時候,穿透過透光區域的光線可使觸控板112的表面呈現出一或多個按 鍵圖案,以讓使用者識別出這些按鍵。於是,使用者可透過觸碰觸控板112所呈現的按鍵來對電子裝置100下達使用者操作。 In some embodiments, the touch panel 112 includes a light-emitting device and a pattern layer. The pattern layer may include light-transmitting areas and opaque areas. The light-emitting device is, for example, a light-emitting diode or other light-emitting device. When the touch panel firmware 111 controls the light-emitting device to emit light, the light that passes through the light-transmitting areas causes one or more key patterns to appear on the surface of the touch panel 112, allowing the user to identify these keys. The user can then perform user operations on the electronic device 100 by touching the keys displayed on the touch panel 112.

須注意的是,當操作於按鍵模式下,觸控板韌體111需要根據按鍵佈局資訊來辨識使用者所觸碰的按鍵。換言之,按鍵佈局資訊可包括至少一按鍵佈局樣式,至少一按鍵佈局樣式將觸控板112劃分出至少一按鍵。於不同實施例中,觸控板112可根據一或多種按鍵佈局樣式而提供不同的按鍵功能。對應的,觸控板韌體111需要根據按鍵佈局資訊來判斷觸控座標所對應的按鍵為何,以使電子裝置100可以執行對應功能。 It should be noted that when operating in key mode, the touchpad firmware 111 needs to identify the key touched by the user based on the key layout information. In other words, the key layout information may include at least one key layout pattern, which divides the touchpad 112 into at least one key. In various embodiments, the touchpad 112 may provide different key functions based on one or more key layout patterns. Accordingly, the touchpad firmware 111 needs to determine the key corresponding to the touch coordinates based on the key layout information so that the electronic device 100 can execute the corresponding function.

舉例而言,請參照圖3A,其是依照本發明一實施例的觸控板的按鍵佈局樣式的示意圖。觸控板112可具有按鍵佈局樣式SL1,且觸控板112的可觸控區域可劃分為多個觸控區塊,每一觸控區塊可對應為一按鍵(例如數字鍵K1)。於此,觸控板112可作為一數字鍵盤而包括多個按鍵。當使用者點擊觸控板112上的數字鍵K1,可輸入數字「1」。 For example, please refer to Figure 3A, which is a schematic diagram of a touchpad key layout according to an embodiment of the present invention. The touchpad 112 may have a key layout style SL1, and the touchable area of the touchpad 112 may be divided into multiple touch blocks, each of which may correspond to a key (e.g., number key K1). Here, the touchpad 112 may function as a numeric keypad and include multiple keys. When a user taps number key K1 on the touchpad 112, the number "1" may be entered.

舉例而言,請參照圖3B,其是依照本發明一實施例的觸控板的按鍵佈局樣式的示意圖。觸控板112可具有按鍵佈局樣式SL2,且觸控板112的部份的可觸控區域可劃分為多個觸控區塊,每一觸控區塊可對應為一按鍵(例如功能鍵K2)。於本範例中,觸控板112可同時具備觸控手勢感測區域與多個功能鍵。像是,當使用者點擊觸控板112上的功能鍵K2,可控制電子裝置100執行對應功能鍵「F4」的功能。 For example, please refer to Figure 3B, which is a schematic diagram of a touchpad key layout according to an embodiment of the present invention. The touchpad 112 may have a key layout SL2, and a portion of the touchable area of the touchpad 112 may be divided into multiple touch blocks, each of which may correspond to a key (e.g., function key K2). In this example, the touchpad 112 may have both a touch gesture sensing area and multiple function keys. For example, when a user taps function key K2 on the touchpad 112, the electronic device 100 may be controlled to execute the function of the corresponding function key "F4."

儲存裝置120可為非揮發性記憶體,且記錄有基本輸入輸出系統(Basic Input/Output System,BIOS)B1。基本輸入輸出系統B1是在電子裝置100啟動後,於啟動程序中所使用的韌體。在一些實施例中,儲存裝置120可例如是電子抹除式可複寫唯讀記憶體(electrically-erasable programmable read-only memory,EEPROM)。在另一些實施例中,儲存裝置120可例如為快閃記憶體(flash memory)。從另一觀點來看,儲存裝置120可為儲存有基本輸入輸出系統B1等系統韌體的晶片。當電子裝置100開機後,儲存裝置120中的基本輸入輸出系統B1的程式碼被執行,以初始化並檢測電子裝置100上的各項硬體設備。 The storage device 120 may be a non-volatile memory and may store the Basic Input/Output System (BIOS) B1. The BIOS B1 is firmware used during the startup process after the electronic device 100 is started. In some embodiments, the storage device 120 may be, for example, an electrically erasable programmable read-only memory (EEPROM). In other embodiments, the storage device 120 may be, for example, a flash memory. From another perspective, the storage device 120 may be a chip that stores system firmware such as the BIOS B1. When the electronic device 100 is powered on, the BIOS B1 code in the storage device 120 is executed to initialize and detect the various hardware devices on the electronic device 100.

值得一提的是,基本輸入輸出系統B1包括觸控板112的按鍵佈局資訊A1。換言之,觸控板112的按鍵佈局資訊A1可記錄於基本輸入輸出系統B1之中。按鍵佈局資訊A1可包括至少一按鍵的按鍵名稱與按鍵佔據範圍。後文將具體說明觸控板韌體111將如何獲取按鍵佈局資訊A1來控制觸控板112提供按鍵功能。 It's worth noting that the BIOS B1 includes the touchpad 112's key layout information A1. In other words, the touchpad 112's key layout information A1 can be stored in the BIOS B1. The key layout information A1 can include the name and key range of at least one key. The following section details how the touchpad firmware 111 obtains the key layout information A1 to control the touchpad 112 to provide key functions.

系統記憶體130以例如是任意型式的固定式或可移動式隨機存取記憶體(random access memory,RAM)。 The system memory 130 can be, for example, any type of fixed or removable random access memory (RAM).

處理器140耦接觸控板模組110、儲存裝置120以及系統記憶體130,其例如是中央處理單元(central processing unit,CPU)、應用處理器(application processor,AP),或是其他可程式化之一般用途或特殊用途的微處理器(microprocessor)、數位訊號處理器(digital signal processor,DSP)或其他類似裝置、積體電路及其 組合。處理器140可存取並執行記錄在儲存裝置120與系統記憶體130中的程式碼、代碼或指令,以實現本發明實施例中的觸控板的按鍵佈局配置方法。 The processor 140 is coupled to the touch panel module 110, the storage device 120, and the system memory 130. It may be, for example, a central processing unit (CPU), an application processor (AP), or other programmable general-purpose or special-purpose microprocessor, a digital signal processor (DSP), or other similar devices, integrated circuits, or combinations thereof. The processor 140 can access and execute the program code, code, or instructions stored in the storage device 120 and the system memory 130 to implement the touch panel key layout configuration method of the present invention.

圖4是依照本發明一實施例的觸控板的按鍵佈局配置方法的流程圖,而圖4的方法流程可以由圖1的電子裝置100的各元件實現。請同時參照圖1及圖4,以下即搭配圖1中電子裝置100的各項元件,說明本實施例的觸控板的按鍵佈局配置方法的步驟。 Figure 4 is a flow chart of a method for configuring a touchpad key layout according to an embodiment of the present invention. The method flow in Figure 4 can be implemented by the components of the electronic device 100 in Figure 1 . Referring to Figures 1 and 4 , the following describes the steps of the touchpad key layout configuration method according to this embodiment using the components of the electronic device 100 in Figure 1 .

於步驟S402,當電子裝置100開機時,處理器140執行儲存裝置120中的基本輸入輸出系統B1。於一些實施例中,基本輸入輸出系統B1可為統一可延伸韌體界面(unified extensible firmware interface,UEFI)基本輸入輸出系統。詳細而言,當電子裝置100被啟動時,處理器140將會啟動基本輸入輸出系統B1中的開機自我測試(POST)程序,POST程序負責對電子裝置100之各硬體設備進行初始設定與基本測試工作,以保證電子裝置100能正常運作。 In step S402, when the electronic device 100 is powered on, the processor 140 executes the BIOS B1 in the storage device 120. In some embodiments, the BIOS B1 may be a unified extensible firmware interface (UEFI) BIOS. Specifically, when the electronic device 100 is powered on, the processor 140 initiates the power-on self-test (POST) program in the BIOS B1. The POST program is responsible for initializing and performing basic tests on the hardware components of the electronic device 100 to ensure that the electronic device 100 is functioning properly.

接著,於步驟S404,處理器140將基本輸入輸出系統B1中的按鍵佈局資訊A1載入系統記憶體130。於一些實施例中,按鍵佈局資訊A1可記錄為進階組態與電源介面(Advanced Configuration and Power Interface,ACPI)表,而被包裝於基本輸入輸出系統B1中。處理器140可在開機過程中會把包在基本輸入輸出系統B1中的ACPI表載入到系統記憶體130。ACPI表在基本 輸入輸出系統B1裡面是用ACPI源語言碼(ASL code)去描述。在運行基本輸入輸出系統B1之後,與ACPI相關的程式碼將被載入系統記憶體130,而按鍵佈局資訊A1也因此被載入系統記憶體130。 Next, in step S404, processor 140 loads the key layout information A1 from BIOS B1 into system memory 130. In some embodiments, key layout information A1 may be recorded as an Advanced Configuration and Power Interface (ACPI) table and packaged within BIOS B1. Processor 140 may load the ACPI table packaged within BIOS B1 into system memory 130 during the boot process. The ACPI table is described within BIOS B1 using ACPI Source Language (ASL) code. After running the basic input and output system B1, the ACPI-related code will be loaded into the system memory 130, and the key layout information A1 will also be loaded into the system memory 130.

接著,於步驟S406,在作業系統的執行階段,處理器140透過驅動程式將系統記憶體130中的按鍵佈局資訊A1提供給觸控板112的觸控板韌體111。詳細來說,在作業系統被載入系統記憶體130而開始運行時,驅動程式將一併被載入系統記憶體130。處理器140將執行此驅動程式。此驅動程式可將系統記憶體130中的按鍵佈局資訊A1提供給觸控板112的觸控板韌體111。換言之,每次電子裝置100開機,此驅動程式皆可將按鍵佈局資訊A1提供給觸控板112的觸控板韌體111。 Next, in step S406, during the operating system's execution phase, the processor 140 provides the key layout information A1 in the system memory 130 to the touchpad firmware 111 of the touchpad 112 via a driver. Specifically, when the operating system is loaded into the system memory 130 and begins running, the driver is also loaded into the system memory 130. The processor 140 executes this driver. This driver provides the key layout information A1 in the system memory 130 to the touchpad firmware 111 of the touchpad 112. In other words, each time the electronic device 100 is powered on, the driver can provide the key layout information A1 to the touch panel firmware 111 of the touch panel 112.

於是,於步驟S408,由觸控板韌體111根據按鍵佈局資訊控制觸控板112提供按鍵功能。於一些實施例中,按鍵佈局資訊A1可包括至少一按鍵的按鍵名稱與按鍵佔據範圍。按鍵名稱可為按鍵功能。按鍵佔據範圍可包括按鍵左邊界、按鍵右邊界、按鍵上邊界與按鍵下邊界。據此,當使用者碰觸觸控板112上的某一按鍵,觸控板韌體111可根據觸碰座標與各個按鍵對應的按鍵佔據範圍來辨識那一按鍵被觸碰。觸控板韌體111可將辨識結果回報給作業系統或應用程式,而使電子裝置100執行對應於被觸碰按鍵的功能。 Then, in step S408, the touchpad firmware 111 controls the touchpad 112 to provide key functions based on the key layout information. In some embodiments, the key layout information A1 may include the key name and key occupancy range of at least one key. The key name may be the key function. The key occupancy range may include the left edge, right edge, top edge, and bottom edge of the key. Accordingly, when a user touches a key on the touchpad 112, the touchpad firmware 111 can identify the touched key based on the touch coordinates and the key occupancy range corresponding to each key. The touchpad firmware 111 can report the recognition result to the operating system or application, allowing the electronic device 100 to execute the function corresponding to the touched key.

須特別說明的是,於一些實施例中,反應於更新基本輸入 輸出系統B1,可更新觸控板112的按鍵佈局資訊。換言之,觸控板韌體111所使用的按鍵佈局資訊可以透過更新基本輸入輸出系統B1而變更。在此情況下,使用者可透過更新基本輸入輸出系統B1而使觸控板112具有多種按鍵佈局樣式。此外,製造商也無須針對觸控板韌體111進行不同產品線或不同專案的客製修改,而不需要針對觸控板模組產生不同裝置料號。 It is important to note that in some embodiments, the key layout information of the touchpad 112 can be updated in response to an update to the BIOS B1. In other words, the key layout information used by the touchpad firmware 111 can be changed by updating the BIOS B1. In this case, users can configure the touchpad 112 with a variety of key layouts by simply updating the BIOS B1. Furthermore, manufacturers do not need to customize the touchpad firmware 111 for different product lines or projects, and do not need to generate different device part numbers for the touchpad module.

圖5是依照本發明一實施例的觸控板的按鍵佈局配置方法的流程圖,而圖5的方法流程可以由圖1的電子裝置100的各元件實現。請同時參照圖1及圖5,以下即搭配圖1中電子裝置100的各項元件,說明本實施例的觸控板的按鍵佈局配置方法的步驟。 Figure 5 is a flow chart of a method for configuring a touchpad key layout according to an embodiment of the present invention. The method flow in Figure 5 can be implemented by the components of the electronic device 100 in Figure 1 . Referring to Figures 1 and 5 , the following describes the steps of the touchpad key layout method according to this embodiment using the components of the electronic device 100 in Figure 1 .

於步驟S502,處理器140反應於啟動電子裝置100而執行基本輸入輸出系統B1。於步驟S504,處理器140將基本輸入輸出系統B1中的按鍵佈局資訊A1載入系統記憶體130。如同前述,記錄為ACPI表的按鍵佈局資訊A1可被載入系統記憶體130。 In step S502 , the processor 140 executes the BIOS B1 in response to activating the electronic device 100 . In step S504 , the processor 140 loads the key layout information A1 in the BIOS B1 into the system memory 130 . As previously described, the key layout information A1 recorded as an ACPI table can be loaded into the system memory 130 .

在運行基本輸入輸出系統B1之後,於步驟S506,處理器140執行作業系統。於步驟S508,處理器140載入並執行一驅動程式。具體來說,此驅動程式將被載入系統記憶體130,並由處理器140來執行。此驅動程式用以擷取系統記憶體130中的按鍵佈局資訊A1。 After running BIOS B1, processor 140 executes the operating system in step S506. In step S508, processor 140 loads and executes a driver. Specifically, this driver is loaded into system memory 130 and executed by processor 140. This driver is used to retrieve key layout information A1 from system memory 130.

於是,於步驟S510,處理器140執行驅動程式,以使驅動程式根據進階組態與電源介面(ACPI)規範獲取系統記憶體130 中的按鍵佈局資訊A1。於一實施例中,此驅動程式可呼叫一設備專用方法(Device specific method,DSM)碼來獲取系統記憶體130中的按鍵佈局資訊A1。 Then, in step S510, the processor 140 executes a driver program to obtain the key layout information A1 from the system memory 130 according to the Advanced Configuration and Power Interface (ACPI) specification. In one embodiment, the driver program may call a device-specific method (DSM) code to obtain the key layout information A1 from the system memory 130.

詳細來說,設備專用方法(DSM)是由ACPI規範定義可用來給開發者亦定義功能的方法。在符合DSM的輸入參數與輸出參數的要求的情況下,觸控板112的自定義功能(亦即按鍵功能的按鍵佈局樣式)可透過DSM來定義。關於設備專用方法的具體實施細節可參照現行ACPI規範而得知,於此不贅述。 Specifically, a device-specific method (DSM) is a method defined by the ACPI specification that allows developers to define functionality. Customized functionality (i.e., the key layout pattern for key functions) for touchpad 112 can be defined using the DSM, provided that the DSM's input and output parameter requirements are met. Specific implementation details of device-specific methods can be found in the current ACPI specification and are not detailed here.

之後,於步驟S512,處理器140執行驅動程式,以使驅動程式將系統記憶體130中的按鍵佈局資訊A1傳送至觸控板韌體111。像是,驅動程式可透過I2C匯流排介面將按鍵佈局資訊A1傳送至觸控板韌體111。 Then, in step S512, the processor 140 executes the driver program to transmit the key layout information A1 in the system memory 130 to the touch panel firmware 111. For example, the driver program may transmit the key layout information A1 to the touch panel firmware 111 via an I2C bus interface.

由此可知,按鍵佈局資訊A1一開始記錄於儲存裝置120中,在電子裝置100開機之後會被載入系統記憶體130。之後,中的按鍵佈局資訊A1可傳送至觸控板韌體111。 As can be seen, the key layout information A1 is initially recorded in the storage device 120 and loaded into the system memory 130 after the electronic device 100 is powered on. Thereafter, the key layout information A1 can be transmitted to the touch panel firmware 111.

於步驟S514,反應於觸控板112的至少一按鍵(例如圖3A所示的數字鍵K1或圖3B所示的功能鍵K2)接收觸碰操作,由觸控板韌體111根據按鍵佈局資訊A1將至少一按鍵的按鍵代碼傳送至應用程式。於一實施例中,觸控板韌體111可利用人體學介面裝置(Human interface device,HID)標準傳送此按鍵代碼。因此,於一些實施例中,透過HID客製化按鍵代碼來傳送,上層的應用程式相對容易設計。於一些實施例中,也可以簡單地沿用目 前作業系統已經定義的各種HID按鍵。 In step S514, in response to at least one key on the touchpad 112 (e.g., the numeric key K1 shown in FIG3A or the function key K2 shown in FIG3B ) receiving a touch operation, the touchpad firmware 111 transmits a key code for the at least one key to the application based on the key layout information A1. In one embodiment, the touchpad firmware 111 may utilize the Human Interface Device (HID) standard to transmit this key code. Therefore, in some embodiments, transmitting customized HID key codes makes the design of upper-level applications relatively easy. In some embodiments, various HID key codes already defined by the current operating system can also be simply utilized.

綜上所述,於本發明實施例中,觸控板的按鍵佈局資訊可記錄於基本輸入輸出系統中。於是,觸控板的按鍵佈局資訊可獨立定義於觸控板韌體之外,以使觸控板韌體所使用的按鍵佈局資訊可經由更新基本輸入輸出系統來變更,因而實現出一種更具彈性的設計架構。使用者可透過更新基本輸入輸出系統而使觸控板具有多種按鍵佈局樣式。此外,製造商也無須針對觸控板韌體進行不同產品線或不同專案的客製修改,而不需要針對觸控板模組產生不同裝置料號,以避免裝置料號過多不便管理的困擾。 In summary, in this embodiment of the present invention, the touchpad's key layout information can be stored in the BIOS. Therefore, the touchpad's key layout information can be defined independently of the touchpad firmware, allowing the touchpad firmware to be modified by updating the BIOS, thereby achieving a more flexible design architecture. Users can customize the touchpad's key layout by simply updating the BIOS. Furthermore, manufacturers no longer need to customize the touchpad firmware for different product lines or projects, and they no longer need to generate different device part numbers for the touchpad module, avoiding the inconvenience of managing too many device part numbers.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed above through embodiments, they are not intended to limit the present invention. Anyone with ordinary skill in the art may make minor modifications and improvements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the scope of the attached patent application.

100: 電子裝置 110: 觸控板模組 111: 觸控板韌體 112: 觸控板 120: 儲存裝置 130: 系統記憶體 140: 處理器 B1: 基本輸入輸出系統 A1: 按鍵佈局資訊 100: Electronic device 110: Touchpad module 111: Touchpad firmware 112: Touchpad 120: Storage device 130: System memory 140: Processor B1: Basic Input/Output System A1: Keyboard layout information

Claims (10)

一種觸控板的按鍵佈局配置方法,適用於包括一觸控板的一電子裝置,而所述方法包括: 執行一基本輸入輸出系統,其中所述基本輸入輸出系統包括所述觸控板的按鍵佈局資訊; 將所述基本輸入輸出系統中的所述按鍵佈局資訊載入一系統記憶體; 在作業系統的執行階段,透過一驅動程式將所述系統記憶體中的所述按鍵佈局資訊提供給所述觸控板的一觸控板韌體;以及 由所述觸控板韌體根據所述按鍵佈局資訊控制所述觸控板提供按鍵功能。 A method for configuring a touchpad key layout is applicable to an electronic device including a touchpad. The method comprises: Executing a basic input/output system (BIOS), wherein the BIOS includes key layout information for the touchpad; Loading the key layout information in the BIOS into a system memory; Providing the key layout information in the system memory to a touchpad firmware of the touchpad via a driver during the execution phase of an operating system; And Controlling the touchpad firmware to provide key functions based on the key layout information. 如請求項1所述的觸控板的按鍵佈局配置方法,其中所述按鍵佈局資訊包括至少一按鍵佈局樣式,所述至少一按鍵佈局樣式將所述觸控板劃分出至少一按鍵。The method for configuring a touch panel key layout as described in claim 1, wherein the key layout information includes at least one key layout pattern, and the at least one key layout pattern divides the touch panel into at least one key. 如請求項2所述的觸控板的按鍵佈局配置方法,其中所述按鍵佈局資訊包括所述至少一按鍵的一按鍵名稱與一按鍵佔據範圍。The method for configuring a touch panel key layout as described in claim 2, wherein the key layout information includes a key name and a key occupancy range of the at least one key. 如請求項2所述的觸控板的按鍵佈局配置方法,更包括: 反應於更新所述基本輸入輸出系統,更新所述觸控板的所述按鍵佈局資訊。 The touch panel key layout configuration method of claim 2 further comprises: Updating the touch panel key layout information in response to updating the basic input and output system. 如請求項2所述的觸控板的按鍵佈局配置方法,其中在所述作業系統的執行階段,透過所述驅動程式將所述系統記憶體中的所述按鍵佈局資訊提供給所述觸控板的所述觸控板韌體的步驟包括: 執行所述驅動程式,以使所述驅動程式根據一進階組態與電源介面規範獲取所述系統記憶體中的所述按鍵佈局資訊;以及 執行所述驅動程式,以使所述驅動程式將所述系統記憶體中的所述按鍵佈局資訊傳送至所述觸控板韌體。 The touchpad key layout configuration method of claim 2, wherein, during the execution phase of the operating system, the step of providing the key layout information in the system memory to the touchpad firmware of the touchpad via the driver comprises: Executing the driver to cause the driver to obtain the key layout information in the system memory according to an Advanced Configuration and Power Interface (ACCP) specification; and Executing the driver to cause the driver to transmit the key layout information in the system memory to the touchpad firmware. 如請求項5所述的觸控板的按鍵佈局配置方法,其中所述驅動程式呼叫一設備專用方法碼來獲取所述系統記憶體中的所述按鍵佈局資訊。The method for configuring a touch panel key layout as described in claim 5, wherein the driver calls a device-specific method code to obtain the key layout information in the system memory. 如請求項2所述的觸控板的按鍵佈局配置方法,其中由所述觸控板韌體根據所述按鍵佈局資訊控制所述觸控板提供按鍵功能的步驟包括: 反應於所述觸控板的所述至少一按鍵接收一觸碰操作,由所述觸控板韌體根據所述按鍵佈局資訊將所述至少一按鍵的按鍵代碼傳送至一應用程式。 The touchpad key layout configuration method of claim 2, wherein the step of controlling the touchpad firmware to provide key functions based on the key layout information comprises: In response to the at least one key of the touchpad receiving a touch operation, the touchpad firmware transmits a key code for the at least one key to an application based on the key layout information. 如請求項7所述的觸控板的按鍵佈局配置方法,其中所述觸控板韌體利用人體學介面裝置(Human interface device,HID)標準傳送所述按鍵代碼。The touch panel key layout configuration method as described in claim 7, wherein the touch panel firmware uses the human interface device (HID) standard to transmit the key code. 一種電子裝置,包括: 一觸控板模組,包括一觸控板韌體與一觸控板; 一儲存裝置,記錄有一基本輸入輸出系統,其中所述基本輸入輸出系統包括所述觸控板的按鍵佈局資訊; 一系統記憶體,載入一驅動程式;以及 一處理器,耦接所述觸控板模組、所述儲存裝置與所述系統記憶體,經配置以: 執行所述基本輸入輸出系統; 將所述基本輸入輸出系統中的所述按鍵佈局資訊載入所述系統記憶體;以及 在作業系統的執行階段,透過所述驅動程式將所述系統記憶體中的所述按鍵佈局資訊提供給所述觸控板的所述觸控板韌體, 其中所述觸控板韌體根據所述按鍵佈局資訊控制所述觸控板提供按鍵功能。 An electronic device comprises: A touchpad module including a touchpad firmware and a touchpad; A storage device storing a basic input/output system (BIOS), wherein the BIOS includes key layout information for the touchpad; A system memory loaded with a driver; and A processor coupled to the touchpad module, the storage device, and the system memory, configured to: Execute the BIOS; Load the key layout information in the BIOS into the system memory; and During the operating system's execution phase, the driver program provides the key layout information in the system memory to the touchpad firmware of the touchpad. The touchpad firmware controls the touchpad to provide key functions based on the key layout information. 如請求項9所述的電子裝置,其中所述按鍵佈局資訊包括至少一按鍵佈局樣式,所述至少一按鍵佈局樣式將所述觸控板劃分出至少一按鍵。The electronic device of claim 9, wherein the key layout information includes at least one key layout pattern, and the at least one key layout pattern divides the touch panel into at least one key.
TW113108029A 2024-03-06 2024-03-06 Method for configurating key layout of touchpad and electronic apparatus TWI898466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW113108029A TWI898466B (en) 2024-03-06 2024-03-06 Method for configurating key layout of touchpad and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW113108029A TWI898466B (en) 2024-03-06 2024-03-06 Method for configurating key layout of touchpad and electronic apparatus

Publications (2)

Publication Number Publication Date
TW202536605A TW202536605A (en) 2025-09-16
TWI898466B true TWI898466B (en) 2025-09-21

Family

ID=97831396

Family Applications (1)

Application Number Title Priority Date Filing Date
TW113108029A TWI898466B (en) 2024-03-06 2024-03-06 Method for configurating key layout of touchpad and electronic apparatus

Country Status (1)

Country Link
TW (1) TWI898466B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200511095A (en) * 2003-09-03 2005-03-16 Compal Electronics Inc Computing device and method for cooperatively controlling a keyboard and a touchpad
TW200805014A (en) * 2006-01-23 2008-01-16 Watlow Electric Mfg Controller user interface and method
US20100007612A1 (en) * 2008-07-09 2010-01-14 Howard Locker Apparatus, system, and method for automated touchpad adjustments
TW202121153A (en) * 2019-11-26 2021-06-01 和碩聯合科技股份有限公司 Expansion control device and image control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200511095A (en) * 2003-09-03 2005-03-16 Compal Electronics Inc Computing device and method for cooperatively controlling a keyboard and a touchpad
TW200805014A (en) * 2006-01-23 2008-01-16 Watlow Electric Mfg Controller user interface and method
US20100007612A1 (en) * 2008-07-09 2010-01-14 Howard Locker Apparatus, system, and method for automated touchpad adjustments
TW202121153A (en) * 2019-11-26 2021-06-01 和碩聯合科技股份有限公司 Expansion control device and image control method

Also Published As

Publication number Publication date
TW202536605A (en) 2025-09-16

Similar Documents

Publication Publication Date Title
TWI653558B (en) Electronic system for accepting touch gesture in power saving mode to switch to normal mode, touch processing device and method thereof
US7944437B2 (en) Information processing apparatus and touch pad control method
US9904510B2 (en) Information handling devices with touch-based reflective display
US20080055256A1 (en) Touch screen controller with embedded overlay
CN106168863A (en) Computer device with touch control chip and updating method of touch control chip
TWI259367B (en) Embedded control unit
TWI673634B (en) Electronic system, touch sensitive processing apparatus and method thereof, and host and method thereof
CN107526523B (en) Method for controlling operation interface of mobile terminal and mobile terminal
TWI898466B (en) Method for configurating key layout of touchpad and electronic apparatus
JP2013114688A (en) Processing method of touch signal and electronic computer of the same
US9182880B2 (en) Method of displaying images via touching and electronic apparatus thereof
US20100271300A1 (en) Multi-Touch Pad Control Method
CN103677287A (en) An electronic device and its control method
CN103970454B (en) Electronic device with quick start function and control method thereof
TWI405105B (en) Signal handling method of compound touch panel
US10866676B2 (en) Touch sensitive electronic device, touch sensitive processing apparatus and method thereof
CN101751205A (en) Power management method for electronic device and related device
TWI425397B (en) Touch pad module and method for controlling the same
CN107273238A (en) The control method and mobile terminal of a kind of radio-frequency devices operation
WO2022222603A1 (en) Method and system for processing startup touch failure of touch screen, and an intelligent terminal
CN201716689U (en) Computer input device capable of setting macros
TW201704955A (en) Touch-control electronic device and control method thereof
CN100412769C (en) How to Calibrate the Touch Panel
TWI486742B (en) Power management method for an electronic device and related device
TWI844616B (en) Method, apparatus, input surface and computer mouse