Frequency control method for processor, and electronic device

By detecting user operations and adjusting the processor frequency in electronic devices, the problem of frequency reduction caused by the high temperature protection mechanism is solved, improving the user experience and ensuring the safety and stability of the device.

WO2024183598A1PCT designated stage expired Publication Date: 2024-09-12HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/079189
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-03
Filing Date
2024-02-29
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Existing high-temperature protection mechanisms in electronic devices cause processor frequencies to decrease, resulting in poor user experience, such as application freezes and delays, and may even lead to suspended animation or restarts.

Method used

By detecting user operations, we identify whether the processor is in a down-frequency state, and adjust it to a frequency-up state when necessary to ensure that the application does not freeze when it is opened. At the same time, it returns to the down-frequency state after a preset time to avoid excessive temperature. hidden dangers.

Benefits of technology

It improves the user experience and avoids lagging problems caused by excessive processor temperature. At the same time, the processor temperature is reasonably controlled to ensure the safety and stability of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079189_12092024_PF_FP
    Figure CN2024079189_12092024_PF_FP
Patent Text Reader

Abstract

The embodiments of the present application provide a frequency control method for a processor, and an electronic device. The method comprises: when detecting a user operation instructing to open a first application, an electronic device identifies the working state of a processor of the electronic device, the term "working state" comprising a frequency reducing state and a frequency increasing state; and, when the working state of the processor is the frequency reducing state, the electronic device regulates the working state of the processor to be the frequency increasing state. The method can avoid lagging occurring when applications are opened, thus improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Processor frequency control method and electronic equipment

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 3, 2023, with application number 202310234823.X, and priority to the Chinese patent application entitled “A frequency control method and electronic device for a processor”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of electronic technology, and in particular to a frequency control method for a processor and an electronic device. Background Art

[0003] Currently, because high temperatures can damage processors in electronic devices, electronic devices typically trigger a high-temperature protection mechanism when the processor temperature reaches a certain level to prevent the processor from burning out. However, this high-temperature protection mechanism can affect the normal operation of electronic devices (such as computers). Existing high-temperature protection mechanisms include shutting down, restarting, or reducing the processor frequency when the temperature is too high.

[0004] Among them, lowering the processor frequency will lead to a decrease in the processor's processing speed, thereby affecting the user experience. In the scenario where the user uses a computer, if the computer's central processing unit (CPU) frequency is reduced and the user opens an application, problems such as application freezes and delays will occur, affecting the user experience. For example, the original computer CPU takes 1 second to process a piece of data, but it takes 10 seconds after the CPU frequency is reduced. Slow data processing will cause the computer to freeze; as the temperature continues to rise, the CPU will continue to reduce the frequency until the computer appears to be frozen, which is the situation we usually see where the mouse can move but nothing else can move; finally, when the temperature rises to the highest temperature in the CPU's high-temperature protection mechanism, the computer will shut down or restart.

[0005] Summary of the Invention

[0006] The present invention discloses a processor frequency control method and electronic device. When implementing this embodiment of the present invention, upon detecting a user operation instructing to open an application, the electronic device can identify whether the processor of the electronic device is currently in a frequency-reduced state. If so, the electronic device can increase the processor frequency. This method ensures that applications open smoothly without lag, improving the user experience.

[0007] In a first aspect, an embodiment of the present application discloses a method for controlling the frequency of a processor, the method comprising:

[0008] When the electronic device detects a user operation instructing to open the first application, the electronic device identifies an operating state of a processor of the electronic device, where the operating state includes a frequency reduction state and a frequency increase state;

[0009] When the working state of the processor is in the frequency reduction state, the electronic device adjusts the working state of the processor to the frequency increase state.

[0010] By implementing the embodiments of the present application, when an electronic device detects a user operation instructing to open an application, it can identify whether the electronic device's processor is currently in a downclocked state. If so, the electronic device can increase the processor's frequency. This method ensures that applications are opened without lag, improving the user experience.

[0011] The frequency reduction state may refer to a state where the processor frequency is continuously decreasing, or may refer to a state where the processor frequency is lower than a first preset frequency; the frequency increase state may refer to a state where the processor frequency is continuously increasing, or may refer to a state where the processor frequency is higher than a second preset frequency. The first preset frequency and the second preset frequency may be the same or different.

[0012] In conjunction with the first aspect, in one possible implementation, the method further includes:

[0013] The electronic device executes a temperature control strategy; the temperature control strategy includes a thermal zone parameter, and the temperature control strategy is to adjust the operating state of the processor to a reduced frequency state when the temperature of the thermal zone of the processor reaches the thermal zone parameter;

[0014] Adjusting the working state of the processor to the frequency-increasing state includes: the electronic device adjusting the value of the hot zone parameter from a first threshold to a second threshold, where the second threshold is greater than the first threshold; and when the electronic device detects that the hot zone parameter is adjusted to the second threshold, adjusting the working state of the processor to the frequency-increasing state.

