A control method and a control device
By monitoring the foreground application process to determine the target processor load parameters and adjust the performance mode, the fan noise problem caused by the overall processor usage identification in the existing technology is solved, and the accuracy of device working status identification and user experience are improved.
Patent Information
- Application Number
- CN202011610837.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-12-30
AI Technical Summary
When the existing technology determines the working status of the device, the fan noise problem is caused by the identification of the overall processor usage, and the misjudgment causes the quiet mode to be unable to be effectively switched, affecting the user experience.
By monitoring the foreground application process, the load parameters of the target processor are determined, and the performance mode and heat dissipation parameters are adjusted according to the load parameters to avoid background high-power consumption processes from affecting performance mode adjustment.
It improves the accuracy of identifying the working status of electronic equipment, avoids misjudgments, ensures effective switching of quiet modes, and reduces fan noise.
Smart Images

Figure CN112667478B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic equipment, and in particular to a control method and a control device. Background Art
[0002] Quiet mode is to achieve the purpose of silence by reducing the frequency of the device and then controlling the speed and startup frequency of the fan. It is suitable for users who do not want to be disturbed by external devices such as office and study.
[0003] In the prior art, there is a technical solution that automatically identifies the user status by identifying the program running in the device, and then intelligently switches between the quiet mode and the high-performance mode. Specifically, by identifying the processor usage rate, it is determined whether to enter the quiet mode.
[0004] However, in the prior art, due to the identification of the overall processor usage, if the overall processor usage is high, the system power is increased, and when the system power is increased, the fan speed is also increased. These will cause misjudgment of the working state. For example, the device foreground is a text editing program, which should be kept quiet at this time. However, due to the high power consumption program running in the background, the system bottom layer identifies that the overall CPU Ioading is high and increases the system power, causing the problem of fan noise. Summary of the invention
[0005] The embodiments of the present application provide the following technical solutions:
[0006] A control method, comprising:
[0007] Monitoring a foreground application process running on the electronic device, and determining a load parameter of a target processor of the electronic device at least according to the foreground application process;
[0008] adjusting at least a performance mode of the electronic device according to the load parameter;
[0009] The performance mode of the electronic device is at least related to the operating parameters of the target processor.
[0010] In one embodiment, adjusting at least the performance mode of the electronic device according to the load condition includes:
[0011] Determining a preset parameter range within which the load parameter lies;
[0012] The power range and / or frequency range in which the target processor operates is adjusted according to the preset parameter range in which the load parameter is located, and the heat dissipation parameters of the electronic device are adjusted.
[0013] In one embodiment, determining the load parameter of the target processor of the electronic device at least according to the foreground application process includes:
[0014] Obtaining first attribute information of the foreground application process and second attribute information of the target processor;
[0015] If it is determined according to the first attribute information that the foreground application process is in a preset form, determining a load parameter of the target processor according to the preset form and the second attribute information; or,
[0016] If it is determined according to the first attribute information that the foreground application process is not in the preset list, the load parameter of the target processor is determined according to the historical running information of the foreground application process and the second attribute information.
[0017] In one embodiment, determining the load of the target processor of the electronic device at least according to the foreground application process includes:
[0018] If the electronic device runs a background application process, the load condition of the target processor is determined according to the foreground application process and the background application process.
[0019] In one embodiment, determining the load of the target processor of the electronic device according to the foreground application process and the background application process includes:
[0020] Obtaining first attribute information of the foreground application process, second attribute information of the target processor, and third attribute information of the background application process;
[0021] If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are in a preset form, the load parameter of the target processor is determined according to the preset form and the second attribute information; or,
[0022] If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are not in the preset list, determine the load parameter of the target processor according to the historical running information of the foreground application process and the background application process and the second attribute information; or,
[0023] If it is determined according to the first attribute information and the third attribute information that the foreground application process is in the preset form and the background application process is not in the preset form, determine the load parameter of the target processor according to the preset form, the historical running information of the background application process and the second attribute information; or,
[0024] If it is determined according to the first attribute information and the third attribute information that the background application process is in the preset form and the foreground application process is not in the preset form, the load parameters of the target processor are determined according to the preset form, the historical operation information of the foreground application process and the second attribute information.
[0025] In one embodiment, it further includes:
[0026] The operating parameters of the background application process are adjusted according to the load parameters of the target processor.
[0027] In one embodiment, adjusting the operating parameters of the background application process according to the load parameters of the target processor includes:
[0028] The processor core on which the background application process depends for running is adjusted according to the total usage rate of the target processor.
[0029] In one embodiment, adjusting the processor core on which the background application process depends according to the total usage rate of the target processor includes:
[0030] monitoring the total usage rate of the target processor, and if it is determined that the adjustment condition is met according to the total usage rate, running all current background application processes in a first target processor core set of the target processor, wherein the first target processor core set includes at least one processor core of the target processor; or,
[0031] The fourth attribute information of the background application process is obtained, and the target background application process is run in a second target processor core set of the target processor according to the fourth attribute information, wherein the second target processor core set includes at least one processor core of the target processor.
[0032] In one embodiment, after at least adjusting the performance mode of the electronic device according to the load parameter, the method further includes:
[0033] monitoring the temperature of the electronic device;
[0034] When the temperature of the device is greater than the first preset temperature for a period longer than a preset period, adjusting the performance mode of the electronic device;
[0035] When the temperature of the device is greater than a second preset temperature value, the performance mode of the electronic device is adjusted and the fan speed is increased to a maximum value, wherein the second preset temperature value is greater than the first preset temperature value.
[0036] The present application also provides a control device, comprising:
[0037] A determination module, configured to monitor a foreground application process running on the electronic device, and determine a load parameter of a target processor of the electronic device at least according to the foreground application process;
[0038] an adjustment module, configured to adjust at least a performance mode of the electronic device according to the load parameter;
[0039] The performance mode of the electronic device is at least related to the operating parameters of the target processor.
[0040] The present application also provides an electronic device, including:
[0041] processor;
[0042] a memory for storing processor-executable instructions;
[0043] Wherein, the processor is configured to:
[0044] Monitoring a foreground application process running on the electronic device, and determining a load parameter of a target processor of the electronic device at least according to the foreground application process;
[0045] adjusting at least a performance mode of the electronic device according to the load parameter;
[0046] The performance mode of the electronic device is at least related to the operating parameters of the target processor.
[0047] The present application also provides a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by a processor, the processor is enabled to perform the following operations:
[0048] Monitoring a foreground application process running on the electronic device, and determining a load parameter of a target processor of the electronic device at least according to the foreground application process;
[0049] adjusting at least a performance mode of the electronic device according to the load parameter;
[0050] The performance mode of the electronic device is at least related to the operating parameters of the target processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 This is a flow chart of a control method in one embodiment of the present application;
[0052] Figure 2 This is a flow chart of a control method in another embodiment of the present application;
[0053] Figure 3 This is a flow chart of a control method in another embodiment of the present application;
[0054] Figure 4This is an exemplary schematic diagram of hierarchically adjusting the power share of a target processor according to the CPU usage of a foreground application process in an embodiment of the present application;
[0055] Figure 5 This is a block diagram of a control device in an embodiment of the present application;
[0056] Figure 6 This is a block diagram of a control device in another embodiment of the present application. DETAILED DESCRIPTION
[0057] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0058] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0059] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0060] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.
[0061] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.
[0062] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
[0063] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.
[0064] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.
[0065] Figure 1 This is a flow chart of a control method according to an embodiment of the present application, the method comprising the following steps S11-S12:
[0066] In step S11, the foreground application process running in the electronic device is monitored, and the load parameter of the target processor of the electronic device is determined at least according to the foreground application process;
[0067] In step S12, at least a performance mode of the electronic device is adjusted according to the load parameter;
[0068] The performance mode of the electronic device is at least related to the operating parameters of the target processor.
[0069] In the present application, the foreground application process running in the electronic device is monitored, and the load parameter of the target processor of the electronic device is determined at least according to the foreground application process. Specifically, the program running in the foreground of the device may refer to the program of the layer located at the front of the screen.
[0070] At least one performance mode of the electronic device is adjusted according to the load parameter; wherein the performance mode of the electronic device is at least related to the operating parameters of the target processor. Specifically, the load parameter may refer to the processor usage of the foreground application process. The performance mode may include a quiet mode, a smart mode, and a high-performance mode.
[0071] For example, under normal circumstances, if the application running in the foreground is text editing software, the processor usage is very small, that is, the load parameter of the target processor is very small. Therefore, the quiet mode is entered according to the load parameter. If the application running in the foreground is an online game with a high processor usage, then the processor usage is large, that is, the load parameter of the target processor is large. Therefore, the smart mode or high-performance mode can be entered according to the load parameter.
[0072] In addition, it should be noted that in the present application, it is also possible to determine whether the device enters quiet mode based on the application type. For example, if the foreground application is an office application such as a text editing application or a drawing application, it is considered that the user is in an office or study state, and therefore, the quiet mode can be entered.
[0073] The beneficial effect of the present application is that the present application can determine the load parameters of the target processor of the electronic device based only on the foreground process. Therefore, it can judge whether it is necessary to enter the quiet mode based on the foreground program process, avoiding the influence of the high power consumption background process on the judgment of the performance mode adjustment result, improving the accuracy of the working status identification of the electronic device, and avoiding the misjudgment of the working status of the electronic device.
[0074] In one embodiment, Figure 2 As shown, the above step S11 can be implemented as the following steps S21-S22:
[0075] In step S21, determining the preset parameter range in which the load parameter is located;
[0076] In step S22, the power range and / or frequency range in which the target processor operates is adjusted according to the preset parameter range in which the load parameter is located, and the heat dissipation parameters of the electronic device are adjusted.
[0077] In this embodiment, the preset parameter range of the load parameter is determined; then the power range and / or frequency range of the target processor is adjusted according to the threshold parameter range of the load parameter, and the heat dissipation parameters of the electronic device are adjusted.
[0078] For example, the processor is a CPU (Central Processing Unit). Figure 4 This is a schematic diagram of adjusting the power range of the processor according to the CPU usage of the foreground application process in this application, through Figure 4 It can be seen that when the CPU usage is less than or equal to 10%, it enters quiet mode. At this time, the processor runs at 40% power, that is, 40% of the rated power. For example, the rated power is 50W, then 40% of the rated power is 20W, that is, when the CPU usage is less than or equal to 10%, the CPU power can be 20W. At this time, the CPU will not generate a lot of heat, even if the fan is not rotating, the temperature inside the device will not be too high, so you can enter quiet mode. If the CPU usage of the foreground application process is greater than 10%, then at this time, you can enter smart mode. The smart mode in this application is a graded adjustment mode, and the specific adjustment method is as follows: Figure 4 As shown, when the CPU usage is 10%-20%, the CPU power accounts for 50%; when the CPU usage is 20%-40%, the CPU power accounts for 60%, until the CPU usage is 80%-100%, the CPU power accounts for 100%. Since the greater the CPU power, the greater the power consumption, through such a hierarchical adjustment method, the CPU power consumption is reduced on the basis of meeting the CPU usage requirements.
[0079] The method for adjusting the frequency range of the target processor is similar to the CPU power adjustment method in the above example, and will not be described in detail here.
[0080] While adjusting the power range and / or frequency range, it is necessary to adjust the heat dissipation parameters of the electronic device, for example, adjusting the fan speed. Specifically, the fan speed can be adjusted in a manner similar to the CPU power adjustment method in the above example. It should be noted that some electronic devices (such as some laptops) have a fan speed adjustment mechanism in their underlying protocols during production, and the heat dissipation parameters are usually adjusted based on the hardware temperature, ambient temperature, and the preset range of the processor load parameters. For such electronic devices, the present application may also only adjust the power range and / or frequency range of the target processor, and the electronic device underlying protocol adjusts the heat dissipation parameters based on the parameters such as the power range and / or frequency range of the target processor.
[0081] In one embodiment, the above step S11 may be implemented as the following steps A1-A2 or A3:
[0082] In step A1, first attribute information of the foreground application process and second attribute information of the target processor are obtained;
[0083] In step A2, if it is determined according to the first attribute information that the foreground application process is in the preset form, a load parameter of the target processor is determined according to the preset form and the second attribute information;
[0084] In step A3, if it is determined according to the first attribute information that the foreground application process is not in the preset list, the load parameter of the target processor is determined according to the historical running information of the foreground application process and the second attribute information.
[0085] In this embodiment, the first attribute information of the foreground application process and the second attribute information of the target processor are obtained; if the foreground application process is determined to be in the preset form according to the first attribute information, the load parameter of the target processor is determined according to the preset form and the second attribute information; specifically, the first attribute information of the application process may refer to the application name, application type, etc., and the second attribute information of the target processor may refer to one or more parameters of the processor's memory size, number of cores, rated power, model, etc. Therefore, in this embodiment, the application name corresponding to the foreground application process and the model of the target processor may be obtained. If the foreground application process is determined to be in the preset form according to the application name corresponding to the foreground application process, then the load parameter of the target processor is determined according to the preset form and the model of the processor. The preset form can be used to store the corresponding relationship between the application name and the usage rate of a specific processor. In theory, without considering the aging of the processor, the processor usage rate of the same model of processors is the same when the same foreground application process is opened. Therefore, the load parameter (such as usage rate) of the target processor can be determined based on the preset form and the processor model.
[0086] If it is determined according to the first attribute information that the foreground application process is not in the preset form, the load parameter of the target processor is determined according to the historical operation information of the foreground application process and the second attribute information. The historical operation information refers to the CPU occupancy rate of the foreground application process in the previous operation process, or the historical operation data of this application process on another device, and then the load parameter of the target processor is obtained by conversion based on the historical operation data on another device, the hardware parameters of another device that affect the processor occupancy rate, and the local hardware parameters that affect the processor occupancy rate.
[0087] In one embodiment, the above step S11 can be implemented as follows:
[0088] If the electronic device runs a background application process, the load condition of the target processor is determined according to the foreground application process and the background application process.
[0089] In one embodiment, the above steps of determining the load of the target processor of the electronic device according to the foreground application process and the background application process can be implemented as the following steps B1-B2 or B1-B3 or B1-B4 or B1-B5:
[0090] In step B1, first attribute information of the foreground application process, second attribute information of the target processor, and third attribute information of the background application process are obtained;
[0091] In step B2, if it is determined that the foreground application process and the background application process are in the preset form according to the first attribute information and the third attribute information, the load parameter of the target processor is determined according to the preset form and the second attribute information;
[0092] In step B3, if it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are not in the preset list, the load parameter of the target processor is determined according to the historical running information of the foreground application process and the background application process and the second attribute information;
[0093] In step B4, if it is determined according to the first attribute information and the third attribute information that the foreground application process is in the preset form and the background application process is not in the preset form, the load parameter of the target processor is determined according to the preset form, the historical running information of the background application process and the second attribute information;
[0094] In step B5, if it is determined according to the first attribute information and the third attribute information that the background application process is in the preset form and the foreground application process is not in the preset form, the load parameters of the target processor are determined according to the preset form, the historical operation information of the foreground application process and the second attribute information.
[0095] In this embodiment, the first attribute information of the foreground application process, the second attribute information of the target processor, and the third attribute information of the background application process are obtained. Among them, the first attribute information of the foreground application process may refer to the application type or application name corresponding to the foreground application process, and the second attribute information of the second target processor may refer to the target processor model, target processor type, target processor memory size, number of cores, rated power, etc. The third attribute information of the background application process may refer to the application type or application name corresponding to the background application process.
[0096] After obtaining the first attribute information of the foreground application process, the second attribute information of the target processor, and the third attribute information of the background application process, determining whether the foreground application process and the background application process exist in the preset list according to the first attribute information and the third attribute information, and performing a subsequent target processor load parameter determination operation according to whether the foreground application process and the background application process exist in the preset list, which is specifically divided into the following four cases:
[0097] Case 1
[0098] If it is determined that the foreground application process and the background application process are in the preset form based on the first attribute information and the third attribute information, at this time, since both are in the preset form, the load parameters of the target processor (i.e., processor usage) can be determined directly based on the preset form and the second attribute information of the target processor.
[0099] For example, the first attribute information of the foreground application process is the application name of the foreground application process, and the third attribute information of the background application process is the application name of the background application process. A text editing application with application name A is running in the foreground, and a game application with application name B is running in the background. After the device traverses the preset form, it is found that A and B are both in the preset form. Since the preset form can be used to store the correspondence between the application name and the processor usage rate, the second attribute information (for example, the processor model) of the target processor can be directly determined based on the preset form to determine the load parameter (i.e., the processor usage rate) of the target processor. For example, under the target processor model stored in the preset form, the processor usage rate of A is 5%, and the processor usage rate of B is 30%. If the current device only runs two applications, A and B, the load parameter of the target processor is 35%.
[0100] Case 2
[0101] If it is determined based on the first attribute information and the third attribute information that the foreground application process and the background application process are not in the preset form, the load parameters of the target processor are determined based on the historical operation information of the foreground application process and the background application process and the second attribute information; that is, neither the foreground application process nor the background application process is in the preset form, at this time, the load parameters of the target processor can be determined based on the historical operation information of the foreground application process and the background application process and the second attribute information.
[0102] For example, the first attribute information of the foreground application process is the application name of the foreground application process, and the third attribute information of the background application process is the application name of the background application process. There is an application running in the foreground, the application name is C, and there is an application running in the background, the application name is D. After the device traverses the preset form, it is found that neither C nor D is in the preset form. Therefore, it is necessary to determine the load parameter (i.e., processor usage) of the target processor through the historical operation information of C and D and the second attribute information of the target processor (such as the processor model). The historical operation information of the foreground application process refers to the CPU occupancy rate of the currently running foreground application process in the previous operation process, or the historical operation data of this application process on another device, and then based on the historical operation data on another device, the hardware parameters of another device that affect the processor occupancy rate, and the local hardware parameters that affect the processor occupancy rate, the load parameters of the target processor are obtained. The historical operation data of the background application process is similar to the historical operation data of the foreground application process.
[0103] Case 3
[0104] If it is determined according to the first attribute information and the third attribute information that the foreground application process is in the preset form and the background application process is not in the preset form, determine the load parameter of the target processor according to the preset form, the historical running information of the background application process and the second attribute information;
[0105] Case 4
[0106] If it is determined according to the first attribute information and the third attribute information that the background application process is in the preset form and the foreground application process is not in the preset form, the load parameter of the target processor is determined according to the preset form, the historical operation information of the foreground application process and the second attribute information.
[0107] Case 3 and Case 4 are that one of the foreground application process or the background application process is in the preset form, while the other is not in the preset form. The application process in the preset form determines its corresponding processor occupancy rate through the corresponding relationship between the application process name and the processor occupancy rate recorded in the preset form, while the application process not in the threshold form determines its corresponding processor occupancy rate through historical operation information.
[0108] For example, there is an application named E running in the foreground, and an application named F running in the background. After the device traverses the preset form, it is found that E is in the preset form, but F is not in the preset form. Therefore, the preset form is used to determine the processor occupancy of application E when the target processor is used to run application E, and then the historical operation information is used to determine the processor occupancy of application F when the target processor is used to run application F. Then, based on the determined occupancy rates of application E and application F, the load parameters (i.e., processor usage) of the target processor are jointly determined.
[0109] On the contrary, if E is not in the preset form but F is in the preset form, the processor occupancy of application F when the target processor is used to run application F is determined through the preset form, and then the processor occupancy of application E when the target processor is used to run application E is determined through historical operation information, and then the load parameters of the target processor (i.e., processor usage) are jointly determined based on the determined occupancy rates of application E and application F.
[0110] In one embodiment, the method can also be implemented as follows:
[0111] The operating parameters of the background application process are adjusted according to the load parameters of the target processor.
[0112] In one embodiment, the above steps adjust the operating parameters of the background application process according to the load parameters of the target processor, which can be specifically implemented as follows:
[0113] Adjust the processor cores that background application processes rely on based on the total utilization of the target processor.
[0114] In one embodiment, the above steps adjust the processor core that the background application process depends on according to the total usage rate of the target processor, which can be specifically implemented as the following steps C1 or C2:
[0115] In step C1, the total usage rate of the target processor is monitored, and if it is determined that the adjustment condition is met according to the total usage rate, all current background application processes are run in a first target processor core set of the target processor, where the first target processor core set includes at least one processor core of the target processor;
[0116] In step C2, fourth attribute information of the background application process is obtained, and the target background application process is run in a second target processor core set of the target processor according to the fourth attribute information, where the second target processor core set includes at least one processor core of the target processor.
[0117] In this embodiment, the total usage rate of the target processor is monitored. If the adjustment condition is determined to be satisfied according to the total usage rate, all current background application processes are run in the first target processor core set of the target processor, and the first target processor core set includes at least one processor core of the target processor; specifically, under normal circumstances, when the total usage rate of the processor is greater than a certain value, a jam will occur, for example, when the total usage rate of the processor is greater than 90%, a jam will occur. Therefore, in this embodiment, determining that the adjustment condition is satisfied according to the total usage rate may refer to the total usage rate being greater than 90%, and the first target processor is a multi-core processor, which has multiple complete cores arranged therein. Because the computing resources of each core are independent and cannot be shared, one or more cores can be selected from the multiple cores to run the background application process, and the remaining cores are left for the foreground application process. In this way, the background application process and the foreground application process can be prevented from competing for resources. It should be noted that the core selected for running the background application process can be a relatively low-performance core, and the high-performance core is left for the foreground application process.
[0118] In addition, in this embodiment, the fourth attribute information of the background application process can also be obtained, and the target background application process is run in the second target processor core set of the target processor according to the fourth attribute information, and the second target processor core set includes at least one processor core of the target processor.
[0119] Specifically, the fourth attribute information may be the name or type of the background application process. In this embodiment, the application type that requires speed limit may be pre-set. After obtaining the type of the background application process, it is determined whether the background application process is an application process that requires speed limit based on the type of the background application process.
[0120] In addition, a list of application processes that need to be limited in speed is also defined. The fourth attribute information is the name of the background application process. After obtaining the name of the background application process, it is determined whether the name of the background application process is in the list of application processes that need to be limited in speed. If it is in the list, it means that the background application process needs to be placed in the second target processor core. After being placed in the second target processor core, the speed of the background application process can be limited by reducing the number of threads of the background application process. By limiting the speed in this way, more background application processes can be placed in the second target processor core.
[0121] In one embodiment, after the above step S11, the method may also be implemented as the following steps S31-S33:
[0122] In step S31, monitoring the temperature of the electronic device;
[0123] In step S32, when the temperature of the device is greater than the first preset temperature for a period longer than a preset period, adjusting the performance mode of the electronic device;
[0124] In step S33, when the temperature of the device is greater than a second preset temperature value, the performance mode of the electronic device is adjusted and the fan speed is increased to a maximum value, wherein the second preset temperature value is greater than the first preset temperature value.
[0125] In this embodiment, when the temperature of the electronic device is greater than a certain value, it will affect the normal operation of the electronic device. If the temperature is not further reduced at this time and the temperature is allowed to continue to rise, components in the electronic device may be burned out. Therefore, in this embodiment, a first preset temperature value and a second preset temperature value greater than the first preset temperature value can be set to monitor the temperature of the electronic device; when the temperature of the device is greater than the first preset temperature for a period longer than the preset period, the performance mode of the electronic device is adjusted; when the temperature of the device is greater than the second preset temperature value, the performance mode of the electronic device is adjusted and the fan speed is increased to the maximum value.
[0126] For example, when the temperature of an electronic device is greater than 70°, it will affect the normal operation of the electronic device. If the temperature is not cooled down at this time and the temperature is allowed to continue to rise, when the temperature rises to 110°, components in the electronic device may be burned. Therefore, in this embodiment, 70° can be set as the first preset temperature value, and 110° can be set as the second preset temperature value to monitor the temperature of the electronic device; when the temperature of the device is greater than 70° for a period longer than the preset period, this indicates that the temperature has not decreased. At this time, it is necessary to adjust the performance mode of the electronic device, for example, adjust the performance mode of the electronic device from quiet mode to smart mode or high-performance mode. At this time, the fan speed can be adjusted based on the specific temperature situation, or the fan speed can be adjusted through the underlying fan adjustment mechanism of the electronic device; when the temperature of the device is greater than 110°, at this time, due to the risk of burning the fan, the fan speed is increased to the maximum value while adjusting the performance mode of the electronic device.
[0127] Figure 4 The CPU is used as an example for illustrative explanation. It can be understood that the target processor of the present application is not limited to the CPU, but can also be a GPU (Graphics Processing Unit), an MCU (Microcontroller Unit, MCU), an AP (Adjunct Processor, or Application Processor), a BMC (Baseboard Management Controller, execution server remote management controller), etc.
[0128] Figure 5 This is a block diagram of a control device according to an embodiment of the present application, and the device includes the following modules:
[0129] A determination module 51, configured to monitor a foreground application process running on the electronic device, and determine a load parameter of a target processor of the electronic device at least according to the foreground application process;
[0130] An adjustment module 52, configured to adjust at least a performance mode of the electronic device according to a load parameter;
[0131] The performance mode of the electronic device is at least related to the operating parameters of the target processor.
[0132] In one embodiment, Figure 6 As shown, the adjustment module 52 includes:
[0133] A first determination submodule 61 is used to determine the preset parameter range in which the load parameter is located;
[0134] The adjustment submodule 62 is used to adjust the power range and / or frequency range of the target processor according to the preset parameter range of the load parameter, and adjust the heat dissipation parameters of the electronic device.
[0135] In one embodiment, the determining module includes:
[0136] An acquisition submodule, used to obtain first attribute information of a foreground application process and second attribute information of a target processor;
[0137] A second determination submodule is configured to determine a load parameter of a target processor according to the preset form and the second attribute information if it is determined according to the first attribute information that the foreground application process is in the preset form; or
[0138] The third determination submodule is used to determine the load parameter of the target processor according to the historical operation information of the foreground application process and the second attribute information if it is determined according to the first attribute information that the foreground application process is not in the preset list.
[0139] In one embodiment, the determining module includes:
[0140] The fourth determination submodule is used to determine the load of the target processor according to the foreground application process and the background application process when the electronic device runs a background application process.
[0141] In one embodiment, the fourth determining submodule is specifically configured to:
[0142] Obtaining first attribute information of a foreground application process, second attribute information of a target processor, and third attribute information of a background application process;
[0143] If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are in the preset form, the load parameter of the target processor is determined according to the preset form and the second attribute information; or,
[0144] If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are not in the preset list, the load parameter of the target processor is determined according to the historical running information of the foreground application process and the background application process and the second attribute information; or,
[0145] If it is determined according to the first attribute information and the third attribute information that the foreground application process is in the preset form and the background application process is not in the preset form, the load parameter of the target processor is determined according to the preset form, the historical running information of the background application process and the second attribute information; or,
[0146] If it is determined according to the first attribute information and the third attribute information that the background application process is in the preset form and the foreground application process is not in the preset form, the load parameter of the target processor is determined according to the preset form, the historical operation information of the foreground application process and the second attribute information.
[0147] In one embodiment, it further includes:
[0148] The parameter adjustment module is used to adjust the operating parameters of the background application process according to the load parameters of the target processor.
[0149] In one embodiment, the parameter adjustment module includes:
[0150] The core adjustment submodule is used to adjust the processor core on which the background application process depends according to the total usage rate of the target processor.
[0151] In one embodiment, the kernel adjustment submodule is used to:
[0152] monitoring the total usage rate of the target processor, and if it is determined that the adjustment condition is met according to the total usage rate, running all current background application processes in a first target processor core set of the target processor, where the first target processor core set includes at least one processor core of the target processor; or,
[0153] The fourth attribute information of the background application process is obtained, and the target background application process is run in a second target processor core set of the target processor according to the fourth attribute information, where the second target processor core set includes at least one processor core of the target processor.
[0154] In one embodiment, it further includes:
[0155] A monitoring module, configured to monitor the temperature of the electronic device after adjusting at least the performance mode of the electronic device according to the load parameter;
[0156] A first mode adjustment module, configured to adjust a performance mode of the electronic device when the temperature of the device is greater than a first preset temperature for a period longer than a preset period;
[0157] The second mode adjustment module is used to adjust the performance mode of the electronic device and increase the fan speed to a maximum value when the temperature of the device is greater than a second preset temperature value, wherein the second preset temperature value is greater than the first preset temperature value.
[0158] The present application also provides an electronic device, including:
[0159] processor;
[0160] a memory for storing processor-executable instructions;
[0161] Wherein, the processor is configured to:
[0162] Monitoring a foreground application process running on the electronic device, and determining a load parameter of a target processor of the electronic device at least according to the foreground application process;
[0163] adjusting at least a performance mode of the electronic device according to the load parameter;
[0164] The performance mode of the electronic device is at least related to the operating parameters of the target processor.
[0165] The processor is further configured to:
[0166] At least adjusting the performance mode of the electronic device according to the load condition includes:
[0167] Determining a preset parameter range within which the load parameter lies;
[0168] The power range and / or frequency range in which the target processor operates is adjusted according to the preset parameter range in which the load parameter is located, and the heat dissipation parameters of the electronic device are adjusted.
[0169] The processor is further configured to:
[0170] Wherein, determining the load parameter of the target processor of the electronic device at least according to the foreground application process includes:
[0171] Obtaining first attribute information of the foreground application process and second attribute information of the target processor;
[0172] If it is determined according to the first attribute information that the foreground application process is in a preset form, determining a load parameter of the target processor according to the preset form and the second attribute information; or,
[0173] If it is determined according to the first attribute information that the foreground application process is not in the preset list, the load parameter of the target processor is determined according to the historical running information of the foreground application process and the second attribute information.
[0174] The processor is further configured to:
[0175] Wherein, determining the load of the target processor of the electronic device at least according to the foreground application process includes:
[0176] If the electronic device runs a background application process, the load condition of the target processor is determined according to the foreground application process and the background application process.
[0177] The processor is further configured to:
[0178] Determining the load of a target processor of the electronic device according to the foreground application process and the background application process includes:
[0179] Obtaining first attribute information of the foreground application process, second attribute information of the target processor, and third attribute information of the background application process;
[0180] If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are in a preset form, the load parameter of the target processor is determined according to the preset form and the second attribute information; or,
[0181] If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are not in the preset list, determine the load parameter of the target processor according to the historical running information of the foreground application process and the background application process and the second attribute information; or,
[0182] If it is determined according to the first attribute information and the third attribute information that the foreground application process is in the preset form and the background application process is not in the preset form, determine the load parameter of the target processor according to the preset form, the historical running information of the background application process and the second attribute information; or,
[0183] If it is determined according to the first attribute information and the third attribute information that the background application process is in the preset form and the foreground application process is not in the preset form, the load parameters of the target processor are determined according to the preset form, the historical operation information of the foreground application process and the second attribute information.
[0184] The processor is further configured to:
[0185] The operating parameters of the background application process are adjusted according to the load parameters of the target processor.
[0186] The processor is further configured to:
[0187] The adjusting the operating parameters of the background application process according to the load parameters of the target processor includes:
[0188] The processor core on which the background application process depends for running is adjusted according to the total usage rate of the target processor.
[0189] The processor is further configured to:
[0190] The step of adjusting the processor core on which the background application process depends according to the total usage rate of the target processor includes:
[0191] monitoring the total usage rate of the target processor, and if it is determined that the adjustment condition is met according to the total usage rate, running all current background application processes in a first target processor core set of the target processor, wherein the first target processor core set includes at least one processor core of the target processor; or,
[0192] The fourth attribute information of the background application process is obtained, and the target background application process is run in a second target processor core set of the target processor according to the fourth attribute information, wherein the second target processor core set includes at least one processor core of the target processor.
[0193] The processor is further configured to:
[0194] After adjusting at least the performance mode of the electronic device according to the load parameter, monitoring the temperature of the electronic device;
[0195] When the temperature of the device is greater than the first preset temperature for a period longer than a preset period, adjusting the performance mode of the electronic device;
[0196] When the temperature of the device is greater than a second preset temperature value, the performance mode of the electronic device is adjusted and the fan speed is increased to a maximum value, wherein the second preset temperature value is greater than the first preset temperature value.
[0197] The present application also provides a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by a processor, the processor is enabled to execute a control method, the method comprising:
[0198] Monitoring a foreground application process running on the electronic device, and determining a load parameter of a target processor of the electronic device at least according to the foreground application process;
[0199] adjusting at least a performance mode of the electronic device according to the load parameter;
[0200] The performance mode of the electronic device is at least related to the operating parameters of the target processor.
[0201] The instructions in the storage medium also include:
[0202] At least adjusting the performance mode of the electronic device according to the load condition includes:
[0203] Determining a preset parameter range within which the load parameter lies;
[0204] The power range and / or frequency range in which the target processor operates is adjusted according to the preset parameter range in which the load parameter is located, and the heat dissipation parameters of the electronic device are adjusted.
[0205] The instructions in the storage medium also include:
[0206] Wherein, determining the load parameter of the target processor of the electronic device at least according to the foreground application process includes:
[0207] Obtaining first attribute information of the foreground application process and second attribute information of the target processor;
[0208] If it is determined according to the first attribute information that the foreground application process is in a preset form, determining a load parameter of the target processor according to the preset form and the second attribute information; or,
[0209] If it is determined according to the first attribute information that the foreground application process is not in the preset list, the load parameter of the target processor is determined according to the historical running information of the foreground application process and the second attribute information.
[0210] The instructions in the storage medium also include:
[0211] Wherein, determining the load of the target processor of the electronic device at least according to the foreground application process includes:
[0212] If the electronic device runs a background application process, the load condition of the target processor is determined according to the foreground application process and the background application process.
[0213] The instructions in the storage medium also include:
[0214] Wherein, determining the load of the target processor of the electronic device according to the foreground application process and the background application process includes:
[0215] Obtaining first attribute information of the foreground application process, second attribute information of the target processor, and third attribute information of the background application process;
[0216] If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are in a preset form, the load parameter of the target processor is determined according to the preset form and the second attribute information; or,
[0217] If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are not in the preset list, determine the load parameter of the target processor according to the historical running information of the foreground application process and the background application process and the second attribute information; or,
[0218] If it is determined according to the first attribute information and the third attribute information that the foreground application process is in the preset form and the background application process is not in the preset form, determine the load parameter of the target processor according to the preset form, the historical running information of the background application process and the second attribute information; or,
[0219] If it is determined according to the first attribute information and the third attribute information that the background application process is in the preset form and the foreground application process is not in the preset form, the load parameters of the target processor are determined according to the preset form, the historical operation information of the foreground application process and the second attribute information.
[0220] The instructions in the storage medium also include:
[0221] The operating parameters of the background application process are adjusted according to the load parameters of the target processor.
[0222] The instructions in the storage medium also include:
[0223] The adjusting the operating parameters of the background application process according to the load parameters of the target processor includes:
[0224] The processor core on which the background application process depends for running is adjusted according to the total usage rate of the target processor.
[0225] The instructions in the storage medium also include:
[0226] The step of adjusting the processor core on which the background application process depends according to the total usage rate of the target processor includes:
[0227] monitoring the total usage rate of the target processor, and if it is determined that the adjustment condition is met according to the total usage rate, running all current background application processes in a first target processor core set of the target processor, wherein the first target processor core set includes at least one processor core of the target processor; or,
[0228] The fourth attribute information of the background application process is obtained, and the target background application process is run in a second target processor core set of the target processor according to the fourth attribute information, wherein the second target processor core set includes at least one processor core of the target processor.
[0229] The instructions in the storage medium also include:
[0230] After adjusting at least the performance mode of the electronic device according to the load parameter, monitoring the temperature of the electronic device;
[0231] When the temperature of the device is greater than the first preset temperature for a period longer than a preset period, adjusting the performance mode of the electronic device;
[0232] When the temperature of the device is greater than a second preset temperature value, the performance mode of the electronic device is adjusted and the fan speed is increased to a maximum value, wherein the second preset temperature value is greater than the first preset temperature value.
[0233] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A control method, include: Monitoring a foreground application process running on the electronic device, and determining a load parameter of a target processor of the electronic device at least according to the foreground application process; adjusting at least a performance mode of the electronic device according to the load parameter; Wherein, the performance mode of the electronic device is at least related to the operating parameters of the target processor; The step of determining a load parameter of a target processor of the electronic device at least according to the foreground application process comprises: Obtaining first attribute information of the foreground application process and second attribute information of the target processor; If it is determined according to the first attribute information that the foreground application process is in a preset form, a load parameter of the target processor is determined according to the preset form and the second attribute information.
2. The method according to claim 1, at least adjusting the performance mode of the electronic device according to the load parameter, include: Determining a preset parameter range within which the load parameter lies; The power range and / or frequency range in which the target processor operates is adjusted according to the preset parameter range in which the load parameter is located, and the heat dissipation parameters of the electronic device are adjusted.
3. The method according to claim 1, in, Determining a load parameter of a target processor of the electronic device at least according to the foreground application process, further comprising: If it is determined according to the first attribute information that the foreground application process is not in the preset list, the load parameter of the target processor is determined according to the historical running information of the foreground application process and the second attribute information.
4. The method according to any one of claims 1 to 3, in, Determining a load parameter of a target processor of the electronic device at least according to the foreground application process includes: If the electronic device runs a background application process, the load parameter of the target processor is determined according to the foreground application process and the background application process.
5. The method according to claim 4, in, Determining a load parameter of a target processor of an electronic device according to the foreground application process and the background application process includes: Obtaining first attribute information of the foreground application process, second attribute information of the target processor, and third attribute information of the background application process; If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are in a preset form, the load parameter of the target processor is determined according to the preset form and the second attribute information; or, If it is determined according to the first attribute information and the third attribute information that the foreground application process and the background application process are not in the preset form, determine the load parameter of the target processor according to the historical running information of the foreground application process and the background application process and the second attribute information; or, If it is determined according to the first attribute information and the third attribute information that the foreground application process is in the preset form and the background application process is not in the preset form, determine the load parameter of the target processor according to the preset form, the historical running information of the background application process and the second attribute information; or, If it is determined according to the first attribute information and the third attribute information that the background application process is in the preset form and the foreground application process is not in the preset form, the load parameters of the target processor are determined according to the preset form, the historical operation information of the foreground application process and the second attribute information.
6. The method according to claim 1, further comprising: include: The operating parameters of the background application process are adjusted according to the load parameters of the target processor.
7. The method according to claim 6, wherein the operating parameters of the background application process are adjusted according to the load parameters of the target processor. include: The processor core on which the background application process depends for running is adjusted according to the total usage rate of the target processor.
8. The method according to claim 7, wherein the processor core on which the background application process depends is adjusted according to the total usage rate of the target processor. include: monitoring the total usage rate of the target processor, and if it is determined according to the total usage rate that an adjustment condition is met, running all current background application processes in a first target processor core set of the target processor, wherein the first target processor core set includes at least one processor core of the target processor; or, The fourth attribute information of the background application process is obtained, and the target background application process is run in a second target processor core set of the target processor according to the fourth attribute information, wherein the second target processor core set includes at least one processor core of the target processor.
9. The method according to claim 1, after adjusting at least the performance mode of the electronic device according to the load parameter, further include: monitoring the temperature of the electronic device; When the temperature of the electronic device is greater than the first preset temperature value for a period longer than a preset period, adjusting the performance mode of the electronic device; When the temperature of the electronic device is greater than a second preset temperature value, the performance mode of the electronic device is adjusted and the fan speed is increased to a maximum value, wherein the second preset temperature value is greater than the first preset temperature value.
10. A control device, include: A determination module, configured to monitor a foreground application process running on the electronic device, and determine a load parameter of a target processor of the electronic device at least according to the foreground application process; an adjustment module, configured to adjust at least a performance mode of the electronic device according to the load parameter; Wherein, the performance mode of the electronic device is at least related to the operating parameters of the target processor; The determination module is further used to: obtain first attribute information of the foreground application process and second attribute information of the target processor; if it is determined that the foreground application process is in a preset form based on the first attribute information, determine the load parameters of the target processor based on the preset form and the second attribute information.
