Control method and electronic equipment

By using processing units in electronic devices to determine and adjust power consumption parameters, the problem of conflicts in power consumption parameter setting and lengthy adjustment paths in the prior art is solved, and efficient and accurate power consumption parameter adjustment is achieved.

CN119536493APending Publication Date: 2025-02-28LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411375845.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the prior art, dynamic tuning technology (DTT) and custom resource control systems are prone to conflicts when setting power consumption parameters, and the adjustment path is lengthy and has low efficiency.

Method used

The processing unit in the electronic device receives the status parameters and the running application program, and determines the first target parameters and the second target parameters, respectively, for adjusting the first power consumption parameters and the second power consumption parameters. This method independently adjusts the power consumption parameters by separating the control unit, avoiding conflicts, and simplifying the adjustment path.

Benefits of technology

The precise adjustment of power consumption parameters is achieved, the conflict between DTT and resource control system is avoided, the adjustment path is simplified, and the adjustment efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536493A_ABST
    Figure CN119536493A_ABST
Patent Text Reader

Abstract

The invention provides a control method and electronic equipment, and relates to the technical field of computers. The control method comprises the following steps: receiving a state parameter of the electronic equipment and / or a running application program through a processing unit in the electronic equipment, wherein the state parameter represents a running state of at least one element in the electronic equipment; a first target parameter and a second target parameter are determined through the processing unit based on the state parameter and / or the running application program, the first target parameter is used for determining a first power consumption parameter controlled by the first control unit, and the second target parameter is used for determining a second power consumption parameter controlled by the second control unit; in response to the processing unit, sending the first target parameter to the first control unit, and adjusting the first power consumption parameter based on the first target parameter through the first control unit; and in response to the processing unit, sending the second target parameter to the second control unit, and adjusting the second power consumption parameter based on the second target parameter through the second control unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a control method and an electronic device. Background Art

[0002] During the use of electronic devices such as laptops and tablets, the power consumption parameters of electronic devices can be adjusted based on the dynamic tuning technology (DTT) and the customized resource control system of the electronic devices to ensure that the electronic devices operate normally while saving power. However, when the DTT and the resource control system set the power consumption parameters at the same time, conflicts may occur. Moreover, since the setting of power consumption parameters depends on the same power consumption level, multiple power consumption parameters may affect each other. In addition, the existing power consumption parameter adjustment path is lengthy and the adjustment efficiency is low. Summary of the invention

[0003] The present disclosure provides a control method and an electronic device to at least solve the above technical problems existing in the prior art.

[0004] According to a first aspect of the present disclosure, a control method is provided, comprising: receiving, by a processing unit in an electronic device, a state parameter of the electronic device and / or a running application, the state parameter characterizing an operating state of at least one element in the electronic device; determining, by the processing unit based on the state parameter and / or the running application, a first target parameter and a second target parameter, the first target parameter being used to determine a first power consumption parameter controlled by a first control unit, and the second target parameter being used to determine a second power consumption parameter controlled by a second control unit; in response to the processing unit sending the first target parameter to the first control unit, adjusting, by the first control unit, the first power consumption parameter based on the first target parameter; in response to the processing unit sending the second target parameter to the second control unit, adjusting, by the second control unit, the second power consumption parameter based on the second target parameter.

[0005] In one possible implementation manner, determining the first target parameter and the second target parameter based on the state parameter by the processing unit includes: determining, by the processing unit based on the state parameter, the target parameters required for determining the power consumption of the electronic device, the target parameters including the current power consumption level of the electronic device; and determining, by the processing unit, the power consumption level in the target parameters as the second target parameter.

[0006] In one possible implementation manner, the determining of the first target parameter and the second target parameter by the processing unit based on the status parameter and the running application includes: determining by the processing unit based on preset conditions a target application with the highest priority among the applications currently running on the electronic device, and determining power consumption conditions required for the target application to run, the preset conditions representing the priority of the application in the electronic device; determining by the processing unit based on the power consumption conditions and the status parameters, the target parameters required for determining the power consumption of the electronic device.

[0007] In one possible implementation, a control method further includes: determining, by the processing unit, the current power consumption level and application scenario of the electronic device in the target parameters as the second target parameters.