[0015] In an embodiment of the present application, an electronic device executes a temperature control strategy; the temperature control strategy includes a thermal zone parameter, and the temperature control strategy adjusts the processor's operating state to a reduced frequency state when the processor's thermal zone temperature reaches the thermal zone parameter. Upon detecting a user operation instructing to open a first application, the electronic device identifies the operating state of the electronic device's processor and, if the processor's operating state is in a reduced frequency state, adjusts the processor's operating state to a increased frequency state. This method can prevent the application from freezing when a user opens an application in an electronic device while the processor temperature is too high, causing the operating state to be reduced.

[0016] In conjunction with the first aspect, in a possible implementation, the value of the thermal zone parameter is adjusted by a basic input and output system BIOS in the electronic device.

[0017] In conjunction with the first aspect, in one possible implementation, before adjusting the value of the thermal region parameter from the first threshold to the second threshold, the method further includes:

[0018] When the electronic device detects a user operation through the second application, it sends a first notification to the BIOS through the frequency boost interface. The first notification is used to instruct the Advanced Configuration and Power Interface (ACPI) in the BIOS to adjust the thermal zone parameters.

[0019] In combination with the first aspect, in a possible implementation, the operating state of the processor is adjusted by a temperature control drive in the electronic device.

[0020] In conjunction with the first aspect, in one possible implementation, after adjusting the operating state of the processor to the frequency-increasing state, the method further includes:

[0021] The electronic device adjusts the value of the thermal zone parameter from the second threshold to the first threshold after a preset time.

[0022] In the embodiment of the present application, the electronic device increases the processor frequency for a period of time after opening an application, and restores the previous frequency reduction after a preset time. This method can ensure that the application is not stuck when opening, and can also avoid the hidden dangers caused by excessive processor temperature.

[0023] In conjunction with the first aspect, in one possible implementation, the electronic device adjusts the value of the thermal zone parameter from the second threshold to the first threshold after a preset time, including:

[0024] When the electronic device adjusts the value of the thermal zone parameter from the first threshold to the second threshold, the electronic device sends a second notification to the embedded controller EC through the BIOS, where the second notification includes a preset time; the second notification is used to instruct the EC to adjust the thermal zone parameter from the second threshold to the first threshold after the preset time;

[0025] The electronic device sends an instruction to the BIOS through the EC after a preset time, the instruction being used to instruct the BIOS to adjust the thermal zone parameter from the second threshold to the first threshold;

[0026] When the electronic device detects through the temperature control drive that the thermal area parameter is adjusted to the first threshold, the operating frequency of the processor is reduced.

[0027] In conjunction with the first aspect, in one possible implementation, adjusting the operating state of the processor to a frequency-increasing state includes:

[0028] The electronic device adjusts the working state of the processor to a frequency-increasing state when detecting that the safety parameter of the electronic device is within a preset range. The safety parameter includes at least one of a battery voltage and a temperature.

[0029] By implementing the embodiments of the present application, when the electronic device increases the frequency of the processor, the values ​​of the safety parameters are taken into consideration, thereby ensuring the safety of users using the electronic device.

[0030] In conjunction with the first aspect, in one possible implementation, the method further includes:

[0031] After the BIOS receives the third notification, the electronic device obtains the safety scenario identifier from the EC through the BIOS; the third notification is used to instruct the BIOS to adjust the thermal zone parameters;

[0032] When the electronic device determines through the BIOS that the safety scenario identifier is a preset identifier, it is determined that the safety parameters of the electronic device are within the preset range.

[0033] In combination with the first aspect, in a possible implementation, the operating frequency of the processor occupied by the first application when running is higher than a preset frequency.

[0034] The operating frequency of the processor occupied when the first application is running may refer to processor resources occupied by the first application.

[0035] By implementing the embodiments of the present application, an electronic device can identify the operating status of the processor only when an application occupies a large amount of processor resources, and increase the processor frequency when the processor is in a reduced frequency state. Because applications that occupy a large amount of processor resources are more likely to experience lag when the processor is opened when the processor is in a reduced frequency state, this method can avoid increasing the processor frequency when the application is not lag when opened, thereby reducing power consumption and properly controlling the processor temperature, ensuring the user experience and safety.

[0036] In a second aspect, the present application provides an electronic device. The electronic device may include a memory and a processor. The memory may be used to store a computer program. The processor may be used to invoke the computer program, causing the electronic device to execute the first aspect or any possible implementation of the first aspect.

[0037] In the third aspect, an embodiment of the present application also provides a chip system, which includes at least one processor and a communication interface, the communication interface is used to send and / or receive data, and the at least one processor is used to call a computer program stored in at least one memory so that the device where the chip system is located implements the method described in the first aspect or any possible implementation method of the first aspect.

