Method for adjusting performance of device, and terminal device

By obtaining input events of the terminal device and adjusting the energy efficiency ratio of the processor, the lag and inaccuracy of adjusting the performance of the terminal device in the prior art are solved, and precise adjustment of the performance of the terminal device and improvement of user experience are achieved.

WO2025035899A1PCT designated stage expired Publication Date: 2025-02-20HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/096394
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-11
Filing Date
2024-05-30
Publication Date
2025-02-20

AI Technical Summary

Technical Problem

The prior art has lag and inaccuracy when regulating the performance of terminal devices, and cannot effectively improve the user experience.

Method used

By obtaining the input event of the terminal device, a first energy efficiency ratio corresponding to the event is determined, and the energy efficiency ratio of the processor is adjusted to the energy efficiency ratio so that the processor can operate based on the energy efficiency ratio.

Benefits of technology

It realizes accurate adjustment of terminal equipment performance, improves user experience, reduces resource waste, and improves the response efficiency of terminal equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024096394_20022025_PF_FP_ABST
    Figure CN2024096394_20022025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminals. Provided are a method for adjusting the performance of a device, and a terminal device. The method comprises: acquiring an input event for a terminal device; determining a first energy efficiency ratio corresponding to the input event; and adjusting the energy efficiency ratio of a processor in the terminal device to the first energy efficiency ratio. The technical solution provided in the present application allows each input event to be more accurately identified and the performance of a processor to be adjusted for each input event, thereby fully identifying an instantaneous scenario of a user operation and thus improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Method for adjusting device performance and terminal device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on August 11, 2023, with application number 2023110215757 and application name “Method and terminal device for adjusting device performance”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminals, and in particular to a method for adjusting device performance and a terminal device. Background Art

[0003] With the continuous development of terminal technology, the application of various terminal devices has become increasingly widespread. Currently, to achieve portability, terminal devices are relatively thin and light, with small battery capacity and limited heat dissipation capabilities, which also imposes significant limitations on terminal device performance. Therefore, how to improve the performance experience of terminal devices while ensuring long battery life is gaining increasing attention.

[0004] Existing technologies can detect the load of a terminal device and, based on the terminal device's historical load conditions over a period of time, predict a power consumption adjustment strategy for a future period. Then, based on this power consumption adjustment strategy, adjust the terminal device's power consumption for that future period. However, this requires first calculating the terminal device's historical load conditions over a period of time before adjusting the terminal device's power consumption for that future period, resulting in significant lag. Furthermore, the terminal device's historical load conditions do not accurately reflect the terminal device's future load conditions, resulting in poor adjustment effectiveness with this power consumption adjustment strategy.

[0005] Summary of the Invention

[0006] In view of this, the present application provides a method for adjusting device performance and a terminal device, which can more accurately identify various input events and adjust the performance of the processor for each input event, thereby fully identifying the instantaneous scenarios of user operations and improving user experience.

[0007] In order to achieve the above-mentioned objectives, in a first aspect, an embodiment of the present application provides a method for adjusting device performance, the method comprising: obtaining an input event for a terminal device; determining a first energy efficiency ratio corresponding to the input event; and adjusting the energy efficiency ratio of a processor in the terminal device to the first energy efficiency ratio.

[0008] In an embodiment of the present application, when an input event of a terminal device is obtained and a first energy efficiency ratio corresponding to the input event is determined, the energy efficiency ratio of the processor in the terminal device is adjusted to the first energy efficiency ratio, thereby instructing the processor to operate based on the first energy efficiency ratio, so that the performance of the processor can meet the requirements of responding to the input event. On the one hand, the performance of the processor can be adjusted without relying on the load conditions of the processor or the terminal device, thereby improving the efficiency and effect of adjusting the performance of the processor and responding to input events; on the other hand, the performance of the processor can be adjusted according to specific input events, making the method of adjusting the performance of the device more accurate and reducing resource waste. For example, a PC device has the characteristics of a large display screen, multiple windows and multiple tasks. The method of adjusting the performance of the device provided in the embodiment of the present application can more accurately identify various input events and adjust the performance of the processor according to each input event, thereby fully identifying the instantaneous scene of the user operation and improving the user experience.

[0009] The input event may be an event generated based on data and information input by an input device. The input device may be integrated into the terminal or connected to the terminal device.

[0010] In some embodiments, an input event may include an event type and device information. The event type may be used to indicate the type of input event and distinguish different input events. The device information may indicate the input device corresponding to the input event. In some embodiments, the device information may include one or more of the following: device identification, device type, device ID, device manufacturer, software version, hardware version, and the port number of the terminal device connected to the input device.

[0011] In some embodiments, determining a first energy efficiency ratio corresponding to the input event includes: determining an event type of the input event and at least one of device information of an input device corresponding to the input event; and determining the first energy efficiency ratio based on at least one of the event type and device information of the input device.

[0012] Various input events can be distinguished by event type and corresponding input device. Therefore, based on the event type and input device, the first energy efficiency ratio corresponding to the input event is determined. When the terminal device may include multiple input events, different first energy efficiency ratios can be determined for multiple input events.

[0013] In some embodiments, the method further includes: determining the platform type of the processor; determining the first energy efficiency ratio based on at least one of the event type and the device information of the input device includes: determining the first energy efficiency ratio based on at least one of the event type and the device information of the input device, and the platform type.

[0014] Since the adjustment range of the energy efficiency ratio corresponding to processors of different platforms may be different, determining the first energy efficiency ratio based on the event type, device information of the input device and the platform type of the processor can ensure that the first energy efficiency ratio is more closely matched with the processor in the terminal device, thereby improving the accuracy of the first energy efficiency ratio and thereby improving the accuracy of subsequent adjustment of device performance.

[0015] In some embodiments, before adjusting the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio, the method further includes: obtaining the temperature of the processor; updating the first energy efficiency ratio based on the temperature to obtain the updated first energy efficiency ratio, wherein the lower the temperature, the smaller the updated first energy efficiency ratio; adjusting the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio includes: adjusting the energy efficiency ratio of the processor in the terminal device to the updated first energy efficiency ratio.

[0016] Since significantly increasing the processor performance when the processor temperature is high may reduce the processor stability, and only slightly increasing the processor capacity when the processor temperature is low may not fully utilize the processor performance, in order to ensure the stability of the processor and to fully utilize the processor performance, the first energy efficiency ratio can be adjusted based on the processor temperature when determining the first energy efficiency ratio, so that when the processor temperature is higher, the updated first energy efficiency ratio is also larger, thereby reducing the extent of the processor performance improvement, and when the processor temperature is lower, the updated first energy efficiency ratio is also smaller, thereby increasing the extent of the processor performance improvement.

[0017] In some embodiments, the method further includes: determining a first duration corresponding to the input event; and when the processor operates for the first duration based at least on the first energy efficiency ratio, adjusting the energy efficiency ratio of the processor to a second energy efficiency ratio, wherein the second energy efficiency ratio is greater than the first energy efficiency ratio. In some embodiments, the second energy efficiency ratio may be an energy efficiency ratio of an original state, such as an energy efficiency ratio when the terminal device is in a standby state or an idle state.

[0018] That is, the processor is instructed to run for at least a first period of time based on the first energy efficiency ratio so that the performance of the terminal device can be improved in a timely manner to respond to input events, and when the time for the processor to run based on the first energy efficiency ratio is greater than or equal to the first period of time, the processor can also be promptly instructed to run based on a higher second energy efficiency ratio to improve the battery life of the terminal device.

[0019] In some embodiments, determining the first duration corresponding to the input event includes: determining at least one of the event type of the input event and device information of an input device corresponding to the input event; and determining the first duration based on the event type and at least one of the device information of the input device.

[0020] Various input events can be distinguished by event type and corresponding input device. Therefore, based on the event type and input device, the first duration corresponding to the input event is determined. When the terminal device may include multiple input events, different first durations can be determined for multiple input events.

[0021] In some embodiments, before adjusting the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio, the energy efficiency ratio of the processor is a third energy efficiency ratio, and the third energy efficiency ratio is greater than the first energy efficiency ratio, and when the processor runs for the first duration based at least on the first energy efficiency ratio, adjusting the energy efficiency ratio of the processor to the second energy efficiency ratio includes: creating a timer when the processor starts to run based on the first energy efficiency ratio; setting the target duration of the timer to the first duration; and adjusting the energy efficiency ratio of the processor to the second energy efficiency ratio if the timer times out.

[0022] In some embodiments, before adjusting the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio, the energy efficiency ratio of the processor is a third energy efficiency ratio, and the third energy efficiency ratio is less than or equal to the first energy efficiency ratio, and when the processor runs for the first duration at least based on the first energy efficiency ratio, adjusting the energy efficiency ratio of the processor to the second energy efficiency ratio includes: obtaining a timer, which is a timer created when the processor starts to run based on the third energy efficiency ratio; extending the target duration of the timer by the first duration; and if the timer times out, adjusting the energy efficiency ratio of the processor to the second energy efficiency ratio.

