A control method, device and electronic equipment
By monitoring the parameters of the processor and adjusting its operating status, the problem of high power consumption caused by detection utilization in the existing technology is solved, and the effect of dynamically adjusting the status of the processor to optimize processing capabilities is achieved.
Patent Information
- Application Number
- CN202110969194.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-08-23
AI Technical Summary
The existing technology requires power consumption when detecting the utilization rate of the processor of electronic equipment, resulting in high power consumption of the electronic equipment, and it is impossible to adjust the operating status of the processor in real time to optimize processing capabilities.
By monitoring the first parameter and the second parameter of the processor, the operating state of the processor is determined based on the attribute information of these parameters, and when specific conditions are met, the operating state of the processor is adjusted to switch from a state with weak processing power to a state with strong processing power. status, achieving power consumption reduction without the need for real-time detection of utilization.
It effectively reduces the power consumption of electronic equipment, dynamically adjusts the operating status of the processor according to actual conditions, improves processing capabilities, and avoids unnecessary increases in power consumption.
Smart Images

Figure CN113672466B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic equipment control, and more specifically, to a control method, device and electronic equipment. Background Art
[0002] Various applications can be run in an electronic device. When the utilization rate of a processor in the electronic device is high, the power consumption of the processor is high. The processing efficiency of the processor can be improved by increasing the power provided to the processor.
[0003] Therefore, in the prior art, during the operation of an electronic device, whether the processor is in use is determined by detecting the utilization rate of the processor in the electronic device in real time.
[0004] However, since power is consumed when performing the detection, the continuous reading results in high power consumption of the electronic device. Summary of the invention
[0005] In view of this, the present application provides a control method as follows:
[0006] After the electronic device is started, if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor, wherein the first parameter is related to an operating state of the first processor;
[0007] If the second parameter satisfies a second condition, at least controlling the first processor to adjust from the current first operating state to a second operating state;
[0008] The attribute information of the first parameter is different from that of the second parameter, and the processing capability of the first processor in the first operating state is less than that in the second operating state.
[0009] The present application also provides a control device, comprising:
[0010] A monitoring module, configured to determine, after the electronic device is started, a second parameter of a first processor of the electronic device if it is monitored that the first parameter of the first processor meets a first condition, wherein the first parameter is related to an operating state of the first processor;
[0011] a processing module, configured to at least control the first processor to adjust from a current first operating state to a second operating state if the second parameter satisfies a second condition;
[0012] The attribute information of the first parameter is different from that of the second parameter, and the processing capability of the first processor in the first operating state is less than that in the second operating state.
[0013] An electronic device, comprising: a memory and a processor;
[0014] Wherein, the memory stores a processing program;
[0015] The processor is used to load and execute the processing program stored in the memory to implement each step of the control method as described in any one of the above items.
[0016] A readable storage medium stores a computer program, wherein the computer program is called and executed by a processor to implement the steps of the control method as described in any one of the above claims.
[0017] It can be known from the above technical solution that compared with the prior art, the present application provides a control method, including: after the electronic device is started, if the first parameter of the first processor of the electronic device is monitored to meet the first condition, determine the second parameter of the first processor, the first parameter is related to the running state of the first processor; if the second parameter meets the second condition, at least control the first processor to adjust from the current first running state to the second running state; wherein the attribute information of the first parameter and the second parameter are different, and the processing capacity of the first processor in the first running state is less than its processing capacity in the second running state. In this solution, after the electronic device is started, the first parameter of the first processor of the electronic device is monitored and when it meets the first condition, the second parameter is obtained, and when the second parameter meets the second condition, at least the first processor is controlled to switch from the first running state with weaker processing capacity to the second running state with stronger processing capacity, so as to adjust the running state of the first processor according to its actual situation, and there is no need to detect the utilization rate of the processor in real time, thereby reducing the power consumption of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0019] Figure 1 A flow chart of a control method embodiment 1 provided in this application;
[0020] Figure 2 A flow chart of a control method embodiment 2 provided in this application;
[0021] Figure 3 A flow chart of a control method embodiment 3 provided in this application;
[0022] Figure 4 A flow chart of a control method embodiment 4 provided in this application;
[0023] Figure 5 A flow chart of a control method embodiment 5 provided in this application;
[0024] Figure 6 A flow chart of a control method embodiment 6 provided in this application;
[0025] Figure 7 A flow chart of a control method embodiment 7 provided in the present application;
[0026] Figure 8 A flow chart of a control method embodiment 8 provided in this application;
[0027] Fig. 9 A flowchart of a control method embodiment 9 provided in the present application;
[0028] Fig.10 A flow chart of a control method embodiment 10 provided in the present application;
[0029] Fig.11 A flow chart of a control method embodiment 11 provided in the present application;
[0030] Fig.12 A flow chart of a control method embodiment 12 provided in the present application;
[0031] Fig.13 A schematic structural diagram of an embodiment of a control device provided in the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] like Figure 1 The figure is a flow chart of a control method embodiment 1 provided by the present application. The method is applied to an electronic device and includes the following steps:
[0034] Step S101: after the electronic device is started, if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor;
[0035] The first parameter is related to the running state of the first processor.
[0036] Among them, the first parameter and the second parameter have different attribute information, and the two are parameters of two dimensions. There is a certain relationship between the first parameter and the second parameter. When the first parameter satisfies the first condition, the second parameter may or may not satisfy the second condition.
[0037] Furthermore, monitoring of the first parameter does not require a large amount of power consumption.
[0038] Therefore, after the electronic device is started, that is, during the normal operation of the electronic device, the first parameter of the first processor in the electronic device is monitored, and the second parameter of the first processor is determined only when the first parameter meets the first condition.
[0039] Among them, the first parameter is related to the operating state of the first processor. The processing capacity of the first processor in the first operating state is relatively small. If the first parameter meets the first condition, it indicates that the processing capacity of the first processor may need to be improved. Therefore, it is further determined based on its second parameter.
[0040] Step S102: If the second parameter satisfies a second condition, at least the first processor is controlled to adjust from the current first operating state to a second operating state.
[0041] The processing capability of the first processor in the first operating state is smaller than the processing capability of the first processor in the second operating state.
[0042] Specifically, when the second parameter of the first processor satisfies the second condition, the processing capacity requirement of the first processor is determined, and therefore, the first processor is controlled to adjust from the current first operating state to the second operating state to improve its processing capacity.
[0043] It should be noted that in the process of determining the second parameter of the first processor, a higher power consumption of the electronic device is required. Therefore, in this solution, the second parameter is determined only after the first condition is satisfied based on the first parameter with lower power consumption, so as to reduce the power consumption of the electronic device.
[0044] The first condition and the second condition and the process of adjusting the state of the first processor will be described in detail in subsequent embodiments, and will not be described in detail in this embodiment.
[0045] In a specific implementation, after controlling the first processor to adjust the operating state, during the operation of the electronic device, the first parameter can continue to be monitored, and when the first parameter does not meet the first condition, it is determined whether the second parameter of the first processor meets the second condition, and when the second parameter does not meet the second condition, the operating state of the first processor is controlled to be adjusted to switch back to the first operating state.
[0046] In summary, a control method provided by this embodiment includes: after the electronic device is started, if the first parameter of the first processor of the electronic device is monitored to meet the first condition, determining the second parameter of the first processor, the first parameter is related to the running state of the first processor; if the second parameter meets the second condition, at least controlling the first processor to adjust from the current first running state to the second running state; wherein the attribute information of the first parameter and the second parameter are different, and the processing capacity of the first processor in the first running state is less than its processing capacity in the second running state. In this scheme, after the electronic device is started, the first parameter of the first processor of the electronic device is monitored and when it meets the first condition, the second parameter is obtained, and when the second parameter meets the second condition, at least the first processor is controlled to switch from the first running state with weaker processing capacity to the second running state with stronger processing capacity, so as to adjust the running state of the first processor according to its actual situation, and there is no need to detect the utilization rate of the processor in real time, thereby reducing the power consumption of the electronic device.
[0047] like Figure 2 The figure is a flow chart of a control method embodiment 2 provided by the present application, and the method comprises the following steps:
[0048] Step S201: after the electronic device is started, obtaining target reference information, and adjusting the first condition and / or the second condition based on at least the target reference information;
[0049] The first condition and the second condition are adjustable. Specifically, after being started, the electronic device obtains target reference information to adjust the first condition and / or the second condition based on the target reference information.
[0050] In a specific implementation, the target reference message may be obtained by a Basic Input Output System (BIOS) after the BIOS is started, or may be obtained by an OS (Operating System).
[0051] Specifically, an application may be preset, and after the device is started, the application is started to obtain the target reference message. The target reference message can represent the initial situation when the electronic device starts running after starting, and the first condition and / or the second condition are set / adjusted based on the initial situation, so that the state of the subsequent control of the first processor is more adapted to the operation of the electronic device.
[0052] The target reference information includes at least one of the following: application information created and / or run by the electronic device, environmental parameters of the environment in which the electronic device is currently located, and connection information between the electronic device and the target electronic device.
[0053] Among them, different applications have different power consumption requirements for the processor. Therefore, application information created and / or run by the electronic device is obtained to determine the power consumption requirement of the application, and then the state switching of the first processor is controlled based on the power consumption requirement in the subsequent process.
[0054] The environmental parameters may be various environment-related parameters such as ambient temperature and ambient sound.
[0055] For example, when the environmental parameter is ambient temperature, the temperature threshold can be set based on the ambient temperature when the electronic device is started. For example, in a low temperature environment, the temperature threshold can be reduced or increased according to the situation, and in a high temperature environment, the temperature threshold can be increased or decreased, and so on.
[0056] For example, when the environmental parameter is ambient sound, for example, when the noise is relatively loud, the concern for fan noise is reduced, so the noise generated by the heat dissipation module during operation can be relatively loud, the heat dissipation module can operate at high power, and the temperature threshold can be set higher; for example, in an environment with relatively low noise, the concern for fan noise is higher, and the noise generated by the heat dissipation module during operation needs to be limited to a lower volume, the heat dissipation module can only operate at a lower power, and the temperature threshold can be set lower.
[0057] In a specific implementation, the electronic device can be used as a functional device, such as a power adapter, a computing device (mainly used to provide data processing support for the device connected to it), an external GPU (Graphics Processing Unit, graphics processor) and other devices;
[0058] For example, the connection information may be information such as power supply information, computing power or image processing capability of the electronic device that can be used, etc.
[0059] Specifically, adjusting the first condition and / or the second condition at least based on the target reference information includes any one of the following:
[0060] 1. Obtaining application information created and / or run by the electronic device, and adjusting the first condition and / or the second condition based on the application information;
[0061] As an example, when the first condition is a temperature threshold and the second condition is a processor utilization, when the applications running on the electronic device are office software and game software, the temperature threshold and / or processor utilization for judgment are different accordingly.
[0062] For example, the temperature threshold corresponding to office software is lower / higher than that of game software, and the processor utilization is higher / lower than that of game software. Moreover, the relationship between the two is not limited to this example and can be set according to actual conditions.
[0063] 2. Obtaining environmental parameters of the current environment of the electronic device, and adjusting the first condition and / or the second condition based on the environmental parameters;
[0064] As an example, when the first condition is a temperature threshold and the second condition is processor utilization, when the electronic device is in a low temperature environment, the temperature threshold can be reduced or increased according to the situation; when the electronic device is in a high temperature environment, the temperature threshold can be increased or decreased, and so on. The specific setting can be based on actual conditions.
[0065] 3. obtaining connection information between the electronic device and the target electronic device, and adjusting the first condition and / or the second condition based on the connection information;
[0066] As an example, when the first condition is the temperature threshold and the second condition is the processor utilization, if the electronic device is a power adapter, the connection information may be power supply information, the temperature threshold may be reduced or increased according to the power supply information, and the processor utilization may be increased or decreased according to the power supply information, etc.
[0067] 4. obtaining application information created and / or run by the electronic device and environmental parameters of the environment in which the electronic device is currently located, and adjusting the first condition and / or the second condition based on the application information and the environmental parameters;
[0068] As an example, when the first condition is a temperature threshold and the second condition is processor utilization, the temperature threshold and / or processor utilization is adjusted based on the applications running on the electronic device and environmental parameters of the current environment, such as the ambient temperature value.
[0069] 5. Obtaining application information created and / or run by the electronic device and connection information with a target electronic device, and adjusting the first condition and / or the second condition based on the application information and the connection information;
[0070] As an example, when the first condition is a temperature threshold and the second condition is processor utilization, the temperature threshold and / or processor utilization is adjusted based on the applications running on the electronic device and the connection information, such as if the running application is a game and the connection information is image processing capability.
[0071] 6. Obtain application information created and / or run by the electronic device, connection information with the target electronic device, and environmental parameters of the environment in which the electronic device is currently located, and adjust the first condition and / or the second condition based on the application information, the connection information, and the environmental parameters.
[0072] As an example, when the first condition is a temperature threshold and the second condition is processor utilization, the temperature threshold and / or processor utilization is adjusted based on the application running on the electronic device, the ambient temperature, and connection information, such as if the running application is a game, the ambient temperature value, and image processing capability.
[0073] Step S202: if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor, wherein the first parameter is related to an operating state of the first processor;
[0074] Step S203: If the second parameter satisfies a second condition, at least the first processor is controlled to adjust from the current first operating state to a second operating state.
[0075] Among them, steps S202-203 are consistent with steps S101-102 in Example 1 and are not described in detail in this embodiment.
[0076] In summary, a control method provided in this embodiment also includes: obtaining target reference information, adjusting the first condition and / or the second condition at least based on the target reference information, wherein the target reference information includes at least one of the following: application information created and / or run by the electronic device, environmental parameters of the environment in which the electronic device is currently located, and connection information between the electronic device and the target electronic device. In this solution, the target reference message is the initial condition of the electronic device after it is started, and the first condition and / or the second condition are adjusted based on the target reference information related to the electronic device, so that the subsequent control state of the first processor is more adapted to the operation of the electronic device.
[0077] like Figure 3 The flowchart shown is a control method embodiment 3 provided by the present application, and the method comprises the following steps:
[0078] Step S301: after the electronic device is started, obtaining target reference information, and adjusting the first condition and / or the second condition based on at least the target reference information;
[0079] The target reference information includes at least one of the following: application information created and / or run by the electronic device, environmental parameters of the environment in which the electronic device is currently located, and connection information between the electronic device and the target electronic device.
[0080] Among them, step S301 is consistent with step S201 in embodiment 2, and is not described in detail in this embodiment.
[0081] Step S302: monitoring that the temperature of a first processor of the electronic device reaches a corresponding temperature threshold, and determining a usage rate of the first processor;
[0082] In this embodiment, the first parameter is temperature, the first condition is a temperature threshold, and the second parameter is a usage rate of the first processor.
[0083] In this embodiment, the temperature of the first processor during operation is first detected. The temperature is obtained by detecting the temperature of the first processor during operation by a set temperature sensor. The temperature of the first processor can be obtained by acquiring the detection value of the temperature sensor. The power consumption of this process is low.
[0084] Among them, the processing capacity of the first sensor is related to power consumption, and power consumption is related to temperature. The greater the processing capacity used by the first sensor, the greater its power consumption and the higher the temperature. When the temperature of the first sensor reaches the corresponding temperature threshold, it indicates that the processing capacity used by the first processor is relatively large. At this time, it is necessary to further determine whether it is necessary to adjust the operating state of the first processor to increase its power to support the larger processing capacity.
[0085] Specifically, after the electronic device is started, the temperature of the first processor is monitored. When the corresponding temperature threshold is reached, the usage rate of the first processor is determined. The usage rate of the first processor corresponds to its processing capacity. The higher the usage rate, the stronger the processing capacity.
[0086] As an example, the first condition is that the temperature of the first processor is greater than 50°C, and the second condition is that the processor usage rate exceeds 10%. When the temperature of the first processor is monitored to be 55°C (greater than 50°C), the usage rate detection and judgment of the first processor is triggered. The usage rate is detected to be 21% (greater than 10%), which means that the current data processing capacity of the first processor cannot support the data processing volume and the data processing capacity needs to be improved. Therefore, at least the first processor is controlled to be adjusted from the current first operating state to the second operating state with stronger processing capability.
[0087] Specifically, the monitoring that the temperature of the first processor of the electronic device reaches a corresponding temperature threshold and determining the usage rate of the first processor includes:
[0088] Step S3021: Determine application information running on the electronic device;
[0089] Specifically, in this solution, application information running on the electronic device is determined, and based on the application information, the application running on the electronic device can be known to achieve a corresponding relationship between the application and the temperature threshold, and select the corresponding temperature threshold to achieve judgment based on the corresponding temperature threshold.
[0090] The application information represents the type of application running in the electronic device, such as a first type or a second type application.
[0091] Specifically, if the application running on the electronic device belongs to the first type of application, execute step S3022; if the application running on the electronic device belongs to the second type of application, execute step S3023.
[0092] Step S3022: If the electronic device runs a first type of application and it is monitored that the temperature of a first processor of the electronic device reaches a first temperature threshold, determine the usage rate of the first processor.
[0093] Correspondingly, if the usage rate is greater than or equal to a first threshold, controlling the first processor to adjust from a current first operating power and / or a first operating kernel parameter to a second operating power and / or a second operating kernel parameter, the first operating power being less than the second operating power;
[0094] The specific first processor includes multiple cores, such as 2 cores, 4 cores, 6 cores, 8 cores, etc., and the running kernel parameters of the first processor are adjustable, such as adjusting from 8 cores to 4 cores, or from 4 cores to 6 cores, etc. This application does not limit the cores of the first processor, the number of running cores, and the adjustment method.
[0095] Among them, when a first type of application is run in the electronic device, the temperature threshold of the first processor adopts the first temperature threshold. When it is monitored that the temperature of the first processor of the electronic device reaches the first temperature threshold, the usage rate of the first processor is determined. If the usage rate is greater than or equal to the first threshold, the operating power or operating kernel parameters of the first processor are subsequently adjusted, such as increasing the operating power or adding the operating kernel or increasing the power of the operating kernel, so as to improve the processing efficiency of the first processor.
[0096] Step S3023: If the electronic device runs a second type of application and it is monitored that the temperature of the first processor of the electronic device reaches a second temperature threshold, determine the usage rate of the first processor.
[0097] Correspondingly, if the usage rate is greater than or equal to the second threshold, the first processor is controlled to adjust from the current third operating power to the fourth operating power, and the second processor of the electronic device is controlled to adjust from the current fifth operating power to the sixth operating power, and the second processor is different from the first processor.
[0098] Among them, when the second type of application is run in the electronic device, the temperature threshold of the first processor adopts the second temperature threshold. When it is monitored that the temperature of the first processor of the electronic device reaches the second temperature threshold, the usage rate of the first processor is determined. If the vector is greater than or equal to the second threshold, the operating power of the first processor and the second processor of the electronic device are respectively controlled and adjusted.
[0099] Specifically, the first processor is adjusted from the current third operating power to the fourth operating power, and the second processor is adjusted from the current fifth operating power to the sixth operating power, wherein the fourth operating power may be higher than or lower than the third operating power, and the fifth operating power may be lower than or higher than the sixth operating power, wherein the sum of the third operating power and the fifth operating power is lower than the sum of the fourth operating power and the sixth operating power, so as to improve the processing efficiency of the first processor and the second processor.
[0100] Step S303: If the usage rate satisfies a second condition, at least the first processor is controlled to adjust from a current first operating state to a second operating state.
[0101] Among them, step S303 is consistent with step S203 in embodiment 2, and is not described in detail in this embodiment.
[0102] In summary, in a control method provided by this embodiment, it is monitored that the first parameter of the first processor of the electronic device meets the first condition, and the second parameter of the first processor is determined, including: monitoring that the temperature of the first processor of the electronic device reaches the corresponding temperature threshold, and determining the usage rate of the first processor. In this scheme, the first parameter and the second parameter are the temperature and usage rate of the first processor, respectively. The temperature of the first processor is first monitored, and the power consumption of the first processor is preliminarily judged based on its temperature. When the temperature reaches the corresponding temperature threshold, it indicates that the processing power used by the first processor is relatively large. At this time, it is necessary to further determine whether the operating state of the first processor needs to be adjusted based on the usage rate of the first processor to increase its power to support the larger processing power. Since temperature monitoring consumes less power than usage rate monitoring, the power consumption of the electronic device being detected is reduced.
[0103] like Figure 4 The figure is a flow chart of a control method embodiment 4 provided by the present application, and the method comprises the following steps:
[0104] Step S401: after the electronic device is started, obtaining target reference information, and adjusting the first condition and / or the second condition at least based on the target reference information;
[0105] The target reference information includes at least one of the following: application information created and / or run by the electronic device, environmental parameters of the environment in which the electronic device is currently located, and connection information between the electronic device and the target electronic device.
[0106] Among them, step S401 is consistent with step S201 in embodiment 2, and is not described in detail in this embodiment.
[0107] Step S402: monitoring that the temperature of a first processor of the electronic device reaches a corresponding temperature threshold, and determining a usage rate of the first processor;
[0108] The specific implementation content of step S402 refers to step S302 in embodiment 3 and will not be described in detail in this embodiment.
[0109] Step S403: If the usage rate of the first processor is greater than or equal to the corresponding threshold, at least control the first processor to adjust from the current operating power and / or operating kernel parameters to the corresponding operating power and / or corresponding operating kernel parameters.
[0110] It should be noted that in step S401, after the electronic device is started, the first condition and the second condition are adjusted based on the target reference information. In this solution, the first condition is specifically greater than or equal to the temperature threshold, and the second condition is greater than or equal to the usage rate threshold.
[0111] It should be noted that in step S402, it is determined that the temperature of the first processor is greater than or equal to the corresponding temperature threshold, and the usage rate of the first processor is determined. When the usage rate of the first processor is greater than or equal to the corresponding usage rate threshold, the operating state of the first processor is adjusted.
[0112] Specifically, the operating power of the first processor is adjustable, and in this embodiment, the first processor can be adjusted from the current operating power (power in the first operating state) to the corresponding operating power (power in the second operating state).
[0113] In a specific implementation, the power of the first operating state and the power of the second operating state can be preset according to the situation. When the operating state of the first processor needs to be switched, it is achieved by adjusting the operating power.
[0114] Specifically, the first processor includes a plurality of cores, some of which may be in operation and some may be in non-operation. In this embodiment, the operation state is switched by controlling and adjusting the cores in operation in the first processor.
[0115] Among them, it can be achieved by adjusting the number of running cores or core switching, such as adjusting the number of running cores from 2 to 4; such as by controlling the switching of running cores and non-running cores, such as switching from low-performance cores to high-performance cores, so as to improve the processing capacity of the first processor.
[0116] The overall processing capability of the first processor may also be adjusted by adjusting the data processing capability of one or more running cores in the first processor.
[0117] In summary, in a control method provided in this embodiment, monitoring the first parameter of the first processor of the electronic device to meet the first condition, determining the second parameter of the first processor, including: monitoring the temperature of the first processor of the electronic device to reach the corresponding temperature threshold, determining the utilization rate of the first processor; if the second parameter meets the second condition, at least controlling the first processor to adjust from the current first operating state to the second operating state, including: if the utilization rate of the first processor is greater than or equal to the corresponding threshold, at least controlling the first processor to adjust from the current operating power and / or operating kernel parameters to the corresponding operating power and / or corresponding operating kernel parameters. In this solution, after determining that the temperature of the first processor meets the first condition and the utilization rate meets the second condition, the operating power or operating kernel parameters of the first processor are controlled to be adjusted to improve the processing capacity of the first processor.
[0118] like Figure 5 The figure is a flow chart of a control method embodiment 5 provided by the present application, and the method comprises the following steps:
[0119] Step S501: after the electronic device is started, if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor;
[0120] Among them, step S501 is consistent with step S101 in embodiment 1, and is not described in detail in this embodiment.
[0121] Step S502: If the second parameter satisfies the second condition, obtain a third parameter of the second processor;
[0122] The second processor is different from the first processor.
[0123] In this embodiment, the operating states of the first processor and the second processor are controlled and adjusted in combination.
[0124] When the first parameter of the first processor satisfies the first condition and the second parameter satisfies the second condition, the third parameter of the second processor is obtained, wherein the third parameter and the second parameter may be parameters of the same type.
[0125] For example, the first processor is a GPU, the second processor is a CPU (central processing unit), the second parameter is the usage rate of the GPU, and the third parameter is the usage rate of the CPU.
[0126] Based on the third parameter of the second processor and in combination with the second parameter of the first processor, the overall condition of the processor in the electronic device can be determined.
[0127] It should be noted that the first processor and the second processor can work in cooperation with each other, and when different software is running, the first processor and the second processor can use different electrical components. For example, when game software is running, the corresponding first processor can use a GPU and the second processor can use a CPU. For example, when office software is running, the corresponding first processor can use a CPU and the second processor can use a GPU.
[0128] Of course, the present application does not limit the specific functions of the first processor and the second processor. In a specific implementation, components can be selected as the first processor and the second processor according to the actual situation.
[0129] Step S503: If the second parameter satisfies the second condition and the third parameter satisfies the third condition, control the first processor to adjust from the current first operating state to the second operating state, and control the second processor to adjust from the current third operating state to the fourth operating state.
[0130] Among them, when the first parameter of the first processor satisfies the first condition, the second parameter satisfies the second condition, and the third parameter of the second processor satisfies the third condition, it indicates that the first processor and the second processor need to have higher processing capabilities. Therefore, the operating states of the first processor and the second processor are adjusted respectively.
[0131] Specifically, the operating state of the first processor is adjusted from the current first operating state to the second operating state to increase the processing capability of the first processor.
[0132] Specifically, the operating state of the second processor is adjusted from the current third operating state to the fourth operating state to improve the processing capability of the second processor.
[0133] As an example, the temperature of the GPU is 45°C (threshold 40°C), which is greater than the threshold and satisfies the first condition; moreover, the usage rate of the GPU is 25% (threshold 20%), which is greater than the threshold and satisfies the second condition; and the usage rate of the CPU is 15% (threshold 10%), which is greater than the threshold and satisfies the third condition.
[0134] In a specific implementation, the operation state of the CPU may be adjusted by adjusting its power consumption, such as adjusting it from 50W (watts) to 60W, so as to increase the processing capacity of the CPU.
[0135] It should be noted that the specific structures of the first processor and the second processor, and the parameter values of the first processor and the second processor are not limited to the examples in this embodiment.
[0136] In summary, in a control method provided in this embodiment, at least the first processor is controlled to be adjusted from the current first operating state to the second operating state, including: obtaining a third parameter of the second processor, the second processor is different from the first processor; if the second parameter satisfies the second condition and the third parameter satisfies the third condition, the first processor is controlled to be adjusted from the current first operating state to the second operating state, and the second processor is controlled to be adjusted from the current third operating state to the fourth operating state. In this solution, based on the fact that the parameters of the first processor and the second processor both meet the set conditions, the first processor and the second processor are controlled to adjust their operating states respectively, so that the two processors working in cooperation can be adjusted separately during operation, thereby improving the processing capacity of the processors in the electronic device as a whole.
[0137] like Figure 6 The figure is a flow chart of a control method embodiment 6 provided by the present application, and the method comprises the following steps:
[0138] Step S601: after the electronic device is started, obtaining a heat dissipation configuration of the electronic device, and adjusting the first condition and / or the second condition based on the heat dissipation configuration;
[0139] Among them, heat is generated during the operation of the electronic device. A heat dissipation device is provided in the electronic device. The heat dissipation device is provided with a rated power. The heat dissipation configuration represents the maximum heat dissipation capacity of the heat dissipation configuration. Generally speaking, the heat dissipation configuration can support the heat generated by the operation of the electronic device.
[0140] After the electronic device is started, the first condition and / or the second condition is adjusted based on the heat dissipation configuration of the electronic device.
[0141] Specifically, when adjusting the first condition and / or the second condition, other parameters may also be combined for adjustment, such as the target reference information proposed in Example 2.
[0142] Among them, if the heat dissipation configuration of the electronic device is higher, the first condition and / or the second condition can be adjusted to a higher value; if the heat dissipation configuration of the electronic device is lower, the first condition and / or the second condition can be adjusted to a lower value to ensure the safe operation of the electronic device.
[0143] Specifically, only the first condition may be adjusted, only the second condition may be adjusted, or both the first condition and the second condition may be adjusted.
[0144] For example, when the heat dissipation configuration is higher, the first condition can be adjusted to greater than 60°C, and the second condition can be adjusted to a utilization rate greater than 40%, etc.; for example, when the heat dissipation configuration is lower, the first condition can be adjusted to greater than 40°C, and the second condition can be adjusted to a utilization rate greater than 20%, etc. The specific adjustment values of the first condition and the second condition are not limited in this application.
[0145] Step S602: if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor;
[0146] Step S603: if the second parameter satisfies the second condition, obtaining a third parameter of the second processor;
[0147] Step S604: If the second parameter satisfies the second condition and the third parameter satisfies the third condition, control the first processor to adjust from the current first operating state to the second operating state, and control the second processor to adjust from the current third operating state to the fourth operating state.
[0148] Among them, steps S602-604 are consistent with steps S501-503 in Example 5 and are not described in detail in this embodiment.
[0149] In summary, a control method provided in this embodiment further includes: obtaining a heat dissipation configuration of an electronic device, and adjusting the first condition and / or the second condition based on the heat dissipation configuration. In this solution, since it is based on the first condition and the second condition to determine whether to control and adjust the operating state of the processor, and the first condition and / or the second condition is adjusted based on the heat dissipation configuration of the electronic device, the operating state of the electronic device is matched with the heat dissipation configuration, thereby improving the safety of the operation of the electronic device.
[0150] like Figure 7 The figure is a flow chart of a control method embodiment 7 provided by the present application, and the method comprises the following steps:
[0151] Step S701: after the electronic device is started, obtaining a heat dissipation configuration of the electronic device, and adjusting the first condition and / or the second condition based on the heat dissipation configuration;
[0152] The specific implementation process of step S701 refers to step S601 in embodiment 6, which will not be described in detail in this embodiment.
[0153] Step S702: if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor, wherein the first parameter is related to an operating state of the first processor;
[0154] Step S703: if the second parameter satisfies the second condition, obtaining a third parameter of a second processor, where the second processor is different from the first processor;
[0155] Among them, steps S702-703 are consistent with steps S501-502 in Example 5 and are not described in detail in this embodiment.
[0156] Step S704: If the second parameter satisfies the second condition and the third parameter satisfies the third condition, obtain the current heat dissipation parameter of the electronic device, and adjust the operating state of the first processor and / or the second processor based on the heat dissipation parameter.
[0157] Among them, if the first parameter of the first processor satisfies the first condition, the second parameter satisfies the second condition, and the third parameter of the second processor satisfies the third condition, it indicates that the processing capabilities of the first processor and the second processor need to be improved. Increasing the processing capabilities of the processor is achieved by increasing power consumption, and increased power consumption leads to higher heating of the electronic device. Therefore, in this solution, it is also necessary to combine the heat dissipation of the electronic device for processing.
[0158] Specifically, when it is determined that the second parameter of the first processor satisfies the second condition and the third parameter of the second processor satisfies the third condition, the current heat dissipation parameter of the electronic device is obtained, the heat dissipation parameter characterizes the current heat dissipation capability of the electronic device, and the operating state of the processor is adjusted based on the heat dissipation parameter.
[0159] In a specific implementation, adjusting the operating state of the processor may be adjusting only the operating state of the first processor, adjusting only the operating state of the second processor, or adjusting the operating state of the first processor and the operating state of the second processor respectively.
[0160] The adjusting of the operating state of the first processor is adjusting from the current first operating state to the second operating state.
[0161] The operation state of the second processor is adjusted from the current third operation state to the fourth operation state.
[0162] In summary, a control method provided in this embodiment also includes: obtaining the heat dissipation configuration of the electronic device, and adjusting the first condition and / or the second condition based on the heat dissipation configuration; obtaining the current heat dissipation parameters of the electronic device, and adjusting the operating state of the first processor and / or the second processor based on the heat dissipation parameters. In this solution, the first condition and / or the second condition are adjusted based on the heat dissipation configuration of the electronic device, and the processor is judged to meet the conditions based on the first condition, the second condition and the third condition, combined with the current heat dissipation parameters of the electronic device, to ensure that the operating state of the electronic device matches the heat dissipation, thereby improving the safety of the operation of the electronic device.
[0163] like Figure 8 The figure is a flow chart of a control method embodiment 8 provided by the present application, and the method comprises the following steps:
[0164] Step S801: after the electronic device is started, if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor;
[0165] Step S802: If the second parameter satisfies the second condition, obtain a third parameter of the second processor;
[0166] Among them, steps S801-802 are consistent with steps S501-502 in Example 5 and are not described in detail in this embodiment.
[0167] Step S803: if the second parameter satisfies the second condition and the third parameter satisfies the third condition, obtaining the operating parameters of the target application;
[0168] During the running of an application in the electronic device, the first processor and / or the second processor processes data of the application. In this embodiment, the running status of the first processor and the second processor is controlled based on the specific running status of the application.
[0169] Among them, the operating parameters of the target application include computing power, graphics processing capability requirements or running time.
[0170] Specifically, the computing power is the computing power required by the target application, the graphics processing capability requirement is the graphics processing capability required by the target application, and the running time indicates the running time length of the target application from the start to the present.
[0171] In specific implementations, the computing power, graphics processing capabilities, and time required for a certain application can be statistically analyzed based on actual conditions. In this solution, the required regular values are set only based on the statistical content. By comparing the operating parameters obtained during the operation of the target application with the set regular values, the operating state that needs to be adjusted can be determined.
[0172] Step S804: If the operating parameter indicates that the target application meets the first operating condition, the first processor is controlled to maintain the current first operating state, and the second processor is controlled to adjust from the third operating state to the fourth operating state.
[0173] The target application satisfies the first running condition, which indicates that the target application satisfies the processing capability requirement of the first processor and satisfies or does not satisfy the capability requirement of the second processor.
[0174] The processing capacity of the second processor in the third operating state is greater than or less than that in the fourth operating state.
[0175] For example, when the processing capacity of the third operating state of the second processor is greater than that of the fourth operating state, and the operating parameter of the target application is computing power, the current first operating state of the first processor can provide sufficient computing power, and when the computing power of the second processor in the third operating state is insufficient, the second processor is controlled to adjust from the third operating state to the fourth operating state to improve the computing power of the second processor;
[0176] For example, when the processing capability of the third operating state of the second processor is greater than that of the fourth operating state, and the operating parameter of the target application is a graphics processing capability requirement, the current first operating state of the first processor can provide sufficient graphics processing capability, and when the graphics processing capability of the second processor in the third operating state is insufficient, the second processor is controlled to adjust from the third operating state to the fourth operating state to improve the graphics processing capability of the second processor;
[0177] For example, when the processing capacity of the third operating state of the second processor is greater than that of the fourth operating state, and the operating parameter of the target application is the operating time, it is known that the operating time of the target application indicates that the target application has just been started and requires the processor to provide a larger processing capacity, and the current first operating state of the first processor can provide sufficient processing capacity, and the processing capacity of the second processor in the third operating state is insufficient, then the second processor is controlled to be adjusted from the third operating state to the fourth operating state to improve the processing capacity of the second processor;
[0178] For example, when the processing power of the second processor in the third operating state is less than that in the fourth operating state, and the operating parameter of the target application is the running time, the running time of the target application indicates that the target application is about to end and it no longer requires the processor to provide greater processing power. The first processor's current first operating state can provide sufficient processing power, and the second processor is in the third operating state. The processing power, then, controls the second processor to be adjusted from the third operating state to the fourth operating state to reduce the processing power of the second processor and reduce power consumption.
[0179] In a specific implementation, the second processor may also be controlled to maintain the third operating state or the fourth operating state according to the situation.
[0180] For example, when the operating parameter of the target application is the graphics processing capability requirement, and the current first operating state of the first processor can provide sufficient graphics processing capability, and the graphics processing capability of the second processor in the third operating state is also sufficient, the second processor is controlled to maintain the current operating state (the third operating state or the fourth operating state) to maintain the graphics processing capabilities of the two processors.
[0181] In summary, a control method provided by this embodiment further includes: obtaining the operating parameters of the target application; if the operating parameters indicate that the target application meets the first operating condition, controlling the first processor to maintain the current first operating state, controlling the second processor to maintain the third operating state or the fourth operating state, or adjusting from the third operating state to the fourth operating state. In this solution, the operating status and required processing power of the application are determined based on the operating parameters of the target application. When the operating parameters indicate that the target application meets the first operating condition, the first processor is controlled to maintain the current first operating state, and the operating state of the second processor is adjusted / maintained. The overall processing power is adjusted by only controlling and adjusting the second processor.
[0182] like Fig. 9 The figure is a flow chart of a control method embodiment 9 provided by the present application, and the method comprises the following steps:
[0183] Step S901: after the electronic device is started, if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor;
[0184] Step S902: If the second parameter satisfies the second condition, obtain a third parameter of the second processor;
[0185] Among them, steps S901-902 are consistent with steps S501-502 in Example 5 and are not described in detail in this embodiment.
[0186] Step S903: if the second parameter satisfies the second condition and the third parameter satisfies the third condition, obtaining the operating parameters of the target application;
[0187] The detailed description of step S903 refers to step S803 in Example 8, which will not be described in detail in this example.
[0188] Step S904: If the operating parameter indicates that the target application meets the second operating condition, the first processor is controlled to adjust from the current first operating state to the second operating state, and the second processor is controlled to maintain the third operating state.
[0189] The target application satisfies the second operating condition, which indicates that the target application does not meet the processing capability requirement of the first processor, but meets or does not meet the capability requirement of the second processor.
[0190] The processing capacity of the second processor in the third operating state is greater than or less than that in the fourth operating state.
[0191] For example, when the computing parameter of the target application is computing power, the target application satisfies the second operating condition, indicating that the current first operating state of the first processor cannot provide sufficient computing power, and when the computing power provided by the second processor in the third operating state is sufficient, the first processor is controlled to adjust from the first operating state to the second operating state to improve the computing power of the first processor;
[0192] For example, when the operating parameter of the target application is a graphics processing capability requirement, the first processor in the current first operating state cannot provide sufficient graphics processing capability, and when the graphics processing capability of the second processor in the third operating state is sufficient, the first processor is controlled to adjust from the first operating state to the second operating state to improve the graphics processing capability of the first processor;
[0193] For example, when the running parameter of the target application is the running time, it is known that the running time of the target application indicates that the target application has just been started and requires the processor to provide greater processing power, and the current first running state of the first processor cannot provide sufficient processing power, and when the processing power of the second processor in the third running state is sufficient (or has reached the maximum), the first processor is controlled to adjust from the first running state to the second running state to improve the processing power of the first processor.
[0194] In a specific implementation, the second processor may also be controlled to maintain the fourth operating state or to adjust from the third operating state to the fourth operating state.
[0195] Among them, if the second processor can provide sufficient computing power / image processing capability / processing capability in the fourth operating state, then continuing to be the fourth operating state of the second processor thereafter only requires adjusting the first processor from the first operating state to the second operating state.
[0196] Among them, the processing capacity of the second processor in the third operating state is greater than that in the fourth operating state, and the second processor in the third operating state cannot provide sufficient computing power / image processing capacity / processing capacity, then the first processor is adjusted from the first operating state to the second operating state and the second processor is adjusted from the third operating state to the fourth operating state.
[0197] Among them, when the processing capacity of the second processor in the third operating state is less than that in the fourth operating state, the second processor in the third operating state can provide computing power / image processing capacity / processing capacity that exceeds the demand, then the first processor is adjusted from the first operating state to the second operating state and the second processor is adjusted from the third operating state to the fourth operating state.
[0198] In summary, a control method provided by this embodiment includes: obtaining the operating parameters of the target application; if the operating parameters indicate that the target application meets the second operating condition, controlling the first processor to adjust from the current first operating state to the second operating state, controlling the second processor to maintain the third operating state or the fourth operating state, or adjusting from the third operating state to the fourth operating state. In this solution, the operating status and required processing power of the application are determined based on the operating parameters of the target application. When the operating parameters indicate that the target application meets the second operating condition, the current first operating state of the first processor is controlled to switch to the second state, and the operating state of the second processor is adjusted / maintained. The overall processing power is adjusted by adjusting the first processor in combination with maintaining / adjusting the state of the second processor.
[0199] like Fig.10 The figure is a flow chart of a control method embodiment 10 provided by the present application, and the method comprises the following steps:
[0200] Step S1001: after the electronic device is started, if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor;
[0201] Step S1002: If the second parameter satisfies the second condition, obtain the third parameter of the second processor;
[0202] Among them, steps S1001-1003 are consistent with steps S501-503 in Example 5 and are not repeated in this embodiment.
[0203] Step S1003: if the second parameter satisfies the second condition and the third parameter satisfies the third condition, obtaining the operating parameters of the target application;
[0204] The detailed description of step S1003 refers to step S803 in Example 8, which will not be described in detail in this example.
[0205] Step S1004: If the operating parameter indicates that the target application satisfies a third operating condition, the first processor is controlled to maintain the second operating state, and the second processor is controlled to adjust from the third operating state to a fourth operating state.
[0206] The target application satisfies the third running condition, which indicates that the target application satisfies the processing capability requirement of the first processor in the second running state, and the capability requirement of the second processor is met or not met.
[0207] The processing capacity of the second processor in the third operating state is greater than or less than that in the fourth operating state.
[0208] For example, when the processing capacity of the third operating state of the second processor is greater than that of the fourth operating state, and the operating parameter of the target application is computing power, the current second operating state of the first processor can provide sufficient computing power, and when the computing power of the second processor in the third operating state is insufficient, the second processor is controlled to adjust from the third operating state to the fourth operating state to improve the computing power of the second processor;
[0209] For example, when the processing capability of the third operating state of the second processor is greater than that of the fourth operating state, and the operating parameter of the target application is a graphics processing capability requirement, the current second operating state of the first processor can provide sufficient graphics processing capability, and when the graphics processing capability of the second processor in the third operating state is insufficient, the second processor is controlled to adjust from the third operating state to the fourth operating state to improve the graphics processing capability of the second processor;
[0210] For example, when the processing capacity of the third operating state of the second processor is greater than that of the fourth operating state, and the operating parameter of the target application is the operating time, it is known that the operating time of the target application indicates that the target application has just been started and requires the processor to provide a larger processing capacity, and the current second operating state of the first processor can provide sufficient processing capacity, and the processing capacity of the second processor in the third operating state is insufficient, then the second processor is controlled to be adjusted from the third operating state to the fourth operating state to improve the processing capacity of the second processor;
[0211] For example, when the processing power of the second processor in the third operating state is less than that in the fourth operating state, and the operating parameter of the target application is the running time, the running time of the target application indicates that the target application is about to end and it no longer requires the processor to provide greater processing power. The current second operating state of the first processor can provide sufficient processing power, and the processing power of the second processor in the third operating state is controlled to be adjusted from the third operating state to the fourth operating state to reduce the processing power of the second processor and reduce power consumption.
[0212] In a specific implementation, the second processor may also be controlled to maintain the third operating state or the fourth operating state according to the situation.
[0213] For example, when the operating parameter of the target application is the graphics processing capability requirement, and the current second operating state of the first processor can provide sufficient graphics processing capability, and the graphics processing capability of the second processor in the third operating state is also sufficient, the second processor is controlled to maintain the current operating state (the third operating state or the fourth operating state) to maintain the graphics processing capabilities of the two processors.
[0214] In summary, a control method provided by this embodiment includes: obtaining the operating parameters of the target application; if the operating parameters indicate that the target application meets the third operating condition, controlling the first processor to maintain the second operating state, controlling the second processor to maintain the third operating state or the fourth operating state, or adjusting from the third operating state to the fourth operating state. In this solution, the operating status and required processing power of the application are determined based on the operating parameters of the target application. When the operating parameters indicate that the target application meets the third operating condition, the second operating state of the first processor with the current higher processing power is controlled to be maintained, and the operating state of the second processor is adjusted / maintained. The overall processing power is adjusted by only controlling and adjusting the second processor.
[0215] like Fig.11 The figure is a flow chart of a control method embodiment 11 provided by the present application, and the method comprises the following steps:
[0216] Step S1101: after the electronic device is started, if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor;
[0217] Step S1102: if the second parameter satisfies the second condition, obtaining a third parameter of the second processor;
[0218] Step S1103: If the second parameter satisfies the second condition and the third parameter satisfies the third condition, control the first processor to adjust from the current first operating state to the second operating state, and control the second processor to adjust from the current third operating state to the fourth operating state;
[0219] Among them, steps S1101-1103 are consistent with steps S501-503 in Example 5 and are not repeated in this embodiment.
[0220] Step S1104: obtaining current heat dissipation parameters of the electronic device and / or operating parameters of the target application;
[0221] Among them, when an application is running in the electronic device, the first processor and / or the second processor dissipates heat during processing data of the application. In this embodiment, the heat dissipation condition of the device and / or the operation condition of the application are combined to control the operation of the heat dissipation component.
[0222] Among them, the operating parameters of the target application include computing power, graphics processing capability requirements or running time.
[0223] Specifically, the higher the computing power requirement / graphics processing power requirement, the higher the processing power of the processor required, and the more heat dissipation required.
[0224] Specifically, the running time represents the length of time the application has been running, and the overall running time of the application can be estimated based on historical operations or obtained based on application settings. Therefore, the remaining running time can be determined based on the running time. The higher the remaining running time, the higher the processing power of the processor required, and the more corresponding heat dissipation.
[0225] Among them, the current heat dissipation parameters of the electronic device and the operating parameters of the target application can be used alone as the basis for adjusting the operating state of the heat dissipation component, or they can be combined as the basis for adjusting the operating state of the heat dissipation component. In specific implementation, they can be set according to actual conditions and are not limited in this embodiment.
[0226] Step S1105: adjusting the operating state of the heat dissipation component of the electronic device at least based on the heat dissipation parameter and / or the operating parameter.
[0227] Among them, based on the heat dissipation parameters of the electronic device, it can be determined whether it is necessary to adjust the operating state of the heat dissipation components of the electronic device. For example, if the heat dissipation parameters are greater than the preset upper limit threshold, it is necessary to increase the operating state of the heat dissipation components of the electronic device, such as increasing the air volume / speed of the fan.
[0228] Among them, based on the operating parameters of the target application, the demand for the operation of the electronic device can be determined, and then it can be determined whether the operating state of the heat dissipation component of the electronic device needs to be adjusted. If the operating parameters represent a large or increasing demand, the operating state of the heat dissipation component of the electronic device needs to be increased, such as increasing the air volume / speed of the fan.
[0229] In summary, a control method provided by this embodiment further includes: obtaining the current heat dissipation parameters of the electronic device and / or the operating parameters of the target application, and adjusting the operating state of the heat dissipation component of the electronic device at least based on the heat dissipation parameters and / or the operating parameters. In this solution, the heat dissipation requirements for the heat dissipation component are determined by combining the heat dissipation parameters of the device and the operating parameters of the target application, and then the operating state of the heat dissipation component of the electronic device is adjusted, thereby improving the safety of the electronic device during operation.
[0230] like Fig.12 The figure is a flow chart of a control method embodiment 12 provided by the present application, and the method comprises the following steps:
[0231] Step S1201: after the electronic device is started, if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor;
[0232] Step S1202: If the second parameter satisfies the second condition, obtain a third parameter of the second processor;
[0233] Among them, steps S1201-1202 are consistent with steps S501-502 in Example 5 and are not repeated in this embodiment.
[0234] Step S1203: if the second parameter satisfies the second condition, and the third parameter satisfies the third condition, obtaining current heat dissipation parameters of the electronic device and / or operating parameters of the target application;
[0235] It should be noted that, in this embodiment, the heat dissipation component of the electronic device has reached the rated heat dissipation parameter and cannot be adjusted higher. Therefore, the safe operation of the electronic device is ensured by controlling the operating state of the processor.
[0236] The heat dissipation parameter is a heat dissipation parameter of a heat dissipation component operating at rated power, and represents the maximum heat dissipation capacity that the electronic device can achieve.
[0237] Among them, the operating parameters of the target application include computing power, graphics processing capability requirements or running time.
[0238] Specifically, the higher the computing power requirement / graphics processing power requirement, the higher the processing power of the processor required, and the more heat dissipation required.
[0239] Specifically, the running time represents the length of time the application has been running, and the overall running time of the application can be estimated based on historical operations or obtained based on application settings. Therefore, the remaining running time can be determined based on the running time. The higher the remaining running time, the higher the processing power of the processor required, and the more corresponding heat dissipation.
[0240] Among them, the current heat dissipation parameters of the electronic device and the operating parameters of the target application can be used alone as the basis for adjusting the operating state of the heat dissipation component, or they can be combined as the basis for adjusting the operating state of the heat dissipation component. In specific implementation, they can be set according to actual conditions and are not limited in this embodiment.
[0241] Step S1204: adjusting the operating state of the first processor and / or the second processor based at least on the heat dissipation parameter and / or the operating parameter.
[0242] Among them, when the first parameter of the first processor satisfies the first condition, the second parameter satisfies the second condition, and the third parameter of the second processor satisfies the third condition, if it is necessary to switch the first processor from the first operating state to the second operating state, it is pre-estimated that the first processor is adjusted from the first operating state to the second operating state in combination with the first heat dissipation requirement of the operating parameters, and the heat dissipation parameters meet the first heat dissipation requirement, then the operating state switching of the first processor is controlled; otherwise, based on the heat dissipation parameters, the power of the first processor is controlled to increase from the first operating state, but is less than the power corresponding to the second operating state.
[0243] Among them, when the first parameter of the first processor satisfies the first condition, the second parameter satisfies the second condition, and the third parameter of the second processor satisfies the third condition, if it is necessary to switch the second processor from the third operating state to the fourth operating state, it is pre-estimated that the second processor is adjusted from the third operating state to the fourth operating state in combination with the second heat dissipation requirement of the operating parameters, and the heat dissipation parameters meet the second heat dissipation requirement, then the operating state switching of the second processor is controlled; otherwise, based on the heat dissipation parameters, the power of the second processor is controlled to increase from the third operating state, but is less than the power corresponding to the fourth operating state.
[0244] Among them, when the first parameter of the first processor satisfies the first condition, the second parameter satisfies the second condition, and the third parameter of the second processor satisfies the third condition, if it is necessary to switch the first processor from the first operating state to the second operating state, and the second processor from the third operating state to the fourth operating state, it is pre-estimated that the first processor is adjusted from the first operating state to the second operating state in combination with the first heat dissipation requirement of the operating parameters and the second processor is adjusted from the third operating state to the fourth operating state in combination with the second heat dissipation requirement of the operating parameters, and the heat dissipation parameters meet the sum of the first heat dissipation requirement and the second heat dissipation requirement, then the operating state switching of the first processor and the second processor is controlled; otherwise, based on the heat dissipation parameters, the power of the first processor is controlled to increase from the first operating state but be less than the power corresponding to the second operating state, and / or the power of the second processor is controlled to increase from the third operating state but be less than the power corresponding to the fourth operating state.
[0245] In summary, a control method provided by this embodiment further includes: obtaining the current heat dissipation parameters of the electronic device and / or the operating parameters of the target application, and adjusting the operating state of the first processor and / or the second processor at least based on the heat dissipation parameters and / or the operating parameters. In this solution, the heat dissipation parameters of the electronic device and the operating parameters of the target application are combined to determine the maximum heat dissipation capacity that the heat dissipation component can achieve, and the operating state of the processor is controlled and adjusted based on the heat dissipation capacity to ensure the safe operation of the electronic device.
[0246] Corresponding to the above-mentioned control method embodiment provided by the present application, the present application also provides an embodiment of a device applying the control method.
[0247] like Fig.13 The structure diagram of a control device embodiment provided by the present application is shown, and the device includes the following structures: a monitoring module 1301 and a processing module 1302;
[0248] The monitoring module is used to determine a second parameter of a first processor of the electronic device after the electronic device is started, if it is monitored that a first parameter of the first processor of the electronic device meets a first condition, wherein the first parameter is related to the running state of the first processor;
[0249] Wherein, the processing module is used to at least control the first processor to adjust from the current first operating state to the second operating state if the second parameter satisfies the second condition;
[0250] The attribute information of the first parameter is different from that of the second parameter, and the processing capability of the first processor in the first operating state is less than that in the second operating state.
[0251] In a specific implementation, the monitoring module can be a part of the BIOS system or a part of the OS system, and can monitor the first parameter of the first processor during the operation of the electronic device, and trigger the acquisition of the second parameter of the first processor when the first condition is met.
[0252] Optionally, also include:
[0253] Obtain target reference information, and adjust the first condition and / or the second condition based at least on the target reference information.
[0254] Optionally, the processing module is used to:
[0255] obtaining application information created and / or run by the electronic device, and adjusting the first condition and / or the second condition based on the application information; or,
[0256] Obtaining environmental parameters of the environment in which the electronic device is currently located, and adjusting the first condition and / or the second condition based on the environmental parameters; or,
[0257] obtaining connection information between the electronic device and the target electronic device, and adjusting the first condition and / or the second condition based on the connection information; or,
[0258] Obtaining application information created and / or run by the electronic device and environmental parameters of the environment in which the electronic device is currently located, and adjusting the first condition and / or the second condition based on the application information and the environmental parameters; or,
[0259] Application information created and / or run by the electronic device and connection information with a target electronic device are obtained, and the first condition and / or the second condition are adjusted based on the application information and the connection information.
[0260] Optionally, the monitoring module is used to:
[0261] Monitoring that a temperature of a first processor of the electronic device reaches a corresponding temperature threshold, and determining a usage rate of the first processor;
[0262] and / or,
[0263] If the second parameter satisfies the second condition, at least controlling the first processor to adjust from the current first operating state to the second operating state includes:
[0264] If the usage rate of the first processor is greater than or equal to the corresponding threshold, at least the first processor is controlled to adjust from the current operating power and / or operating kernel parameters to the corresponding operating power and / or corresponding operating kernel parameters.
[0265] Optionally, the monitoring module is specifically used for:
[0266] Determine application information running on the electronic device;
[0267] If the electronic device runs a first type of application and the temperature of a first processor of the electronic device is monitored to reach a first temperature threshold, the usage rate of the first processor is determined, and correspondingly, if the usage rate is greater than or equal to the first threshold, the first processor is controlled to be adjusted from the current first operating power and / or first operating kernel parameter to a second operating power and / or second operating kernel parameter, and the first operating power is less than the second operating power; or,
[0268] If the electronic device runs a second type of application and monitors that the temperature of the first processor of the electronic device reaches a second temperature threshold, determine the usage rate of the first processor, and if the usage rate is greater than or equal to the second threshold, control the first processor to adjust from the current third operating power to the fourth operating power, and control the second processor of the electronic device to adjust from the current fifth operating power to the sixth operating power, the second processor being different from the first processor.
[0269] Optional, processing module, including:
[0270] obtaining a third parameter of a second processor, the second processor being different from the first processor;
[0271] If the second parameter satisfies the second condition and the third parameter satisfies the third condition, the first processor is controlled to be adjusted from the current first operating state to the second operating state, and the second processor is controlled to be adjusted from the current third operating state to the fourth operating state.
[0272] Optionally, also include:
[0273] a configuration module, configured to obtain a heat dissipation configuration of the electronic device, and adjust the first condition and / or the second condition based on the heat dissipation configuration; and / or,
[0274] The processing module is used to obtain current heat dissipation parameters of the electronic device and adjust the operating state of the first processor and / or the second processor based on the heat dissipation parameters.
[0275] Optionally, also include:
[0276] A first acquisition module is used to obtain the operating parameters of the target application;
[0277] The processing module is used to: if the operating parameter indicates that the target application satisfies the first operating condition, control the first processor to maintain the current first operating state, control the second processor to maintain the third operating state or the fourth operating state or adjust from the third operating state to the fourth operating state; or,
[0278] If the operating parameter indicates that the target application satisfies the second operating condition, the first processor is controlled to be adjusted from the current first operating state to the second operating state, and the second processor is controlled to maintain the third operating state or the fourth operating state or to be adjusted from the third operating state to the fourth operating state; or
[0279] If the operating parameter indicates that the target application satisfies the third operating condition, the first processor is controlled to maintain the second operating state, the second processor is controlled to maintain the third operating state or the fourth operating state, or the third operating state is adjusted to the fourth operating state.
[0280] Optionally, also include:
[0281] A second acquisition module obtains the current heat dissipation parameters of the electronic device and / or the operating parameters of the target application; triggers the heat dissipation adjustment module or the processing module;
[0282] a heat dissipation adjustment module, configured to adjust an operating state of a heat dissipation component of the electronic device based at least on the heat dissipation parameter and / or the operating parameter;
[0283] The processing module is used to adjust the operating state of the first processor and / or the second processor based at least on the heat dissipation parameter and / or the operating parameter.
[0284] Specifically, the first processor adopts a GPU, and the second processor may adopt a CPU.
[0285] In summary, a control device provided in this embodiment includes: a monitoring module, which is used to determine the second parameter of the first processor after the electronic device is started, if the first parameter of the first processor of the electronic device is monitored to meet the first condition, and the first parameter is related to the running state of the first processor; a processing module, which is used to at least control the first processor to adjust from the current first running state to the second running state if the second parameter meets the second condition; wherein the attribute information of the first parameter and the second parameter are different, and the processing capacity of the first processor in the first running state is less than its processing capacity in the second running state. In this scheme, after the electronic device is started, the first parameter of the first processor of the electronic device is monitored and when it meets the first condition, the second parameter is obtained, and when the second parameter meets the second condition, at least the first processor is controlled to switch from the first running state with weaker processing capacity to the second running state with stronger processing capacity, so as to adjust the running state of the first processor according to its actual situation, and there is no need to detect the utilization rate of the processor in real time, thereby reducing the power consumption of the electronic device.
[0286] Corresponding to the above-mentioned control method embodiment provided by the present application, the present application also provides an electronic device and a readable storage medium corresponding to the control method.
[0287] The electronic device includes: a memory and a processor;
[0288] Wherein, the memory stores a processing program;
[0289] The processor is used to load and execute the processing program stored in the memory to implement each step of the control method as described in any one of the above items.
[0290] For the specific implementation control method of the electronic device, please refer to the above control method embodiment.
[0291] The readable storage medium stores a computer program thereon, and the computer program is called and executed by a processor to implement each step of the control method as described in any one of the above claims.
[0292] Specifically, the computer program stored in the readable storage medium executes the control method, and reference may be made to the aforementioned control method embodiment.
[0293] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0294] The above description of the embodiments provided enables professionals and technicians in the field to implement or use the present application. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features provided herein.
Claims
1. A control method, comprising: After the electronic device is started, if it is monitored that a first parameter of a first processor of the electronic device meets a first condition, determining a second parameter of the first processor, wherein the first parameter is related to an operating state of the first processor; If the second parameter satisfies a second condition, at least controlling the first processor to adjust from the current first operating state to a second operating state; The attribute information of the first parameter is different from that of the second parameter, and the processing capability of the first processor in the first operating state is less than that in the second operating state.
2. The method according to claim 1, wherein: Also includes: Obtain target reference information, and adjust the first condition and / or the second condition based at least on the target reference information.
3. The method according to claim 2, wherein: Adjusting the first condition and / or the second condition based at least on the target reference information includes: obtaining application information created and / or run by the electronic device, and adjusting the first condition and / or the second condition based on the application information; or, Obtaining environmental parameters of the environment in which the electronic device is currently located, and adjusting the first condition and / or the second condition based on the environmental parameters; or, obtaining connection information between the electronic device and the target electronic device, and adjusting the first condition and / or the second condition based on the connection information; or, Obtaining application information created and / or run by the electronic device and environmental parameters of the environment in which the electronic device is currently located, and adjusting the first condition and / or the second condition based on the application information and the environmental parameters; or, Application information created and / or run by the electronic device and connection information between the electronic device and a target electronic device are obtained, and the first condition and / or the second condition are adjusted based on the application information and the connection information.
4. The method according to claim 3, wherein: Monitoring that a first parameter of a first processor of the electronic device satisfies a first condition, and determining a second parameter of the first processor includes: Monitoring that the temperature of a first processor of the electronic device reaches a corresponding temperature threshold, and determining a usage rate of the first processor; and / or, If the second parameter satisfies the second condition, at least controlling the first processor to adjust from the current first operating state to the second operating state includes: If the usage rate of the first processor is greater than or equal to the corresponding threshold, at least the first processor is controlled to adjust from the current operating power and / or operating kernel parameters to the corresponding operating power and / or corresponding operating kernel parameters.
5. The method according to claim 4, wherein the step of monitoring that the temperature of the first processor of the electronic device reaches a corresponding temperature threshold and determining the usage rate of the first processor comprises: Determine application information running on the electronic device; If the electronic device runs a first type of application and the temperature of a first processor of the electronic device is monitored to reach a first temperature threshold, determining a usage rate of the first processor, and correspondingly, if the usage rate is greater than or equal to the first threshold, controlling the first processor to adjust from a current first operating power and / or a first operating kernel parameter to a second operating power and / or a second operating kernel parameter, wherein the first operating power is less than the second operating power; or, If the electronic device runs a second type of application and monitors that the temperature of the first processor of the electronic device reaches a second temperature threshold, determine the usage rate of the first processor, and if the usage rate is greater than or equal to the second threshold, control the first processor to adjust from the current third operating power to the fourth operating power, and control the second processor of the electronic device to adjust from the current fifth operating power to the sixth operating power, the second processor being different from the first processor.
6. The method according to claim 1, wherein: At least controlling the first processor to adjust from a current first operating state to a second operating state includes: obtaining a third parameter of a second processor, the second processor being different from the first processor; If the second parameter satisfies the second condition and the third parameter satisfies the third condition, the first processor is controlled to be adjusted from the current first operating state to the second operating state, and the second processor is controlled to be adjusted from the current third operating state to the fourth operating state.
7. The method according to claim 6, further comprising: Obtaining a heat dissipation configuration of the electronic device, and adjusting the first condition and / or the second condition based on the heat dissipation configuration; and / or, A current heat dissipation parameter of the electronic device is obtained, and an operating state of the first processor and / or the second processor is adjusted based on the heat dissipation parameter.
8. The method according to claim 6, wherein: Also includes: Obtain the operating parameters of the target application; If the operating parameter indicates that the target application satisfies the first operating condition, the first processor is controlled to maintain the current first operating state, and the second processor is controlled to maintain the third operating state or the fourth operating state or to adjust from the third operating state to the fourth operating state; or If the operating parameter indicates that the target application satisfies the second operating condition, the first processor is controlled to be adjusted from the current first operating state to the second operating state, and the second processor is controlled to maintain the third operating state or the fourth operating state or to be adjusted from the third operating state to the fourth operating state; or If the operating parameter indicates that the target application satisfies the third operating condition, the first processor is controlled to maintain the second operating state, the second processor is controlled to maintain the third operating state or the fourth operating state, or the third operating state is adjusted to the fourth operating state.
9. The method according to claim 6, wherein: Also includes: Obtain current heat dissipation parameters of the electronic device and / or operating parameters of the target application, and adjust the operating state of the heat dissipation component of the electronic device at least based on the heat dissipation parameters and / or the operating parameters, or adjust the operating state of the first processor and / or the second processor at least based on the heat dissipation parameters and / or the operating parameters.
10. A control device comprising: A monitoring module, configured to determine, after the electronic device is started, a second parameter of a first processor of the electronic device if it is monitored that the first parameter of the first processor meets a first condition, wherein the first parameter is related to an operating state of the first processor; a processing module, configured to at least control the first processor to adjust from a current first operating state to a second operating state if the second parameter satisfies a second condition; The attribute information of the first parameter is different from that of the second parameter, and the processing capability of the first processor in the first operating state is less than that in the second operating state.
