Device performance processing method, electronic device, and computer-readable storage medium

By adjusting the performance parameters of electronic devices to prioritize performance in handling slow-response events, issues such as choppy or laggy visuals were resolved, improving response speed and battery life, and enhancing the user experience.

WO2026051639A1PCT designated stage Publication Date: 2026-03-12HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-07-25
Publication Date
2026-03-12

Smart Images

  • Figure CN2025110566_12032026_PF_FP_ABST
    Figure CN2025110566_12032026_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the technical field of electronics. Disclosed are a device performance processing method, an electronic device, and a computer-readable storage medium, which can reduce the problems of lack of smoothness or display lag. The method comprises: receiving an operation signal of a peripheral device; when the type of a first event triggered by means of the operation signal is included in a first type set, adjusting a first performance parameter, wherein a response speed of an event corresponding to each type in the first type set is slower than a preset response speed, and the first performance parameter is used for configuring the priority of performance of an electronic device to be higher than the priority of power consumption of the electronic device; and executing the first event within a first duration, and adjusting a second performance parameter after the first duration elapses, wherein the second performance parameter is used for reducing a power consumption threshold of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Device performance processing method, electronic device, and computer-readable storage medium

[0001] The present application claims priority to the Chinese patent application No. 202411231780.0, filed on September 3, 2024, and entitled "Device performance processing method, electronic device, and computer-readable storage medium", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] Embodiments of the present application relate to the field of electronic technology, and in particular to a device performance processing method, an electronic device, and a computer-readable storage medium. BACKGROUND

[0003] With the improvement of the performance of electronic devices, the electronic devices can meet the needs of users in daily life, work, and study. Currently, the electronic devices receive operations of users, and can trigger different types of events to implement different functions, such as playing audio, opening a video, or opening a document, etc.

[0004] However, during the use of the electronic devices, phenomena such as unsmooth or lagging pictures often occur. Therefore, there is an urgent need for a device performance processing method that can effectively solve the aforementioned problems. SUMMARY

[0005] Embodiments of the present application provide a device performance processing method, an electronic device, and a computer-readable storage medium, which avoid phenomena such as unsmooth or lagging pictures.

[0006] To achieve the above-mentioned purpose, embodiments of the present application adopt the following technical solutions:

[0007] In a first aspect, a device performance processing method is provided. The method is applied to an electronic device, and the method includes:

[0008] receiving an operation signal of an external device;

[0009] when a type of a first event triggered by the operation signal is included in a first type set, adjusting a first performance parameter, each type in the first type set corresponding to an event with a response speed slower than a preset response speed, the first performance parameter being used to configure a priority of performance of the electronic device higher than a priority of power consumption of the electronic device;

[0010] executing the first event within a first time length, and after the first time length, adjusting a second performance parameter, the second performance parameter being used to reduce a power consumption threshold of the electronic device.

[0011] The device performance processing method provided by the above embodiments, the electronic device receives an operation signal of the peripheral device, and the electronic device can trigger a first event according to the operation signal. The electronic device can be previously configured with a first type set, and the response speed of an event corresponding to a type in the first type set is slower than a preset response speed. When the type of the first event is included in the first type set, the electronic device can determine that the response speed of the first event meets the preset response speed, and the phenomenon of unsmooth or lagging picture may occur.

[0012] Therefore, the electronic device can adjust the first performance parameter, so that the electronic device adjusts itself to a performance priority over power consumption working state, improves the performance of the electronic device, and accelerates the response speed of the electronic device. After the adjustment of the first performance parameter is completed, the electronic device can execute the first event within a first time length, so as to avoid the phenomenon of unsmooth or lagging picture. After the first time length, the electronic device can adjust the second performance parameter, so that the electronic device restores itself to the previous working state, so that the electronic device does not continue to work in the performance priority over power consumption working state, prolongs the endurance time of the electronic device, and reduces the running cost of the electronic device. Therefore, the experience of the user is enhanced.

[0013] In a possible implementation manner of the first aspect, when the type of the first event is included in the first type set, the method further includes:

[0014] adjusting a third performance parameter, the third performance parameter being used to increase the power consumption threshold of the electronic device.

[0015] In a possible implementation manner of the first aspect, the electronic device receives an operation signal of the peripheral device, and the electronic device can trigger a first event according to the operation signal. The electronic device can be previously configured with a first type set, and the response speed of an event corresponding to a type in the first type set is slower than a preset response speed. When the type of the first event is included in the first type set, the electronic device can determine that the response speed of the first event meets the preset response speed, and the phenomenon of unsmooth or lagging picture may occur.

[0016] Based on this, the electronic device can adjust the first performance parameter and the third performance parameter, adjust the electronic device itself to a performance priority over power consumption working state, and increase the power consumption threshold of the electronic device, thereby improving the performance of the electronic device, increasing the working power that can be used by the electronic device, accelerating the response speed of the electronic device, and avoiding the phenomenon of unsmooth or stuck pictures. After the adjustment of the first performance parameter and the third performance parameter is completed, the electronic device can execute the first event within the first time length, thereby avoiding the phenomenon of unsmooth or stuck pictures. After the first time length, the electronic device can adjust the second performance parameter, so that the electronic device restores the electronic device itself to the previous working state, so that the electronic device does not continue to work in the performance priority over power consumption working state, and can reduce the power consumption threshold of the electronic device, thereby prolonging the endurance time of the electronic device and reducing the running cost of the electronic device. Thus, the experience of the user is enhanced.

[0017] In a possible implementation of the first aspect, the method specifically comprises:

[0018] adjusting the third performance parameter when the type of the first event is included in the first type set and the electronic device is not in the store mode;

[0019] or, adjusting the third performance parameter when the type of the first event is included in the first type set and the fan of the electronic device is not failed and the air outlet is not blocked;

[0020] or, adjusting the third performance parameter when the type of the first event is included in the first type set and the chip temperature of the electronic device is less than the preset temperature.

[0021] In a possible implementation of the first aspect, when the type of the first event is included in the first type set, the electronic device can adjust the first performance parameter and the third performance parameter. The electronic device needs to consider the influence of the temperature factor to determine whether to adjust the third performance parameter. When the electronic device is in a high-temperature scenario, the electronic device can adjust the third performance parameter. When the electronic device is in a high-temperature scenario, the electronic device does not adjust the third performance parameter. The high-temperature scenario can include, but is not limited to, any one of the store mode, the safety regulation mode, or the high-temperature mode.

[0022] In a possible implementation of the first aspect, the first performance parameter includes a processor energy efficiency ratio of a power manager in a processor of the electronic device and an energy performance optimization of a window management specification service in the processor of the electronic device.

[0023] adjusting the first performance parameter comprises:

[0024] set the processor energy efficiency ratio to be less than or equal to a first value, the first value being used to configure a priority of performance of the processor to be higher than a priority of power consumption of the processor;

[0025] set the energy performance optimization to a first order, the first order being used to configure the priority of performance of the processor to be higher than the priority of power consumption of the processor.

[0026] The setting of the processor energy efficiency ratio (EPP) and the energy performance optimization (EPO) can be performed simultaneously or sequentially, and the embodiments of the present application do not limit this.

[0027] In this way, when the type of the first event is included in the first type set, the electronic device configures the priority of performance of the electronic device to be higher than the priority of power consumption of the electronic device by adjusting the first performance parameter, i.e., setting the EPP and EPO strategies, so that the electronic device can process the first event in a rule of performance priority over power consumption, which can improve the response speed of the electronic device and increase the CPU frequency and responsiveness, and ensure smooth output of the picture.

[0028] In a possible implementation of the first aspect, the third performance parameter includes: a power consumption wall of a processor of the electronic device, and a DTT of a window management specification service in the processor of the electronic device.

[0029] Adjusting the third performance parameter includes:

[0030] The power consumption wall of the processor is set to be greater than or equal to a first power consumption, the first power consumption being used to increase a power consumption threshold of the electronic device;

[0031] The DTT is set to a first strategy number, the first strategy number being used to increase the power consumption threshold of the electronic device.

[0032] The power consumption wall (PL1) of the processor and the DTT need to be issued at the same time to ensure that the adjustment of the third performance parameter can take effect in time.