[0008] In one possible implementation manner, determining, by the processing unit, target parameters required for determining the power consumption of the electronic device based on the power consumption conditions and state parameters, comprises: determining, by the processing unit, a target model for determining the target parameters based on a power state in the state parameters, the power state comprising a first state and a second state, the power demand required for a first model corresponding to the first state being less than the power demand required for a second model corresponding to the second state; determining, by the power consumption conditions and state parameters based on the target model, the target parameters required for determining the power consumption of the electronic device.

[0009] In one possible implementation, the state parameters include the working state of at least one processor, and the processor includes at least one of a central processing unit and a graphics processor; determining, by the processing unit based on the state parameters, the target parameters required for determining the power consumption parameters of the electronic device includes: determining, by the processing unit, the target parameters of the power consumption corresponding to at least one processor based on the total power consumption of the electronic device and the working state of at least one processor.

[0010] In one possible implementation, adjusting the first power consumption parameter based on the first target parameter by the first control unit includes: obtaining a first target value of the first power consumption parameter from the first target parameter by the first control unit, and adjusting the first power consumption parameter to the first target value.

[0011] In one possible implementation, the second power consumption parameter is adjusted based on the second target parameter by the second control unit, including: obtaining the current power consumption level and application scenario of the electronic device in the second target parameter by the second control unit, and determining the second target value of the second power consumption parameter based on the power consumption level and application scenario; adjusting the second power consumption parameter to the second target value by the second control unit.

[0012] In one possible implementation, a control method further includes: in response to switching of the working mode of the electronic device, triggering a processing unit in the electronic device to receive status parameters of the electronic device and / or a running application.

[0013] According to a second aspect of the present disclosure, there is provided an electronic device, including:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.

[0017] According to a third aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.

[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:

[0020] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0021] Figure 1 A schematic diagram of a control method according to an embodiment of the present disclosure is shown. Figure 1 ;

[0022] Figure 2 A schematic diagram of a control method according to an embodiment of the present disclosure is shown;

[0023] Figure 3 A schematic diagram of a control method according to an embodiment of the present disclosure is shown. Figure 2 ;

[0024] Figure 4 A schematic diagram of a control method according to an embodiment of the present disclosure is shown. Figure 3 ;

[0025] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0026] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0027] Figure 1 A schematic diagram of a control method according to an embodiment of the present disclosure is shown. Figure 1 ,like Figure 1 As shown, a control method includes:

[0028] Step S101: receiving status parameters of the electronic device and / or running applications via a processing unit in the electronic device.