[0038] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, in which a computer program is stored. When the computer program runs on one or more processors, the method described in the first aspect or any possible implementation method of the first aspect is executed.

[0039] In a fifth aspect, an embodiment of the present application discloses a computer program product, which, when running on one or more processors, executes the method described in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The following is an introduction to the drawings used in the embodiments of this application.

[0041] FIG1 is a schematic diagram of the structure of a PC 100 provided in an embodiment of the present application;

[0042] FIG2 is a schematic diagram of a software architecture of a PC 100 provided in an embodiment of the present application;

[0043] FIG3 is a frequency control method of a processor provided by an embodiment of the present application;

[0044] FIG4 is another method for controlling the frequency of a processor provided by an embodiment of the present application;

[0045] FIG5 is a flowchart of BIOS and EC processing provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0047] The “at least one” mentioned in the embodiments of this application refers to one or more, and “plurality” refers to two or more. “At least one of the following items” or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, c can be single or multiple. “And / or” describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character “ / ” generally indicates that the previous and next associated objects are in an “or” relationship.

[0048] Furthermore, unless otherwise indicated, ordinal numbers such as "first" and "second" in the embodiments of this application are used to distinguish multiple objects and are not used to define the order, timing, priority, or importance of multiple objects. For example, the first information and the second information are only used to distinguish different information and do not indicate differences in content, priority, transmission order, or importance between the two information.

[0049] First, a frequency control method of a processor in the prior art is introduced by way of example.

[0050] Currently, in the technical solution under the combination of Qualcomm CPU and operating system Windows, when the CPU temperature rises to its temperature wall (ie, the preset temperature), the CPU operating frequency will decrease.

[0051] Since the CPU's operating frequency decreases, the CPU's processing speed decreases. At this time, if the user opens an application that takes up a lot of CPU (that is, occupies a high amount of CPU resources), it will experience lag, affecting the user experience.

[0052] Embodiments of the present application provide a processor frequency control method, electronic device, and system. In this method, upon detecting a user operation instructing to open an application, an electronic device can identify whether the electronic device's processor is currently in a frequency-reduced state. Furthermore, if the processor is in a frequency-reduced state, the electronic device increases the processor frequency for a period of time after the application is opened, and then restores the previously frequency-reduced state after a preset period of time. This method ensures that applications open smoothly without lag, improving the user experience.

[0053] The electronic device may specifically be a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc. Exemplary embodiments of the electronic device include but are not limited to a computer equipped with The portable electronic device may be a Linux or other operating system. The electronic device may also be other portable electronic devices, such as a laptop computer. It should also be understood that in some other embodiments, the electronic device may not be a portable electronic device, but a desktop computer or the like.

[0054] The electronic device provided in the embodiments of the present application is exemplarily introduced below.

[0055] FIG1 is a schematic diagram of the structure of a PC 100 provided in an embodiment of the present application.

[0056] It should be understood that the exemplary structure of PC 100 in the embodiments of the present application does not constitute a specific limitation on electronic devices. In other embodiments of the present application, PC 100 may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The components shown in FIG1 may be implemented in hardware, software, or a combination of software and hardware.

[0057] As shown in FIG. 1 , the PC 100 includes a processor 110 , a memory 120 , a communication module 130 , a display screen 140 , and peripheral devices 150 .

[0058] The processor 110 may include one or more processing units, and the processor 110 may be used to control and manage the actions of the PC 100. For example, the processor 110 may include a CPU, an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors. The controller may be the nerve center and command center of the PC 100. The controller may generate an operation control signal based on the instruction opcode and timing signal to complete the control of instruction fetching and execution.

[0059] 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 same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

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

[0061] 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, processor 110 may include multiple I2C busses. Processor 110 may be coupled to touch sensor K, a charger, a flash, a camera, etc. via different I2C bus interfaces. For example, processor 110 may be coupled to touch sensor K via the I2C interface, enabling communication between processor 110 and touch sensor K via the I2C bus interface, thereby implementing the touch function of PC 100.

[0062] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module via the I2S bus to enable communication between the processor 110 and the audio module. In some embodiments, the audio module can transmit audio signals to the wireless communication module via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0063] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module and the wireless communication module can be coupled via a PCM bus interface. In some embodiments, the audio module can also transmit audio signals to the wireless communication module via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0064] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 to the wireless communication module. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module can transmit audio signals to the wireless communication module via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0065] The MIPI interface can be used to connect the processor 110 to peripheral devices such as a display screen and a camera. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera communicate via the CSI interface to enable the camera function of the PC 100. The processor 110 and the display communicate via the DSI interface to enable the display function of the PC 100.

[0066] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera, display, wireless communication module, audio module, sensor module, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0067] The SIM card interface can be used to communicate with the SIM card interface to implement the function of transmitting data to the SIM card or reading data in the SIM card.