[0033] In this way, when the type of the first event is included in the first type set, the electronic device increases the power consumption threshold of the electronic device by adjusting the third performance parameter, i.e., setting the PL1 and DTT strategies, so that the electronic device can consume more power to process the first event, which can speed up the response speed of the electronic device and avoid the phenomenon of unsmooth or stuck picture.

[0034] In a possible implementation of the first aspect, the second performance parameter includes: a DTT of a window management specification service in a processor of the electronic device.

[0035] Adjusting the second performance parameter includes:

[0036] The DTT is set as a second policy number, and the second policy number is used to reduce the power consumption threshold of the processor.

[0037] In this way, when the type of the first event is included in the first type set, the electronic device reduces the power consumption threshold of the electronic device by adjusting the first parameter or the first performance parameter and the third performance parameter, adjusting the second performance parameter, that is, setting the policy of the DTT, over the first time length, and reducing the power consumption of the electronic device, so as to achieve the purpose of power saving and prolonging the battery life.

[0038] In a possible implementation of the first aspect, the first time length is related to the type of the first event.

[0039] In a possible implementation of the first aspect, the time length of the execution is different for events of different types. Generally, the time length of the event can be set according to different types of electronic devices and actual application scenarios and other parameters, so as to achieve the purpose of better performance.

[0040] In a possible implementation of the first aspect, when the type of the first event is included in the first type set, the electronic device can determine which type or types in the first type set the type of the first event is. Thus, the electronic device can determine the first time length according to the type or types. In this way, the actual and specific needs of the performance and power consumption of the electronic device are fully considered.

[0041] In a possible implementation of the first aspect, the first type set includes a mouse click event, a scene switching event, and a hotkey click event.

[0042] In a possible implementation of the first aspect, when the type of the first event includes the scene switching event and the mouse click event, the first time length is related to the scene switching event.

[0043] In a second aspect, a device performance processing method is provided, and the method is applied to an electronic device. The electronic device includes a processor.

[0044] When the processor executes one or more computer programs stored in the memory, the electronic device executes the device performance processing method in the first aspect and any possible implementation of the first aspect.

[0045] In a third aspect, an electronic device is provided, and the electronic device includes:

[0046] one or more processors;

[0047] a memory;

[0048] The memory stores one or more computer programs including instructions that, when executed by the electronic device, cause the electronic device to perform the performance processing method of the device in the first aspect and any possible implementation manner of the first aspect.

[0049] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are run on an electronic device, the electronic device implements the performance processing method of the device in the first aspect and any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF DRAWINGS

[0050] FIG. 1 is a structural schematic diagram of an electronic device provided by an embodiment of the present application;

[0051] FIG. 2 is a software architecture schematic diagram of an electronic device provided by an embodiment of the present application;

[0052] FIG. 3 is a flow schematic diagram of a performance processing method of a device provided by an embodiment of the present application;

[0053] FIG. 4 is a flow schematic diagram of another performance processing method of a device provided by an embodiment of the present application;

[0054] FIG. 5 is a schematic diagram of a first time length provided by an embodiment of the present application;

[0055] FIG. 6 is a software architecture schematic diagram of a housekeeper APP provided by an embodiment of the present application;

[0056] FIG. 7 is a software architecture schematic diagram of another electronic device provided by an embodiment of the present application;

[0057] FIG. 8 is a software architecture schematic diagram of another electronic device provided by an embodiment of the present application;

[0058] FIG. 9 is a software architecture schematic diagram of another electronic device provided by an embodiment of the present application;

[0059] FIG. 10 is a software architecture schematic diagram of an electronic device adjusting a first performance provided by an embodiment of the present application;

[0060] FIG. 11 is a software architecture schematic diagram of an electronic device adjusting a third performance provided by an embodiment of the present application;

[0061] FIG. 12 is a software architecture schematic diagram of an electronic device adjusting a second performance provided by an embodiment of the present application;

[0062] FIG. 13 is a flow schematic diagram of another performance processing method of a device provided by an embodiment of the present application;

[0063] FIG. 14 is a flow diagram of another method for processing device performance according to an embodiment of the present application;

[0064] FIG. 15 is a diagram of a change of a PL1 according to an embodiment of the present application. DETAILED DESCRIPTION

[0065] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; in this document, "and / or" is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0066] In this specification, the reference "one embodiment" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. Therefore, the statements "in one embodiment", "in some embodiments", "in other embodiments", "in additional embodiments", etc. appearing in various places in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically stated. The terms "include", "contain", "have" and their variants mean "including but not limited to", unless otherwise specifically stated.

[0067] In the following, the terms "first", "second" are only used for description purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the embodiments, unless otherwise specified, the meaning of "multiple" is two or more than two.

[0068] In the use process of the electronic device, the electronic device can receive different operation signals input by the user through the peripheral device. For example, the user presses the button in the keyboard, or the user touches the control on the touch screen of the electronic device. The electronic device can trigger different events according to different operations, so as to realize different functions. However, the user's operation may be too frequent or high in power consumption, such as continuous clicking operation, which is easy to cause the electronic device to fail to respond in time, resulting in a phenomenon of unsmooth picture and lag, reducing the user's operation experience.

[0069] To solve the above problems, an embodiment of the present application provides a device performance processing method. In the method, an electronic device can determine the type of a slow-response event in advance, and after receiving the slow-response event, the performance strategy of the electronic device can be adjusted to ensure smooth and non-stuttering screen.

[0070] The electronic device can be a notebook computer, a tablet computer, a desktop computer, a laptop computer, an ultra mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), and the like. It should be understood that the specific technology and specific device form of the electronic device are not limited in the embodiments of the present application.

[0071] Referring to FIG. 1, FIG. 1 shows a structural schematic diagram of an electronic device according to an embodiment of the present application. As shown in FIG. 1, the electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a wireless communication module 150, a display screen 160, and the like.

[0072] It can be understood that the structure shown in the embodiment is not a specific limitation on the electronic device. In other embodiments, the electronic device can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware. The interface connection relationship between the modules shown in the embodiment is only illustrative and does not constitute a specific limitation on the structure of the electronic device. In other embodiments, the electronic device can also use different interface connection methods or a combination of multiple interface connection methods.

[0073] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated in one or more processors.

[0074] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0075] The memory can also be provided in the processor 110, for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that have just been used or are recycled by the processor 110. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.

[0076] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include an I2C interface, an inter integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface, etc.

[0077] It can be understood that the interface connection relationship between the modules shown in the embodiments is only illustrative and does not constitute a limitation on the structure of the electronic device 100. In other embodiments, the electronic device 100 can also use different interface connection modes or a combination of multiple interface connection modes.

[0078] The charging management module 140 is configured to receive charging input from a charger. The charging management module 140 can also supply power to the electronic device while charging the battery 142 via the power management module 141.

[0079] The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the external memory, the display screen 160, and the wireless communication module 150. In some embodiments, the power management module 141 and the charging management module 140 can also be arranged in the same device.

[0080] The wireless communication module 150 can provide wireless communication solutions including WLAN (e.g., Wi-Fi), Bluetooth, global navigation satellite system (GNSS), near field communication (NFC), infrared (IR), frequency modulation (FM), and the like, which are applied to the electronic device 100. For example, in the embodiments of the present application, the electronic device 100 can establish a Bluetooth connection with a terminal device (e.g., a wireless earphone 100) via the wireless communication module 150.

[0081] The wireless communication module 150 can be one or more devices that integrate at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via an antenna, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 150 can also receive signals to be sent from the processor 110, perform frequency modulation and amplification, and radiate the signals to the antenna as electromagnetic waves.

[0082] The electronic device 100 realizes display functions through a GPU, a display screen 160, and an application processor. The GPU is a microprocessor for image processing, which is connected to the display screen 160 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.

[0083] The display screen 160 is configured to display images, videos, and the like. The display screen 160 includes a display panel.

[0084] The external memory interface 120 can be configured to connect an external memory card, such as a Micro SD card, to extend the storage capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external memory card.

[0085] The internal memory 121 can be configured to store computer executable program codes, which include instructions. The processor 110 executes various function applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. For example, in the embodiments of the present application, the processor 110 can execute the instructions stored in the internal memory 121, and the internal memory 121 can include a storage program area and a storage data area.

[0086] The storage program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, and the like), and the like. The storage data area can store data (such as audio data, a phone book, and the like) created during the use of the electronic device 100, and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.