[0029] In this embodiment, the state parameter of the electronic device represents the operating state of at least one element in the electronic device, including battery voltage, single roast or double roast state, thermal sensor value, power state, system state, graphics card state and hot plug state, etc., wherein single roast refers to the electronic device being only in a scenario of central processing unit (CPU, Central Processing Unit) intensive operation such as video encoding or scientific computing, or only in a scenario of graphics processing unit (GPU, Graphics Processing Unit) intensive operation such as games and graphics rendering software, and double roast refers to the electronic device being in a scenario of CPU intensive operation and a scenario of GPU intensive operation at the same time; the thermal sensor value can represent the temperature around the thermal sensor in the electronic device; the power state includes a direct current (DC) state and an alternating current (AC) state; the system state includes a working state (S0, Working), a low power standby state (S1, SlEPPing 1), a relatively low power standby state (S2, SlEPPing 2), a sleep state (S3, Suspend to The graphics card status includes the integrated graphics state and the discrete graphics state. The integrated graphics state can be implemented by a unified memory architecture (UMA), and the discrete graphics state can use a discrete graphics processing unit (DGPU); the hot-plug state mainly refers to the enabled state of the DGPU. For example, the DGPU may be automatically enabled in a gaming scenario and disabled in an office scenario. These state parameters and the applications running on the electronic device can be used to determine the power consumption of the electronic device. The processing unit in the electronic device is a unit that can determine the power consumption of the electronic device based on the state parameters and the applications running on the electronic device.

[0030] Figure 2 A schematic diagram of a control method according to an embodiment of the present disclosure is shown. Figure 2As shown, the processing unit can obtain the state parameters of the electronic device from the embedded controller (EC) of the electronic device, and can obtain the running application from the second control unit in the electronic device, and the second control unit can transmit the application to the processing unit through Command3. In one example, the processing unit can be an intelligent chip (AI Chip) that can determine the power consumption of the electronic device based on the state parameters and the application, and the second control unit can be a task scheduler (Dispatcher) that can determine the application running on the electronic device, and the Dispatcher is used to determine the application that should be running currently.

[0031] Step S102: determining a first target parameter and a second target parameter based on the state parameter and / or the running application program by the processing unit.

[0032] In this embodiment, the processing unit can determine all target parameters corresponding to the electronic device based on the state parameters and / or the running application program. The target parameters can be used to determine the power consumption parameters of the electronic device, such as the power consumption limit (power limit), performance and frequency (Frequency) of the CPU in the electronic device, and the power consumption allocation and total graphics power (TGP) of the GPU in the electronic device. The power consumption limit of the CPU includes long-term operation power (PL1), short-term turbo power (PL2), instantaneous turbo power (PL3) and power ceiling (PL4). PL3 is usually not open to the outside and can be ignored under normal circumstances. The performance of the CPU can be reflected by an enhanced performance profile (EPP). The EPP allows the user or system administrator to set the performance preference of the CPU, thereby affecting the response performance of the CPU under different workloads. The lower the value of the EPP, the more performance-oriented the electronic device is, and the higher the value of the EPP, the more energy-saving the electronic device is. The power consumption allocation of the GPU is realized by dynamic acceleration (Dynamic Boost) technology, that is, power performance adaptive acceleration technology (PPAB, Power Performance Adaptive Acceleration Technology). Boost), which can adjust the power consumption distribution between the CPU and GPU of an electronic device. Due to the limitation of the control interface, all power consumption parameters of an electronic device cannot be completed by only one control unit. For example, for software-level parameters such as EPP and Frequency of the CPU, it is impossible to control the hardware level through the first control unit, and it can only be controlled by the second control unit from the software level, that is, the first control unit is used to control the first power consumption parameter at the hardware level, such as PL1, PL2 in the power consumption limit of the CPU and TGP, PPAB and other power consumption parameters of the GPU, and the second control unit is used to control the second power consumption parameter at the software level, such as EPP, Frequency and PL4 of the CPU. Therefore, it is necessary to classify the target parameters, determine the target parameters used to determine the first power consumption parameters controlled by the first control unit as the first target parameters, and determine the target parameters used to determine the second power consumption parameters controlled by the second control unit as the second target parameters.

[0033] like Figure 2As shown, the first control unit may be a basic input and output system (BIOS) of an electronic device, and the BIOS is used to control the first power consumption parameter, such as PL1 and PL2 in the power consumption limit of the CPU and TGP and PPAB of the GPU; the second control unit may be a dispatcher, and the dispatcher is used to control the second power consumption parameter, such as EPP, Frequency and PL4 of the CPU. It should be emphasized that the first control unit has no control over the second power consumption parameter, and the second control unit has no control over the first power consumption parameter.

[0034] Step S103 , in response to the processing unit sending the first target parameter to the first control unit, the first control unit adjusts the first power consumption parameter based on the first target parameter.

[0035] In this embodiment, after the processing unit determines the first target parameter and the second target parameter based on the state parameter and / or the running application, the first target parameter can be sent to the first control unit, and the first control unit can determine the value of the first power consumption parameter based on the first target parameter, thereby adjusting the first power consumption parameter. Figure 2 As shown, the processing unit can send the first target parameter to the first control unit BIOS through Command1, and the first control unit adjusts the first power consumption parameter based on the first target parameter. It should be emphasized that Figure 2 The bypass in the description indicates that the first target parameter is only transmitted. For example, the first target parameter is bypassed when passing through the EC, indicating that the EC is only used to transmit the first target parameter to the first control unit BIOS without performing any processing.

[0036] Step S104 , in response to the processing unit sending the second target parameter to the second control unit, the second control unit adjusts the second power consumption parameter based on the second target parameter.

[0037] In this embodiment, after the processing unit determines the first target parameter and the second target parameter based on the state parameter and / or the running application, the second target parameter may be sent to the second control unit, and the second control unit may determine the value of the second power consumption parameter based on the second target parameter, thereby adjusting the second power consumption parameter. Figure 2 As shown, the processing unit can send the second target parameter to the second control unit Dispatcher through Command2, and the Dispatcher adjusts the second power consumption parameter based on the second target parameter.