[0068] A USB port conforms to USB standards and may be a Mini USB port, Micro USB port, or USB Type-C port. A USB port can be used to connect a charger to charge PC 100 and to transfer data between PC 100 and peripheral devices. It can also be used to connect headphones for audio playback. This port can also be used to connect other electronic devices, such as AR devices.

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

[0070] The memory 120 is used to store program codes and data.

[0071] The communication module 130 may be used for communication between various internal modules of the PC 100 , or for communication between the PC 100 and other external devices.

[0072] For example, if the PC 100 communicates with other electronic devices via a wired connection, the communication module 130 may include an interface, such as a USB interface. Alternatively, the communication module 130 may include an audio device, a radio frequency circuit, a Bluetooth chip, a wireless fidelity (Wi-Fi) chip, a near-field communication (NFC) module, etc., to enable interaction between the PC 100 and other electronic devices.

[0073] The display screen 140 is used to display images, videos, etc.

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

[0075] Display screen 140 is used to display images, videos, and the like. Display screen 140 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED).

[0076] The PC 100 can implement a shooting function through an ISP, a camera, a video codec, a GPU, a display screen 140 , and an application processor.

[0077] The ISP processes data fed back by the camera. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and transformed into a visible image. The ISP can also perform algorithmic optimizations for image noise, brightness, and other factors. The ISP can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be integrated into the camera.

[0078] The camera is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, PC100 may include 1 or N cameras, where N is a positive integer greater than 1.

[0079] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the PC100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0080] Video codecs are used to compress or decompress digital video. PC 100 may support one or more video codecs. This allows PC 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0081] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU enables intelligent cognitive applications such as image recognition, face recognition, speech recognition, and text comprehension in the PC100.

[0082] The peripheral devices 150 may include a mouse, a keyboard, a speaker, a microphone, and the like.

[0083] The PC 100 may further include: a wireless communication module, a charging management module, a power management module, a battery, a module, a speaker, a receiver, a microphone, an earphone jack, a sensor module, an indicator, a camera, a display screen, etc. Among them, the sensor module may include a pressure sensor, a distance sensor, a fingerprint sensor, etc. Among them:

[0084] The wireless communication module can provide wireless communication solutions applied on the PC 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module can be one or more devices that integrate at least one communication processing module. The wireless communication module receives electromagnetic waves via an antenna, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module can also receive signals to be sent from the processor 110, frequency modulate them, amplify them, and convert them into electromagnetic waves for radiation through the antenna.

[0085] The pressure sensor is used to sense pressure signals and convert them into electrical signals.

[0086] In some embodiments, a pressure sensor may be provided on the display screen 140. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. A capacitive pressure sensor may include at least two parallel plates having a conductive material. When a force acts on the pressure sensor, the capacitance between the electrodes changes. The PC 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is applied to the display screen 140, the PC 100 detects the intensity of the touch operation based on the pressure sensor. The PC 100 may also calculate the position of the touch based on the detection signal of the pressure sensor. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.

[0087] A distance sensor is used to measure distance. PC 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, PC 100 can use the distance sensor to measure distance to achieve fast focusing.

[0088] The fingerprint sensor is used to collect fingerprints. The display screen 140 can use the collected fingerprint characteristics to implement fingerprint unlocking, etc.

[0089] The buttons include a power button, etc. The buttons can be mechanical buttons or touch buttons. The PC 100 can receive key inputs and generate key signal inputs related to user settings and function control of the PC 100.

[0090] The indicator can be a light, which can be used to indicate the charging status, power change, and can also be used for synthesis requests, notifications, etc.

[0091] The PC 100 can implement audio functions such as music playback and recording through an audio module, a speaker, a microphone, a headphone jack, and an application processor.

[0092] The audio module is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module can also be used to encode and decode audio signals. In some embodiments, the audio module can be provided in the processor 110, or some functional modules of the audio module can be provided in the processor 110.

[0093] The speaker, also called a "horn," is used to convert audio electrical signals into sound signals. The PC 100 can listen to music or make hands-free calls through the speaker.

[0094] A microphone, also known as a "microphone," is used to convert sound signals into electrical signals. When recording voice information, the user can input the sound signal into the microphone by speaking close to the microphone. PC 100 can be provided with at least one microphone. In other embodiments, PC 100 can be provided with two microphones, which can not only collect sound signals but also implement noise reduction. In other embodiments, PC 100 can also be provided with three, four, or more microphones to collect sound signals, reduce noise, identify the sound source, implement directional recording functions, and the like.

[0095] The headphone jack is used to connect wired headphones. It can be a USB port, a 3.5mm Open Mobile Terminal Platform (OMTP) standard port, or a cellular telecommunications industry association of the USA (CTIA) standard port.

[0096] In the embodiment of the present application, the processor 110 may execute the computer-executable instructions stored in the memory 120 to enable the PC 100 to execute the frequency control method of the processor provided in the embodiment of the present application.