[0087] The software system of the above-described electronic device can be divided into three layers, an application layer, a system layer, and a firmware layer. The embodiments of the present application take a layered architecture Windows system as an example to exemplarily illustrate the software structure of the electronic device.

[0088] Exemplarily, FIG. 2 shows a software architecture schematic diagram of the electronic device 100 according to the embodiments of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Windows system is divided into an application layer, a system layer, and a firmware layer. The system layer can include a service layer and a driver layer. The firmware layer can include a basic input / output system (BIOS) layer and an embedded controller (EC) layer, and a hardware layer.

[0089] As shown in FIG. 2, the application layer includes music, video, game, office, social and housekeeper applications (APPs) and the like. In FIG. 2, only some of the application programs are shown, and the application layer can also include other application programs, such as a shopping application, a browser and the like, which are not limited in the embodiments of the present application.

[0090] The system layer can include a service layer and a driver layer. The service layer provides an interface for data interaction between the application layer and the driver layer. Specifically, the service layer can include a windows management instrumentation (WMI) service, an application processing module and the like. The driver layer can include a dynamic tuning technology (DTT) driver, an audio / video driver, a mouse driver and the like. In FIG. 2, only some of the modules are shown, and the system layer can also include other modules, such as a graphics card driver and the like, which are not limited in the embodiments of the present application.

[0091] The firmware layer can include a BIOS layer and an EC layer, and a hardware layer. Specifically, the BIOS layer and the EC layer can include a BIOS, an EC, a hardware interface, a thermal / power control, an APAT policy module and the like. The hardware layer can include a CPU, a mouse click event, a hotkey click event, a store mode event, an APAT mode event (including a blocked air outlet event and a fan failure event), a high-temperature event, a scene switching event and the like. It should be understood that only some of the modules are shown in FIG. 2, and the firmware layer can also include other modules, which are not limited in the embodiments of the present application.

[0092] The technical solutions involved in the following embodiments can be implemented in the electronic device 100 with the hardware architecture and the software architecture described above.

[0093] In an embodiment provided in the present application, referring to FIG. 3, FIG. 3 shows a flowchart of a device performance processing method according to an embodiment of the present application. As shown in FIG. 3, the device performance processing method according to an embodiment of the present application can include:

[0094] S101, receiving an operation signal of an external device.

[0095] The electronic device is connected with the external device, and the electronic device can receive an operation signal input by the external device.

[0096] The external device can include, but is not limited to, input devices such as a keyboard, a mouse, a display screen and a stylus. Taking a notebook computer as an example, the external device can be a display screen of the notebook computer, or the external device can be a keyboard.

[0097] The operation signal can be a user operation or a hardware signal. The user operation can include, but is not limited to, a click operation, a double-click operation, and a long-press operation, and the like. The hardware signal can be an electrical signal transmitted by a hardware in the peripheral device to the electronic device.

[0098] S102, when the type of the first event triggered by the operation signal is included in the first type set, adjusting the first performance parameter, each type in the first type set corresponding to an event with a response speed slower than a preset response speed, and the first performance parameter being used to configure a priority of a performance of the electronic device higher than a priority of power consumption of the electronic device.

[0099] The electronic device can determine in advance which events are likely to cause the picture to be unsmooth or stuck. The electronic device can integrate the types of these events into the first type set. Thus, the electronic device can obtain the first type set in advance, the first type set including a plurality of types, each type having a response speed slower than a preset response speed and being likely to cause the picture to be unsmooth or stuck.

[0100] The types in the first type set can be divided into three categories: a mouse click event, a hotkey click event, and a scene switching event.

[0101] The mouse click event refers to an operation signal of the peripheral device being a click operation. The peripheral device can not only be a mouse, but also other input devices, which can be specifically referred to the description in the foregoing, and will not be described here.

[0102] The hotkey click event refers to an operation on one or more hardware keys and / or virtual controls in the peripheral device being able to complete a specific function, and the type of the event triggered by the operation is defined as a hotkey click event. For example, the F12 key on the keyboard can implement a screenshot function, and the type of the event corresponding to the operation on the F12 key is a hotkey click event.

[0103] The scene switching event can include process creation and focus window switching. The process creation refers to the operating system of the electronic device starting a new program instance. For example, the process creation can include application startup, and the like. The focus window switching refers to changing the focus between a plurality of opened windows, so that the window currently needed to be used by the user becomes the focus window. For example, the focus window switching can include application switching and application closing, and the like. In addition, the scene switching event can also include booting and sleep wake-up, and the like.

[0104] The electronic device can trigger the first event after receiving the operation signal. The type of the first event can be various types.

[0105] When the type of the first event is included in the first type set, the electronic device can determine that the first event can cause the problem of unsmooth or stuck picture. Therefore, the electronic device can adjust the first performance parameter to configure the priority of the performance of the electronic device to be higher than the priority of the power consumption of the electronic device, so that the electronic device can process the first event in the rule of performance priority over power consumption, can act on the CPU frequency and responsiveness, can accelerate the response speed of the electronic device, and avoids the phenomenon of unsmooth or stuck picture.

[0106] That is, when the type of the first event is included in the first type set, by adjusting the first performance parameter, the electronic device adjusts itself to the working state of performance priority over power consumption, and then the adjusted electronic device can execute the first event by using faster response demand, and the phenomenon of unsmooth or stuck picture does not occur.

[0107] When the type of the first event is not included in the first type set, the electronic device can determine that the first event is less likely to cause the problem of unsmooth or stuck picture. Therefore, the electronic device can directly execute the first event without adjusting the first performance parameter.

[0108] S103, executing the first event within a first time length, and adjusting a second performance parameter after the first time length, the second performance parameter being used to reduce the power consumption threshold of the electronic device.

[0109] After completing the adjustment of the first performance parameter, the working state of the electronic device can be maintained as the working state of performance priority over power consumption. The electronic device can execute the first event in the working state of performance priority over power consumption within the first time length, so that the response speed of the first event is faster than the preset response speed, to ensure the smooth output of the picture.

[0110] The first time length can be set according to the type of the first event and the working state of the electronic device and the like. In some embodiments, the first time length can be less than or equal to the time length during which the electronic device maintains the working state of performance priority over power consumption. The specific size of the first time length is not limited in the embodiments of the present application.

[0111] It should be noted that, within the first time length, the electronic device receives the operation signal of the external device again. At this time, the electronic device can shield the operation signal until the first time length ends, and the electronic device can continue to wait for the operation signal of the external device.

[0112] After the first time length, the electronic device can determine that the first event has been executed. The electronic device can determine that it does not need to continue to maintain the working state of performance priority over power consumption. Therefore, the electronic device can adjust the second performance parameter to reduce the power consumption threshold of the electronic device, can prolong the endurance time of the electronic device, and reduce the running cost of the electronic device.

[0113] The device performance processing method provided by the embodiments of the present application can receive an operation signal of an external device by an electronic device, and the electronic device can trigger a first event according to the operation signal. The electronic device can configure a first type set in advance, and the response speed of the event corresponding to the type in the first type set is slower than a preset response speed. When the type of the first event is included in the first type set, the electronic device can determine that the response speed of the first event meets the preset response speed, and the phenomenon of unsmooth or stuck screen may occur. Based on this, the electronic device can adjust a first performance parameter, so that the electronic device adjusts itself to a performance priority over power consumption working state, improves the performance of the electronic device, and accelerates the response speed of the electronic device. After the adjustment of the first performance parameter is completed, the electronic device can execute the first event within a first time length, avoiding the phenomenon of unsmooth or stuck screen. The electronic device can adjust a second performance parameter after the first time length, so that the electronic device restores itself to the previous working state, so that the electronic device does not continue to work in the performance priority over power consumption working state, can prolong the endurance time of the electronic device, and reduces the running cost of the electronic device. Thus, the experience of the user is enhanced.

[0114] In another implementation form of the embodiments of the present application, referring to FIG. 4, FIG. 4 shows a flowchart of the device performance processing method according to the embodiments of the present application. As shown in FIG. 4, the device performance processing method according to the embodiments of the present application can include the following steps.

[0115] S201, receiving an operation signal of an external device.

[0116] The specific implementation of S201 can refer to S101 in FIG. 3, and will not be repeated here.