[0023] When the third energy efficiency ratio is greater than the first energy efficiency ratio, the third energy efficiency ratio may include the following situations: In one possible situation, the energy efficiency ratio of the processor has not yet been adjusted in any way, that is, the third energy efficiency ratio may be the energy efficiency ratio of the original state, such as the energy efficiency ratio when the terminal device is in standby or idle state; In another possible situation, the energy efficiency ratio of the processor may have been adjusted at least once based on an input event or any other means, but after the adjustment, it is still greater than the first energy efficiency ratio, that is, the current performance of the processor still cannot meet the requirements of the current input event. Therefore, in order to improve the efficiency and effectiveness of responding to input events, the energy efficiency ratio of the processor in the terminal device can be adjusted to the first energy efficiency ratio to instruct the processor to start operating based on the first energy efficiency ratio, and a timer is created, and the target duration of the timer is set to the first duration.

[0024] For example, if the third energy efficiency ratio and the second energy efficiency ratio are both energy efficiency ratios in the original state, the processor of the terminal device can first run based on the energy efficiency ratio in the original state. When an input event is detected, it can run for a first period of time based on the first energy efficiency ratio corresponding to the input event, and then restore to the energy efficiency ratio in the original state.

[0025] For another example, if the third energy efficiency ratio is equal to the second energy efficiency ratio, and neither the third energy efficiency ratio nor the second energy efficiency ratio is the energy efficiency ratio in the original state, then before the input event is detected, the energy efficiency ratio of the processor has been adjusted based on other events or scenarios. Then, when the input event is detected, the processor runs for a first period of time based on the first energy efficiency ratio corresponding to the input event, and then recovers to the value before the adjustment based on this input event, thereby ensuring that the processor can meet the performance requirements of other events or scenarios.

[0026] When the third energy efficiency ratio is greater than or equal to the first energy efficiency ratio, the energy efficiency ratio of the processor may have been adjusted at least once based on an input event or in any other way, and the current performance of the processor can meet the response requirements for the input event. Therefore, it is only necessary to extend the duration of improving the processor performance.

[0027] In some embodiments, before extending the target duration of the timer by the first duration, the method further includes: determining that the timer satisfies a delay condition, the delay condition including at least one of the following: the time interval for the most recent extension of the target duration in the current distance history is greater than or equal to the second duration; the number of times the target duration is extended is greater than or equal to a first value; the target duration is greater than or equal to a third duration.

[0028] By determining whether the timer meets the delay conditions, the processor can be accurately controlled to extend the time it runs at higher performance. The fewer delay conditions, the longer the processor can run at higher performance, allowing it to respond to more input events in a timely manner. Conversely, the more delay conditions, the more precisely the time to improve processor performance can be controlled. While responding to input events in a timely manner, it can also improve issues such as overheating and poor battery life in terminal devices.

[0029] When the delay condition includes that the time interval of the most recent extension of the target duration in the current distance history is greater than or equal to the second duration, the problem of frequently increasing the target duration of the timer can be improved, thereby improving the problems of heat generation and poor battery life caused thereby. For example, when the same or similar input events are frequently obtained (that is, at least one of the event type and device information of the two input events is the same), the problem of repeated frequency increase caused by the same or similar input events can be improved. The second duration can be obtained by pre-setting. In some embodiments, the second duration can be 1s, and it can be understood that in actual applications, the second duration can also be other values.

[0030] When the delay condition includes the number of times the target duration is extended being greater than or equal to a first value, the problem of the processor running at a higher performance for an extended period due to excessive delays during a single performance boost can be improved, thereby alleviating the resulting problems of overheating and poor battery life. The first value can be set in advance.

[0031] When the target duration is greater than or equal to the third duration, the problem of the processor running at higher performance for an extended period during a single processor performance boost can be alleviated, thereby improving the resulting issues of overheating and poor battery life. The third duration can be set in advance and can be greater than the first duration. In some embodiments, the third duration can be greater than or equal to the product of the first value and the first duration.

[0032] In a second aspect, an embodiment of the present application provides an apparatus for adjusting device performance, the apparatus comprising:

[0033] An acquisition module, used to obtain input events for terminal devices;

[0034] a determining module, configured to determine a first energy efficiency ratio corresponding to the input event;

[0035] An adjustment module is used to adjust the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio.

[0036] In a third aspect, an embodiment of the present application provides a terminal device comprising: a memory and a processor, the memory being used to store a computer program; and the processor being used to execute any one of the methods described in the first aspect above when calling the computer program.

[0037] In some embodiments, the terminal device is a personal computing device, a tablet device, or smart glasses.

[0038] In some embodiments, when the terminal device is the personal computing device or the tablet device, the input device includes at least one of a keyboard, a touchpad, a mouse, and a touch screen.

[0039] In a fourth aspect, an embodiment of the present application provides a chip system, which includes a processor coupled to a memory, and the processor executes a computer program stored in the memory to implement any method described in the first aspect above.

[0040] The chip system may be a single chip or a chip module composed of multiple chips.

[0041] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements any of the methods described in the first aspect when the computer program is executed by a processor.

[0042] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute any of the methods described in the first aspect above.

[0043] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] FIG1 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;

[0045] FIG2 is a software structure block diagram of a terminal device provided in an embodiment of the present application;

[0046] FIG3 is a schematic structural diagram of a touch panel provided in an embodiment of the present application;

[0047] FIG4 is a schematic diagram of a usage scenario of a terminal device provided in an embodiment of the present application;

[0048] FIG5 is a flow chart of a method for adjusting device performance provided in an embodiment of the present application;

[0049] FIG6 is a flow chart of a method for adjusting device performance provided in an embodiment of the present application;

[0050] FIG7 is a flow chart of a method for adjusting device performance provided in an embodiment of the present application;

[0051] FIG8 is a flow chart of a method for adjusting device performance provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The method for adjusting device performance provided in the embodiments of the present application can be applied to terminal devices such as personal computing devices (PCs), laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), tablet computers, mobile phones, wearable devices, augmented reality (AR) / virtual reality (VR) devices, etc. The embodiments of the present application do not impose any restrictions on the specific type of terminal devices.

[0053] Please refer to Figure 1, which is a schematic diagram of the structure of a terminal device 100 provided in this application. The terminal device 100 may 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, an antenna, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a camera 192, a display 193, etc.

[0054] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0055] The processor 110 may include one or more processing units. For example, the processor 110 may 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, and / or a baseband processor. The different processing units may be independent devices or integrated into one or more processors.

[0056] The controller may be the nerve center and command center of the terminal device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0057] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the instruction or data again, it can directly access the memory. This reduces repeated accesses and reduces the waiting time of processor 110, thereby improving system efficiency.

[0058] In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, a USB interface, and / or a network interface.

[0059] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor, charger, flash, camera 192, etc. via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor via the I2C interface, enabling communication between the processor 110 and the touch sensor via the I2C bus interface, thereby implementing the touch function of the terminal device 100.

[0060] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the terminal device 100 and can also be used to transfer data between the terminal device 100 and peripheral devices. For example, the USB interface 130 can be used to connect input devices such as a mouse, keyboard, microphone, and touchpad.

[0061] The network interface can serve as a connection point between the terminal device 100 and a private network or a public network, and can be used for the terminal device 100 to access the network. For example, the network interface can enable the terminal device 100 to communicate with other devices on the network. For example, the network interface can include an RJ-45 interface, an RJ-11 interface, or a fiber optic interface.

[0062] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt a different interface connection method from the above embodiments, or a combination of multiple interface connection methods.

[0063] The wireless communication function of the terminal device 100 can be implemented through an antenna, a wireless communication module 160, a modem processor, and a baseband processor.

[0064] The terminal device 100 implements display functions through a GPU, display screen 193, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 193 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0065] The terminal device 100 can realize the shooting function through the ISP, camera 192, video codec, GPU, display screen 193 and application processor.

[0066] The terminal device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0067] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the terminal device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required for at least one function (such as a performance adjustment application, etc.), etc. The data storage area may store data created during the use of the terminal device 100 (such as application data of the performance adjustment application, etc.), etc.

[0068] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. When a touch operation is applied to display screen 193, terminal device 100 detects the intensity of the touch operation based on pressure sensor 180A. Terminal device 100 can also calculate the location of the touch based on the detection signal from pressure sensor 180A.

[0069] The touch sensor 180B can be disposed on the display screen 193. The touch sensor 180B and the display screen 193 form a touch screen, also known as a "touch screen." The touch sensor 180B is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor 180B can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 193. In other embodiments, the touch sensor 180B can also be disposed on the surface of the terminal device 100, in a location different from that of the display screen 193.

[0070] Keys 190 include a power button, a volume button, and the like. Keys 190 may be mechanical keys or touch-sensitive keys. Terminal device 100 may receive key inputs and generate key signal inputs related to user settings and function control of terminal device 100. For example, terminal device 100 may include a keyboard, which may include multiple keys 190.

[0071] As shown in FIG1 , a terminal device may include core devices such as a processor, and external devices such as an input device, an output device, and an external memory. It is understood that different types of terminal devices 100 may include different input devices, output devices, and external memories.

