Hot key enabling method for electronic device and electronic device
By storing the hotkey codes corresponding to the operating system in the embedded controller and calling them based on system characteristics, the problem of incomplete hotkey functions in multi-system electronic devices is solved, and the complete application of hotkey functions under multiple operating systems is realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 联想开天科技有限公司
- Filing Date
- 2022-12-06
- Publication Date
- 2026-04-21
AI Technical Summary
In the existing technology, the keyboard hotkey function of multi-system electronic devices cannot be fully implemented across different operating systems, resulting in some hotkeys being unusable and failing to meet user needs.
By storing hotkey codes corresponding to different operating systems in the embedded controller of electronic devices, and sending confirmation commands based on the characteristics of the operating system to call the corresponding hotkey codes, hotkey functions under multiple operating systems can be realized.
It realizes the complete application of hotkey functions in multiple operating system environments, meeting users' multi-system needs for hotkey functions.
Smart Images

Figure CN115858027B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of hotkey technology for electronic devices, and in particular to a hotkey activation method for an electronic device and the electronic device thereof. Background Technology
[0002] Laptops and other electronic devices are often designed with dual or multiple operating systems. Because these systems operate on different principles, their design code differs. Therefore, when a user is using a particular system, multi-function keyboard hotkeys may become unusable. Current technology typically only allows hotkeys from one system to function first; some hotkeys from other systems lack corresponding functionality, thus failing to fully realize the hotkey functionality and meet user needs. Summary of the Invention
[0003] To address the aforementioned technical problems, embodiments of this application provide a method for enabling hotkeys in an electronic device and an electronic device in general. This method can realize different keyboard hotkey functions and, through intelligent judgment, realize hotkey functions for different systems in multiple operating systems.
[0004] To achieve the above objectives, embodiments of this application provide a method for enabling hotkeys in an electronic device, the electronic device including multiple operating systems, the method comprising:
[0005] Based on the first operation request, select one operating system from multiple operating systems;
[0006] Based on the characteristics of the selected operating system, a confirmation command is sent to the embedded controller of the electronic device, so that the embedded controller calls the hotkey code corresponding to the selected operating system based on the confirmation command;
[0007] The hotkey function represented by the hotkey code is applied to the selected operating system.
[0008] Preferably, the method further includes: presetting multiple sets of hotkey codes corresponding to the multiple operating systems, wherein the multiple operating systems correspond one-to-one with the multiple sets of hotkey codes, and storing the hotkey codes in the registers of the embedded controller.
[0009] Preferably, the method further includes: pre-setting multiple labels corresponding to the multiple operating systems, wherein the multiple operating systems correspond one-to-one with the multiple labels, and storing the multiple labels in the BIOS of the electronic device.
[0010] Preferably, the method further includes: obtaining a corresponding trigger instruction based on a first operation request, and starting a selected operating system based on the trigger instruction, wherein the trigger instruction is associated with a label corresponding to the selected operating system.
[0011] Preferably, the method further includes:
[0012] Based on the second operation request, the current first operating system is switched to a second operating system that is different from the first operating system;
[0013] Based on the features of the second operating system, a switching command is sent to the embedded controller, so that the embedded controller can call the hotkey code corresponding to the second operating system based on the switching command;
[0014] The hotkey function represented by the hotkey code is applied to the second operating system.
[0015] Preferably, the method further includes:
[0016] Based on the association between the operating system, the BIOS, and the hotkeys, a correspondence table between the operating system, the BIOS, and the hotkeys is pre-defined. The correspondence table includes the version of the operating system, the label corresponding to the operating system in the BIOS, and the hotkey code stored in the embedded controller.
[0017] Preferably, the step of sending a confirmation command to the embedded controller of the electronic device based on the characteristics of the selected operating system, so that the embedded controller invokes the hotkey code corresponding to the selected operating system based on the confirmation command, includes:
[0018] Upon determining the characteristics of the selected operating system, a confirmation instruction is sent to the embedded controller of the electronic device based on the correspondence table, so that the embedded controller invokes the hotkey code corresponding to the selected operating system based on the confirmation instruction; and the hotkey function represented by the hotkey code is applied to the selected operating system.
[0019] The correspondence table is used to associate the operating system, the corresponding label of the operating system in the BIOS, and the hotkey code stored in the embedded controller.
[0020] Preferably, the plurality of operating systems are at least two of the following: UOS operating system, KOS operating system, GSKU operating system, and Windows operating system.
[0021] The purpose of this application is to provide an electronic device, including:
[0022] The acquisition module is configured to select an operating system from multiple operating systems based on the first operation request;
[0023] The processing module is configured to send a confirmation command to the embedded controller of the electronic device based on the characteristics of the selected operating system, so that the embedded controller calls the hotkey code corresponding to the selected operating system based on the confirmation command.
[0024] The module is configured to apply the hotkey function represented by the hotkey code to the selected operating system.
[0025] The purpose of this application is to provide an electronic device, including a memory and a processor, wherein the memory stores an executable program, and the processor executes the executable program to implement the steps of the method as described in any one of claims 1 to 7.
[0026] Compared with the prior art, the beneficial effects of the embodiments of this application are as follows: This application designs hotkey setting codes corresponding to different operating systems, and then stores the codes in different storage units of the EC of the embedded controller of the electronic device. When the required operating system starts, based on the characteristics of the selected operating system, the BIOS sends a confirmation command to the EC of the embedded controller, so that the EC of the embedded controller calls the hotkey code in the corresponding storage unit. This solves the technical problem that different keyboard hotkey functions cannot be fully implemented in multiple operating systems. Through intelligent judgment, the hotkey functions of different systems in multiple operating systems are realized. Attached Figure Description
[0027] Figure 1 This is a flowchart of a hotkey activation method for an electronic device according to an embodiment of this application;
[0028] Figure 2 This is another flowchart of a hotkey activation method for an electronic device according to an embodiment of this application;
[0029] Figure 3 This is another flowchart of a hotkey activation method for an electronic device according to an embodiment of this application;
[0030] Figure 4 This is another flowchart of a hotkey activation method for an electronic device according to an embodiment of this application;
[0031] Figure 5 This is a structural block diagram of an electronic device according to an embodiment of this application;
[0032] Figure 6 This is a structural block diagram of another electronic device according to an embodiment of this application. Detailed Implementation
[0033] Various embodiments and features of this application are described herein with reference to the accompanying drawings.
[0034] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.
[0035] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0036] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.
[0037] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application.
[0038] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.
[0039] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.
[0040] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.
[0041] like Figure 1 As shown in the figure, this application provides a method for enabling hotkeys in an electronic device, the electronic device including multiple operating systems, the method including:
[0042] S100, based on the first operation request, selects one operating system from multiple operating systems;
[0043] For example, firstly, the user turns on the electronic device, which can be a laptop or desktop computer. Since the electronic device in this embodiment includes multiple operating systems, the user needs to select the desired operating system from among these. Specifically, a first operation request is obtained; this first operation request is the operation request for the operating system the user wants to use. Based on the first operation request, the user can select an operating system from among the multiple operating systems. For example, the user can select a first operating system from among the multiple operating systems, which can be a commonly used operating system in electronic devices such as Windows.
[0044] S200, based on the characteristics of the selected operating system, a confirmation command is sent to the embedded controller of the electronic device, so that the embedded controller calls the hotkey code corresponding to the selected operating system based on the confirmation command;
[0045] For example, after a user selects the desired operating system from multiple options and starts the selected system, the BIOS of the electronic device can determine the characteristics of the selected operating system. For instance, if the selected operating system is Windows, the BIOS can determine that the selected operating system possesses the characteristics of Windows. Based on the characteristics of the selected operating system, the BIOS can obtain a confirmation command, which is the command from the user confirming the selected operating system. The BIOS can then send the confirmation command to the embedded controller (EC) of the electronic device, causing the EC to invoke the hotkey code corresponding to the selected operating system. After the user starts the electronic device, they select the desired operating system by clicking the icon corresponding to the operating system displayed on the electronic device; for example, the user can select Windows. After the Windows system starts, based on the characteristics of the Windows system, the BIOS can send a confirmation command to the embedded controller (EC) of the electronic device, causing the EC to invoke the hotkey code corresponding to the Windows system.
[0046] S300, apply the hotkey function represented by the hotkey code to the selected operating system.
[0047] For example, after selecting the desired operating system and invoking the hotkey code corresponding to the selected operating system, the hotkey function represented by the hotkey code is applied to the selected operating system. For instance, if the user selects Windows as the desired operating system, the BIOS can send a confirmation command to the embedded controller EC that Windows has been started, causing the embedded controller EC to invoke the hotkey code corresponding to Windows and apply the hotkey function represented by the hotkey code to the Windows system.
[0048] This application designs hotkey setting codes corresponding to different operating systems, and then stores the codes in different storage units of the embedded controller EC of the electronic device. When the required operating system starts, based on the characteristics of the selected operating system, the BIOS sends a confirmation command to the embedded controller EC, so that the embedded controller EC calls the hotkey code in the corresponding storage unit. This solves the technical problem that different keyboard hotkey functions cannot be fully implemented in multiple operating systems. Through intelligent judgment, the hotkey functions of different systems in multiple operating systems can be realized.
[0049] In one embodiment of this application, such as Figure 2 As shown, the method further includes:
[0050] S400, multiple hotkey codes corresponding to the multiple operating systems are preset, and the multiple operating systems correspond one-to-one with the multiple hotkey codes. The hotkey codes are stored in the registers of the embedded controller.
[0051] For example, before starting the operating system required by the user, multiple sets of hotkey codes corresponding to multiple operating systems are preset. Each operating system corresponds one-to-one with one of the hotkey codes. Specifically, hotkey codes for each of the multiple operating systems can be preset, and these multiple sets of hotkey codes are stored in different registers of the embedded controller EC. The hotkey codes represent the hotkey definitions for the corresponding operating system. For instance, the electronic device may have multiple operating systems including UOS and KOS. The hotkey code for UOS is 10, and the hotkey code for KOS is 11. The hotkey codes for UOS and KOS can be stored in different registers of the embedded controller EC. When the required operating system starts, the embedded controller EC can call the hotkey code in the corresponding register to implement the hotkey function of the corresponding operating system.
[0052] In one embodiment of this application, such as Figure 3 As shown, the method further includes:
[0053] S500, multiple labels corresponding to the multiple operating systems are preset to trigger, and the multiple operating systems correspond one-to-one with the multiple labels, and the multiple labels are stored in the BIOS of the electronic device.
[0054] For example, before starting the operating system required by the user, multiple labels corresponding to multiple operating systems are preset, with each operating system corresponding to one of the labels. Specifically, a label corresponding to each of the multiple operating systems can be preset, and these labels are stored in the BIOS of the electronic device. For instance, the multiple operating systems of the electronic device include UOS and KOS systems. The label corresponding to triggering UOS is 0, and the label corresponding to triggering KOS is 1. The labels corresponding to triggering UOS and KOS can be stored in the BIOS. When the required operating system starts, the label corresponding to that operating system can be triggered. For example, when UOS is required, label 0 corresponding to UOS can be triggered to start UOS.
[0055] In one embodiment of this application, the method further includes: obtaining a corresponding trigger instruction based on a first operation request, and starting a selected operating system based on the trigger instruction, wherein the trigger instruction is associated with a label corresponding to the selected operating system.
[0056] For example, when a user selects the desired operating system, a first operation request is first obtained. Since the first operation request is the operation request for the operating system the user needs to use, a corresponding trigger instruction can then be obtained based on the first operation request, and the selected operating system can be started based on the trigger instruction. The trigger instruction is associated with a label corresponding to the selected operating system. For instance, when the first operation request indicates that the user needs to use the UOS system, a corresponding trigger instruction can be obtained, and then the label 0 corresponding to the UOS system can be triggered when the electronic device is powered on to start the UOS system.
[0057] In one embodiment of this application, such as Figure 4 As shown, the method further includes:
[0058] S600, based on the second operation request, switch the current first operating system to a second operating system that is different from the first operating system;
[0059] For example, firstly, after the user turns on the electronic device, since the electronic device in this embodiment includes multiple operating systems, the user may need to switch from the currently used operating system to another operating system when using the electronic device. Specifically, a second operation request is obtained. The second operation request is an operation request from the user to switch the currently used operating system. Based on the second operation request, the user can switch the current first operating system to a second operating system different from the first operating system. For example, the first operating system may be a UOS system, and the second operating system may be a KOS system. Based on the second operation request, the user can switch from the currently used UOS system to the KOS system.
[0060] S700, based on the features of the second operating system, sends a switching instruction to the embedded controller, so that the embedded controller calls the hotkey code corresponding to the second operating system based on the switching instruction;
[0061] For example, after a user switches from the current first operating system to a second operating system different from the first, the second operating system can be activated. The BIOS of the electronic device can determine the characteristics of the switched second operating system. For instance, if the second operating system is a KOS system, the BIOS can determine that the switched operating system has the characteristics of a KOS system. Based on the characteristics of the second operating system, the BIOS can obtain a switching instruction, which is the instruction that the user specifies to switch to the currently used operating system. Then, the BIOS can send the switching instruction to the embedded controller (EC) of the electronic device, so that the EC can call the hotkey code corresponding to the second operating system based on the switching instruction. For example, when a user needs to switch operating systems, they can select the operating system to switch to by clicking the icon corresponding to the operating system displayed on the electronic device; for example, the user can choose to switch from the UOS system to the KOS system. After switching to the KOS system, based on the characteristics of the KOS system, the BIOS can send a switching instruction to the embedded controller (EC) of the electronic device, so that the EC can call the hotkey code corresponding to the KOS system based on the switching instruction.
[0062] S800, the hotkey function represented by the hotkey code is applied to the second operating system.
[0063] For example, after switching operating systems and invoking the hotkey code corresponding to the switched operating system, the hotkey function represented by the hotkey code is applied to the switched operating system. For instance, when a user switches from a UOS system to a KOS system, the BIOS can send a switching command to the embedded controller EC to switch to the KOS system, causing the embedded controller EC to invoke the hotkey code corresponding to the KOS system and apply the hotkey function represented by the hotkey code to the KOS system. This embodiment achieves the switching of hotkey functions between different operating systems in multiple operating systems through an intelligent switching method.
[0064] In one embodiment of this application, the method further includes:
[0065] Based on the association between the operating system, the BIOS, and the hotkeys, a correspondence table between the operating system, the BIOS, and the hotkeys is pre-defined. The correspondence table includes the version of the operating system, the label corresponding to the operating system in the BIOS, and the hotkey code stored in the embedded controller.
[0066] For example, before starting the operating system required by the user, a mapping table between the operating system, BIOS, and hotkeys is pre-set based on the association between the operating system, BIOS, and hotkeys. Specifically, the mapping table is set according to the operating system version, the corresponding label of the operating system in the BIOS, and the hotkey code stored in the embedded controller EC. For example, for the UOS system, the UOS system version is UOS, the corresponding label of the UOS system in the BIOS is 0, and the hotkey code of the UOS system stored in the embedded controller EC is 10; this information can be pre-set in the mapping table.
[0067] In one embodiment of this application, sending a confirmation command to the embedded controller of the electronic device based on the characteristics of the selected operating system, so that the embedded controller invokes the hotkey code corresponding to the selected operating system based on the confirmation command, includes:
[0068] Upon determining the characteristics of the selected operating system, a confirmation instruction is sent to the embedded controller of the electronic device based on the correspondence table, so that the embedded controller invokes the hotkey code corresponding to the selected operating system based on the confirmation instruction; and the hotkey function represented by the hotkey code is applied to the selected operating system.
[0069] The correspondence table is used to associate the operating system, the corresponding label of the operating system in the BIOS, and the hotkey code stored in the embedded controller.
[0070] For example, when a user determines the characteristics of the selected operating system, a confirmation command can be sent to the embedded controller EC of the electronic device based on a mapping table. This mapping table is pre-defined based on the association between the operating system, BIOS, and hotkeys; specifically, it associates the operating system with its corresponding label in the BIOS and the hotkey codes stored in the embedded controller EC. The embedded controller EC can then invoke the hotkey code corresponding to the selected operating system based on the confirmation command and apply the hotkey function represented by the hotkey code to the selected operating system. For instance, if the selected operating system is a UOS system, the BIOS can determine that the selected operating system has the characteristics of a UOS system. Based on the characteristics of the selected operating system, the BIOS can receive a confirmation command confirming that the user-selected operating system is a UOS system. Afterward, the BIOS can send a confirmation command to the embedded controller EC of the electronic device, causing the embedded controller EC to invoke the hotkey code corresponding to the UOS system based on the confirmation command. After the user starts the electronic device, they select the UOS system by selecting label 0 corresponding to the UOS system displayed on the electronic device. After the UOS system is started, based on the characteristics of the UOS system, the BIOS can send a confirmation command to the embedded controller EC of the electronic device to confirm that the UOS system has been started, so that the embedded controller EC can call the hotkey code 10 corresponding to the Windows system based on the confirmation command.
[0071] OS and Hotkey Mapping Table in BIOS and EC
[0072] OS version OS corresponding label in BIOS EC different hotkeys correspond to registers UOS 0 (Triggered upon power-on) 10 (UOS System Hotkey Definitions) KOS 1 (Triggered upon power-on) 11 (KOS System Hotkey Definitions) GSKU 2 (Triggered upon power-on) 12 (GSKU System Hotkey Definitions) …… ...(triggered upon power-on) ……
[0073] In one embodiment of this application, the plurality of operating systems are at least two of the following: UOS operating system, KOS operating system, GSKU operating system, and Windows operating system. Specifically, this embodiment can select the desired operating system from the aforementioned UOS operating system, KOS operating system, GSKU operating system, and Windows operating system, or can switch between the aforementioned operating systems, allowing for flexible use of the functions of the aforementioned operating systems.
[0074] Based on the same inventive concept, embodiments of this application also provide an electronic device, such as... Figure 5 As shown, it includes:
[0075] The acquisition module is configured to select an operating system from multiple operating systems based on the first operation request;
[0076] The processing module is configured to send a confirmation command to the embedded controller of the electronic device based on the characteristics of the selected operating system, so that the embedded controller calls the hotkey code corresponding to the selected operating system based on the confirmation command.
[0077] The module is configured to apply the hotkey function represented by the hotkey code to the selected operating system.
[0078] In one embodiment of this application, the electronic device further includes:
[0079] The default module is configured as follows:
[0080] Multiple hotkey codes corresponding to the multiple operating systems are preset, and the multiple operating systems correspond one-to-one with the multiple hotkey codes. The hotkey codes are stored in the registers of the embedded controller.
[0081] In one embodiment of this application, the preset module is further configured to:
[0082] Multiple labels corresponding to the multiple operating systems are preset to trigger the multiple operating systems. The multiple operating systems correspond one-to-one with the multiple labels, and the multiple labels are stored in the BIOS of the electronic device.
[0083] In one embodiment of this application, the acquisition module is further configured to:
[0084] Based on the first operation request, a corresponding trigger instruction is obtained, and based on the trigger instruction, the selected operating system is started, wherein the trigger instruction is associated with a label corresponding to the selected operating system.
[0085] In one embodiment of this application, the electronic device further includes:
[0086] The switching module is configured as follows:
[0087] Based on the second operation request, the current first operating system is switched to a second operating system that is different from the first operating system;
[0088] Based on the features of the second operating system, a switching command is sent to the embedded controller, so that the embedded controller can call the hotkey code corresponding to the second operating system based on the switching command;
[0089] The hotkey function represented by the hotkey code is applied to the second operating system.
[0090] In one embodiment of this application, the preset module is further configured to:
[0091] Based on the association between the operating system, the BIOS, and the hotkeys, a correspondence table between the operating system, the BIOS, and the hotkeys is pre-defined. The correspondence table includes the version of the operating system, the label corresponding to the operating system in the BIOS, and the hotkey code stored in the embedded controller.
[0092] In one embodiment of this application, the preset module is further configured to:
[0093] Upon determining the characteristics of the selected operating system, a confirmation instruction is sent to the embedded controller of the electronic device based on the correspondence table, so that the embedded controller invokes the hotkey code corresponding to the selected operating system based on the confirmation instruction; and the hotkey function represented by the hotkey code is applied to the selected operating system.
[0094] The correspondence table is used to associate the operating system, the corresponding label of the operating system in the BIOS, and the hotkey code stored in the embedded controller.
[0095] Based on the same inventive concept, such as Figure 6 As shown, this embodiment also includes an electronic device, comprising:
[0096] Memory, used to store executable programs;
[0097] A processor for executing the executable program to implement the above method.
[0098] Since the principle of the electronic device in this application to solve the problem is similar to that of the method described above, the implementation of the electronic device can be found in the implementation of the method, and the repeated parts will not be described again.
[0099] This application provides a storage medium, which is a computer-readable medium, storing a computer program. When the computer program is executed by a processor, it implements the method provided in any embodiment of this application, including the method steps described above.
[0100] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, which will not be repeated here. Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed on a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be executed in a different order than those described here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any specific hardware and software combination.
[0101] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0102] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for enabling hotkeys in an electronic device, the electronic device including multiple operating systems, the method comprising: Based on the first operation request, select one operating system from multiple operating systems; Based on the characteristics of the selected operating system, a confirmation command is sent to the embedded controller of the electronic device, so that the embedded controller calls the hotkey code corresponding to the selected operating system based on the confirmation command; Apply the hotkey function represented by the hotkey code to the selected operating system; The step of sending a confirmation command to the embedded controller of the electronic device based on the characteristics of the selected operating system, so that the embedded controller calls the hotkey code corresponding to the selected operating system based on the confirmation command, includes: Once the characteristics of the selected operating system are determined, a confirmation instruction is sent to the embedded controller of the electronic device based on a correspondence table, so that the embedded controller calls the hotkey code corresponding to the selected operating system based on the confirmation instruction; and the hotkey function represented by the hotkey code is applied to the selected operating system. The correspondence table is used to associate the operating system, the corresponding label of the operating system in the BIOS, and the hotkey code stored in the embedded controller.
2. The method according to claim 1, further comprising: Multiple hotkey codes corresponding to the multiple operating systems are preset, and the multiple operating systems correspond one-to-one with the multiple hotkey codes. The hotkey codes are stored in the registers of the embedded controller.
3. The method according to claim 1, further comprising: Multiple labels corresponding to the multiple operating systems are preset to trigger the multiple operating systems. The multiple operating systems correspond one-to-one with the multiple labels, and the multiple labels are stored in the BIOS of the electronic device.
4. The method according to claim 3, further comprising: Based on the first operation request, a corresponding trigger instruction is obtained, and based on the trigger instruction, the selected operating system is started, wherein the trigger instruction is associated with a label corresponding to the selected operating system.
5. The method according to claim 1, further comprising: Based on the second operation request, the current first operating system is switched to a second operating system that is different from the first operating system; Based on the features of the second operating system, a switching command is sent to the embedded controller, so that the embedded controller can call the hotkey code corresponding to the second operating system based on the switching command; The hotkey function represented by the hotkey code is applied to the second operating system.
6. The method according to claim 1, further comprising: Based on the association between the operating system, the BIOS, and the hotkeys, a correspondence table between the operating system, the BIOS, and the hotkeys is pre-defined. The correspondence table includes the version of the operating system, the label corresponding to the operating system in the BIOS, and the hotkey code stored in the embedded controller.
7. The method according to any one of claims 1-6, wherein the plurality of operating systems are at least two of the following: UOS operating system, KOS operating system, GSKU operating system, and Windows operating system.
8. An electronic device, comprising: The acquisition module is configured to select an operating system from multiple operating systems based on the first operation request; The processing module is configured to send a confirmation command to the embedded controller of the electronic device based on the characteristics of the selected operating system, so that the embedded controller calls the hotkey code corresponding to the selected operating system based on the confirmation command. The module is configured to apply the hotkey function represented by the hotkey code to the selected operating system. The processing module is further configured to, upon determining the characteristics of the selected operating system, send a confirmation instruction to the embedded controller of the electronic device based on a correspondence table, so that the embedded controller, based on the confirmation instruction, calls the hotkey code corresponding to the selected operating system; and applies the hotkey function represented by the hotkey code to the selected operating system. The correspondence table is used to associate the operating system, the corresponding label of the operating system in the BIOS, and the hotkey code stored in the embedded controller.
9. An electronic device comprising a memory and a processor, the memory storing an executable program, the processor executing the executable program to implement the steps of the method as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Method for enabling hotkey function to meet computer dual systems
CN107590004A
Event processing method and device, electronic equipment and readable medium
CN112068713A
System identification method and device, embedded controller and storage medium
CN114780157A