[0117] S202, when the type of the first event triggered by the operation signal is included in the first type set, adjusting a first performance parameter and a third performance parameter.

[0118] S202 includes two processes, which are a first process and a second process.

[0119] The first process is that the electronic device adjusts the first performance parameter, and the first performance parameter is used to configure that the priority of the performance of the electronic device is higher than the priority of the power consumption of the electronic device. The process is shown in S102 in FIG. 3 above, and will not be repeated here.

[0120] The second process is that the electronic device adjusts the third performance parameter, and the third performance parameter is used to increase the power consumption threshold of the electronic device.

[0121] Different types of events have different execution durations and different power consumptions. Compared with other events, the power consumption of the event corresponding to the type in the first event set is higher while ensuring the same response speed as other events. The response speed of the event corresponding to the type in the first event set is slower while ensuring the same power consumption as other events.

[0122] When the type of the first event is included in the first type set, the electronic device can determine that the execution of the first event needs to consume more power consumption. Therefore, the electronic device can adjust the third performance parameter to increase the power consumption threshold of the electronic device, so that the electronic device can process the first event with larger working power, and the response speed of the electronic device can be accelerated, and the phenomenon of unsmooth or stuck screen can be avoided.

[0123] It should be understood that the first process and the second process can be executed simultaneously or sequentially, and the execution order of the first process and the second process is not limited in the embodiments of the present application.

[0124] In summary, when the type of the first event is included in the first type set, the electronic device can adjust the first performance parameter and the third performance parameter. When the type of the first event is not included in the first type set, the electronic device can determine that the screen will not appear the phenomenon of stuck, and the first performance parameter and the third performance parameter do not need to be adjusted.

[0125] S203, executing the first event within the first duration, and adjusting the second performance parameter after the first duration, the second performance parameter being used to reduce the power consumption threshold of the electronic device.

[0126] After the adjustment of the first performance parameter and the third performance parameter is completed, not only the working state of the electronic device remains the performance priority over power consumption working state, but also the power consumption threshold of the electronic device becomes larger. Therefore, the electronic device can execute the first event in the performance priority over power consumption working state and with larger power within the first duration, which is beneficial to output smooth screen.

[0127] After the first duration, the electronic device can adjust the second performance parameter to reduce the power consumption threshold of the electronic device, which can prolong the endurance time of the electronic device and reduce the running cost of the electronic device. The specific implementation manner of the process can be referred to S103 in FIG. 3, which will not be described here.

[0128] In summary, the electronic device receives an operation signal of the peripheral device, and the electronic device can trigger a first event according to the operation signal. The electronic device can configure a first type set in advance, and the response speed of the corresponding event of the type in the first type set is slower than the preset response speed. When the type of the first event is included in the first type set, the electronic device can determine that the response speed of the first event meets the preset response speed, and the phenomenon of unsmooth or stuttering screen can occur. Based on this, the electronic device can adjust the first performance parameter and the third performance parameter, adjust the electronic device itself to a performance priority over power consumption working state, and increase the power consumption threshold of the electronic device, improve the performance of the electronic device and the working power that the electronic device can use, speed up the response speed of the electronic device, and avoid the phenomenon of unsmooth or stuttering screen. After completing the adjustment of the first performance parameter and the third performance parameter, the electronic device can execute the first event within a first time length, and avoid the phenomenon of unsmooth or stuttering screen. The electronic device can adjust the second performance parameter after the first time length, so that the electronic device restores the electronic device itself to the previous working state, so that the electronic device does not continue to work in the performance priority over power consumption working state, and can reduce the power consumption threshold of the electronic device, prolong the endurance time of the electronic device, and reduce the running cost of the electronic device. Thus, the user experience is enhanced.

[0129] Based on the above description, after the electronic device completes the adjustment of the third performance parameter, the power consumption threshold of the electronic device becomes larger, so that the electronic device uses larger working power, so that the temperature of the electronic device becomes higher, and even the phenomenon of excessively high temperature occurs, which reduces the thermal comfort of the electronic device. Based on this, when adjusting the third performance parameter, the electronic device can exclude the environment mode of excessively high temperature, that is, in the environment mode of excessively high temperature, the electronic device can only adjust the first performance parameter, and does not adjust the third performance parameter.

[0130] Based on this, the electronic device can determine whether to adjust the third performance parameter according to the demand of the electronic device for temperature.

[0131] In some embodiments, when the type of the first event is included in the first type set, and the electronic device is not in the store mode, the electronic device can adjust the first performance parameter and the third performance parameter.

[0132] When the type of the first event is included in the first type set, and the electronic device is in the store mode, the electronic device can adjust the first performance parameter, and does not adjust the third performance parameter.

[0133] In some embodiments, the store mode refers to a mode in which the electronic device is closed in a retail store, and some functions of the electronic device are closed by, for example, a lock setting or a disable operation, and only part of the functions of the electronic device are displayed to show the electronic device. The environment mode can be referred to as a store mode. In the store mode, the electronic device can not process complex events, and does not need to consume large working power.

[0134] In some embodiments, when the type of the first event is included in the first type set, and the fan of the electronic device is not failed and the blocked air outlet is not blocked, the electronic device can adjust the first performance parameter and the third performance parameter.

[0135] When the type of the first event is included in the first type set, and the fan of the electronic device is failed or the blocked air outlet is blocked, the electronic device can adjust the first performance parameter, and does not adjust the third performance parameter.

[0136] In some embodiments, the safety regulation mode refers to a mode in which the electronic device is limited by safety regulations and cannot implement corresponding functions if the operation of the electronic device causes the temperature of the electronic device to be too high. The environment mode can be referred to as a safety regulation mode. In the safety regulation mode, the electronic device can not process complex events, and does not need to consume large working power.

[0137] In some embodiments, when the type of the first event is included in the first type set, and the chip temperature of the electronic device is less than a preset temperature, the electronic device can adjust the first performance parameter and the third performance parameter.

[0138] When the type of the first event is included in the first type set, and the chip temperature of the electronic device is greater than or equal to the preset temperature, the environment mode of the electronic device is a high-temperature heat mode. Therefore, the electronic device can adjust the first performance parameter, and does not adjust the third performance parameter.

[0139] In some embodiments, the preset temperature can be set according to the type of the electronic device and the temperature requirement of the environment in which the electronic device is located, and the size of the preset temperature is not limited in the embodiments of the present application. In some embodiments, the chip temperature of the electronic device can be the temperature of the SOC in the electronic device. For example, the preset temperature can be 57°.

[0140] In summary, when the type of the first event is included in the first type set, the electronic device can adjust the first performance parameter and the third performance parameter. In some embodiments, the electronic device needs to consider the influence of the temperature factor to determine whether to adjust the third performance parameter. When the electronic device is in a high-temperature environment mode, the electronic device can adjust the third performance parameter. When the electronic device is in a high-temperature environment mode, the electronic device does not adjust the third performance parameter. In some embodiments, the high-temperature environment mode can include, but is not limited to, any one of the store mode, the safety regulation mode, or the high-temperature heat mode.

[0141] Based on the above description, the duration of the execution of different types of events is different. Generally, the duration of the event can be set according to different types of electronic devices and actual application scenarios and other parameters to achieve better performance.

[0142] Referring to FIG. 5, FIG. 5 shows a schematic diagram of the first duration of the event. In some embodiments, as shown in FIG. 5, in the first type set, the duration corresponding to the mouse click event can be set to 10 seconds (s), the duration corresponding to the hotkey click event can be set to 10 s, the duration corresponding to the process creation in the scene switching event can be set to 30 s, the duration corresponding to the focus window switching in the scene switching event can be set to 5 s, and the duration corresponding to the boot or sleep wake-up in the scene switching event can be set to 3 minutes (min).

[0143] It should be understood that this is only an example and the specific duration is not limited.

[0144] Based on this, when the type of the first event is included in the first type set, the electronic device can determine which type or types in the first type set the type of the first event is. Thus, the electronic device can determine the first duration according to the type or types. That is, the type of the first event can be one type or multiple types, that is, one event can correspond to one or more types.

[0145] For example, taking the touch screen of the electronic device as an example, the operation signal is a user triggering the touch screen to open a certain application program by a click operation. It can be seen that the operation signal is not only a click operation, but also an operation of triggering the opening of the application program. Based on this, the type of the first event can include the mouse click event and the scene switching event.