[0072] An input device is a device that can input data and information into the terminal device 100 and can be used by a user to exchange information with the terminal device 100. In some embodiments, the input device can provide input events to the terminal device, thereby providing the data and information to the terminal device 100 through the input events. For example, if the terminal device 100 is a PC, the input device may include a mouse, a keyboard, a camera 192, a touchpad, a microphone 170C, a wireless communication module 160, and various sensors. For example, if the terminal device 100 is a mobile phone, the input device may include buttons, a camera 192, a touchpad, a microphone 170C, a wireless communication module 160, and various sensors.

[0073] An input device is a device that can output data and information to the outside of the terminal device 100 and can be used to respond to user operations and other inputs. For example, the antenna, wireless communication module 160, speaker 170A, display screen 193, etc. in Figure 1 can all serve as output devices.

[0074] When the terminal device 100 is running, it can obtain input events through the input device, and then obtain external input data and information, and then respond to the input events through the processor to process these data and information. It can also transmit the response to the input event to the outside through the input device, thereby responding to the user or the external environment.

[0075] Take, for example, a user taking a photo through the terminal device 100. The user clicks the camera application icon on the touch screen. When the touch sensor 180B in the touch screen receives the touch operation, the touch operation is processed into an input event (including touch coordinates, touch operation timestamp, and other information). The processor 110 identifies the control corresponding to the input event. The touch operation is a touch single-click operation, and the control corresponding to the single-click operation is the control of the camera application icon. Therefore, the camera 192 is activated, and a still image or video is captured by the camera 192, and the image captured by the camera 192 is displayed on the touch screen.

[0076] It can be seen that when the performance of the terminal device 100 (such as the processor 110) is higher, the efficiency and accuracy of responding to or processing input events are better. Taking the above example of a user taking a photo through the terminal device 100, the higher the performance of the terminal device 100 (such as the processor 110), the faster the camera 192 is activated and the captured image is displayed to the user through the touch screen, thereby providing the user with a smoother shooting experience.

[0077] The software system of the terminal device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the terminal device 100.

[0078] FIG2 is a block diagram of the software structure of the terminal device 100 according to an embodiment of the present application.

[0079] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, the software structure of the terminal device 100 is, from top to bottom, comprised of the application layer, kernel layer, and firmware layer.

[0080] The application layer may include a series of application packages. For example, as shown in FIG2 , the application layer may include a performance adjustment application, a policy library, and a probe. In some embodiments, the application layer may also include a scenario library.

[0081] The probe can obtain various data such as events and / or messages from the bottom layer. These data can reflect the operating status of the terminal device 100, thereby providing a basis and support for adjusting the performance of the terminal device 100. Exemplarily, the probe includes a temperature control probe, which can be used to obtain the temperature of various devices such as the processor. Exemplarily, the probe can include an input probe, which can be used to obtain various input events of the terminal device 100 so that the terminal device 100 can respond to the input event in a timely manner. Exemplarily, the probe can include a load probe, which can be used to obtain the load condition of the processor. Exemplarily, the probe can include a process start probe, which can be used to detect the started process. Exemplarily, the probe can include a focus window probe, which can be used to obtain the focus window in the display screen.

[0082] The policy library may include policy patterns, policy rules, and decision centers for adjusting performance, thereby being able to provide performance adjustment applications with a decision-making method for determining performance parameters. Exemplarily, the policy library may indicate the triggering conditions for the method for adjusting device performance provided in the embodiment of the present application. Exemplarily, the policy library may indicate the range of data obtained from the probe, such as whether to determine performance parameters based only on data from the input probe, or to determine performance parameters based on data from more probes such as the input probe, temperature control probe, and load probe. Exemplarily, the policy library may be used to identify one or more scenarios in the scenario library, and determine whether to adjust the performance of the terminal device based on the one or more scenarios.

[0083] The scenario library can include one or more predefined scenarios. For example, the scenario library can include idle scenarios, music scenarios, design scenarios, meeting scenarios, office scenarios, video rendering scenarios, Internet scenarios, evaluation scenarios, and gaming scenarios. For example, when a terminal device is in different scenarios, the performance of the terminal device can be adjusted based on the scenario to meet the performance requirements of the scenario. For example, when the terminal device is in a gaming scenario, the terminal device can be adjusted to a higher performance level; while when the terminal device is in an idle scenario, the terminal device can be adjusted to a lower performance level.

[0084] The performance adjustment application can determine and issue performance parameters based on data such as input events obtained by the probe, thereby adjusting the performance of the terminal device 100. Exemplarily, the performance parameters may include the energy performance preference (EPP) of the processor. The energy performance preference, also known as the energy performance preference, can be used to reflect the scheduling tendency of the processor. The smaller the energy efficiency ratio, the higher the energy efficiency ratio, the lower the power consumption of the processor. Therefore, the frequency of the processor can be increased by setting the processor to a lower energy efficiency ratio, and the frequency of the processor can be reduced by setting the processor to a higher energy efficiency ratio. In some embodiments, processors of different platform types may have different hardware and software structures. Therefore, when the platform type of the processor is different, the numerical range of the energy efficiency ratio is also different. For example, The energy efficiency ratio adjustment range of the platform can be 0-255. The adjustment range of the platform can be 0 to 100. The platform type of the processor can refer to the software or hardware structure characteristics of the processor.

[0085] It is understandable that the performance adjustment application can also adjust the performance of the terminal device in other ways. Exemplarily, the other ways may include one or more of the following: minimizing the window of the terminal device in the background (i.e., background minimization as shown in Figure 2), stopping rendering of the window in the background (i.e., background rendering as shown in Figure 2), freezing the process in the background (i.e., process freezing as shown in Figure 2), dynamically adjusting the power consumption of the terminal device according to the load (i.e., power consumption strategy and dynamic turbo frequency as shown in Figure 2), and increasing the memory read frequency (i.e., memory frequency increase as shown in Figure 2).

[0086] It is also understandable that the application layer may also include other applications, such as music, games, videos, and the like.

[0087] The kernel layer may include device drivers, which may serve as interfaces between upper-layer applications and hardware devices. Exemplarily, driver devices may include input / output drivers such as a mouse driver, a keyboard driver, and a touchpad driver, wherein the mouse driver may drive the mouse, the keyboard driver may drive the keyboard, and the touchpad driver may drive the touchpad. Exemplarily, device drivers may include a power management driver (acpi.sys), which may be used to manage the power supply of the terminal device 100, such as configuring the power mode and sending performance parameters to the processor.

[0088] The firmware layer may include a basic input output system (BIOS), a model specific register (MSR), and an embedded controller (EC).

[0089] The BIOS is a set of programs embedded in the terminal device's motherboard. It stores the terminal device's most important basic input and output programs, post-boot self-test programs, and system startup programs. It can read and write detailed system configuration information from the CMOS. It provides the lowest-level, most direct hardware configuration and control for the terminal device 100.

[0090] MSRs can be used for communication between hardware and the operating system. For example, an MSR can include an MSR address corresponding to the hardware. When the BIOS sends instructions and other data to the hardware, the BIOS can write the data to the MSR address corresponding to the hardware via the serial management interface (SMI), thereby completing the configuration of the hardware. For example, MSRs can be used for communication between the processor and the operating system. For example, the BIOS can write the energy efficiency ratio to the MSR address corresponding to the processor, thereby causing the processor to increase or decrease its frequency according to the energy efficiency ratio.

[0091] EC can be used to assist in managing external devices of the terminal device 100. Exemplarily, external devices may include input devices, output devices, and external memories, etc. Among them, the input device is a device that can input data and information to the terminal device 100, and is used for the user to exchange information with the terminal device 100. Exemplarily, the terminal device 100 is a PC device, and the input devices may include a mouse, a keyboard, a camera 192, a touchpad, a microphone 170C, a wireless communication module 160, and various sensors, etc. Exemplarily, the terminal device 100 is a mobile phone, and the input devices may include buttons, a camera 192, a touchpad, a microphone 170C, a wireless communication module 160, and various sensors, etc. Exemplarily, the EC can communicate with the BIOS through a communication bus such as the enhanced serial peripheral interface (eSPI) / low pin count bus (LPC), and communicate with the underlying hardware through a communication bus such as I2C / platform environment control interface (PECI).

[0092] It is understandable that the external device may also communicate with the BIOS or kernel layer in the terminal device 100 in other ways. For example, the external device may communicate with the BIOS in the terminal device 100 via a communication bus such as the USB interface 130, or a microcontroller unit (MCU) may be provided in the external device so as to communicate with the BIOS in the terminal device 100 via the MCU.

[0093] For example, as shown in FIG3 , the touch panel 300 includes an MCU 310, a near field communication (NFC) module 320, a touch panel driver integrated circuit (TPIC) 330, and a pressure sensing module 340. For example, the MCU 310 can control the NFC module 320 to receive or send data, thereby identifying other devices close to the terminal device 100 and interacting with the other devices. For example, the MCU 310 performs gesture recognition based on data collected by the TPIC 330, and / or performs pressure sensing based on data collected by the pressure sensing module 340, thereby determining the position, pressure, and pressure trajectory of the user pressing on the touch panel 300. The MCU 310 can obtain input events based on the data collected by one or more of the NFC module 320, the TPIC 330, and the pressure sensing module 340, and send the obtained input events to the BIOS in the terminal device 100 via the I2C bus, so that the terminal device 100 obtains the input events.