[0038] In the present disclosure, the processing unit AI Chip and the second control unit Dispatcher together constitute a customized resource control system. The target parameters that determine the power consumption parameters of the electronic device are determined by the processing unit AI Chip. Subsequently, the power consumption parameters can be adjusted based on the target parameters by different control units. Therefore, the conflict problem caused by the simultaneous setting of power consumption parameters by DTT and the customized resource control system can be avoided. Moreover, the target parameters are determined based on the status parameters of the electronic device and / or the running application. The settings of all target parameters do not only depend on the same power consumption level, that is, the settings of all power consumption parameters do not depend on the same power consumption level. Therefore, multiple power consumption parameters will not affect each other, and the accuracy of the adjusted power consumption parameters can be guaranteed. In addition, the adjustment path of the power consumption parameters corresponding to different control units only needs to pass through the processing unit and the control unit, and does not need to pass through other control units for parameter conversion, thereby reducing the length of the adjustment path and improving the adjustment efficiency.

[0039] In another embodiment, step S102 “determining the first target parameter and the second target parameter based on the state parameter by the processing unit” includes:

[0040] The processing unit determines target parameters required for determining the power consumption of the electronic device based on the state parameters, wherein the target parameters include the current power consumption level of the electronic device; and the processing unit determines the power consumption level in the target parameters as the second target parameter.

[0041] In this embodiment, if the running application has little effect on the power consumption parameters of the electronic device, the processing unit can determine the target parameters required for determining the power consumption of the electronic device based only on the state parameters of the electronic device. The target parameters may include the values ​​of the first power consumption parameters such as PL1, PL2 in the power consumption limit of the CPU and TGP, PPAB of the GPU, and may also include the power consumption level (Power level) of the electronic device. The power consumption level can be used to determine the values ​​of the second power consumption parameters such as EPP, Frequency and PL4 of the CPU. The power consumption level can be set to eight levels, and each level is provided with corresponding values ​​of parameters such as EPP, Frequency and PL4. After all the target parameters are obtained, the values ​​of the first power consumption parameters such as PL1, PL2 in the power consumption limit of the CPU and TGP, PPAB of the GPU can be determined as the first target parameters, and the power consumption level of the electronic device can be determined as the second target parameter.

[0042] It should be emphasized that the first target parameter directly includes the values ​​of the first power consumption parameters such as PL1, PL2, TGP and PPAB. Since the first power consumption parameters are strongly correlated with the state parameters of the electronic device, the processing unit can directly determine the values ​​of the first power consumption parameters such as PL1, PL2, TGP and PPAB according to the state parameters of the electronic device; and the second target parameter includes the power consumption level of the electronic device, rather than the values ​​of the second power consumption parameters such as EPP, Frequency and PL4 of the CPU, because the state parameters of the electronic device do not directly affect the values ​​of the second power consumption parameters, and the changes of EPP, Frequency and PL4 do not need to be very frequent. Therefore, the second target parameter only gives the power consumption level of the electronic device, and the subsequent second control unit can determine the corresponding values ​​of parameters such as EPP, Frequency and PL4 according to the power consumption level.

[0043] In one possible implementation, the battery voltage in the state parameters of the electronic device can be combined with the current of components such as the CPU, GPU and solid state drive (SSD) to calculate the power of related components. If the power of a certain component is higher, the total power of the electronic device will be tilted towards this component. For example, if the power of the CPU is higher, it will be determined that the values ​​of PL1, PL2 and PL4 of the CPU will be higher, and the power consumption level of the electronic device will also be higher. If the power of the GPU is higher, it will be determined that the values ​​of TGP, PPAB, etc. of the GPU will be higher.

[0044] In one possible implementation, the single-bake or dual-bake state in the state parameters of the electronic device, if the electronic device is in the single-bake state, the performance of the current main processor will be given priority. For example, if the CPU performance is given priority and the total power consumption of the system is 100W (watts), 100W of power consumption can be supplied to the CPU first according to the needs of the CPU. At this time, the values ​​of PL1, PL2 and PL4 of the CPU will be higher, and the power consumption level of the electronic device will also be higher. If the electronic device is in the dual-bake state, the performance of the GPU may be given priority. For example, if the total power consumption of the system is 100W and the GPU requires 60W, 60W of power consumption will be allocated to the GPU first, and the remaining 40W will be allocated to the CPU. At this time, the values ​​of TGP, PPAB, etc. of the GPU will be higher.

[0045] In one possible implementation, a higher thermal sensor value in the status parameter of the electronic device means a higher temperature inside the electronic device. At this time, in order to reduce heat and prevent the temperature from rising further, the PL1, PL2 and PL4 values ​​of the CPU will be set to be smaller, and the power consumption level of the electronic device will also be lower. Correspondingly, the TGP, PPAB, etc. values ​​of the GPU will also be smaller.