[0097] FIG2 is a schematic diagram of a software architecture of a PC 100 provided in an embodiment of the present application. FIG2 is illustratively illustrated using Windows as an example.

[0098] As shown in Figure 2, Windows may include multiple applications, multiple interfaces, and multiple drivers, wherein the multiple applications may include a scene recognition application (such as PC Manager), the multiple interfaces may include a management specification (Windows Management Instrumentation, WMI) frequency increase interface, and the multiple drivers may include a temperature control driver. The multiple applications may also include the first application described below. The scene recognition application is used to identify user operations for the first application, and when user operations for the first application are detected, the BIOS is notified through the WMI frequency increase interface; the temperature control driver is used to adjust the operating frequency of the processor of PC 100.

[0099] The BIOS includes Advanced Configuration and Power Interface (ACPI) control methods and ACPI thermal zones. The ACPI control method is used to adjust the temperature control strategy in the ACPI thermal zone, specifically the thermal design parameters in the temperature control strategy.

[0100] The EC includes a thermal management module (EC Thermal Zone). The EC Thermal Zone is used to receive notifications from the ACPI control method and, based on the notifications, notify the BIOS to modify thermal design parameters after a preset time.

[0101] Exemplarily, the role of the above modules in FIG2 in executing the frequency control method of the processor provided in this application can be seen in the following steps (1) to (4):

[0102] (1) PC Manager identifies the whitelisted application opening scenario and notifies the BIOS through the WMI frequency increase interface (①);

[0103] (2) Modify the ACPI Thermal Zone temperature control strategy (②->④->⑤) through the ACPI control method;

[0104] (3) After the ACPI control method modifies the temperature control strategy, the temperature control driver calls the thermal zone interface to increase the CPU operating frequency to the maximum frequency (or preset frequency). Then, the ACPI control method notifies the EC to restore the temperature control strategy after 10 seconds (③);

[0105] (4) After 10 seconds, the EC sends a command (Q-event) to restore the temperature control strategy (⑥->⑦).

[0106] It should be understood that in the embodiment of the present application, the purpose of restoring the frequency reduction state through EC is to ensure safe frequency increase. Restoring the frequency reduction can also be achieved in PC Manager through the WMI frequency increase interface. However, there is a problem with doing so: after the user performs the frequency increase process, if the PC Manager is uninstalled, the frequency reduction state will not be restored, which poses a security risk. However, restoring to the frequency reduction state through EC is not affected by external factors.

[0107] The specific implementation process can be found in the relevant description below and will not be expanded here.

[0108] The frequency control method of the processor provided by the embodiment of the present application is described in detail below.

[0109] It should be noted that in the embodiments of the present application, the user operation can be a user's touch operation (such as a click operation, a long press operation, an upward swipe operation, a downward swipe operation, or a side swipe operation), or a contactless operation (such as an air gesture or a mouse operation), or a user's voice command, and the embodiments of the present application do not impose specific restrictions on this. For the convenience of description, the following embodiments are described using the user's touch operation as an example.

[0110] Please refer to Figure 3, which shows a method for controlling the frequency of a processor provided by an embodiment of the present application. The method may include some or all of the following steps:

[0111] Step S301: the electronic device executes a temperature control strategy; the temperature control strategy includes a thermal zone parameter, and the temperature control strategy is to adjust the working state of the processor to a reduced frequency state when the thermal zone temperature of the processor of the electronic device reaches the thermal zone parameter.

[0112] In some embodiments, the electronic device executes a temperature control strategy, that is, the electronic device can detect the temperature of the hot area of ​​the processor of the electronic device in real time or at regular intervals; then, when the hot area temperature reaches the hot area parameter, the working state of the processor is adjusted to a frequency reduction state; when the hot area temperature is lower than the hot area parameter, the working state of the processor is adjusted to a frequency increase state.

[0113] The thermal zone temperature is a value used to characterize the temperature of the processor. For example, the value may be obtained by detecting the temperature of a portion of the processor, or may be calculated based on the temperature of a portion or all of the processor, which is not limited here.

[0114] It should be understood that the thermal zone parameters and thermal zone temperatures are an illustrative expression provided for the convenience of description in the embodiments of the present application. In other embodiments of the present application, the thermal zone parameters may also be referred to as thermal zone (Thermal Zone) thermal design parameters, which are not limited here.

[0115] The operating state of the processor may include a frequency-increasing state and a frequency-reducing state. The frequency-increasing state may refer to a state in which the operating frequency of the processor is continuously or repeatedly increased within a preset time period; the frequency-reducing state may refer to a state in which the operating frequency of the processor is continuously or repeatedly decreased within a preset time period.

[0116] For example, the processor of the electronic device may be a central processing unit (CPU) of the electronic device, and the operating frequency of the CPU may be a clock frequency of the CPU. The clock frequency refers to the frequency at which the CPU operates during operations, and the unit is Hz. It is understood that the operating frequency of the CPU may affect the operating speed of the electronic device.