[0094] It is understood that, in actual applications, the structures illustrated in the embodiments of this application do not constitute a specific limitation on the touch panel 300. In other embodiments of this application, the touch panel 300 may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0095] In order to facilitate understanding of the technical solutions in the embodiments of the present application, the application scenarios of the embodiments of the present application are first introduced below.

[0096] With the continuous development of terminal technology, the application of various terminal devices has become increasingly widespread. Currently, to achieve portability, terminal devices are relatively thin and light, with small battery capacity and limited heat dissipation capabilities, which also imposes significant limitations on terminal device performance. Specifically, the higher the performance of the terminal device, the shorter the response delay to user operations, and the better the user-perceived smoothness. Taking the response to an input event as an example, when the response delay is less than 1 second, the user can better determine the causal relationship between the response and the input event, facilitating smooth, effective, and controllable interaction between the user and the terminal device. When the delay is greater than or equal to 1 second, the user may find it difficult to determine the causal relationship between the response and the input event, resulting in a feeling of waiting and lag, or the user may not perceive the response due to reasons such as distraction.

[0097] In addition, the impact of the delay in the terminal device responding to input events on the user experience is also related to the type of terminal device.

[0098] Please refer to Figure 4, which is a schematic diagram of a usage scenario of a terminal device provided in an embodiment of the present application.

[0099] Some terminal devices are relatively small, with a high degree of integration between input and output devices. For example, as shown in Figure 4 (a), this terminal device is a mobile phone with a touch screen. The touch screen can function as both a display device for displaying the human-computer interaction interface, such as animation effects, and an input device for receiving user operations such as touch and press.

[0100] Some terminal devices are larger in size, with separate input and output devices. For example, as shown in Figure 4 (b), this terminal device is a desktop computer or laptop, and includes a mouse, keyboard, and display. The mouse and keyboard serve solely as input devices to receive user operations, while the display serves solely as a display device for the human-computer interaction interface. When the input and output devices are separated, users experience a higher threshold for response delays in human-computer interaction. The mouse requires higher control precision, which necessitates that the terminal device respond more promptly and accurately to various mouse operations.

[0101] Combining Figures 4(a), 4(b), and 4(c), we can see that the size of display screens has gradually increased from mobile phones to laptops to desktop computers, and the distance between the display screen and the user (i.e., viewing distance) has also gradually increased. As the display screen gets larger, users become more sensitive to changes in the human-computer interface.

[0102] Therefore, how to improve the performance experience of terminal devices while ensuring long battery life is receiving more and more attention.

[0103] In some embodiments, the terminal device may pre-define one or more focus windows. When a focus window is detected and displayed, the terminal device determines a corresponding power consumption adjustment strategy based on the focus window and the current system load of the terminal device. However, due to the need to obtain the system load of the terminal, there is a serious lag in adjusting the energy consumption of the device.

[0104] To address at least some of the above technical issues, the present application provides another technical solution for adjusting device performance. The technical solution of the present application is described in detail below using specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0105] Please refer to Figure 5, which is a flow chart of a method for adjusting device performance provided in an embodiment of the present application. It should be noted that the method is not limited to the specific sequence shown in Figure 5 and below. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0106] S501: The terminal device obtains an input event for the terminal device.

[0107] The input event may be an event generated based on data and information input by an input device. The input device may be integrated into the terminal device or connected to the terminal device.

[0108] In some embodiments, an input event may include an event type and device information. The event type may be used to indicate the type of input event and distinguish different input events. The device information may indicate the input device corresponding to the input event. In some embodiments, the device information may include one or more of the following information: device identification, device type, device ID, device manufacturer, software version, hardware version, and the port number of the terminal device connected to the input device. It is understood that in actual applications, the device information may include more or less information related to the input device.

[0109] In some implementations, an input event may include one or more messages, and each message may carry at least part of the information of the input event.

[0110] In some embodiments, input events from the input device can be acquired through a probe. In some embodiments, the probe can subscribe to input events from the kernel layer (e.g., the device driver of the input device). The kernel layer communicates with the input device via at least one of I2C, USB, and the MCU in the input device. Upon detecting an input event, the kernel layer responds to the input event to the probe via a system callback function. It is understood that in actual applications, input events can also be acquired through other methods.

[0111] For example, the input device is a mouse or a touchpad, and the event types of the input event may include left-click, left-double-click, right-click, scroll, and drag. When a message indicating that the left button is lifted is obtained, it can be determined that an input event of the left-click type is obtained. When two messages indicating that the left button is pressed, two messages indicating that the left button is lifted, and the time interval between the two messages indicating that the left button is lifted is less than 500ms (milliseconds), it can be determined that an input event of the left-double-click type is obtained. When a message indicating that the right button is lifted is obtained, it can be determined that an input event of the right-click type is obtained. When a message indicating that the left button is pressed, a message indicating that the mouse or touchpad is pressed and moved is obtained, it can be determined that an input event of the drag type is obtained. When a message indicating that the mouse wheel (or the middle mouse button) is scrolled is obtained, it can be determined that an input event of the mouse scroll type is obtained.

[0112] For another example, the input device includes a keyboard, and the event type of the input event may include character input and shortcut command input, and the shortcut command input may include at least one of quick copy, quick paste and quick save. When a message indicating that a letter key (i.e., a key with a virtual key code of 65-90) or a numeric key (i.e., a key with a virtual key code of 48-57) is pressed is obtained more than or equal to 10 times within 2 seconds, it can be determined that an input event of the character input type is obtained. Specifically, a message queue of length 10 can be created. Whenever a message indicating that a character key is pressed is received, it is determined whether the time interval between the last message and the first message in the message queue is less than 2s. If so, it is determined that an input event of the character input type is obtained, otherwise the first message is removed and the eleventh message is inserted. When a message indicating that the ctrl key is pressed is obtained and a message indicating that the S key, C key or V key is pressed is obtained, it is determined that an input event of the shortcut command input type such as quick copy, quick paste or quick save is obtained. Specifically, taking quick save as an example, the mark corresponding to the ctrl key can be set to true when the ctrl key is pressed, and the mark corresponding to the ctrl key can be set to false when the ctrl key is released. When the mark is true and a message indicating that the S key is pressed (that is, the key with a virtual key code of 83) is obtained, it is determined that an input event of the quick save type is obtained.

[0113] It is understandable that the event type of the input event and the related acquisition method can be set in advance according to the specific type of the input device. The embodiment of the present application only takes the input devices as a mouse, touchpad and keyboard as examples to illustrate several possible input events and the corresponding acquisition methods, rather than limiting the input events and their acquisition methods.

[0114] S502: The terminal device determines a first energy efficiency ratio corresponding to the input event.

[0115] The first energy efficiency ratio corresponding to the input event may be determined according to the input event, at least one of the input device corresponding to the input event and the terminal device.

[0116] In some implementations, at least one of an event type of an input event and device information of an input device may be determined, and a first energy efficiency ratio may be determined based on the event type and the device information of the input device. Various input events can be distinguished by the event type and the corresponding input device. Therefore, by determining the first energy efficiency ratio corresponding to an input event based on the event type and the input device, different first energy efficiency ratios can be determined for multiple input events when a terminal device may include multiple input events.

[0117] In some implementations, the first energy efficiency ratio corresponding to the input event can be acquired based on the event type of the current input event and the device information of the input device from the correspondence between the event type, the device information of the input device, and the energy efficiency ratio.

[0118] Taking the device information of the input device including the device type as an example, the corresponding relationship between the event type, the device type and the energy efficiency ratio can be shown in the following Table 1.

[0119] Table 1

[0120] It is understandable that the embodiment of the present application only uses the above Table 1 to illustrate the correspondence between the event type, the device information of the input device and the energy efficiency ratio, and does not limit the correspondence between the event type, the device information of the input device and the energy efficiency ratio and the value of the energy efficiency ratio, nor does it limit the device information, nor does it limit the storage method of the correspondence between the event type, the device information of the input device and the energy efficiency ratio. It can also be understood that for any two input events with different device types and / or different event types, the energy efficiency ratios corresponding to the two input events can be the same or different. In other embodiments, the energy efficiency ratio corresponding to quick save and keyboard can also be 127, the energy efficiency ratio corresponding to right-click and mouse can also be 84, the energy efficiency ratio corresponding to right-click and touch screen icon can also be 84, and the energy efficiency ratio corresponding to right-click and touchpad can also be 84. In other embodiments, Table 1 can be split into more tables. For example, Table 1 can be split based on event type to obtain multiple tables, so that each table corresponds to an event type, and each table includes the correspondence between the device information of the input device and the energy efficiency ratio; or, similarly, Table 1 can be split based on device information to obtain multiple tables, so that each table corresponds to a type of device information, and each table includes the correspondence between the event type and the energy efficiency ratio.