[0046] In one possible implementation, different system states in the state parameters of the electronic device may also affect the power consumption parameters of the electronic device. For example, in the S0 state, the electronic device operates normally, and the values ​​of PL1, PL2 and PL4 of the CPU and the values ​​of TGP, PPAB, etc. of the GPU may be determined according to other state parameters; in the S1 state, the electronic device is in standby state, and the CPU stops working, then the values ​​of PL1, PL2 and PL4 of the CPU and the values ​​of TGP, PPAB, etc. of the GPU may all be set to be smaller.

[0047] In one possible implementation, if the graphics card state in the status parameters of the electronic device is an integrated graphics state, the values ​​of TGP and PPAB cannot be adjusted; if the graphics card state in the status parameters of the electronic device is an independent graphics state, the power consumption of the GPU may be prioritized, that is, the values ​​of TGP, PPAB, etc. of the GPU will be set higher.

[0048] In one possible implementation, the hot-plug state in the state parameters of the electronic device mainly refers to the enabled state of the DGPU. For example, the DGPU may be automatically enabled in a gaming scenario and disabled in an office scenario. If the DGPU is in the enabled state, the power consumption of the GPU may be prioritized, that is, the values ​​of the GPU's TGP, PPAB, etc. may be set higher.

[0049] In another embodiment, the state parameter includes a working state of at least one processor, and the processor includes at least one of a central processing unit and a graphics processor, and “determining, by the processing unit based on the state parameter, a target parameter required for determining a power consumption parameter of the electronic device” includes:

[0050] A target parameter of power consumption corresponding to at least one processor is determined by a processing unit based on the total power consumption of the electronic device and the working state of at least one processor.

[0051] In this embodiment, the battery voltage, single-bake or dual-bake state, thermal sensor value, power state and system state in the state parameters are all related to the working state of the CPU and GPU, and the graphics card state and hot-swap state are related to the working state of the GPU. If it is determined based on the state parameters that the electronic device is currently mainly in the working state of the CPU, the target parameters corresponding to the CPU are preferentially determined, such as the values ​​of PL1 and PL2 of the CPU and the power consumption level of the CPU, and the power consumption of the GPU is determined based on the total power consumption of the electronic device and the power consumption of the CPU, and then the values ​​of TGP, PPAB, etc. of the GPU are determined; if it is determined based on the state parameters that the electronic device is currently in the working state of the GPU, the target parameters corresponding to the GPU are preferentially determined, such as the values ​​of TGP, PPAB, etc. of the GPU, and the power consumption of the CPU is determined based on the total power consumption of the electronic device and the power consumption of the GPU, and then the values ​​of PL1 and PL2 of the CPU and the power consumption level of the CPU are determined. Thus, the power consumption distribution between multiple processors can be balanced, and the accuracy of the values ​​of the power consumption parameters corresponding to multiple processors can be ensured.

[0052] Figure 3 A schematic diagram showing a control method according to an embodiment of the present disclosure Figure 2 ,like Figure 3 As shown, a control method includes:

[0053] Step S201: receiving status parameters of the electronic device and / or running applications via a processing unit in the electronic device.

[0054] The specific implementation details of step S201 are similar to those of step S101 and will not be repeated here.

[0055] Step S202: The processing unit determines, based on preset conditions, a target application with the highest priority among the applications currently running on the electronic device, and determines a power consumption condition required for the target application to run.

[0056] In this embodiment, the second control unit is also provided with preset conditions for characterizing the priority of applications in the electronic device. The preset conditions may include an application whitelist, application priority, and applications determined based on Turbo Boost technology, etc., wherein the applications in the application whitelist are at the first priority, and the processing unit may determine the target application with the highest priority among the applications currently running on the electronic device based on the preset conditions, and the power consumption parameters of the electronic device need to give priority to the power consumption conditions required for the operation of the target application, and the power consumption conditions may be set in advance. Figure 2 As shown, the second control unit Dispatcher can send the preset conditions and the application to the processing unit AI Chip simultaneously through Command3.