[0146] For another example, taking the keyboard as an example, the operation signal is a user using the W key in the keyboard to move a game character in a game application. Among them, the W key is not a set hotkey. It can be seen that the operation signal is not only a click operation, but also a hardware signal of the W key. Based on this, the type of the first event can include the mouse click event.

[0147] When the type of the first event includes multiple types, the electronic device can determine the first duration in multiple ways.

[0148] In some embodiments, the electronic device can set the priority of the scene switching event to be higher than the priority of the mouse click event. When the type of the first event includes the scene switching event and the mouse click event, the electronic device can determine that the first duration is related to the scene switching event. For example, the electronic device can determine that the first duration is greater than or equal to the duration corresponding to the scene switching event.

[0149] Based on the above description, the application layer in FIG. 2 can include a housekeeper APP. The housekeeper APP can send an active Turbo strategy to the software system of the electronic device when the type of the first event is contained in the first type set. The active Turbo strategy can be understood as being capable of improving the performance of the electronic device, ensuring that the electronic device can quickly respond to the event, avoiding the phenomenon of unsmooth or lagging pictures, and improving the experience of the user.

[0150] In some embodiments, the active Turbo strategy can include adjusting the first performance parameter and adjusting the second performance parameter. The specific implementation process can be referred to the description of the embodiment of FIG. 3, which will not be described here. The active Turbo strategy can also include adjusting the first performance parameter and the third performance parameter, and adjusting the second performance parameter. The specific implementation process can be referred to the description of the embodiment of FIG. 4, which will not be described here.

[0151] Please refer to FIG. 6, which shows a software architecture diagram of the housekeeper APP. As shown in FIG. 6, the housekeeper APP can include software modules such as a mouse click event module 701, a hot key click event module 702, a scene switching event module 703, a scheduling engine module, a scheduling execution module 707, and an operating system to system on chip (OS to SOC, referred to as OS2SOC) bottom layer interaction module 706.

[0152] The mouse click event module 701 can detect whether the type of the event is a mouse click event through a separate function.

[0153] The hot key click event module 702 can detect whether the type of the event is a hot key click event and detect whether the environment mode of the electronic device is any one of a store mode, a safety regulation mode, and a hot high temperature mode through WMI registration callback.

[0154] The scene switching event module 703 can detect whether the type of the event is a scene switching event through a system probe.

[0155] The scheduling engine module includes a scene module 704 and an event module 705. The scheduling engine module is mainly responsible for receiving the detected event and assigning different strategies to different types of events. For example, the scheduling engine module can trigger an active Turbo strategy when the type of the first event is contained in the first type set. The scheduling engine module can not perform an operation when the type of the first event is not contained in the first type set.

[0156] The scheduling execution module 707 is mainly responsible for policy conversion. When the type of the first event is included in the first type set, the scheduling execution module 707 can perform policy conversion, which can include the processes of converting EPP to EPO policy, converting PL1 to DTT policy, and determining the first duration. Among them, the electronic device can convert EPP to EPO through the interface of ODVP8, and the electronic device can convert PL1 to DTT through the interface of ODVP5. The English full name of ODVP is oem design variable package.

[0157] The OS2SOC bottom layer interaction module 706 is mainly responsible for adjusting performance parameters to execute the active Turbo strategy.

[0158] The technical solutions involved in the following embodiments can be implemented in the electronic device 100 with the software architecture described above.

[0159] Next, in combination with FIG. 7, the specific implementation process of the mouse click event module 701 detecting the mouse click event is exemplified.

[0160] Please refer to FIG. 7, which shows a software architecture diagram of an electronic device. It should be understood that FIG. 7 can also include other modules, and the embodiments of the present application are only examples and are not limited. As shown in FIG. 7, the specific steps are as follows:

[0161] S11, the electronic device responds to the operation signal, and the type of the first event can be triggered as a mouse click event. The hardware interface in the electronic device can send the mouse click event to the application processing module.

[0162] S12, the application processing module sends the mouse click event to the mouse click event module.

[0163] S13, the mouse click event module can detect the mouse click event. After detecting the mouse click event, the mouse click event module can trigger the active Turbo strategy.

[0164] Next, in combination with FIG. 8, the specific implementation process of the hotkey click event module 702 detecting the hotkey click event module is exemplified.

[0165] Taking the hotkey click event as an example, please refer to FIG. 8, which shows a software architecture diagram of an electronic device. It should be understood that FIG. 8 can also include other modules, and the embodiments of the present application are only examples and are not limited. As shown in FIG. 8, the specific steps are as follows:

[0166] S211, the electronic device receives the hardware signal of the peripheral device and sends the hardware signal to the EC. The type of the first event corresponding to the hardware signal is a hotkey click event.

[0167] S22, the EC determines the identity corresponding to the hardware signal through row scanning and column scanning.

[0168] S231, the EC sends the hardware signal to the BIOS.

[0169] S241, the BIOS sends the hardware signal to the WMI service.

[0170] S251, the WMI service sends the hardware signal to the WMI registered callback module.

[0171] S261, the WMI registered callback module detects that the event corresponding to the hardware signal is a hot key click event, and the WMI registered callback module can trigger the active Turbo strategy.

[0172] Continuing to combine FIG. 8, the hot key click event module 702 can also detect any one of a store mode event, a safety regulation mode event, and a hot high temperature event. It should be understood that other modules can also be included in FIG. 8, and the embodiments of the present application are only examples and are not limited. As shown in FIG. 8, the specific steps are as follows:

[0173] S212, when the electronic device detects any one of a store mode event, a safety regulation mode event, or a hot high temperature event, the electronic device can receive a corresponding hardware signal and send the hardware signal to the EC.

[0174] S22, the EC determines the identity corresponding to the hardware signal through row scanning and column scanning, and the identity is used to represent any one of a store mode, a safety regulation mode, and a hot high temperature mode.

[0175] S232, the EC sends the hardware signal to the BIOS.

[0176] S242, the BIOS sends the hardware signal to the WMI service.

[0177] S252, the WMI service sends the hardware signal to the WMI registered callback module.

[0178] S262, the WMI registered callback module detects any one of a store mode event, a safety regulation mode event, or a hot high temperature event, and the WMI registered callback module triggers the active Turbo strategy.

[0179] Next, combined with FIG. 9, the specific implementation process of the scene switching event module 703 detecting a scene switching event is exemplified.

[0180] Referring to FIG. 9, FIG. 9 shows a software architecture diagram of an electronic device. It should be understood that other modules can also be included in FIG. 9, and the embodiments of the present application are only examples and are not limited. As shown in FIG. 9, the specific steps are as follows:

[0181] S31, the electronic device, in response to the operation signal, can trigger a first event, and the process manager can detect a scenario switching event.

[0182] S32, the process manager sends the scenario switching event to a system event driver.

[0183] S33, the system event driver sends the scenario switching event to a scenario switching module.

[0184] S34, the scenario switching module can perceive the scenario switching event by registering a probe callback. After perceiving the scenario switching event, the scenario switching module can trigger the proactive Turbo strategy.

[0185] In summary, the electronic device, in response to the operation signal, can trigger a first event. Since the type of the first event can be various, the electronic device can employ a mouse click event module 701, a hotkey click event module 702, and a scenario switching event module 703 to detect whether the type of the first event is included in a first type set. Thus, when the type of the first event is included in the first type set, the mouse click event module 701, the hotkey click event module 702, and the scenario switching event module 703 in the electronic device can trigger the proactive Turbo strategy.

[0186] Based on the above description, in the proactive Turbo strategy, the electronic device needs to adjust a first performance parameter.

[0187] In some embodiments, the first performance parameter can include an energy performance preference (EPP) of a processor power management (PPM) in a processor of the electronic device and an energy performance optimization (EPO) parameter in the processor of the electronic device.

[0188] The EPP is an index that measures the balance between performance and power consumption of the CPU. The EPP can reflect the scheduling tendency of the CPU, and the value range of the EPP is greater than or equal to 0 and less than or equal to 255. The smaller the value of the EPP, the more the CPU tends to higher performance, which means that the CPU consumes more power consumption under the same performance, or provides lower performance under the same power consumption. The larger the value of the EPP, the more the CPU tends to lower power consumption, which means that the CPU consumes less power consumption under the same performance, or provides higher performance under the same power consumption.