[0121] The terminal device may obtain and store the correspondence between the event type, the device information of the input device, and the energy efficiency ratio in one or more of the following ways: in some embodiments, the terminal device may receive the correspondence between the event type, the device information of the input device, and the energy efficiency ratio set by the user; in some embodiments, the terminal device may learn the energy efficiency ratio configured by the user for the input event during the operation process or history of the terminal device, thereby obtaining the correspondence between the event type, the device information of the input device, and the energy efficiency ratio; in some embodiments, the terminal device may obtain the configured correspondence between the event type, the device information of the input device, and the energy efficiency ratio from other external devices. Of course, in actual applications, the terminal device may also obtain the correspondence between the event type, the device information of the input device, and the energy efficiency ratio in other ways.

[0122] In some embodiments, the platform type of the processor can be determined, and the first energy efficiency ratio corresponding to the input event can be determined based on the event type, the device information of the input device, and the platform type of the processor. Since the adjustment range of the energy efficiency ratio corresponding to processors of different platforms may be different, determining the first energy efficiency ratio based on the event type, the device information of the input device, and the platform type of the processor can ensure that the first energy efficiency ratio matches the processor in the terminal device to a higher degree, improve the accuracy of the first energy efficiency ratio, and thus improve the accuracy of subsequent adjustments to the device performance. Of course, the first energy efficiency ratio can also be determined not based on the platform type of the processor. For example, the first energy efficiency ratio can be a value within the energy efficiency ratio range common to processors of multiple platform types.

[0123] In some implementations, the first energy efficiency ratio corresponding to the input event can be acquired based on the event type, device information of the input device, and platform type of the current input event from the correspondence between the event type, device information of the input device, platform type, and energy efficiency ratio.

[0124] Taking the device information of the input device including the device type as an example, the correspondence between the event type, the device information of the input device, the platform type and the energy efficiency ratio can be shown in Table 2 below. Among them, the energy efficiency ratio adjustment range corresponding to the first platform can be 0-255, and the adjustment range corresponding to the second platform can be 0-100. For example, the first platform can be The second platform can be

[0125] Table 2

[0126] It is understood that the embodiment of the present application only uses Table 2 above to illustrate the correspondence between event type, input device device information, platform type, and energy efficiency ratio, and does not limit the correspondence between event type, input device device information, platform type, and energy efficiency ratio, nor the value of the energy efficiency ratio, nor does it limit the device information, nor does it limit the storage method of the correspondence between event type, input device device information, platform type, and energy efficiency ratio. It is also understood that for any two input events with different device types and / or different event types, the energy efficiency ratios corresponding to the two input events can be the same or different.

[0127] The terminal device may obtain and store the correspondence between the event type, device information of the input device, the platform type, and the energy efficiency ratio in one or more of the following ways: in some embodiments, the terminal device may receive the correspondence between the event type, device information of the input device, the platform type, and the energy efficiency ratio set by the user; in some embodiments, the terminal device may learn the energy efficiency ratio configured by the user for the input event during the operation process or history of the terminal device, thereby obtaining the correspondence between the event type, device information of the input device, the platform type, and the energy efficiency ratio; in some embodiments, the terminal device may obtain the configured correspondence between the event type, device information of the input device, the platform type, and the energy efficiency ratio from other external devices. Of course, in actual applications, the terminal device may also obtain the correspondence between the event type, device information of the input device, the platform type, and the energy efficiency ratio in other ways.

[0128] In some embodiments, the temperature of the processor may also be obtained, and the first energy efficiency ratio may be updated based on the temperature to obtain an updated first energy efficiency ratio, wherein the lower the temperature, the smaller the updated first energy efficiency ratio. Since a significant increase in processor performance when the processor temperature is high may reduce processor stability, and a small increase in processor capacity when the processor temperature is low may not fully utilize the processor performance, in order to ensure processor stability and to fully utilize the processor performance, the first energy efficiency ratio may be adjusted based on the processor temperature when determining the first energy efficiency ratio, such that when the processor temperature is higher, the updated first energy efficiency ratio is also larger, thereby reducing the extent of the processor performance improvement, and when the processor temperature is lower, the updated first energy efficiency ratio is also smaller, thereby increasing the extent of the processor performance improvement.

[0129] In some embodiments, a reference temperature may be set and the temperature of the processor may be compared with the reference temperature. If the temperature is greater than the reference temperature, the first energy efficiency ratio may be increased; if the temperature is less than the reference temperature, the first energy efficiency ratio may be decreased.

[0130] S503: The terminal device adjusts the energy efficiency ratio of the processor in the terminal device to a first energy efficiency ratio.

[0131] Since the first energy efficiency ratio is determined based on the input event including the event type and the input device, the energy efficiency ratio of the processor in the terminal device is adjusted to the first energy efficiency ratio, or in other words, the processor is instructed to operate based on the first energy efficiency ratio, so that the processor can generate performance that meets the requirements for processing the input event, thereby improving the efficiency and effectiveness of responding to the input event.

[0132] In some embodiments, the first energy efficiency ratio may be sent to the processor via the BIOS in the firmware layer so that the processor can operate based on the first energy efficiency ratio. In some embodiments, the first energy efficiency ratio may be sent to the processor according to the platform type of the processor, wherein if the processor is of the first platform type (e.g. ), the first energy efficiency ratio can be sent to the processor through the dynamic tuning driver; if the processor is of the second platform type (such as ), the first energy efficiency ratio can be sent to the processor through the power manager.

[0133] In some implementations, if the first energy efficiency ratio is updated in the aforementioned step, the energy efficiency ratio of the processor in the terminal device may be adjusted to the updated first energy efficiency ratio in S503.

[0134] In some embodiments, a first duration corresponding to an input event can be determined. When the processor operates at least for the first duration based on the first energy efficiency ratio, the processor's energy efficiency ratio is adjusted to a second energy efficiency ratio to instruct the processor to operate based on the second energy efficiency ratio, where the second energy efficiency ratio is greater than the first energy efficiency ratio. In some embodiments, when the processor begins operating based on the first energy efficiency ratio, a timer can be created, and the timer's target duration can be set to the first duration. If the timer expires, the processor's energy efficiency ratio is adjusted to the first energy efficiency ratio to instruct the processor to operate based on the second energy efficiency ratio. The second energy efficiency ratio can be any value greater than the first energy efficiency ratio. In some embodiments, the second energy efficiency ratio can be the energy efficiency ratio of the original state, such as the energy efficiency ratio when the terminal device is in a standby or idle state. In other words, the processor is instructed to operate at least for the first duration based on the first energy efficiency ratio so that the performance of the terminal device can be promptly improved to respond to the input event. When the processor operates based on the first energy efficiency ratio for a duration greater than or equal to the first duration, the processor can also be promptly instructed to operate based on the higher second energy efficiency ratio to improve the battery life of the terminal device.

[0135] The method for determining the first duration corresponding to the input event can be the same as or similar to the method for determining the first energy efficiency ratio corresponding to the input event. In some embodiments, the first duration can be determined based on at least one of the event type and device information of the input device. In some embodiments, the corresponding frequency boost duration can be obtained as the first duration based on the event type of the input event and the device information of the input device from the correspondence between the event type, the device information of the input device, and the frequency boost duration.

[0136] Taking the device information of the input device including the device type as an example, the corresponding relationship between the event type, the device information and the frequency increase duration can be shown in Table 3 below.

[0137] Table 3

[0138] It should be understood that the embodiments of the present application only illustrate the correspondence between event types, input device device information, and frequency boost durations using Table 3 above, and do not limit the correspondence between event types, input device device information, and frequency boost durations, the numerical value of the frequency boost durations, the device information, or the storage method of the correspondence between event types, input device device information, and frequency boost durations. For example, although Table 3 shows that the frequency boost durations corresponding to different device types and different event types are the same, in actual applications, for any two input events with different device types and / or different event types, the frequency boost durations corresponding to these two input events may also be different.

[0139] The terminal device may obtain and store the correspondence between the event type, the device information of the input device, and the frequency boost duration in one or more of the following ways: in some embodiments, the terminal device may receive the correspondence between the event type, the device information of the input device, and the frequency boost duration set by the user; in some embodiments, the terminal device may learn the frequency boost duration configured by the user for the input event during the operation process or history of the terminal device, thereby obtaining the correspondence between the event type, the device information of the input device, and the frequency boost duration; in some embodiments, the terminal device may obtain the configured correspondence between the event type, the device information of the input device, and the frequency boost duration from other external devices. Of course, in actual applications, the terminal device may also obtain the correspondence between the event type, the device information of the input device, and the frequency boost duration in other ways.

[0140] In an embodiment of the present application, when an input event of a terminal device is obtained and a first energy efficiency ratio corresponding to the input event is determined, the energy efficiency ratio of the processor in the terminal device is adjusted to the first energy efficiency ratio, thereby instructing the processor to operate based on the first energy efficiency ratio, so that the performance of the processor can meet the requirements of responding to the input event. On the one hand, the performance of the processor can be adjusted without relying on the load conditions of the processor or the terminal device, thereby improving the efficiency and effect of adjusting the performance of the processor and responding to input events; on the other hand, the performance of the processor can be adjusted according to specific input events, making the method of adjusting the performance of the device more accurate and reducing resource waste. For example, a PC device has the characteristics of a large display screen, multiple windows and multiple tasks. The method of adjusting the performance of the device provided in the embodiment of the present application can more accurately identify various input events and adjust the performance of the processor according to each input event, thereby fully identifying the instantaneous scene of the user operation and improving the user experience.