[0117] Step S302: When the electronic device detects a user operation instructing to open a first application, it identifies the operating state of the processor, where the operating state includes a frequency reduction state and a frequency increase state.

[0118] In some embodiments, the electronic device may be pre-set with a frequency boost whitelist, which includes multiple applications, and the application in the frequency boost whitelist is the first application mentioned above; when the electronic device detects a user operation instructing to open an application in the frequency boost whitelist, it identifies the working status of the processor.

[0119] Exemplarily, the frequency boost whitelist includes gaming applications; the electronic device displays an application icon for the gaming application; the user clicks the application icon, and when the electronic device detects the user operation of clicking the application icon, it recognizes that the application corresponding to the application icon is an application in the frequency boost whitelist, and then the electronic device identifies the working status of the processor.

[0120] It should be understood that the applications in the frequency boost whitelist may be fixed or may be increased or decreased. The embodiment of the present application does not limit the number of applications in the frequency boost whitelist.

[0121] The first application may be an application that causes the operating frequency of the processor to increase by a preset frequency, that is, the first application will occupy more processor resources.

[0122] Opening the first application may be running the first application. For example, if the electronic device is a computer and a user clicks an application icon of a game application with a mouse, assuming that the game application is the first application, the computer recognizes the operating state of the processor in response to the user operation on the application icon and runs the first application.

[0123] Step S303: When the processor of the electronic device is in a frequency-reducing state, the electronic device adjusts the value of the hot zone parameter from a first threshold to a second threshold, where the second threshold is greater than the first threshold.

[0124] In some embodiments, when the electronic device detects a user operation instructing to open a first application and identifies that the processor is in a reduced frequency state, the electronic device can adjust the value of the hot zone parameter from a first threshold to a second threshold, where the second threshold is greater than the first threshold.

[0125] It is understandable that, due to the temperature control strategy, when the temperature of the hot zone of the processor reaches the hot zone parameter, the working state of the processor is a frequency reduction state; considering that the user opens an application that occupies a high amount of CPU resources at this time, the electronic device can increase the value of the hot zone parameter. Then, based on the temperature control strategy, when the temperature of the hot zone of the processor does not reach the hot zone parameter, the working state of the processor is not a frequency reduction state, that is, the operating frequency of the processor is increased, which can avoid the situation of lag when the user opens the application.

[0126] Step S304: When the electronic device detects that the thermal zone parameter is adjusted to the second threshold, the electronic device adjusts the working state of the processor to a frequency-increasing state.

[0127] In some embodiments, when the electronic device detects a user operation instructing to open a first application, it recognizes that the operating state of the processor is a frequency reduction state. The electronic device can adjust the value of the thermal zone parameter from a first threshold to a second threshold, and the second threshold is greater than the first threshold. Then, when the electronic device detects that the thermal zone parameter is adjusted to the second threshold, it adjusts the operating state of the processor to a frequency increase state.

[0128] It can be understood that due to the temperature control strategy, the processor's hot zone temperature is greater than the hot zone parameter with a value of the first threshold, causing the current processor to be in a frequency reduction state. Therefore, the electronic device can increase the hot zone parameter to the second threshold. At this time, based on the temperature control strategy, since the hot zone temperature is not greater than the hot zone parameter, the processor's working state is no longer in a frequency reduction state, which can avoid the first application being stuck when the electronic device opens the first application, causing a poor user experience.

[0129] Please refer to Figure 4, which shows another method for controlling the frequency of a processor provided by an embodiment of the present application. The method may include some or all of the following steps:

[0130] Step S401: The PC executes a temperature control strategy; the temperature control strategy includes a thermal zone parameter, and the temperature control strategy is to adjust the CPU's operating state to a reduced frequency state when the thermal zone temperature of the PC's CPU reaches the thermal zone parameter.

[0131] In some embodiments, the PC can adjust the operating frequency of the CPU based on the thermal zone temperature of the CPU through the ACPI Thermal Zone temperature control strategy and temperature control driver.

[0132] Step S402: When the PC detects a user operation instructing to open a first application, it identifies the working state of the CPU, where the working state includes a frequency reduction state and a frequency increase state.

[0133] In some embodiments, the PC can identify whether there is a user operation to open the first application through the scene recognition application in the operating system Windows; when the scene recognition application detects a user operation indicating to open the first application, it identifies the working status of the CPU.

[0134] Step S403: When the PC identifies that the CPU is in a frequency-reduced state, the PC checks whether the safety parameters of the PC are within a preset range.

[0135] The safety parameters may include battery voltage and temperature, etc. The safety parameters may be original design variable parameters (ODM Design Variables Parameter, ODVP).