[0189] For example, taking a notebook computer as an example, the electronic device can optimize the EPP by adjusting the power management settings to prolong the battery life.

[0190] Based on this, when the type of the first event is included in the first type set, the electronic device can set the EPP to be less than or equal to a first value, for example, the first value can be set to any one of 64, 127, 144 or 180, and the priority of the performance of the processor is higher than the priority of the power consumption of the processor by means of the first value, so that the electronic device adjusts itself to a performance priority working state, improves the response speed of the electronic device, and avoids the phenomenon of unsmooth or lagging pictures.

[0191] EPO is an index of the balance between performance and power consumption of the CPU. In some embodiments, EPO can be set to different orders. The smaller the order setting is, the more the CPU tends to be higher performance, which means that the CPU consumes more power consumption under the same performance, or provides lower performance under the same power consumption. The higher the order setting is, the more the CPU tends to be lower power consumption, which means that the CPU consumes less power consumption under the same performance, or provides higher performance under the same power consumption. The order of EPO ranges from greater than or equal to 1 order to less than or equal to 7 orders. The electronic device can set the order of EPO through the ODVP8 interface. ODVP8 is a software interface based on WMI service.

[0192] Based on this, when the type of the first event is included in the first type set, the electronic device can set the EPO to a first order, for example, the first order can be set to 1 order or 2 orders, to configure the priority of the performance of the processor to be higher than the priority of the power consumption of the processor, so that the electronic device adjusts itself to a performance priority working state, improves the response speed of the electronic device, and ensures the smooth output of the picture.

[0193] In summary, when the type of the first event is included in the first type set, the electronic device can set the value of EPP and the order of EPO to adjust the first performance parameter.

[0194] Next, in combination with FIG. 10, the specific process of the electronic device adjusting the first performance parameter is described in detail.

[0195] Referring to FIG. 10, FIG. 10 shows a software architecture diagram of the electronic device adjusting the first performance. In FIG. 10, the electronic device adjusting the first performance parameter includes setting EPP and EPO.

[0196] As shown in FIG. 10, the specific steps of the electronic device setting EPP are as follows:

[0197] S41, the housekeeper APP sends an instruction of setting the EPP to a first value to the PPM. In the embodiment of the application, the first value is taken as 64 for example, and it should be understood that the EPP can be set to other values, which are not limited here.

[0198] S42, the PPM sends an instruction of EPP=64 to the CPU.

[0199] Continuing to combine FIG. 10, the specific steps of the electronic device setting the EPO are as follows:

[0200] S51, the housekeeper APP sends an instruction of setting the EPO to a first order to the WMI service.

[0201] Wherein, the housekeeper APP sets the EPO to the first order through the interface of the ODVP8. It should be understood that the EPO can be set to other values in the embodiment of the application, which are not limited here.

[0202] S52, the WMI service sends an instruction of EPO=1 to the APAT policy module.

[0203] S53, the APAT policy module fuses the strategy of thermal control / power control and EPO=1, and sends an instruction of EPO=1 to the DTT driver. Wherein, the thermal control is temperature control, and the power control is power consumption control.

[0204] S54, the DTT driver sends an instruction of EPO=1 to the CPU.

[0205] It should be noted that the process of the electronic device setting the EPP and the process of the electronic device setting the ODVP8 can be executed simultaneously or sequentially, and the execution order of the two setting processes is not limited in the embodiment of the application.

[0206] In this way, when the type of the first event is contained in the first type set, the electronic device adjusts the first performance parameter, that is, sets the value of the EPP and the order of the EPO, to configure the priority of the performance of the electronic device to be higher than the priority of the power consumption of the electronic device, so that the electronic device can process the first event in the rule of giving priority to performance over power consumption, which can improve the response speed of the electronic device, and increase the CPU frequency and the response degree, and ensure the smooth output of the picture.

[0207] Based on the above description, in the active Turbo strategy, the electronic device needs to adjust the third performance parameter.

[0208] In some embodiments, the third performance parameter can include: a power limit 1 (PL1) of the processor of the electronic device, and an ODVP5 of the WMI service in the processor of the electronic device.

[0209] PL1 is a power limit set by the CPU in a normal working state. In general, when the actual power consumption of the CPU is greater than PL1, the electronic device can take measures such as reducing the frequency or core voltage of the CPU to limit the power consumption from rising further, to ensure the stability and heat dissipation effect of the electronic device.

[0210] The setting of PL1 plays an important role in balancing the system performance and power consumption of the electronic device. If PL1 is set too low, the processing performance of the CPU can be limited, which means that the CPU provides lower performance under the same power consumption, and the phenomenon of unsmooth or lagging screen is prone to occur. If PL1 is set too high, it can cause problems such as excessive temperature and excessive power consumption of the electronic device.

[0211] For example, taking a notebook computer as an example, the electronic device can adjust PL1 to improve the response speed of the electronic device.

[0212] Based on this, when the type of the first event is included in the first type set, the electronic device can set PL1 to be greater than or equal to the first power consumption, so that PL1 can be increased by 25%-45%, and the power consumption threshold of the electronic device is increased by the first power consumption, so that the electronic device can quickly respond to the first event, and the phenomenon of unsmooth and lagging screen is avoided.

[0213] In some embodiments, the DTT can be set to different policy numbers. If the policy number is set too low, the processing performance of the CPU can be limited, which means that the CPU provides lower performance under the same power consumption, and the phenomenon of unsmooth or lagging screen is prone to occur. If the policy number is set too high, the electronic device can have problems such as excessive temperature and excessive power consumption. For example, when PL1 is increased by 25%, the policy number of DTT can be 101, and when PL1 is increased by 45%, the policy number of DTT can be 103. The electronic device can set the policy number of DTT through the ODVP5 interface. ODVP5 is a software interface based on WMI service.

[0214] Based on this, when the type of the first event is included in the first type set, the electronic device can set DTT to the first policy number, so that PL1 can be increased by 25%-45% to increase the power consumption threshold of the electronic device, so that the electronic device can quickly respond to the first event, and the phenomenon of unsmooth or lagging screen is avoided.

[0215] In summary, when the type of the first event is included in the first type set, the electronic device can set the value of PL1 and the policy number of DTT to adjust the third performance parameter.

[0216] Next, the specific process of the electronic device adjusting the third performance parameter is described in detail in combination with FIG. 11.

[0217] Referring to FIG. 11, FIG. 11 shows a software architecture diagram of the electronic device adjusting the third performance. In FIG. 11, the electronic device adjusting the third performance parameter includes setting PL1 and DTT.

[0218] As shown in FIG. 11, the specific steps of the electronic device setting PL1 are as follows:

[0219] S61, the housekeeper APP sends an instruction of setting PL1 as a first power consumption to the OS2SOC service. It should be understood that the first power consumption is equal to 41W in the embodiment of the application, and the first power consumption can be set to other values, which are not limited here.

[0220] S62, the OS2SOC service sends a PL1=41W instruction to the OS2SOC driver.

[0221] S63, the OS2SOC driver sends a PL1=41W instruction to the CPU.

[0222] Continuing to combine FIG. 11, the specific steps of the electronic device setting DTT are as follows:

[0223] S71, the housekeeper APP sends an instruction of DTT being a first policy number to the WMI service.

[0224] Wherein, the housekeeper APP sets DTT as the first policy number through the interface of ODVP5. It should be understood that the first policy number is 103 in the embodiment of the application, and the first policy number can be set to other values, which are not limited here.

[0225] S72, the WMI service sends a DTT=103 instruction to the APAT policy module.

[0226] S73, the APAT policy module fuses the strategy of thermal control and power control with DTT=103, and sends a DTT=103 instruction to the DTT driver.

[0227] S74, the DTT driver sends a DTT=103 instruction to the CPU, which is also the strategy of setting PL1=41W.

[0228] It should be noted that the electronic device needs to send an instruction of the value of PL1 being the first power and the policy number of DTT being the first policy number at the same time, so as to ensure that the command of setting PL1=41W takes effect immediately. That is, the electronic device needs to set PL1 and DTT at the same time.

