Frequency adjusting method, device and system
By actively monitoring target information and dynamically adjusting frequency, the performance problems caused by low memory frequency in computer systems are solved, performance optimization and energy consumption management in different scenarios are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411025574.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-12-10
AI Technical Summary
In the computer system, when the CPU reads and writes data, the file reading speed is slow due to the low memory frequency, which affects the overall performance and user experience, and lacks an active frequency adjustment mechanism, which is easy to be perceived by users.
By actively monitoring the target information of the target object, determine the target scenario where the device is located, and select the optimal target frequency from the preset frequency information according to the current system mode and target scenario, and dynamically adjust the operating frequency of the target component, such as DDR The frequency of memory.
It realizes the optimization of the operating performance and energy consumption of electronic devices in different usage scenarios, improves user experience, ensures that the device is always in the optimal operating state, and avoids the low performance caused by frequency adjustment by users.
Smart Images

Figure CN119105809A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a frequency adjustment method, device and system. Background Art
[0002] During the operation of the computer, the operating frequency of the double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM, referred to as DDR memory) will affect the speed at which the CPU reads and writes data, thereby affecting the overall performance and response speed of the computer system. For example, in a game loading scenario, when the CPU reads the game loading file from the memory, if the game loading file is large and the operating frequency of the memory is low, the file reading speed will be lower than the CPU processing speed. At this time, the CPU will increase the operating frequency of the memory to achieve the purpose of increasing the file reading speed. However, the prior art is a passive mechanism. The operating frequency of the memory is increased only when the CPU detects a freeze / slow speed, which is easily perceived by the user and affects the user experience. Summary of the invention
[0003] The present disclosure provides a frequency adjustment method, device and system to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present disclosure, a frequency adjustment method is provided, the method comprising:
[0005] Acquire target information of at least one target object, and determine that the electronic device is in a target scene according to the target object and the target information of the target object;
[0006] According to the target scene in which the electronic device is located, determining the target frequency from preset frequency information of a corresponding target component in the current system mode of the electronic device; the target component is at least one component required during the operation of the electronic device;
[0007] The operating frequency of the target component is adjusted to the target frequency.
[0008] In one possible implementation, the target scene in which the electronic device is located includes a first scene and a second scene; and determining the target frequency from preset frequency information of a corresponding target component in a current system mode of the electronic device according to the target scene in which the electronic device is located includes:
[0009] When it is determined that the electronic device is in the first scene, determining a first target frequency, where the first target frequency is a maximum frequency in the preset frequency information corresponding to the current system mode;
[0010] When it is determined that the electronic device is in the second scene, a second target frequency is determined, where the second target frequency is a minimum frequency in the preset frequency information corresponding to the current system mode.
[0011] In one possible implementation manner, the target object is a target processor; when the target information is a power consumption value of the target processor, the target scenario represents the power consumption of the target processor; and determining that the electronic device is in the target scenario includes:
[0012] When the power consumption value of the target processor is greater than a first preset threshold, determining that the target scene of the electronic device is the first scene;
[0013] When the power consumption value of the target processor is less than a second preset threshold, determining that the target scene of the electronic device is the second scene;
[0014] When the target information is the operating state of the target processor, the target scenario represents the operating state of the target processor; and determining that the electronic device is in the target scenario includes:
[0015] When the operating state of the target processor is a first operating state, determining that the target scene of the electronic device is the first scene; the first operating state indicates that the power consumption value of the target processor is greater than a first preset threshold;
[0016] When the operating state of the target processor is the second operating state, determining that the target scene of the electronic device is the second scene; the second operating state indicates that the power consumption value of the target processor is less than a second preset threshold;
[0017] The first preset threshold is greater than or equal to the second preset threshold.
[0018] In one possible implementation, the target object is a target program, the target information is startup information of the target program, and the target scene represents a category of the started target program;
[0019] The determining that the electronic device is in the target scene includes:
[0020] Determine a target program to be started according to the target information, and if the target program is a first type of target program, determine that the target scene in which the electronic device is located is the first scene;
[0021] A target program to be started is determined according to the target information. If the target program is a second-category target program, a target scene in which the electronic device is located is determined to be the second scene.
[0022] In one possible implementation manner, the target object is a power supply component, the target information is power supply information of the power supply component; the target scene represents a power supply state of the power supply component;
[0023] The determining that the electronic device is in the target scene includes:
[0024] According to the power supply information, when it is determined that the power supply state of the power supply component is a high power supply capacity state, determining that the target scene of the electronic device is the first scene;
[0025] According to the power supply information, when it is determined that the power supply state of the power supply component is a low power supply capacity state, it is determined that the target scene of the electronic device is the second scene.
[0026] In one embodiment, after adjusting the operating frequency of the target component to the target frequency, the method further includes:
[0027] In response to the system mode of the electronic device being switched, the target frequency is adjusted according to preset frequency information corresponding to the switched system mode.
[0028] In one possible implementation, adjusting the operating frequency of the target component to the target frequency includes:
[0029] Sending adjustment information of the operating frequency of the target component to the basic input and output system BIOS of the electronic device, so that the BIOS controls the target component controller to adjust the operating frequency of the target component through the adjustment interface according to the adjustment information;
[0030] The adjustment information includes a target frequency to which the target component is to be adjusted.
[0031] According to a second aspect of the present disclosure, a frequency adjustment device is provided, the device comprising:
[0032] The scene analysis module is used to obtain target information of at least one target object, and determine whether the electronic device is in a target scene according to the target object and the target information of the target object.
[0033] A frequency determination module, configured to determine a target frequency from preset frequency information of a corresponding target component in a current system mode of the electronic device according to a target scene in which the electronic device is located; the target component is at least one component required during operation of the electronic device;
[0034] The frequency adjustment module is used to adjust the operating frequency of the target component to the target frequency.
[0035] In one possible implementation manner, the frequency determination module is specifically used to:
[0036] The target scene in which the electronic device is located includes a first scene and a second scene; and determining the target frequency from preset frequency information of a corresponding target component in a current system mode of the electronic device according to the target scene in which the electronic device is located includes:
[0037] When it is determined that the electronic device is in the first scene, determining a first target frequency, where the first target frequency is a maximum frequency in the preset frequency information corresponding to the current system mode;
[0038] When it is determined that the electronic device is in the second scene, a second target frequency is determined, where the second target frequency is a minimum frequency in the preset frequency information corresponding to the current system mode.
[0039] According to a third aspect of the present disclosure, a frequency adjustment system is provided, comprising a control unit and a basic input and output system unit BIOS, wherein:
[0040] The control unit is used to obtain target information of at least one target object, determine that the electronic device is in a target scene according to the target object and the target information of the target object; determine the target frequency from the preset frequency information of the corresponding target component in the current system mode of the electronic device according to the target scene where the electronic device is located; the target component is at least one component required in the operation process of the electronic device; and notify the BIOS of the adjustment information carrying the target frequency;
[0041] The BIOS is used to receive the adjustment information and control the target component controller to adjust the operating frequency of the target component according to the adjustment information.
[0042] The frequency adjustment method, device and system disclosed in the present invention first determine the target scene of the device by actively monitoring the target information of the target object, and then select the optimal target frequency from the preset frequency information according to the current system mode and the target scene, and adjust the operating frequency of the target component to the target frequency.
[0043] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0045] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0046] Figure 1 A schematic diagram of the implementation flow of the frequency adjustment method according to an embodiment of the present disclosure is shown;
[0047] Figure 2 A schematic diagram of an implementation flow of determining a target frequency from preset frequency information according to an embodiment of the present disclosure is shown;
[0048] Figure 3 The schematic diagram shows the implementation process of determining that an electronic device is in a target scene according to an embodiment of the present disclosure. Figure 1 ;
[0049] Figure 4 The schematic diagram shows the implementation process of determining that an electronic device is in a target scene according to an embodiment of the present disclosure. Figure 2 ;
[0050] Figure 5 The schematic diagram shows the implementation process of determining that an electronic device is in a target scene according to an embodiment of the present disclosure. Figure 3 ;
[0051] Figure 6 The schematic diagram shows the implementation process of determining that an electronic device is in a target scene according to an embodiment of the present disclosure. Figure 4 ;
[0052] Figure 7 A schematic diagram showing the composition structure of the frequency adjustment device according to an embodiment of the present disclosure is shown;
[0053] Figure 8 A schematic diagram of the structure of the frequency regulation system according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0054] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0055] The present disclosure provides a frequency adjustment method, such as Figure 1 As shown, the method includes:
[0056] Step 101: Acquire target information of at least one target object, and determine whether the electronic device is in a target scene according to the target object and the target information of the target object.
[0057] In this example, the target object is a target element inside or outside the electronic device, including: hardware components (such as iGPU, GPU, power battery, etc.) and software applications (such as game software, video playback software, office software, etc.). The target information refers to data that can reflect the current state or demand of the target object, such as the power consumption and state of the iGPU or GPU, battery power, startup of software applications, etc.
[0058] Through real-time monitoring, the target information of at least one target object is obtained, and based on the target object and the target information, the target scene in which the electronic device is currently located is determined, such as a high-power consumption scene, a low-power consumption scene, a learning scene, a meeting scene, a game scene, a comprehensive scene, etc.
[0059] Step 102: Determine a target frequency from preset frequency information of a target component corresponding to the current system mode of the electronic device according to the target scene in which the electronic device is located; the target component is at least one component required during operation of the electronic device.
[0060] In this example, the electronic device supports multiple system modes, such as optimal performance mode, balanced mode, smart mode, etc. Each system mode corresponds to different performance requirements and energy consumption strategies. During the operation of the electronic device, the user's system mode switching operation is obtained through the user interface, so that the system mode of the electronic device can be switched.
[0061] The target component is at least one component required in the operation process of the electronic device, and is the component in the electronic device that has the greatest impact on the operation performance, such as DDR memory, graphics card memory, CPU, etc. For each target component, there will be a set of preset frequency information in different system modes. These frequency information are set after testing and training in advance based on the performance, energy consumption and overall optimization strategy of the target component.
[0062] Taking an electronic device installed with DDR5-4800 (5th generation DDR memory, with a default frequency of 4800Hz) as an example, when the electronic device is in the best performance mode, the preset frequency information corresponding to DDR5 is: 4200G4, 4400G4, 4800G4, 5200G2; when the electronic device is in the balanced mode, the preset frequency information corresponding to DDR5 is: 4200G4, 4400G4, 4600G4 and 4800G2. In the table, G stands for GEAR. DDR memory G2 and G4 refer to the proportional relationship between different DDR memory controllers and DDR memory frequencies. G2 means that the operating frequency of the DDR memory controller is 1 / 2 of the operating frequency of the DDR memory, and G4 means that the operating frequency of the DDR memory controller is 1 / 4 of the operating frequency of the DDR memory.
[0063] After determining the target scenario of the electronic device, the most appropriate frequency is selected as the target frequency from the preset frequency information corresponding to the target component in the current system mode according to the target scenario and the current system mode, to ensure that the performance requirements can be met and the energy consumption can be effectively controlled in the target scenario.
[0064] For example, when an electronic device is in a game scene or a conference scene, the target objects involved mainly include game or conference software, or image processor iGPU, etc., and the running target components are such as DDR memory for temporary data storage, and CPU for data processing, etc. Therefore, by obtaining the target information corresponding to different target objects and making judgments, the target scene of the electronic device is determined, and the most appropriate frequency is selected as the target frequency from the preset frequency information corresponding to the target component in the current system mode.
[0065] Step 103: Adjust the operating frequency of the target component to the target frequency.
[0066] In this example, after determining the target frequency of the target component, the operating frequency of the target component is adjusted to the target frequency through the corresponding hardware interface or software control mechanism. In addition, frequency adjustment is a dynamic process, which requires real-time monitoring of the operating status of all target objects in the electronic device and changes in target information, so as to re-evaluate and adjust the target frequency when necessary to ensure that the electronic device always maintains the optimal operating state.
[0067] The present disclosure proposes an intelligent frequency adjustment method, which first determines the target scene of the device by actively monitoring the target information of the target object, then selects the optimal target frequency from the preset frequency information according to the current system mode and the target scene, and adjusts the operating frequency of the target component to the target frequency. In this way, by actively monitoring the usage scene of the electronic device and dynamically adjusting the operating frequency of the target component, it is ensured that the electronic device is always in the optimal operating state, thereby improving the user experience.
[0068] In one example, the target scene of the electronic device includes a first scene and a second scene; according to the target scene of the electronic device, the target frequency is determined from the preset frequency information of the corresponding target component in the current system mode of the electronic device, such as Figure 2 As shown, including:
[0069] Step 201: When it is determined that the electronic device is in a first scene, a first target frequency is determined, where the first target frequency is a maximum frequency in preset frequency information corresponding to a current system mode.
[0070] In this example, the first scenario generally refers to a scenario that requires high performance of the electronic device, such as games, high-definition video playback, large-scale software applications, etc. In these scenarios, the electronic device needs to provide high processing power and fast response as much as possible. Therefore, when the electronic device is determined to be in the first scenario, the maximum frequency is selected as the first target frequency from the preset frequency information of the corresponding target component in the current system mode, thereby ensuring that the electronic device can give full play to its performance when processing high-load tasks and provide a smooth user experience.
[0071] Step 202: When it is determined that the electronic device is in the second scene, a second target frequency is determined, where the second target frequency is the minimum frequency in the preset frequency information corresponding to the current system mode.
[0072] In this example, the second scenario is a scenario with lower requirements for the operating performance of the electronic device, such as standby, web browsing, document editing, conference calls, etc. In these scenarios, electronic devices do not need excessively high performance, but are more focused on reducing energy consumption and battery life. Therefore, when the electronic device is determined to be in the second scenario, the minimum frequency is selected as the second target frequency from the preset frequency information of the corresponding target component in the current system mode. By reducing the operating frequency, electronic devices can reduce energy consumption and extend battery life while still meeting basic application requirements.
[0073] In one example, the target object is a target processor, such as a data processor such as an iGPU or a GPU;
[0074] When the target information is the power consumption value of the target processor, the target scenario represents the power consumption of the target processor; determining that the electronic device is in the target scenario, such as Figure 3 The method includes: step 301: when the power consumption value of the target processor is greater than a first preset threshold, determining that the electronic device is in the target scene is a first scene; step 302: when the power consumption value of the target processor is less than a second preset threshold, determining that the electronic device is in the target scene is a second scene; the first preset threshold is greater than or equal to the second preset threshold.
[0075] In this example, the power consumption value of the target processor can be obtained from a Model Specific Register (MSR) or a power monitor (Intel Power Consumption Measurement, IPCM).
[0076] MSR is a set of 64-bit registers of the CPU, which can be read and written through specific instructions. It is mainly used to record the temperature, working status, voltage, current and other parameters of GPU, iGPU and other processors. By obtaining the voltage and current values of the target processor, the power consumption value of the target processor can be calculated, that is, the target information of the target processor. IPCM is an integrated hardware component used to monitor the power consumption of each component on the motherboard in real time. Therefore, the power consumption value of the real-time GPU, iGPU and other target processors can also be obtained through IPCM.
[0077] When the power consumption value of the target processor is greater than the first preset threshold, it is determined that the electronic device is in a high power consumption scenario, that is, the first scenario in the target scenario. When the power consumption value of the target processor is less than the second preset threshold, it is determined that the electronic device is in a low power consumption scenario, that is, the second scenario in the target scenario.
[0078] For example, when the system mode of the electronic device is the best performance mode, during normal operation, the operating frequency of the DDR memory in the electronic device can be 4800G4. When the user opens a 3D game and is about to enter the game interface, the power monitor detects that the power consumption value of the iGPU is greater than the first preset threshold value, and the electronic device is judged to be in the first scene in the target scene. Therefore, in response to monitoring that the target scene of the electronic device is the first scene, the maximum frequency, i.e., 5200G2, is selected from the preset frequency information corresponding to the best performance mode as the target frequency to which the DDR memory needs to be adjusted.
[0079] In addition to monitoring the specific power consumption value of the target processor, the operating status of the target processor can also be read as a basis for determining the target scenario in which the target processor is located. Specifically:
[0080] When the target information is the operating state of the target processor, the target scenario represents the operating state of the target processor; determining that the electronic device is in the target scenario, such as Figure 4 As shown, it includes: step 401: when the operating state of the target processor is the first operating state, determining that the target scene in which the electronic device is located is the first scene; the first operating state indicates that the power consumption value of the target processor is greater than the first preset threshold; step 402: when the operating state of the target processor is the second operating state, determining that the target scene in which the electronic device is located is the second scene; the second operating state indicates that the power consumption value of the target processor is less than the second preset threshold.
[0081] In this example, the operating state of the target processor can be directly read from the special module register. Specifically, when the power consumption value of the target processor is greater than the first preset threshold, the operating state of the target processor is the first operating state, and the electronic device is determined to be in the first scene; when the power consumption value of the target processor is less than the second preset threshold, the operating state of the target processor is the second operating state, and the electronic device is determined to be in the second scene.
[0082] For example, when the system mode of the electronic device is the balanced mode, during normal operation, the operating frequency of the DDR memory in the electronic device can be 4400G4. When the user connects to the conference call, the operating state of the iGPU is read from the special module register as the second operating state, and the electronic device is judged to be in the second scene in the target scene. Therefore, in response to monitoring that the target scene of the electronic device is the second scene, the minimum frequency, i.e., 4200G4, is selected from the preset frequency information corresponding to the balanced mode as the target frequency to which the DDR memory needs to be adjusted.
[0083] In one example, the target object is a target program, the target information is startup information of the target program, and the target scene represents a category of the started target program.
[0084] Before the electronic device is put into use, the present disclosure performs a pre-test on all application programs in the electronic device to obtain the power consumption of the electronic device during the operation of each application program.
[0085] If the power consumption of an electronic device is higher than the first power consumption threshold when an application is running, the application is classified into the list of first category programs. For example, game programs, image processing programs, video software, etc., when this type of application is running in an electronic device, it usually increases the power consumption of the electronic device, so it is classified into the second category of programs. If the power consumption of another application is less than the second power consumption threshold when the electronic device is running, the application is classified into the list of second category programs. For example, office software, call software, etc., when this type of application is running in an electronic device, it often does not require the electronic device to consume too much energy, so it is classified into the second category of programs. Among them, the first power consumption threshold is greater than or equal to the second power consumption threshold.
[0086] Based on the first category program list and the second category program list, when the target information is detected as the startup information of the target program, it is determined that the electronic device is in the target scene, such as Figure 5As shown, it includes: step 501: determining the target program to be started according to the target information, if the target program is a first type of target program, determining that the target scene in which the electronic device is located is the first scene; step 502: determining the target program to be started according to the target information, if the target program is a second type of target program, determining that the target scene in which the electronic device is located is the second scene.
[0087] In this example, when a target program attempts to start, the startup information of the target program will be captured, and the startup information includes information about which category of program the target program belongs to. If the target program is judged to be a first category target program in the first category program list based on the startup information, it is determined that the electronic device is in the first scene. Similarly, if the target program is judged to be a second category target program in the second category program list based on the startup information, it is determined that the electronic device is in the second scene.
[0088] For example, when the system mode of the electronic device is the best performance mode, during normal operation, the operating frequency of the DDR memory in the electronic device can be 4400G4. When the user opens a 3D game, the startup information of the 3D game is monitored, and the electronic device is judged to be in the first scene in the target scene. Therefore, in response to monitoring that the target scene of the electronic device is the first scene, the maximum frequency, i.e., 5200G2, is selected from the preset frequency information corresponding to the best performance mode as the target frequency to which the DDR memory needs to be adjusted.
[0089] For another example, when the system mode of the electronic device is the balanced mode, during normal operation, the operating frequency of the DDR memory in the electronic device can be 4500G4. When the user opens the office software, the startup information of the office software is monitored, and the electronic device is judged to be in the second scene in the target scene. Therefore, in response to monitoring that the target scene of the electronic device is the second scene, the minimum frequency, i.e., 4200G4, is selected from the preset frequency information corresponding to the balanced mode as the target frequency to which the DDR memory needs to be adjusted.
[0090] It should be noted that the acquisition time of the target information of the target software is usually slightly earlier than the acquisition time of the target information of the target processor, but both solutions have their own advantages. For example, when a user starts a game and wants to quickly enter the game interface, if the method of obtaining the target information of the target software is adopted, the operating frequency of the DDR memory can be quickly adjusted to the maximum frequency, thereby accelerating the loading of the game and quickly entering the game interface, improving the user's gaming experience. When the user accidentally clicks on the game software and attempts to close the software interface, the method of obtaining the target information of the target processor can more accurately determine whether the user intends to start the game, and at the same time, it can also reduce the energy consumption of the electronic device when quickly adjusting the DDR frequency to a certain extent.
[0091] In one example, the target object is a power supply component, the target information is the power supply information of the power supply component, and the target scene represents the power supply state of the power supply component. Figure 6 As shown, it includes: step 601: according to the power supply information, when it is determined that the power supply state of the power supply component is a high power supply capacity state, the target scene of the electronic device is determined to be the first scene; step 602: according to the power supply information, when it is determined that the power supply state of the power supply component is a low power supply capacity state, the target scene of the electronic device is determined to be the second scene.
[0092] The power supply component is a battery component that provides power to electronic devices or a battery component that provides power to important components in electronic devices. The power supply information includes: battery power, temperature, power supply capacity, and current and voltage values.
[0093] In this example, when the battery is close to full charge (such as above 90%); the battery temperature is within the normal operating range to ensure optimal battery performance; the battery can stably output the maximum current and voltage required by the device without obvious power attenuation; the current and voltage values are stable and meet the requirements for normal operation of the device, and there is no voltage drop or current fluctuation due to insufficient power, the power supply state of the power supply component is determined to be a high power supply capacity state. At this time, the target scenario in which the electronic device is located is determined to be the first scenario, the performance of the electronic device is optimal, and the user can use all the functions provided by the electronic device without worrying about insufficient power.
[0094] However, the battery charge is extremely low (e.g., less than 10%) and is close to exhaustion; the battery temperature overheats due to long-term use or external environmental influences; the battery output current and voltage values begin to decrease and cannot meet the operating requirements of the device under high load, and performance may decline or non-essential functions may be automatically shut down to save power; when insufficient power causes unstable current and voltage values, the power supply state of the power supply component is determined to be a low power supply capacity state. At this point, the target scenario of the electronic device is determined to be the second scenario, and the operating frequency of all target components needs to be quickly adjusted to the minimum to ensure that the use time of the electronic device is extended as much as possible within the limited power and to ensure the normal operation of its basic functions.
[0095] During the operation of an electronic device, target information of at least one target object is usually obtained. The above examples determine the target scene of the electronic device when obtaining a single target object and the target information of the target object, as well as a method for adjusting the operating frequency of the corresponding target component.
[0096] In one example, the electronic device may also obtain target information of multiple target objects. When multiple target objects trigger the target scene of the electronic device, the target frequency of the target component is determined according to the target information of the multiple target objects, including:
[0097] Before determining that the electronic device is in a target scene, when target information of multiple target objects is simultaneously acquired and the electronic device is judged to be in the same target scene based on each target object and the corresponding target information, the target frequency is determined from the preset frequency information of the corresponding target component in the current system mode of the electronic device according to the target scene of the electronic device.
[0098] For example, when a startup instruction to start office software and conference software is received, the electronic device is judged to be in the second scene based on the startup information of the office software and conference software. At this time, based on the second scene of the electronic device, the minimum frequency is determined from the preset frequency information of the corresponding target component in the current system mode of the electronic device as the target frequency that the target component needs to adjust.
[0099] Before determining that the electronic device is in a target scene, when target information of multiple target objects is simultaneously acquired and the electronic device is judged to be in different target scenes based on each target object and the corresponding target information, the target frequency is determined from the preset frequency information of the corresponding target component in the current system mode of the electronic device according to the CPU load.
[0100] For example, when the startup instructions of the conference software and the image processing software are received at the same time, the image processing software iGPU runs at high power consumption, which corresponds to the first scene in the target scene; but the conference software needs to reduce the power consumption of the iGPU to maintain a long conference call, which corresponds to the second scene in the target scene. Therefore, it is judged that the electronic device is in different target scenes. At this time, according to the load of the CPU, the most suitable operating frequency is determined from the preset frequency information of the corresponding target component under the current system mode of the electronic device (such as the best performance mode), as the target frequency that the target component needs to adjust. If the CPU load is greater than 90%, the operating frequency of the target component can be appropriately increased, such as 4800G4 or 5200G2.
[0101] After determining that the electronic device is in the target scene, when the target information of at least one target object is obtained, and the electronic device is judged to be a different target scene from the current target scenes in multiple locations based on the target object and the corresponding target information, the target frequency is determined from the preset frequency information of the corresponding target component in the current system mode of the electronic device based on the CPU load.
[0102] For example, when the power supply component is in a low power supply capacity state, the electronic device is in the second scene in the target scene, and the operating frequencies of all target components have been adjusted to the minimum frequency (4200G4) under the current system mode (e.g., optimal performance mode). Afterwards, a startup instruction of the image processing software is received, and the startup information indicates that the electronic device will be in the first scene. At this time, according to the load of the CPU, the most suitable operating frequency is determined from the preset frequency information of the corresponding target component in the current system mode of the electronic device as the target frequency that the target component needs to adjust. If the CPU load is less than 10%, the operating frequency of the target component can be appropriately increased at this time, for example, 4400G4.
[0103] In one example, after adjusting the operating frequency of the target component to the target frequency, the method further includes: in response to a system mode switch of the electronic device, adjusting the target frequency according to preset frequency information corresponding to the switched system mode.
[0104] In this example, after determining the target scene of the electronic device, the target frequency is determined according to the preset frequency information in the current system mode, and the target component operates according to the adjusted target frequency. While monitoring the target object and the target information of the target object, the electronic device also monitors whether the system mode of the electronic device has changed.
[0105] When the system mode is detected to be switched, the operating frequency of the target component is adjusted accordingly according to the preset frequency information corresponding to the switched system mode. This adjustment may be to increase the frequency to meet high performance requirements or to reduce the frequency to save power consumption.
[0106] For example, the current system mode of an electronic device is the best performance mode. When a certain game software is started, the electronic device is judged to be in the first scene, and the operating frequency of the DDR memory is adjusted to the maximum frequency in the preset frequency information under the best performance mode. When the electronic device receives a system mode switching instruction and switches the system mode to the balanced mode in response to the instruction, the operating frequency of the DDR memory is adjusted to the maximum frequency in the preset frequency information under the balanced mode.
[0107] In one example, adjusting the operating frequency of the target component to a target frequency includes: sending adjustment information of the operating frequency of the target component to a basic input / output system BIOS of an electronic device, so that the BIOS controls a target component controller to adjust the operating frequency of the target component through an adjustment interface according to the adjustment information. The adjustment information includes the target frequency to which the target component is to be adjusted.
[0108] In this example, the adjustment information of the operating frequency of the target component is sent to the BIOS in the form of an email, and the BIOS receives and reads the content of the email to obtain the adjustment information. In addition, the present disclosure does not require restarting the electronic device to adjust the operating frequency of the target component. The BIOS only needs to directly control the operating frequency of the target component controller through a set adjustment interface, thereby further realizing rapid adjustment of the operating frequency of the target component.
[0109] Taking adjusting the operating frequency of DDR memory as an example, after obtaining the adjustment information including the target frequency of adjusting the DDR memory, the BIOS directly adjusts the operating frequency of the DDR memory controller through the adjustment interface, and based on the GEAR setting, further adjusts the operating frequency of the DDR memory.
[0110] The present disclosure also provides a frequency adjustment device, such as Figure 7 As shown, the device comprises:
[0111] The scene analysis module 701 is used to obtain target information of at least one target object, and determine whether the electronic device is in a target scene according to the target object and the target information of the target object.
[0112] The frequency determination module 702 is used to determine the target frequency from the preset frequency information of the corresponding target component in the current system mode of the electronic device according to the target scene in which the electronic device is located; the target component is at least one component required in the operation process of the electronic device;
[0113] The frequency adjustment module 703 is used to adjust the operating frequency of the target component to the target frequency.
[0114] In one example, the frequency determination module 702 is specifically configured to:
[0115] The target scene in which the electronic device is located includes a first scene and a second scene; and according to the target scene in which the electronic device is located, determining the target frequency from preset frequency information of a corresponding target component in a current system mode of the electronic device includes:
[0116] When it is determined that the electronic device is in the first scene, a first target frequency is determined, where the first target frequency is a maximum frequency in the preset frequency information corresponding to the current system mode;
[0117] When it is determined that the electronic device is in the second scene, a second target frequency is determined, where the second target frequency is the minimum frequency in the preset frequency information corresponding to the current system mode.
[0118] In one example, the scene analysis module 701 is specifically used to:
[0119] The target object is a target processor; when the target information is the power consumption value of the target processor, the target scenario characterizes the power consumption of the target processor; determining that the electronic device is in the target scenario includes: when the power consumption value of the target processor is greater than a first preset threshold, determining that the target scenario in which the electronic device is located is a first target scenario; when the power consumption value of the target processor is less than a second preset threshold, determining that the target scenario in which the electronic device is located is a second target scenario;
[0120] When the target information is the operating state of the target processor, the target scenario characterizes the operating status of the target processor; determining that the electronic device is in the target scenario includes: when the operating state of the target processor is a first operating state, determining that the target scenario in which the electronic device is located is the first scenario; the first operating state characterizes that the power consumption value of the target processor is greater than a first preset threshold; when the operating state of the target processor is a second operating state, determining that the target scenario in which the electronic device is located is the second scenario; the second operating state characterizes that the power consumption value of the target processor is less than a second preset threshold; the first preset threshold is greater than or equal to the second preset threshold.
[0121] In one example, the scene analysis module 701 is further configured to:
[0122] The target object is a target program, the target information is the startup information of the target program, and the target scene represents the category of the started target program; determining that the electronic device is in a target scene includes: determining the started target program according to the target information, and if the target program is a first-category target program, determining that the target scene in which the electronic device is located is a first scene; determining the started target program according to the target information, and if the target program is a second-category target program, determining that the target scene in which the electronic device is located is a second scene.
[0123] In one example, the scene analysis module 701 is further configured to:
[0124] The target object is a power supply component, and the target information is the power supply information of the power supply component; the target scene represents the power supply status of the power supply component; determining that the electronic device is in a target scene includes: according to the power supply information, when it is determined that the power supply status of the power supply component is a high power supply operating capability state, determining that the target scene in which the electronic device is located is a first scene; according to the power supply information, when it is determined that the power supply status of the power supply component is a low power supply capability state, determining that the target scene in which the electronic device is located is a second scene.
[0125] In one example, the frequency adjustment module 703 is specifically used to:
[0126] The adjustment information of the operating frequency of the target component is sent to the basic input and output system BIOS of the electronic device, so that the BIOS controls the target component controller to adjust the operating frequency of the target component through the adjustment interface according to the adjustment information; the adjustment information includes the target frequency to which the target component is to be adjusted.
[0127] In one example, the frequency adjustment module 703 is further used to adjust the target frequency according to preset frequency information corresponding to the switched system mode in response to a switch in the system mode of the electronic device after adjusting the operating frequency of the target component to the target frequency.
[0128] The present disclosure also provides a frequency adjustment system, such as Figure 8 As shown, it includes a control unit 801 and a basic input and output system unit BIOS 802, wherein:
[0129] The control unit 801 is used to obtain target information of at least one target object, determine that the electronic device is in a target scene according to the target object and the target information of the target object; determine the target frequency from the preset frequency information of the corresponding target component in the current system mode of the electronic device according to the target scene in which the electronic device is located; the target component is at least one component required in the operation process of the electronic device; and notify the BIOS of the adjustment information carrying the target frequency;
[0130] BIOS 802 is used to receive the adjustment information and control the target component controller to adjust the operating frequency of the target component according to the adjustment information.
[0131] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0132] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0133] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0134] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0135] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0136] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0137] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0138] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0139] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A frequency adjustment method, the method comprising: Acquire target information of at least one target object, and determine that the electronic device is in a target scene according to the target object and the target information of the target object; According to the target scene in which the electronic device is located, determining the target frequency from preset frequency information of a corresponding target component in the current system mode of the electronic device; the target component is at least one component required during the operation of the electronic device; The operating frequency of the target component is adjusted to the target frequency.
2. The method according to claim 1, wherein the target scene in which the electronic device is located comprises a first scene and a second scene; and determining the target frequency from preset frequency information of a corresponding target component in a current system mode of the electronic device according to the target scene in which the electronic device is located comprises: When it is determined that the electronic device is in the first scene, determining a first target frequency, where the first target frequency is a maximum frequency in the preset frequency information corresponding to the current system mode; When it is determined that the electronic device is in the second scene, a second target frequency is determined, where the second target frequency is a minimum frequency in the preset frequency information corresponding to the current system mode.
3. The method according to claim 2, wherein the target object is a target processor; When the target information is the power consumption value of the target processor, the target scenario represents the power consumption of the target processor; The determining that the electronic device is in the target scene includes: When the power consumption value of the target processor is greater than a first preset threshold, determining that the target scene of the electronic device is the first scene; When the power consumption value of the target processor is less than a second preset threshold, determining that the target scene of the electronic device is the second scene; When the target information is the operating state of the target processor, the target scenario represents the operating state of the target processor; and determining that the electronic device is in the target scenario includes: When the operating state of the target processor is a first operating state, determining that the target scene of the electronic device is the first scene; the first operating state indicates that the power consumption value of the target processor is greater than a first preset threshold; When the operating state of the target processor is the second operating state, determining that the target scene of the electronic device is the second scene; the second operating state indicates that the power consumption value of the target processor is less than a second preset threshold; The first preset threshold is greater than or equal to the second preset threshold.
4. The method according to claim 2, wherein the target object is a target program, the target information is startup information of the target program, and the target scenario represents the category of the started target program; The determining that the electronic device is in the target scene includes: Determine a target program to be started according to the target information, and if the target program is a first type of target program, determine that the target scene in which the electronic device is located is the first scene; A target program to be started is determined according to the target information. If the target program is a second-category target program, a target scene in which the electronic device is located is determined to be the second scene.
5. The method according to claim 2, wherein the target object is a power supply component, and the target information is power supply information of the power supply component; The target scenario represents the power supply status of the power supply component; The determining that the electronic device is in the target scene includes: According to the power supply information, when it is determined that the power supply state of the power supply component is a high power supply capacity state, determining that the target scene of the electronic device is the first scene; According to the power supply information, when it is determined that the power supply state of the power supply component is a low power supply capacity state, it is determined that the target scene of the electronic device is the second scene.
6. The method according to claim 1, after adjusting the operating frequency of the target component to the target frequency, the method further comprises: In response to the system mode of the electronic device being switched, the target frequency is adjusted according to preset frequency information corresponding to the switched system mode.
7. The method according to claim 1, wherein adjusting the operating frequency of the target component to the target frequency comprises: Sending adjustment information of the operating frequency of the target component to the basic input and output system BIOS of the electronic device, so that the BIOS controls the target component controller to adjust the operating frequency of the target component through the adjustment interface according to the adjustment information; The adjustment information includes a target frequency to which the target component is to be adjusted.
8. A frequency adjustment device, comprising: The scene analysis module is used to obtain target information of at least one target object, and determine whether the electronic device is in a target scene according to the target object and the target information of the target object. A frequency determination module, configured to determine a target frequency from preset frequency information of a corresponding target component in a current system mode of the electronic device according to a target scene in which the electronic device is located; the target component is at least one component required during operation of the electronic device; The frequency adjustment module is used to adjust the operating frequency of the target component to the target frequency.
9. The device according to claim 8, wherein the frequency determination module is specifically configured to: The target scene in which the electronic device is located includes a first scene and a second scene; and determining the target frequency from preset frequency information of a corresponding target component in a current system mode of the electronic device according to the target scene in which the electronic device is located includes: When it is determined that the electronic device is in the first scene, determining a first target frequency, where the first target frequency is a maximum frequency in the preset frequency information corresponding to the current system mode; When it is determined that the electronic device is in the second scene, a second target frequency is determined, where the second target frequency is a minimum frequency in the preset frequency information corresponding to the current system mode.
10. A frequency adjustment system, comprising a control unit and a basic input and output system unit BIOS, wherein: The control unit is used to obtain target information of at least one target object, determine that the electronic device is in a target scene according to the target object and the target information of the target object; determine the target frequency from the preset frequency information of the corresponding target component in the current system mode of the electronic device according to the target scene where the electronic device is located; the target component is at least one component required in the operation process of the electronic device; Notifying the BIOS of the adjustment information carrying the target frequency; The BIOS is used to receive the adjustment information and control the target component controller to adjust the operating frequency of the target component according to the adjustment information.