[0141] Please refer to Figure 6, which is a flow chart of a method for adjusting device performance provided in an embodiment of the present application. It should be noted that the method is not limited to the specific sequence shown in Figure 6 and below. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0142] S601: The processor of the terminal device operates based on a third energy efficiency ratio.

[0143] The third energy efficiency ratio may be the energy efficiency ratio of the processor before receiving an instruction to operate based on the first energy efficiency ratio. In some embodiments, the third energy efficiency ratio may be the energy efficiency ratio of the original state, such as the energy efficiency ratio when the terminal device is in a standby state or an idle state. The third energy efficiency ratio may be greater than the first energy efficiency ratio, or the third energy efficiency ratio may be the same as the second energy efficiency ratio. In other embodiments, the third energy efficiency ratio may be the energy efficiency ratio indicated to the processor based on another input event, and the third energy efficiency ratio may be greater than, equal to, or less than the first energy efficiency ratio.

[0144] S602: The terminal device obtains an input event.

[0145] It should be noted that the method of executing S602 may be the same as or similar to the method of executing S501 described above, and will not be described in detail here.

[0146] S603: The terminal device determines a first energy efficiency ratio corresponding to the input event.

[0147] It should be noted that the method of executing S603 may be the same as or similar to the method of executing S502 described above, and will not be described in detail here.

[0148] S604: The terminal device determines whether the third energy efficiency ratio is greater than the first energy efficiency ratio. If the third energy efficiency ratio is greater than the first energy efficiency ratio, execute S605; if the third energy efficiency ratio is less than or equal to the first energy efficiency ratio, execute S606.

[0149] In some implementations, S606 may be executed when the third energy efficiency ratio is equal to the first energy efficiency ratio, and S608 may be executed when the third energy efficiency ratio is less than the first energy efficiency ratio. In other words, when the current performance of the processor is higher than the performance required to process the current input event, the duration of the processor boost may not be extended.

[0150] S605: The processor starts to operate based on the first energy efficiency ratio and sets the target duration of the timer to the first duration. After that, S608 may be executed.

[0151] If the processor's current third energy efficiency ratio is greater than the first energy efficiency ratio, the processor's current performance cannot meet the response requirements for input events. For example, the terminal device may be processing a standby state or a low power consumption state, etc. Therefore, in order to improve the efficiency and effectiveness of responding to input events, the energy efficiency ratio of the processor in the terminal device can be adjusted to the first energy efficiency ratio to instruct the processor to start running based on the first energy efficiency ratio, and create a timer, setting the target duration of the timer to the first duration.

[0152] S606, the terminal device determines whether the timer meets the delay condition, if the timer meets the delay condition, execute S607, otherwise execute S608.

[0153] If the processor's current third energy efficiency ratio is less than or equal to the first energy efficiency ratio, the processor's current performance can meet the response requirements for input events. For example, the terminal device may have improved the processor's performance at least once based on another input event or other reasons. Therefore, it can be determined whether the timer meets the delay condition to determine whether to extend the time the processor runs at higher performance.

[0154] The delay condition can be set in advance. In some embodiments, the delay condition can include at least one of the following: the time interval between the most recent increase in the target duration in the current distance history is greater than or equal to the second duration; the number of times the target duration has been extended is greater than or equal to the first value; or the target duration is greater than or equal to the third duration.

[0155] When the delay condition includes that the time interval of the most recent extension of the target duration in the current distance history is greater than or equal to the second duration, the problem of frequently increasing the target duration of the timer can be improved, thereby improving the problems of heat generation and poor battery life caused thereby. For example, when the same or similar input events are frequently obtained (that is, at least one of the event type and device information of the two input events is the same), the problem of repeated frequency increase caused by the same or similar input events can be improved. The second duration can be obtained by pre-setting. In some embodiments, the second duration can be 1s, and it can be understood that in actual applications, the second duration can also be other values.

[0156] When the delay condition includes the number of times the target duration is extended being greater than or equal to a first value, the problem of the processor running at a higher performance for an extended period due to excessive delays during a single performance boost can be improved, thereby alleviating the resulting problems of overheating and poor battery life. The first value can be set in advance.

[0157] When the target duration is greater than or equal to the third duration, the problem of the processor running at higher performance for an extended period during a single processor performance boost can be alleviated, thereby improving the resulting issues of overheating and poor battery life. The third duration can be set in advance and can be greater than the first duration. In some embodiments, the third duration can be greater than or equal to the product of the first value and the first duration.

[0158] It is understandable that fewer delay conditions allow the processor to operate at higher performance for a longer period of time, thereby enabling it to respond to more input events in a timely manner. Conversely, more delay conditions allow for more precise control over the timing of processor performance improvements, thereby improving issues such as overheating and poor battery life in the terminal device while ensuring timely response to input events. In actual applications, one or more delay conditions can be set based on factors such as the overall performance of the terminal device and the usage scenario. Of course, no delay conditions can be set, i.e., S606 can be omitted.

[0159] S607: The processor continues to operate based on the third energy efficiency ratio, and the terminal device extends the target duration of the timer by the first duration.

[0160] The timer may be a timer created when instructing the processor to start operating based on the third energy efficiency ratio. When the timer satisfies a delay condition, the timer may be obtained and the target duration of the timer may be extended by a first duration, thereby causing the processor to continue operating based on the third energy efficiency ratio for at least the first duration, i.e., the processor maintains a higher performance for at least the first duration.

[0161] S608: If the timer times out, adjust the energy efficiency ratio of the processor to a second energy efficiency ratio.

[0162] When the timer times out, the energy efficiency ratio of the processor can be adjusted to the second energy efficiency ratio to instruct the processor to run based on the higher second energy efficiency ratio, thereby reducing the performance of the processor and improving problems such as performance waste, heat generation and poor battery life.

[0163] In an embodiment of the present application, when an input event is obtained and the corresponding first energy efficiency ratio is determined, the performance of the processor can be adjusted more accurately in combination with the third energy efficiency ratio currently running by the processor. When the third energy efficiency ratio is greater than the first energy efficiency ratio, the processor can be instructed to run based on the first energy efficiency ratio, thereby further improving the performance of the processor so that the processor can meet the requirements of responding to input events. When the third energy efficiency ratio is less than or equal to the first energy efficiency ratio, the processor is already running based on higher performance, so the processor can be instructed to continue to run based on the third energy efficiency ratio, thereby maintaining higher performance. In addition, when the timer times out, the processor can be instructed to run according to the higher second energy efficiency ratio, thereby improving problems such as performance waste, heat generation and poor battery life.

[0164] The following will take the terminal device as a PC device and the input device as a touchpad and keyboard as an example to specifically illustrate the method for adjusting device performance provided in the embodiment of the present application.

[0165] Please refer to Figure 7, which shows a method for adjusting device performance provided in an embodiment of the present application, wherein the terminal device is a PC device and the input device is a mouse. It should be noted that the method is not limited to the specific sequence described in Figure 7 and below. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0166] S701: The terminal device obtains multiple messages from the mouse.

[0167] The plurality of messages may be messages generated by the mouse based on user operations, for example, a message indicating left button pressed, a message indicating left button lifted, a message indicating right button pressed, a message indicating right button lifted, a message indicating pressing and moving the mouse, and the like.

[0168] S702: The terminal device determines the event type of the input event based on multiple messages.

[0169] The terminal device may determine the corresponding event type based on each received message and the order of each message.

[0170] In some embodiments, the message combination corresponding to each event type among multiple event types can be determined in advance, so that the message combination received from the mouse can be compared with multiple stored message combinations. If the message combination is consistent with any stored message combination, it can be determined that an input event of the event type corresponding to any message combination is obtained.

[0171] For example, as shown in Table 4 below, when two messages indicating the left button is pressed and two messages indicating the left button is lifted are obtained, and the time interval between the two messages indicating the left button is lifted is less than 500ms, it can be determined that an input event of the left button double-click type is obtained. When a message indicating the right button is lifted is obtained, it can be determined that an input event of the right-click type is obtained. When a message indicating the left button is pressed and a message indicating the left button is pressed and moved are obtained, it can be determined that an input event of the drag type is obtained. When a message indicating the wheel is scrolled is obtained, it can be determined that an input event of the scroll type is obtained.

[0172] Table 4

[0173] S703: The terminal device determines whether the event type of the current input event is the same as the event type of the input event previously acquired from the mouse. If they are the same, S704 is executed; otherwise, the process ends, thereby ignoring the current input event.

[0174] When the event type of the current input event is the same as the event type of the input event previously obtained from the mouse, the terminal device executes subsequent steps, so that when the user uses the mouse to perform the same or similar user operations, the terminal device can respond to the user operations in the scenario in a timely manner, thereby improving the efficiency and effectiveness of the response.

[0175] In some implementations, S703 may be omitted.