[0229] In this way, when the type of the first event is included in the first type set, the electronic device increases the power consumption threshold of the electronic device by adjusting the third performance parameter, i.e., setting the value of PL1 and the policy number of DTT, so that the electronic device can use a larger working power to process the first event, and the response speed of the electronic device can be accelerated, and the phenomenon of unsmooth or stuck picture can be avoided.

[0230] The electronic device detects that the first event type is any one of a mouse click event, a hot key click event, or a scene switching event in response to an operation signal, and the first event triggers the active Turbo strategy. The electronic device improves the response speed of the electronic device by adjusting the first parameter or the first performance parameter and the third performance parameter. After the first time length, the second performance parameter is adjusted, and the power consumption of the electronic device is reduced, so as to achieve the purposes of power saving and prolonging battery life.

[0231] Based on the above description, in the active Turbo strategy, the electronic device needs to adjust the second performance parameter.

[0232] In some embodiments, the second performance parameter can include the DTT of the WMI service in the processor of the electronic device. The specific introduction of the policy number of DTT is described above, and will not be described here.

[0233] Based on this, when the type of the first event is included in the first type set, the electronic device can set the DTT to the second policy number, for example, the second policy number can be set to 77, and the power consumption threshold of the electronic device is reduced by means of the second policy number, so that the electronic device returns to the normal working power consumption threshold, so that the electronic device can prolong the battery life, and achieve the purposes of power saving and prolonging battery life.

[0234] In summary, when the type of the first event is included in the first type set, the electronic device can set the policy number of DTT to adjust the second performance parameter.

[0235] Next, the specific process of adjusting the second performance parameter of the electronic device will be described in detail in combination with FIG. 12.

[0236] Referring to FIG. 12, FIG. 12 shows a software architecture diagram of the electronic device adjusting the second performance, as shown in FIG. 12, the specific steps of the electronic device setting the DTT are as follows:

[0237] S81, the housekeeper APP sends an instruction of setting the DTT to the second policy number to the WMI service.

[0238] The housekeeper APP sets the DTT to the second policy number through the interface of the ODVP5. It should be understood that the second policy number in the embodiments of the present application is equal to 77, and the second policy number can be set to other values, which is not limited here.

[0239] S82, the WMI service sends an instruction of DTT=77 to the APAT policy module.

[0240] S83, the APAT policy module fuses the thermal control and power control with the DTT=77 policy, and sends an instruction of DTT=77 to the DTT driver.

[0241] S84, the DTT driver sends an instruction of DTT=77 to the CPU, which is also a policy of setting PL1=28W.

[0242] In this way, when the type of the first event is contained in the first type set, the electronic device reduces the power consumption threshold of the electronic device, reduces the power consumption of the electronic device, and thus achieves the purpose of power saving and prolonging the battery life by adjusting the first parameter or the first performance parameter and the third performance parameter, adjusting the second performance parameter, i.e., setting the DTT policy, for a first duration.

[0243] The above is the specific process of adjusting the first performance parameter, the second performance parameter, and the third performance parameter by the electronic device in the active Turbo policy triggered by the electronic device.

[0244] In an embodiment, based on the software architecture of the housekeeper APP shown in FIG. 6, when the type of the first event is contained in the first type set, the housekeeper APP can trigger the active Turbo policy.

[0245] Next, the specific implementation process of triggering the active Turbo policy by each software module in the housekeeper APP will be described in detail with reference to FIG. 13.

[0246] Referring to FIG. 13, FIG. 13 shows a flowchart of triggering the active Turbo policy by each software module in the housekeeper APP.

[0247] As shown in FIG. 13, the mouse click event module 701 can determine that the type of the first event is a mouse click event. The specific detection process of the mouse click event can be referred to FIG. 7, which shows the specific process of detecting the mouse click event by the mouse click event module. Here, no further description is given. The mouse click event module 701 can trigger the active Turbo policy by detecting the mouse click event through S13. The mouse click event module 701 can inform the dispatch engine module that the type of the first event is a mouse click event. The event module 705 in the dispatch engine module can determine whether the type of the first event can trigger the active Turbo policy.

[0248] If not, the event module 705 can continue to wait for information or instructions from other software modules. If yes, the event module 705 can inform the dispatch execution module 707 that the type of the first event is the mouse click event by sending and waiting for events. The dispatch execution module 707 can determine the first time length and set performance parameters, such as the first performance parameter and the second performance parameter, or the first performance parameter, the third performance parameter and the second performance parameter, by strategy conversion. The dispatch execution module 707 can send the active Turbo strategy to the OS2SOC underlying interaction module 706. The OS2SOC underlying interaction module 706 can execute the active Turbo strategy.

[0249] As shown in FIG. 13, the hot key click event module 702 can determine that the type of the first event is the hot key click event. The specific detection process of the hot key click event can refer to FIG. 8, which shows the specific process of the WMI registration callback module detecting the hot key click event, which will not be repeated here. The hot key click event module 702 detects the mouse click event through S261, and the hot key click event module 702 can trigger the active Turbo strategy. The hot key click event module 702 can inform the dispatch engine module that the type of the first event is the hot key click event. The event module 705 in the dispatch engine module can determine whether the type of the first event can trigger the active Turbo strategy.

[0250] If not, the event module 705 can continue to wait for information or instructions from other software modules. If yes, the event module 705 can inform the dispatch execution module 707 that the type of the first event is the hot key click event by sending and waiting for events. The dispatch execution module 707 can determine the first time length and set performance parameters, such as the first performance parameter and the second performance parameter, or the first performance parameter, the third performance parameter and the second performance parameter, by strategy conversion. The dispatch execution module 707 can send the active Turbo strategy to the OS2SOC underlying interaction module 706. The OS2SOC underlying interaction module 706 can execute the active Turbo strategy.

[0251] As shown in FIG. 13, the scene switching event module 703 can determine that the type of the first event is the scene switching event. The specific detection process of the scene switching event can refer to FIG. 9, which shows the specific process of the scene switching event module detecting the scene switching event, which will not be repeated here. The scene switching event module 703 detects the scene switching event through S34, and the scene switching event module 703 can trigger the active Turbo strategy. The scene switching event module 703 can inform the dispatch engine module that the type of the first event is the scene switching event. The scene module 704 in the dispatch engine module can determine whether the type of the first event can trigger the active Turbo strategy by scene smoothing.

[0252] If not, the scenario module 704 can continue to wait for information or instructions of other software modules. If yes, the scenario module 704 can inform the dispatch execution module that the type of the first event is a scenario switching event. The dispatch execution module 707 can determine the first time length and set the performance parameters, such as the first performance parameter and the second performance parameter, or the first performance parameter, the third performance parameter and the second performance parameter, through strategy conversion. The dispatch execution module 707 can send the active Turbo strategy to the OS2SOC underlying interaction module 706. The OS2SOC underlying interaction module 706 can execute the active Turbo strategy.

[0253] In one specific embodiment, please refer to FIG. 14, which shows a flowchart of the device performance processing method according to an embodiment of the present application. As shown in FIG. 14, the device performance processing method according to an embodiment of the present application can include:

[0254] S91, the electronic device detects the type of the first event.

[0255] The electronic device triggers the first event in response to the operation signal and detects the type of the first event.

[0256] The type of the first event is included in the first type set, and the types in the first type set can be any one or more of a mouse click event, a hotkey click event or a scenario switching event. Generally, the hotkey click event and the mouse click event can occur simultaneously in the same scenario.

[0257] S92, when the type of the first event includes the mouse click event and / or the hotkey click event, the electronic device determines whether the scenario 1 is any one of a game, a social interaction, a conference, a webpage browsing or a smart interconnection.

[0258] The electronic device can determine whether the first event is an event triggered by user demand or an event requiring high power consumption.

[0259] When the first event is an event triggered by user demand, the scenario of the electronic device can include, but is not limited to, any one of a social interaction, a game, a conference, etc. For example, taking the scenario of a game as an example, there are frequent user clicks in this scenario, but the frequent clicks in this scenario are due to user operation demand and do not cause the phenomenon of unsmooth or lagging pictures.

[0260] When the first event is not an event requiring high power consumption, the scenario of the electronic device can include, but is not limited to, any one of a webpage browsing, a conference, a video or a smart interconnection, etc. For example, taking the scenario of a conference as an example, the power consumption required by the electronic device in this scenario is not high and does not cause the phenomenon of unsmooth or lagging pictures.