[0057] In one example, if the processing unit determines the first target parameter and the second target parameter only based on the state parameter, in general, if the power of the electronic device is high, the power consumption parameters such as PL1, PL2, EPP, Frequency of the CPU and TGP, PPAB of the GPU will be high. However, if a certain program currently running on the electronic device is in the application whitelist, and the program needs to maintain the lowest power consumption during operation to reduce fan noise, at this time, even if the power of the electronic device determined based on the state parameter is high, the power consumption parameters such as PL1, PL2 and EPP need to be set lower. In this way, it can be ensured that the power consumption parameters of the system give priority to applications with higher priority, thereby improving the user experience.

[0058] Step S203: determining, by the processing unit, a target parameter required for determining the power consumption of the electronic device based on the power consumption condition and the state parameter.

[0059] In this embodiment, after determining the power consumption conditions required for the target application to run, the processing unit can determine the target parameters required for determining the power consumption parameters of the electronic device based on the power consumption conditions and the state parameters. The process of determining the target parameters needs to give priority to satisfying the power consumption conditions, and then consider the influence of the state parameters. The target parameters may include the values ​​of the first power consumption parameters such as PL1 and PL2 in the power consumption limit of the CPU and TGP and PPAB of the GPU, and may also include the power consumption level and application scenario of the electronic device.

[0060] Step S204: The processing unit determines the current power consumption level and application scenario of the electronic device in the target parameters as the second target parameters.

[0061] In this embodiment, the application scenario of the electronic device can be a game scenario, an office scenario, a video scenario, etc. The application scenario can also be used to determine the values ​​of the second power consumption parameters such as EPP, Frequency, and PL4 of the CPU. For example, in the game scenario, the value of EPP will be lower, making the electronic device more performance-oriented, while the values ​​of Frequency and PL4 will be higher, thereby improving the game frame rate and maximum power limit; in the office scenario, the value of EPP will be higher, making the electronic device more energy-saving, while the values ​​of Frequency and PL4 will be lower, thereby saving power consumption and reducing heat. Therefore, it is necessary to determine the values ​​of the first power consumption parameters such as PL1, PL2 of the CPU and TGP, PPAB of the GPU in the target parameters as the first target parameters, and determine the current power consumption level and application scenario of the electronic device as the second target parameters.

[0062] Step S205 , in response to the processing unit sending the first target parameter to the first control unit, the first control unit adjusts the first power consumption parameter based on the first target parameter.

[0063] Step S206 , in response to the processing unit sending the second target parameter to the second control unit, the second control unit adjusts the second power consumption parameter based on the second target parameter.

[0064] The specific implementation details of step S205-step S206 are similar to those of step S103-step S104 and will not be repeated here.

[0065] In another embodiment, step S203 “determining, by the processing unit, a target parameter required for determining the power consumption of the electronic device based on the power consumption condition and the state parameter” includes:

[0066] A target model for determining target parameters is determined by a processing unit based on a power state in a state parameter, wherein the power state includes a first state and a second state, and a power requirement required for a first model corresponding to the first state is less than a power requirement required for a second model corresponding to the second state; and target parameters required for determining power consumption of an electronic device are determined based on the target model through power consumption conditions and state parameters.

[0067] In this embodiment, the power state in the state parameter includes a first state and a second state, wherein the first state may be a DC state, and the second state may be an AC state. In the DC state, the electronic device aims at energy saving, and in the AC state, the electronic device aims at performance. Therefore, the power demand required by the first model corresponding to the first state is less than the power demand required by the second model corresponding to the second state. The target models used to determine the target parameters in the first state and the second state may be different. In the first state, the target model may be a smart battery life model (Smart Battery Life model). The SmartBattery Life model can extend the battery life while providing sufficient performance to meet user needs. In the second state, the target model may be an adaptive performance model (AP, Adaptive Performance Model). The AP model can maximize performance while maintaining reasonable temperature and power consumption. The target models in different power states can determine the target parameters required for determining the power consumption of the electronic device under the current power supply through power consumption conditions and state parameters, thereby improving the accuracy and reliability of the target parameters.

[0068] Figure 4 A schematic diagram of a control method according to an embodiment of the present disclosure is shown. Figure 3 ,like Figure 4 As shown, a control method includes:

[0069] Step S301: receiving status parameters of the electronic device and / or running applications via a processing unit in the electronic device.

[0070] Step S302: determining a first target parameter and a second target parameter based on the state parameter and / or the running application program by the processing unit.

[0071] The specific implementation details of step S301-step S302 are similar to those of step S101-step S102 and will not be repeated here.