[0176] S704: The terminal device determines whether the time interval from the last input event obtained from the mouse is greater than or equal to 1 second. If yes, the process proceeds to S705; otherwise, the process ends, thereby ignoring the current input event.

[0177] Among them, 1s can be the second duration mentioned above.

[0178] The terminal device continues to execute subsequent steps when determining whether the time interval from the last input event obtained from the mouse is greater than or equal to 1s, which can improve the problem of repeatedly improving processor performance when the user frequently performs the same or similar user operations.

[0179] In some implementations, S704 may be omitted.

[0180] S705: The terminal device determines that the first energy efficiency ratio is 33 and the first duration is 2s based on the event type of the current input event, the device type is a mouse, and the platform type of the processor is the second platform.

[0181] Among them, the terminal device can determine that the first energy efficiency ratio is 33 based on the aforementioned Table 2, and determine that the first time length is 2s based on the aforementioned Table 3.

[0182] S706 : The terminal device instructs the processor to run for 2 seconds based on an energy efficiency ratio of 33.

[0183] The terminal device may send an energy efficiency ratio of 33 to the processor and create a timer with a target duration of 2 seconds. The processor may operate based on the energy efficiency ratio of 33 and respond to the current input event. In some embodiments, when the timer expires, that is, when the terminal device has operated for 2 seconds based on the energy efficiency ratio of 33, the processor may be instructed to resume operation to its original state, such as resuming operation based on an energy efficiency ratio of 80.

[0184] It is understandable that the terminal device responds to input events in different ways based on the different active windows in the display screen of the terminal device. For example, if the display screen displays any active window, the user clicks the left button on the minimum button in the upper left corner of the active window, then the terminal device can minimize the active window; if the user clicks the left button on the close button in the upper left corner of the active window, then the terminal device can close the active window; if the user double-clicks the touch screen with one joint, the terminal device can take a screenshot of the current touch screen and edit it; if the user double-clicks the touch screen with two joints, the terminal device can start screen recording until the user double-clicks the touch screen again; if the user slides up and down along the left edge of the touch screen, the terminal device can adjust the brightness of the touch screen; if the user slides up and down along the right edge of the touch screen, the terminal device can adjust the volume of the speaker; if the user slides up and down along the upper edge of the touch screen, the terminal device can control the fast forward or rewind of the video played on the touch screen; if the user slides in with three fingers along the right edge of the touch screen, the terminal device can display the notification center.

[0185] In an embodiment of the present application, when a user is using a mouse, upon detecting a mouse input event, a corresponding first energy efficiency ratio can be promptly determined and the processor can be instructed to operate based on the first energy efficiency ratio, thereby improving the efficiency of responding to the input event. In addition, by determining the event type and time interval between the current input event and the previous input event, when the user performs the same or similar user operation, a timely response can be provided to the user operation in that scenario, thereby improving the problem of repeatedly increasing processor performance when the user frequently performs the same or similar user operations.

[0186] Taking the example of a user double-clicking to open the email app, the processor takes time to respond to the user's action of opening the email app and display the email app interface at loads of 20%, 60%, and 80%, respectively, based on energy efficiency ratios of 33, 50, and 70. Table 5 shows this. The input event type is a double-click of the left button, and the device type is a mouse.

[0187] Table 5

[0188] Taking the first four columns of data in Table 5 as an example, the response time for a user to open the email application was tested three times when the processor load was 20%. When the first energy efficiency ratio was 33, the time it took for the terminal device to respond to the user's operation of opening the email application and display the email application interface was 0.44s, 0.85s, and 1.09s, respectively. When the first energy efficiency ratio was 50, the time it took for the terminal device to respond to the user's operation of opening the email application and display the email application interface was 1.16s, 1.39s, and 0.93s, respectively. When the first energy efficiency ratio was 70, the time it took for the terminal device to respond to the user's operation of opening the email application and display the email application interface was 2.34s, 2.25s, and 2.13s, respectively. It can be seen that regardless of whether the processor is in a light, medium, or heavy load state, the smaller the value of the first energy efficiency ratio, the shorter the time it takes to respond to the user's operation of opening the email application and display the email application interface, that is, the greater the performance improvement of the processor.

[0189] Taking the example of a user right-clicking to open a shortcut menu, the duration required to display the shortcut menu in response to the shortcut menu opening operation is shown in Table 6 below, when the processor is operating at loads of 20%, 60%, and 80%, respectively, based on energy efficiency ratios of 33, 50, and 70. The event type of the input event is right-click, and the device type is mouse.

[0190] Table 6

[0191] Taking the first four columns of data in Table 5 as an example, the response time for a user to right-click and open a shortcut menu was tested three times with a processor load of 20%. When the first energy efficiency ratio was 33, the response time for the terminal device to right-click and open a shortcut menu and display the shortcut menu was 0.41s, 0.52s, and 0.52s, respectively. When the first energy efficiency ratio was 50, the response time for the terminal device to right-click and open a shortcut menu and display the shortcut menu was 0.49s, 0.53s, and 0.49s, respectively. When the first energy efficiency ratio was 70, the response time for the terminal device to right-click and open a shortcut menu and display the shortcut menu was 0.55s, 0.555s, and 0.55s, respectively. It can be seen that the smaller the value of the first energy efficiency ratio, the shorter the response time to right-click and open a shortcut menu and display the shortcut menu, that is, the greater the performance improvement of the processor.

[0192] Taking the user scrolling the middle mouse button as an example, the frame rates for scrolling a 2000-row table in a spreadsheet application in response to the user scrolling the middle mouse button are shown in Table 7 below, based on energy efficiency ratios of 33, 50, and 70, respectively, when the processor is operating at loads of 20%, 60%, and 80%. The event type of the input event is middle scroll button, and the device type is mouse.

[0193] Table 7

[0194] It can be seen from Table 7 that the smaller the value of the first energy efficiency ratio is, the higher the frame rate of the terminal device in response to the user sliding the middle mouse button to display the table is, that is, the greater the performance improvement of the processor is.

[0195] Please refer to Figure 8, which shows a method for adjusting device performance provided in an embodiment of the present application, wherein the terminal device is a PC device and the input device is a keyboard. It should be noted that the method is not limited to the specific sequence described in Figure 8 and below. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0196] S801: The terminal device obtains multiple messages from the keyboard.

[0197] The plurality of messages may be messages generated by the keyboard based on user operations. In some implementations, the messages may include virtual key codes corresponding to keys pressed by the user.

[0198] For example, in the order of alphabets from A to Z, the virtual key codes corresponding to the letter keys are 65-90; in the order of numbers from 1 to 9, the virtual key codes corresponding to the number keys can be 48-57.

[0199] S802: The terminal device determines whether the user has pressed the ctrl key. If yes, the process proceeds to S803; otherwise, the process proceeds to S805.

[0200] Wherein, when the message of ctrl key pressing is obtained, it can be determined that the user presses the ctrl key. In some embodiments, the flag corresponding to the ctrl key can be set to true when the ctrl key is pressed.

[0201] S803, the terminal device determines whether the user presses the C key, the S key or the V key, and if so, executes S804, otherwise ends.

[0202] When a message indicating that the C key is pressed is obtained, it can be determined that the user has pressed the C key; when a message indicating that the S key is pressed is obtained, it can be determined that the user has pressed the S key; and when a message indicating that the V key is pressed is obtained, it can be determined that the user has pressed the V key.

[0203] S804, the terminal device determines that the first energy efficiency ratio is 50 and the first duration is 2s based on the event type of the input event being quick copy, quick save or quick paste, the device type being keyboard, and the platform type of the processor being the second platform.

[0204] Among them, when the mark corresponding to the ctrl key is true and the message of the C key being pressed is received, it can be determined that an input event of the quick copy type is obtained; when the mark corresponding to the ctrl key is true and the message of the S key being pressed is received, it can be determined that an input event of the quick save type is obtained; when the mark corresponding to the ctrl key is true and the message of the V key being pressed is received, it can be determined that an input event of the quick paste type is obtained.

[0205] The terminal device can determine that the first energy efficiency ratio is 50 based on Table 2 mentioned above, and determine that the first duration is 2s based on Table 3 mentioned above.

[0206] S805: The terminal device determines whether the user has pressed a letter key or a number key 10 times within 2 seconds. If yes, the process proceeds to S806; otherwise, the process ends.

[0207] Among them, a message queue with a length of 10 can be created. Whenever a message of a character key being pressed is received, it is determined whether the time interval between the last message and the first message in the message queue is less than 2s. If so, it is determined that an input event of the character input type is obtained, otherwise the first message is removed and the eleventh message is inserted.

[0208] S806: The terminal device determines that the first energy efficiency ratio is 50 and the first duration is 2s based on the event type of the input event being character input, the device type being keyboard, and the platform type of the processor being the second platform.

[0209] Among them, the terminal device can determine that the first energy efficiency ratio is 50 based on the aforementioned Table 2, and determine that the first time length is 2s based on the aforementioned Table 3.

[0210] S807: The terminal device determines whether the time interval between the current and the last keyboard input event is greater than or equal to 1 second. If so, execute S808; otherwise, execute S809.