[0261] The electronic device can determine the scenario of the electronic device by detecting an application in the electronic device.

[0262] Based on this, the electronic device can determine whether the scenario 1 is any one of a game, a social, a meeting, a webpage browsing, or a smart interconnection.

[0263] If yes, the electronic device can not trigger the active Turbo strategy, that is, the electronic device ends the operation. If no, the electronic device can perform S93.

[0264] S93, the electronic device determines whether the scenario switching event, any one type of the mouse click event and the hotkey click event occurs at the same time.

[0265] If any one type of the scenario switching event, the mouse click event and the hotkey click event occurs at the same time, the electronic device triggers the active Turbo with the scenario switching event as the priority. The electronic device can perform S94. If not, the electronic device can perform S95.

[0266] S94, the electronic device gives priority to the scenario switching event.

[0267] If any one type of the scenario switching event, the mouse click event and the hotkey click event occurs at the same time, the electronic device triggers the active Turbo with the scenario switching event as the priority.

[0268] S95, the electronic device can adjust the first performance parameter, that is, set the value of EPP to 64, and the order of EPO to 1.

[0269] S96, the electronic device determines whether the electronic device is in any one of a store mode, a safety regulation mode, or a hot high temperature mode.

[0270] If yes, the electronic device does not need to adjust the third performance parameter, and the electronic device can perform S98. If not, the electronic device can perform S97.

[0271] S97, the electronic device can adjust the third performance parameter, that is, set PL1 to be equal to 41W, and the strategy number of DTT to be 103.

[0272] S98, the electronic device can continue for the first duration.

[0273] S99, the electronic device can determine whether the scenario 2 is consistent with the scenario 1.

[0274] After the first duration, the electronic device has completed the first event, and the scenario in which the electronic device is currently located is the scenario 2. The electronic device can determine whether the scenario 2 is consistent with the scenario 1 to determine the type of the first event.

[0275] If yes, the electronic device performs S910. If no, the electronic device performs S911.

[0276] S910, the electronic device can determine that the type of the first event includes a mouse click event and / or a hotkey click event, and the electronic device can adjust the second performance parameter, i.e., set the DTT, so that the PL1 is equal to 28w.

[0277] S911, the electronic device can determine that the type of the first event includes a scene switching event, and the electronic device can adjust the second performance parameter, i.e., set the DTT, so that the PL1 is equal to 28w.

[0278] In summary, the electronic device can determine whether to trigger the active Turbo strategy according to the user operation of the peripheral device.

[0279] In the active Turbo strategy, the electronic device can complete the adjustment of the first performance parameter, or the first performance parameter and the third performance parameter. At this time, the performance of the electronic device is improved. As shown in FIG. 15, the value of PL1 is pulled up and is no longer limited by the thermal design power (TDP). In this way, when the electronic device receives the operation signal of the peripheral device, such as a continuous mouse click application, the electronic device can quickly respond to make the picture flow.

[0280] In addition, the first duration of the value of PL1 can be determined according to the type of the first event. In this way, the electronic device can flexibly set the duration of the active Turbo strategy to meet the performance improvement needs of different scenes.

[0281] It should be noted that, within the first duration, the electronic device receives the operation signal of the peripheral device again. At this time, the electronic device can shield the operation signal until the end of the first duration, and the electronic device can continue to wait for the operation signal of the peripheral device.

[0282] The embodiment of the present application also provides an electronic device, comprising: a memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions in the memory to make the electronic device execute the device performance processing method in the foregoing embodiment.

[0283] The embodiment of the present application also provides a computer storage medium, which comprises computer instructions, when the computer instructions run on the above-mentioned electronic device, make the electronic device execute each function or step executed by the electronic device in the above-mentioned method embodiment.

[0284] The embodiment of the present application also provides a computer program product, when the computer program product runs on a computer, makes the computer execute each function or step executed by the electronic device in the above-mentioned method embodiment. For example, the computer can be the above-mentioned electronic device.

[0285] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0286] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0287] The units described as separate components can or can not be physically separated, and the components shown as units can be one physical unit or multiple physical units, that is, they can be located in one place or distributed to multiple different places. Part or all of the units can be selected to achieve the purpose of the embodiments of the present application according to actual needs.

[0288] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0289] If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the parts that make contributions to the prior art or all or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions to make a device (which can be a single chip, a chip, etc.) or a processor execute all or part of the steps of the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various storage medium that can store program codes.

[0290] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any change or replacement within the technical scope disclosed by the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of device performance processing, characterized by The method is applied to an electronic device, and the method comprises: receiving an operation signal of an external device; when a type of the first event triggered by the operation signal is included in a first type set, adjusting a first performance parameter, each type in the first type set corresponding to an event with a response speed slower than a preset response speed, the first performance parameter being used to configure a priority of performance of the electronic device higher than a priority of power consumption of the electronic device; performing the first event within a first time length, and adjusting a second performance parameter after the first time length, the second performance parameter being used to reduce a power consumption threshold of the electronic device.

2. The method of claim 1, wherein, when the type of the first event is included in the first type set, the method further comprises: adjusting a third performance parameter, the third performance parameter being used to increase the power consumption threshold of the electronic device.

3. The method of claim 2, wherein, The method specifically comprises: when the type of the first event is included in the first type set and the electronic device is not in a store mode, adjusting the third performance parameter; or, when the type of the first event is included in the first type set and a fan of the electronic device is not failed and a blocked air outlet is not blocked, adjusting the third performance parameter; or, when the type of the first event is included in the first type set and a chip temperature of the electronic device is less than a preset temperature, adjusting the third performance parameter.

4. The method according to claim 2 or 3, characterized in that, The third performance parameter comprises a power wall of a processor of the electronic device and a DTT of a window management specification service in the processor of the electronic device; adjusting the third performance parameter comprises: setting the power wall of the processor to be greater than or equal to a first power consumption, the first power consumption being used to increase the power consumption threshold of the electronic device; setting the DTT to be a first strategy number, the first strategy number being used to increase the power consumption threshold of the electronic device.

5. The method according to any one of claims 1-4, characterized in that, The first performance parameter comprises a processor energy efficiency ratio of a power manager in a processor of the electronic device and an energy performance optimization of a window management specification service in the processor of the electronic device; adjusting the first performance parameter comprises: setting the processor energy efficiency ratio to be less than or equal to a first numerical value, the first numerical value being used to configure a priority of performance of the processor higher than a priority of power consumption of the processor; setting the energy performance optimization to be a first order, the first order being used to configure the priority of performance of the processor higher than the priority of power consumption of the processor.

6. The method according to any one of claims 1-5, characterized in that, The second performance parameter comprises a DTT of a window management specification service in a processor of the electronic device; adjusting the second performance parameter comprises: setting the DTT to be a second strategy number, the second strategy number being used to reduce a power consumption threshold of the processor.

7. The method according to any one of claims 1 to 6, characterized in that, The first time length is related to the type of the first event.

8. The method according to any one of claims 1-7, characterized in that, The first type set comprises a mouse click event, a scene switching event and a hotkey click event.

9. The method of claim 8, wherein, When the type of the first event comprises the scene switching event and the mouse click event, the first time length is related to the scene switching event.

10. An electronic device, comprising: comprises: a processor; The electronic device performs the device performance processing method of any one of claims 1-9 when the processor executes one or more computer programs stored in the memory.

11. An electronic device, comprising: Comprise: one or more processors; a memory; wherein the memory stores one or more computer programs comprising instructions that, when executed by the electronic device, cause the electronic device to perform the device performance processing method of any one of claims 1-9.

12. A computer-readable storage medium having stored therein instructions, the computer-readable storage medium comprising: The instructions, when executed on the electronic device, cause the electronic device to perform the device performance processing method of any one of claims 1-9.

Citation Information

Patent Citations

  • Terminal device and switching method of performance modes of terminal device

    CN106155797A

  • Resource scheduling method, electronic equipment and storage medium

    CN116028210A

  • Power consumption control method and electronic equipment

    CN117270670A

  • Equipment performance processing method, electronic equipment and computer readable storage medium

    CN119165944A

  • Knowledge-Guided System for Automated Event Monitoring

    US20220343181A1