[0072] Step S303, in response to the processing unit sending the first target parameter to the first control unit, the first control unit obtains a first target value of the first power consumption parameter from the first target parameter, and adjusts the first power consumption parameter to the first target value.

[0073] In this embodiment, the first target parameter directly includes the values ​​of the first power consumption parameters such as PL1, PL2, TGP and PPAB. Since the first power consumption parameters are strongly correlated with the state parameters of the electronic device, the processing unit can directly determine the values ​​of the first power consumption parameters such as PL1, PL2, TGP and PPAB according to the state parameters of the electronic device. After the processing unit sends the first target parameter to the first control unit, the first control unit can obtain the first target value of the first power consumption parameter from the first target parameter and adjust the first power consumption parameter to the first target value.

[0074] like Figure 2 As shown, the processing unit sends the first target parameter to the first control unit through Command1, the first control unit obtains the first target value of the first power consumption parameter from the first target parameter, and adjusts the first power consumption parameter based on the first target value.

[0075] Step S304, in response to the processing unit sending the second target parameter to the second control unit, the second control unit obtains the current power consumption level and application scenario of the electronic device in the second target parameter, and determines the second target value of the second power consumption parameter based on the power consumption level and the application scenario, and adjusts the second power consumption parameter to the second target value through the second control unit.

[0076] In this embodiment, the second target parameters include the power consumption level and application scenarios of the electronic device, rather than the values ​​of the second power consumption parameters such as EPP, Frequency and PL4 of the CPU, because the state parameters of the electronic device do not directly affect the values ​​of the second power consumption parameters, and the changes in EPP, Frequency and PL4 do not need to be very frequent. Therefore, the power consumption level and application scenarios of the electronic device are given in the second target parameters. Subsequently, the second control unit can determine the corresponding second target values ​​of parameters such as EPP, Frequency and PL4 according to the power consumption level and application scenarios, and adjust the second power consumption parameters based on the second target values.

[0077] In one embodiment, the power consumption level can be set to eight levels, and each level is provided with corresponding values ​​of parameters such as EPP, Frequency and PL4. The second target values ​​of the corresponding parameters such as EPP, Frequency and PL4 can be determined according to the power consumption level; the application scenarios can be game scenarios, office scenarios, video scenarios, etc. In the game scenario, the second target value of EPP will be lower, making the electronic device more performance-oriented, while the second target values ​​of Frequency and PL4 will be higher, thereby improving the game frame rate and maximum power limit; in the office scenario, the second target value of EPP will be higher, making the electronic device more energy-saving, while the second target values ​​of Frequency and PL4 will be lower, thereby saving power consumption and reducing heat.

[0078] like Figure 2 As shown, the processing unit sends the second target parameter to the second control unit through Command2, wherein the power consumption level can be sent to the second control unit, and the application scenario can be sent to the smart engine (Smart Engine), and the second control unit and the Smart Engine jointly determine the second target value of the second power consumption parameter.

[0079] In another embodiment, a control method further includes:

[0080] In response to the switching of the working mode of the electronic device, a processing unit in the electronic device is triggered to receive the status parameters of the electronic device and / or the running application program.

[0081] In this embodiment, the working mode of the electronic device is the power management mode of the electronic device, including balanced power saving mode (BSM), intelligent mode (INT) and enhanced performance mode (EPM), among which BSM gives priority to energy saving, INT considers the best balance between energy saving and performance, and EPM gives priority to performance. After the working mode of the electronic device is switched, the power consumption parameters of the electronic device such as PL1, PL2, EPP and Frequency usually need to be reset. Therefore, it is necessary to trigger the processing unit in the electronic device to receive the state parameters of the electronic device and / or the running application, and then adjust the power consumption parameters based on the state parameters and / or the running application. Figure 2 As shown, after the working mode of the electronic device is switched, the EC will generate new state parameters, and the second control unit will also generate new preset conditions and / or applications. The EC and the second control unit can send the state parameters and preset conditions and / or applications to the processing unit respectively.