[0136] In some embodiments, when the PC detects a user operation indicating to open a first application through a scenario recognition application, the PC can call the WMI frequency-increasing interface through the operating system Windows to notify the BIOS to obtain from the EC side whether a safety scenario is triggered; when the PC receives an acquisition instruction sent from the BIOS through the EC, the PC can detect each ODVP through the EC; determine whether a safety scenario is triggered based on each ODVP through the EC; when the EC determines that the safety scenario is currently triggered, the safety scenario flag is set to 1; when the EC determines that the safety scenario is not currently triggered, the safety scenario flag is set to 0; and the safety scenario flag is sent to the BIOS through the EC.

[0137] The PC can use the EC to compare safety parameters such as battery voltage and temperature with their preset ranges to determine whether a safety scenario is currently triggered. For example, if one or more of the safety parameters falls outside their corresponding preset ranges, a safety scenario may be triggered.

[0138] Step S404: When the PC determines that the safety parameter is within a preset range, the BIOS adjusts the thermal zone parameter from a first threshold to a second threshold, where the second threshold is greater than the first threshold.

[0139] In some embodiments, when the BIOS receives a safety scenario flag of 0, the PC can determine that no safety scenario is currently triggered, and then execute the modification of the thermal zone parameters. Specifically, the BIOS can adjust the thermal zone parameters from a first threshold to a second threshold, and the second threshold is greater than the first threshold.

[0140] In other embodiments, the PC can determine that a safety scenario is currently triggered when the BIOS receives a safety scenario flag of 1, and then terminate the operation. It should be understood that before the PC increases the CPU frequency, the BIOS can obtain information from the EC regarding whether a safety scenario is currently triggered. If the BIOS determines that a safety scenario has been triggered, there is no need to disable thermal control, thereby avoiding safety incidents.

[0141] Step S405: When the PC detects that the thermal zone parameter is adjusted to the second threshold, the PC adjusts the CPU working state to the frequency increase state.

[0142] In some embodiments, the PC can call the Thermal Zone interface through the temperature control driver to increase the CPU frequency to the maximum frequency (or preset frequency).

[0143] Step S406: In response to the user operation instructing to open the first application, the PC displays the application interface corresponding to the first application.

[0144] It should be noted that the PC's execution of step S406 and the execution of steps S402 to S405 are not sequential. That is, the PC can simultaneously execute steps S402 to S405 and step S406 in response to a user operation instructing the first application to open. It should be understood that steps S402 to S405 can be completed in a relatively short period of time. Therefore, the CPU's operating frequency can be increased while the PC is displaying the application interface corresponding to the first application, thereby ensuring that the user does not experience visual lag when the first application opens.

[0145] Step S407: After a preset time, the PC adjusts the thermal zone parameter from the second threshold to the first threshold through the BIOS.

[0146] In some embodiments, after modifying the thermal zone parameters through the BIOS, the PC can notify the EC through the BIOS to prepare to restore the thermal zone parameters. The notification may include a preset time (such as 10s). For example, the PC sends an instruction (Q-event) to the BIOS through the EC after 10s. The instruction is used to instruct the temperature control strategy to be restored, that is, the thermal zone parameters are adjusted from the second threshold to the first threshold.

[0147] Step S408: When the PC detects that the hot zone parameter is adjusted to the first threshold, the PC adjusts the CPU working state to a frequency reduction state.

[0148] In some embodiments, the PC can call a thermal zone interface through a temperature control driver to reduce the CPU frequency.

[0149] Next, a frequency control method for a processor provided in an embodiment of the present application is introduced in conjunction with the software module shown in FIG2 .

[0150] Please refer to Figure 5, which is a flowchart of BIOS and EC processing provided in an embodiment of the present application.

[0151] As shown in Figure 5, when the Windows operating system calls the WMI frequency increase interface to notify the BIOS, the BIOS obtains information from the EC side through BIOS EC communication whether a safety scenario is triggered.

[0152] Furthermore, when the EC receives the acquisition instruction sent from the BIOS, it detects various safety parameters, which can be original design variable parameters (ODM Design Variables Parameter, ODVP); based on each ODVP, it determines whether to trigger a safety scenario; when it determines that the safety scenario is currently triggered, it sets the safety scenario flag to 1; when it determines that the safety scenario is currently not triggered, it sets the safety scenario flag to 0; and sends the safety scenario flag to the BIOS.

[0153] The safety parameters may be battery voltage, temperature, etc. For example, the EC may compare the safety parameters such as battery voltage and temperature with the preset ranges of the safety parameters to determine whether a safety scenario is currently triggered.

[0154] Then, when the BIOS receives the safety scenario flag as 1, it can determine that the safety scenario is currently triggered and terminate the operation. It should be understood that before performing the frequency increase process, the BIOS specifically obtains from the EC whether the safety scenario is currently triggered. If the BIOS determines that the safety scenario has been triggered, it does not need to execute the thermal control operation to avoid safety accidents.