[0211] Among them, 1s can be the second duration mentioned above.

[0212] When the terminal device determines that the time interval between the current distance and the last keyboard input event detected is greater than or equal to 1s, it continues to execute subsequent steps, which can improve the problem of repeatedly improving processor performance when the user frequently performs the same or similar user operations.

[0213] S808: The terminal device instructs the processor to operate based on an energy efficiency ratio of 50 and extends the target duration of the timer by 2 seconds.

[0214] S809: When the timer times out or an input event from another input device is obtained, the processor is instructed to stop running based on the energy efficiency ratio of 50.

[0215] In some embodiments, when the timer times out, indicating that the user temporarily stops inputting information to the terminal device through the keyboard, the terminal device may instruct the processor to restore to an initial state, for example, it may instruct the processor to restore to operation based on an energy efficiency ratio of 70.

[0216] In some embodiments, when input events from other input devices are obtained, it indicates that the user temporarily stops inputting information to the terminal device through the keyboard and switches to inputting information to the terminal device through other input devices. The terminal device can determine a new first energy efficiency ratio based on the input events from other input devices and instruct the processor to operate based on the new first energy efficiency ratio.

[0217] In an embodiment of the present application, when a user is using a keyboard, upon detecting a keyboard input event, a corresponding first energy efficiency ratio can be promptly determined and the processor can be instructed to operate based on the first energy efficiency ratio, thereby improving the efficiency of responding to the input event. In addition, the time interval between the current and the last detected keyboard input event can alleviate the problem of repeatedly increasing processor performance when the user frequently performs the same or similar user operations.

[0218] Taking the case where a user inputs a text through a keyboard as an example, the responses of the terminal device in different power modes may be shown in the following Table 8. In particular, the event type of the input event may be character input, and the device type may be keyboard.

[0219] Table 8

[0220] In Table 8 above, when the terminal device is in optimal energy efficiency mode, it prioritizes reducing energy consumption, resulting in lower power consumption and lower performance. However, when the terminal device is in balanced mode, it can reduce energy consumption while maintaining performance to a certain extent, resulting in higher energy consumption and higher performance. As can be seen from Table 8, under the same power supply mode, the lower the energy efficiency ratio, the faster the response speed to character input.

[0221] For example, if a user opens a tab application and uses the keyboard to execute quick copy, quick paste, and quick save in the tab application, the response of the terminal device may be as shown in Table 9. The event type of the input event may be quick command input, and the device type may be keyboard.

[0222] Table 9

[0223] It can be seen from Table 9 that, in the case of tables of the same size, the smaller the energy efficiency ratio, the shorter the time consumed to open the table, quickly paste the table, and quickly save the table.

[0224] In an embodiment of the present application, a method is provided for adjusting the energy efficiency ratio of a processor according to an input event of a terminal device. In practical applications, the method can be used independently to adjust the performance of the processor, or it can be combined with other methods for adjusting the performance of a terminal device. In some embodiments, the current scene of the terminal device, such as an idle scene, a music scene, etc., can be identified, the performance of the terminal device can be adjusted based on the scene, and the energy efficiency ratio of the processor can be adjusted according to the method provided in the embodiment of the present application. In some embodiments, the current scene of the terminal device can be identified, and only when the terminal device is in a specific scene, the energy efficiency ratio of the processor can be adjusted according to the method provided in the embodiment of the present application. In some embodiments, the current window or process of the terminal device can be identified, and only when the current window is a specific window or only when the current process is a specific process, the energy efficiency ratio of the processor can be adjusted according to the method provided in the embodiment of the present application.

[0225] Based on the same inventive concept, an embodiment of the present application further provides a device for adjusting equipment performance, which includes an acquisition module, a determination module, and an adjustment module.

[0226] An acquisition module, used to obtain input events for terminal devices;

[0227] a determining module, configured to determine a first energy efficiency ratio corresponding to the input event;

[0228] An adjustment module is used to adjust the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio.

[0229] Among them, the device can be equivalent to the terminal device, or the device can be set in the terminal device, or the terminal device can be connected to the device, and the device can implement the operations performed by the terminal device in the aforementioned embodiments and have corresponding technical effects.

[0230] Based on the same inventive concept, an embodiment of the present application further provides a terminal device comprising: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the method described in the above method embodiment when calling the computer program.

[0231] The terminal device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be repeated here.

[0232] Based on the same inventive concept, an embodiment of the present application further provides a chip system, which includes a processor coupled to a memory, and executes a computer program stored in the memory to implement the method described in the above method embodiment.

[0233] The chip system may be a single chip or a chip module composed of multiple chips.

[0234] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the above method embodiment is implemented.

[0235] An embodiment of the present application further provides a computer program product, which, when executed on a terminal device, enables the terminal device to implement the method described in the above method embodiment.

[0236] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may at least include: any entity or device capable of carrying computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.

[0237] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0238] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0239] In the embodiments provided in this application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0240] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0241] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0242] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0243] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0244] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0245] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for adjusting equipment performance, characterized in that: The method comprises: Get input events for terminal devices; determining a first energy efficiency ratio corresponding to the input event; The energy efficiency ratio of the processor in the terminal device is adjusted to the first energy efficiency ratio.

2. The method according to claim 1, characterized in that The determining a first energy efficiency ratio corresponding to the input event includes: determining at least one of an event type of the input event and device information of an input device, the input device corresponding to the input event; The first energy efficiency ratio is determined based on at least one of the event type and device information of the input device.

3. The method according to claim 2, characterized in that The method further comprises: determining a platform type of the processor; The determining the first energy efficiency ratio based on at least one of the event type and the device information of the input device includes: The first energy efficiency ratio is determined based on at least one of the event type and the device information of the input device, and the platform type.

4. The method according to any one of claims 1 to 3, characterized in that: Before adjusting the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio, the method further includes: obtaining a temperature of the processor; updating the first energy efficiency ratio based on the temperature to obtain an updated first energy efficiency ratio, wherein when the temperature is lower, the updated first energy efficiency ratio is smaller; The step of adjusting the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio includes: The energy efficiency ratio of the processor in the terminal device is adjusted to the updated first energy efficiency ratio.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Determining a first duration corresponding to the input event; When the processor runs for the first time period based at least on the first energy efficiency ratio, the energy efficiency ratio of the processor is adjusted to a second energy efficiency ratio, where the second energy efficiency ratio is greater than the first energy efficiency ratio.

6. The method according to claim 5, characterized in that The determining a first duration corresponding to the input event includes: determining at least one of an event type of the input event and device information of an input device, the input device corresponding to the input event; The first duration is determined based on at least one of the event type and device information of the input device.

7. The method according to claim 5 or 6, characterized in that: Before adjusting the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio, the energy efficiency ratio of the processor is a third energy efficiency ratio, and the third energy efficiency ratio is greater than the first energy efficiency ratio, and when the processor runs for the first time period based at least on the first energy efficiency ratio, adjusting the energy efficiency ratio of the processor to the second energy efficiency ratio includes: When the processor starts to operate based on the first energy efficiency ratio, creating a timer; Setting the target duration of the timer to the first duration; If the timer times out, the energy efficiency ratio of the processor is adjusted to the second energy efficiency ratio.

8. The method according to claim 5 or 6, characterized in that: Before adjusting the energy efficiency ratio of the processor in the terminal device to the first energy efficiency ratio, the energy efficiency ratio of the processor is a third energy efficiency ratio, and the third energy efficiency ratio is less than or equal to the first energy efficiency ratio, and when the processor runs for the first time period at least based on the first energy efficiency ratio, adjusting the energy efficiency ratio of the processor to the second energy efficiency ratio includes: Acquire a timer, where the timer is a timer created when the processor starts to run based on the third energy efficiency ratio; Extending the target duration of the timer by the first duration; If the timer times out, the energy efficiency ratio of the processor is adjusted to the second energy efficiency ratio.

9. The method according to claim 8, characterized in that Before extending the target duration of the timer by the first duration, the method further includes: Determine that the timer satisfies a delay condition, where the delay condition includes at least one of the following: The time interval for the most recent extension of the target duration in the current distance history is greater than or equal to the second duration; The number of times the target duration is extended is greater than or equal to a first value; The target duration is greater than or equal to the third duration.

10. A terminal device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; and the processor is used to execute the method according to any one of claims 1 to 9 when calling the computer program.

11. The terminal device according to claim 10, characterized in that: The terminal device is a personal computing device, a tablet device or smart glasses.

12. The terminal device according to claim 11, characterized in that: When the terminal device is the personal computing device or the tablet device, the input device includes at least one of a keyboard, a touch pad, a mouse and a touch screen.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

14. A computer program product, characterized in that When the computer program product is executed on a terminal device, the terminal device is caused to execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method for adjusting equipment performance and terminal equipment

    CN119472965A

  • Operating system capable of improving responsiveness and prolonging battery life, and management method thereof

    CN104866055A

  • System, apparatus and method for responsive autonomous hardware performance state control of processor

    CN111936952A

  • Resource scheduling method and electronic equipment

    CN116028205A

  • Setting processor performance states

    TW201643597A