[0082] In one possible implementation, responding to the switching of the working mode of the electronic device includes at least one of the following: responding to the electronic device switching the working mode based on the user's mode switching instruction, for example, if the user wants to switch the working mode of the electronic device, the mode switching instruction can be triggered by the trigger method corresponding to the electronic device, and the electronic device switches the working mode in response to the mode switching instruction; responding to the change of the working mode flag in the power management module of the electronic device, for example, the power management module will save the working mode flag of the electronic device, and when the working mode changes, the working mode flag will also change accordingly; responding to the change of the state parameter of the electronic device exceeding the first threshold, for example, when the battery voltage, temperature and other state parameters related to the working mode of the electronic device change greatly, it is considered that the working mode has changed; responding to receiving a switching signal representing the switching of the working mode of the electronic device, for example, after the working mode of the electronic device is switched, the power management module or other related modules will send a switching signal to represent the change of the working mode of the electronic device.

[0083] In another embodiment, if Figure 2 As shown, the EC can also set a fan speed table (Fan Table) based on the working mode of the electronic device and the currently running application. The Fan Table is used to define the relationship between the fan speed of the electronic device and the temperature or other status parameters, which can achieve better temperature control, noise management and energy efficiency.

[0084] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0085] Figure 5 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0086] like Figure 5As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0087] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0088] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as a control method. For example, in some embodiments, a control method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of a control method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform a control method in any other appropriate manner (e.g., by means of firmware).

[0089] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0090] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0091] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0092] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0093] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0094] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0095] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0096] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0097] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A control method, comprising: Receiving, by a processing unit in the electronic device, a state parameter of the electronic device and / or a running application, wherein the state parameter represents a running state of at least one component in the electronic device; Determining, by the processing unit, a first target parameter and a second target parameter based on the state parameter and / or the running application, wherein the first target parameter is used to determine a first power consumption parameter controlled by the first control unit, and the second target parameter is used to determine a second power consumption parameter controlled by the second control unit; In response to the processing unit sending the first target parameter to the first control unit, the first control unit adjusts the first power consumption parameter based on the first target parameter; In response to the processing unit sending the second target parameter to the second control unit, the second control unit adjusts the second power consumption parameter based on the second target parameter.

2. The method according to claim 1, wherein determining the first target parameter and the second target parameter based on the state parameter by the processing unit comprises: Determining, by the processing unit based on the state parameter, a target parameter required for determining the power consumption of the electronic device, wherein the target parameter includes a current power consumption level of the electronic device; The processing unit determines the power consumption level in the target parameter as the second target parameter.

3. The method according to claim 1, wherein determining the first target parameter and the second target parameter based on the state parameter and the running application by the processing unit comprises: Determining, by the processing unit, a target application with the highest priority among the applications currently running on the electronic device based on preset conditions, and determining a power consumption condition required for the target application to run, wherein the preset conditions represent the priority of the applications in the electronic device; The processing unit determines a target parameter required for determining the power consumption of the electronic device based on the power consumption condition and the state parameter.

4. The method according to claim 3, further comprising: The processing unit determines the current power consumption level and application scenario of the electronic device in the target parameters as the second target parameters.

5. The method according to claim 3, wherein determining, by the processing unit, a target parameter required for determining the power consumption of the electronic device based on the power consumption condition and the state parameter comprises: Determining, by the processing unit, a target model for determining the target parameter based on a power state in the state parameter, the power state comprising a first state and a second state, and a power demand required by a first model corresponding to the first state is less than a power demand required by a second model corresponding to the second state; A target parameter required for determining the power consumption of the electronic device is determined based on the target model through the power consumption condition and the state parameter.

6. The method according to claim 2, wherein the state parameter comprises a working state of at least one processor, and the processor comprises at least one of a central processing unit and a graphics processing unit; The determining, by the processing unit based on the state parameter, a target parameter required for determining the power consumption parameter of the electronic device comprises: The processing unit determines a target parameter of power consumption corresponding to at least one processor based on the total power consumption of the electronic device and the working state of at least one processor.

7. The method according to claim 1, wherein adjusting the first power consumption parameter based on the first target parameter by the first control unit comprises: The first control unit obtains a first target value of the first power consumption parameter from the first target parameter, and adjusts the first power consumption parameter to the first target value.

8. The method according to claim 1, wherein the adjusting the second power consumption parameter based on the second target parameter by the second control unit comprises: Acquire, by the second control unit, the current power consumption level and application scenario of the electronic device in the second target parameter, and determine a second target value of the second power consumption parameter based on the power consumption level and application scenario; The second power consumption parameter is adjusted to the second target value by the second control unit.

9. The method according to any one of claims 1 to 8, further comprising: In response to the switching of the working mode of the electronic device, a processing unit in the electronic device is triggered to receive the status parameters of the electronic device and / or the running application.

10. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.