[0155] When the BIOS receives that the safety scenario flag is 0, it can determine that no safety scenario is currently triggered, and then executes the modification of the hot zone parameters; after modifying the hot zone parameters, the BIOS notifies the EC through BIOS EC communication to prepare to restore the hot zone parameters.

[0156] When the EC receives the parameter from the BIOS requesting to restore the hot zone parameters, it can start a 10s timer; after 10s, it reports a Qevent to restore the hot zone parameters.

[0157] An embodiment of the present application also provides an electronic device, which includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the method described in the above embodiment.

[0158] The embodiments of the present application also provide a computer program product containing instructions. When the computer program product is run on an electronic device, the electronic device executes the method described in the above embodiments.

[0159] An embodiment of the present application further provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method described in the above embodiment.

[0160] It is understandable that the various embodiments of the present application can be combined arbitrarily to achieve different technical effects.

[0161] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive).

[0162] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0163] In short, the above description is only an embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of this application should be included in the scope of protection of this application.

Claims

1. A method for controlling the frequency of a processor, characterized in that: The method comprises: When the electronic device detects a user operation instructing to open the first application, the electronic device identifies a working state of a processor of the electronic device, where the working state includes a frequency reduction state and a frequency increase state; When the working state of the processor is the frequency reduction state, the electronic device adjusts the working state of the processor to the frequency increase state.

2. The method according to claim 1, characterized in that The method further comprises: The electronic device executes a temperature control strategy; the temperature control strategy includes a thermal zone parameter, and the temperature control strategy is to adjust the working state of the processor to the frequency reduction state when the temperature of the thermal zone of the processor reaches the thermal zone parameter; The adjusting the working state of the processor to the frequency-increasing state includes: the electronic device adjusting the value of the hot zone parameter from a first threshold value to a second threshold value, and the second threshold value is greater than the first threshold value; when the electronic device detects that the hot zone parameter is adjusted to the second threshold value, the working state of the processor is adjusted to the frequency-increasing state.

3. The method according to claim 2, characterized in that The value of the thermal zone parameter is adjusted by a basic input and output system BIOS in the electronic device.

4. The method according to claim 3, characterized in that Before adjusting the value of the thermal zone parameter from the first threshold to the second threshold, the method further includes: When the electronic device detects the user operation through the second application, it sends a first notification to the BIOS through the frequency increase interface, where the first notification is used to instruct the Advanced Configuration and Power Interface ACPI in the BIOS to adjust the thermal zone parameters.

5. The method according to any one of claims 1 to 4, characterized in that The operating state of the processor is adjusted by a temperature control drive in the electronic device.

6. The method according to any one of claims 2 to 5, characterized in that After adjusting the working state of the processor to the frequency increasing state, the method further includes: The electronic device adjusts the value of the thermal zone parameter from the second threshold to the first threshold after a preset time.

7. The method according to claim 6, characterized in that The electronic device adjusts the value of the thermal zone parameter from the second threshold to the first threshold after a preset time, including: When the electronic device adjusts the value of the thermal zone parameter from the first threshold value to the second threshold value, the electronic device sends a second notification to the embedded controller EC through the BIOS, wherein the second notification includes the preset time; the second notification is used to instruct the EC to adjust the thermal zone parameter from the second threshold value to the first threshold value after the preset time; The electronic device sends an instruction to the BIOS through the EC after the preset time, wherein the instruction is used to instruct the BIOS to adjust the thermal zone parameter from the second threshold to the first threshold; When the electronic device detects through the temperature control driver that the thermal area parameter is adjusted to the first threshold, the operating frequency of the processor is reduced.

8. The method according to any one of claims 1 to 7, characterized in that The adjusting the working state of the processor to the frequency increasing state includes: The electronic device adjusts the working state of the processor to the frequency-increasing state when detecting that the safety parameter of the electronic device is within a preset range, wherein the safety parameter includes at least one of a battery voltage and a temperature.

9. The method according to claim 8, characterized in that The method further comprises: After the BIOS receives the third notification, the electronic device obtains the safety scenario identifier from the EC through the BIOS; the third notification is used to instruct the BIOS to adjust the thermal zone parameters; When the electronic device determines through BIOS that the safety scenario identifier is a preset identifier, the safety parameter of the electronic device is determined in the Within the preset range.

10. The method according to any one of claims 1 to 9, characterized in that When the first application is running, the operating frequency of the processor occupied is higher than the preset frequency.

11. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1-10.

12. A computer program product comprising instructions, characterized in that When the computer program product is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 10.

13. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Frequency control method of processor and electronic equipment

    CN118585056A

  • Electronic equipment

    CN105824379A

  • An operation parameter adjustment method and a mobile terminal

    CN109831585A

  • CPU frequency modulation control method, terminal and computer readable storage medium

    CN109960584A

  • Performance optimization method and related equipment

    CN115408210A

Cited By

  • Electronic device and control method

    CN119292450A

  • Electronic device and control method

    CN119292450B