CN117130455A - Power consumption control method and device and electronic equipment - Google Patents

Power consumption control method and device and electronic equipment Download PDF

Info

Publication number
CN117130455A
CN117130455A CN202311100579.4A CN202311100579A CN117130455A CN 117130455 A CN117130455 A CN 117130455A CN 202311100579 A CN202311100579 A CN 202311100579A CN 117130455 A CN117130455 A CN 117130455A
Authority
CN
China
Prior art keywords
power consumption
consumption mode
electronic equipment
target
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311100579.4A
Other languages
Chinese (zh)
Inventor
谢伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202311100579.4A priority Critical patent/CN117130455A/en
Publication of CN117130455A publication Critical patent/CN117130455A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a power consumption control method, a device and electronic equipment, wherein the method comprises the following steps: determining a target use time length for the electronic device and a first use time length currently operable by the electronic device; if the first using time length and the target using time length do not meet the first condition, controlling the electronic equipment to switch to a first running state corresponding to the first power consumption mode; if the second using time length of the electronic equipment in the first operating state and the target using time length do not meet the second condition, controlling the electronic equipment to switch to a second operating state corresponding to a second power consumption mode; the power consumption control parameters of the first power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the second power consumption mode is smaller than that of the electronic equipment in the first power consumption mode.

Description

Power consumption control method and device and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling power consumption, and an electronic device.
Background
The electronic device may be battery powered for portability, i.e. the amount of power in the battery may be used during operation of the electronic device. Because the capacity of the battery is limited, the normal use of the electronic device by a user can be affected if the electric quantity of the battery is low. Correspondingly, the higher the power consumption of the electronic device, the longer the battery life will be, and how to improve the battery life of the electronic device has become a major problem for ensuring the usability of the user.
Disclosure of Invention
In view of this, the present application provides the following technical solutions:
a power consumption control method, comprising:
determining a target use duration for an electronic device and a first use duration currently operable by the electronic device;
if the first using time length and the target using time length do not meet a first condition, controlling the electronic equipment to switch to a first running state corresponding to a first power consumption mode;
if the second using time length of the electronic equipment in the first operating state and the target using time length do not meet the second condition, controlling the electronic equipment to switch to a second operating state corresponding to a second power consumption mode;
the power consumption control parameters of the first power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the second power consumption mode is smaller than that of the electronic equipment in the first power consumption mode.
Optionally, if the second usage duration of the electronic device in the first operation state and the target usage duration do not meet the second condition, controlling the electronic device to switch to the second operation state corresponding to the second power consumption mode includes:
If the second use time length of the electronic equipment in the first operation state and the target use time length do not meet a second condition, a first-level power consumption mode group corresponding to the first power consumption mode is obtained;
determining a second power consumption mode in the first hierarchical power consumption mode group based on an operational characteristic of the electronic device in the first operational state;
controlling the electronic equipment to switch to a second running state corresponding to the second power consumption mode;
the first-level power consumption mode group comprises at least one power consumption mode, and when the electronic equipment operates in each power consumption mode corresponding to the first-level power consumption mode group, the power consumption of the electronic equipment is smaller than that of the electronic equipment in the first power consumption mode.
Optionally, the method further comprises:
if the second use duration of the electronic equipment in the first operation state and the target use duration meet a second condition, a second-level power consumption mode group corresponding to the first power consumption mode is obtained;
determining a target power consumption mode in the second-level power consumption mode group based on an operation characteristic of the electronic device in the first operation state;
Controlling the electronic equipment to switch to a target running state corresponding to the target power consumption mode;
the second-level power consumption mode group comprises at least one power consumption mode, and when the electronic equipment operates in each power consumption mode corresponding to the second-level power consumption mode group, the power consumption of the electronic equipment is not smaller than the power consumption of the electronic equipment in the first power consumption mode.
Optionally, the determining, based on the operation characteristic of the electronic device in the first operation state, a second power consumption mode in the first-level power consumption mode group includes:
determining a first power consumption control parameter of the electronic equipment in a first power consumption mode based on the operation characteristic of the electronic equipment in the first operation state;
determining a second power consumption control parameter corresponding to the first power consumption control parameter;
a second power consumption mode is determined in the first tier power consumption module based on the second power consumption control parameter.
Optionally, the determining a second power consumption control parameter corresponding to the first power consumption control parameter includes:
obtaining a power consumption component of the electronic device corresponding to the first power consumption control parameter;
Determining a target power consumption component based on the association relationship between the power consumption component and the candidate power consumption component to be adjusted;
a second power consumption control parameter corresponding to the target power consumption component is determined.
Optionally, the method further comprises:
obtaining a third operable use duration of the electronic equipment in the second operation state;
if the third using time length and the target using time length do not meet a third condition, controlling the electronic equipment to switch to a third running state corresponding to a third power consumption mode in the first-level power consumption mode group;
the power consumption control parameters of the third power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the third power consumption mode is smaller than that of the electronic equipment in the second power consumption mode.
Optionally, determining the first usage time length that the electronic device is currently operable includes:
obtaining current operation information of the electronic equipment;
determining at least one power consuming component of the electronic device based on the current operational information;
and determining a first using duration of the electronic equipment which can be operated currently based on the current residual electric quantity of the electronic equipment and the power consumption parameters of each power consumption component.
Optionally, if the first usage duration and the target usage duration do not meet the first condition, controlling the electronic device to switch to a first operation state corresponding to the first power consumption mode includes:
if the first using time length and the target using time length do not meet a first condition, generating prompt information based on the current power consumption component of the electronic equipment, wherein the prompt information is used for prompting the power consumption component to be regulated;
determining a target power consumption component in the power consumption components to be adjusted based on feedback information corresponding to the prompt information;
determining a first power consumption mode corresponding to the target power consumption component;
and controlling the electronic equipment to be switched to a first running state corresponding to the first power consumption mode.
A power consumption control apparatus comprising:
a determining unit, configured to determine a target usage duration for an electronic device, and a first usage duration that the electronic device is currently operable;
the first control unit is used for controlling the electronic equipment to switch to a first running state corresponding to a first power consumption mode if the first using time length and the target using time length do not meet a first condition;
the second control unit is used for controlling the electronic equipment to switch to a second operation state corresponding to a second power consumption mode if the second use duration of the electronic equipment in the first operation state and the target use duration do not meet the second condition;
The power consumption control parameters of the first power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the second power consumption mode is smaller than that of the electronic equipment in the first power consumption mode.
An electronic device, comprising:
a memory for storing an application program and data generated by the operation of the application program;
a processor for executing the application program to implement the power consumption control method as claimed in any one of the above.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a power consumption control method according to an embodiment of the present application;
fig. 2 is a schematic diagram of hierarchical adjustment of an application scenario according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a power consumption control device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and in the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the application provides a power consumption control method which can be applied to electronic equipment, and aims at different application scenes or different application requirements of the electronic equipment, and the power consumption modes of the electronic equipment are switched to ensure that the electronic equipment can meet the requirements of target use duration, so that the use experience of a user is improved.
In the embodiment of the application, the electronic device may be any type of device. For example, the electronic device may be a cell phone, tablet, desktop, wearable, in-vehicle, augmented Reality (AR)/Virtual Reality (VR) device, notebook, or Personal Digital Assistant (PDA), or the like. Therefore, any type of equipment can meet the current requirements of the target using duration of the electronic equipment by analyzing the power consumption of the power consumption mode of the electronic equipment according to different application requirements.
Referring to fig. 1, a flow chart of a power consumption control method according to an embodiment of the present application may include the following steps:
s101, determining target using time length aiming at the electronic equipment and first using time length capable of being operated currently by the electronic equipment.
The target usage duration of the electronic device may be determined by a current user of the electronic device, for example, to set that an expected usage is required for 2 hours from the current start, and the target usage duration of the electronic device is 2 hours. And determining the target use duration according to the electronic equipment mode selected by the user of the current electronic equipment, for example, the user selects an audio-visual mode, the target use duration corresponding to the audio-visual mode is 1 hour, and for example, the user selects a communication mode, and the corresponding target use duration is 2 hours.
The first duration of time that the electronic device is currently operable refers to a duration of time that the electronic device is currently operable, which is determined according to current operation information of the electronic device, and in an implementation manner, the obtaining the first duration of use that the electronic device is currently operable includes: acquiring current operation information of the electronic equipment; determining at least one power consuming component of the electronic device based on the current operational information; and determining a first using duration of the current running of the electronic equipment based on the current residual electric quantity of the electronic equipment and the power consumption parameters of each power consumption component. The current operation information of the electronic equipment is determined according to information such as a component and a use state of the current operation of the electronic equipment. The at least one power consumption component of the electronic device may include a display component of the electronic device, a communication component, a background component that maintains an application currently running, etc., and for example, the power consumption component may include a display screen, a network module, and a talk module, among others. And determining the maximum first using time length which can be operated currently for the electronic equipment if the current operation information is maintained based on the current residual quantity of the current electric energy storage component of the electronic equipment and the power consumption parameters of all power consumption components. The power consumption parameter may be determined according to a state corresponding to the current power consumption component, for example, the screen brightness of the current electronic device is 50%, and the power consumption parameter is the power consumption of the electronic screen in a unit time when the screen brightness of the electronic device is maintained to be 50%, so as to determine the power consumption of each power consumption component, so as to obtain the current operable first use duration of the electronic device determined based on the current residual power, for example, if the current operation states of the power consumption components are maintained, the electronic device may be operated for 1 hour.
S102, if the first using time length and the target using time length do not meet the first condition, controlling the electronic equipment to switch to a first running state corresponding to the first power consumption mode.
The fact that the first use duration and the target use duration do not meet the first condition means that the first use duration is smaller than the target use duration, the fact that the current first use duration is smaller than the target use duration can be achieved, or the fact that some instantaneous power consumption of the electronic device in the running process can be determined, for example, when the electronic device is a mobile phone, the mobile phone consumes power generated by answering a call, then the first use duration is optimized according to the instantaneous power consumption, the duration smaller than the first use duration is obtained, and if the duration is smaller than the target use duration, the fact that the first use duration and the target use duration do not meet the first condition is indicated.
When the first use duration and the target use duration do not meet the first condition, the current electronic equipment is larger in power consumption, and if the electronic equipment continues to operate in the mode, the target use duration cannot be reached. At this time, the electronic device is controlled to switch to a first operation state corresponding to the first power consumption mode. The operation power consumption corresponding to the first power consumption mode is smaller than the operation power consumption of the electronic device before adjustment, so that the use duration of the electronic device can be increased to reach the expected target use duration. Further, in order to avoid repeated switching of the power consumption modes, and meet the use requirement of the user, the power consumption mode which is most suitable for the current operation state is determined by combining the current operation information, and is switched to the power consumption mode. This embodiment will be specifically described in the subsequent examples of the present application, and will not be described in detail here.
And S103, if the second using time length which can be operated in the first operating state and the target using time length do not meet the second condition, controlling the electronic equipment to switch to a second operating state corresponding to a second power consumption mode.
If the electronic device is directly switched to a power consumption mode with lower power consumption, the requirement of reaching the target using time period can be met, but the experience effect of the user may be reduced. Meanwhile, the real-time running state of the electronic equipment can be monitored, analysis of the current running state and switching of the power consumption modes can be determined, and therefore the electronic equipment can meet the use requirements of target use duration.
The second use duration of the electronic device in the first operating state after being stable refers to the operable duration of the electronic device in the first operating state after being stable, wherein the electronic device can be in the first operating state after being stable, and each operating parameter of the electronic device reaches a parameter range meeting the system stability, and can also be in a state of the electronic device after being operated for a specific duration in the first operating state. And then, determining a second using duration of the electronic equipment in the first running state based on the power consumption parameter corresponding to the power consumption component in the first running state of the electronic equipment and the current residual electric quantity of the electronic equipment. The second usage time length and the target usage time length not meeting the second condition means that the second usage time length is smaller than the remaining time length of the target usage time length corresponding to the current time. For example, the target usage duration is 90 minutes, before the second usage duration is determined that the electronic device has been operated for 30 minutes, if the second usage duration continues to be operated in the first operation state, the second usage duration that the electronic device can be operated is 40 minutes, if the target usage duration is met, the electronic device needs to be ensured to be operated for 60 minutes again, because the 40 minutes is less than 60 minutes, if the electronic device continues to be operated in the first operation state, the requirement of being operated for 60 minutes cannot be met, at this time, the electronic device is controlled to switch to the second operation state corresponding to the second power consumption mode, the power consumption of the electronic device in the second power consumption mode is less than the power consumption of the electronic device in the first power consumption mode, specifically, the second power consumption mode can be the next power consumption mode of the first power consumption mode, or the next power consumption mode corresponding to the next power consumption mode, if the power consumption of the power consumption mode 01 is arranged from large to small and large, the power consumption of the power consumption mode 02 is greater than the power consumption mode 02, the power consumption of the power consumption mode 03 is greater than the power consumption mode 04, and if the first power consumption mode 01 is the second power consumption mode 03, the power consumption mode is the power consumption 02 can be determined according to the current mode or the current mode. In some application scenarios, each power consumption mode for reducing power consumption may be implemented by adding a controllable power consumption component based on the previous power consumption mode, for example, power consumption mode 01 controls the first module and the second module to be turned off, and if power consumption of power consumption mode 02 is lower than power consumption mode 01, power consumption mode 02 controls the first module, the second module and the third module to be turned off.
Specifically, the power consumption control parameters of the first power consumption mode and the second power consumption mode are different, which may include that the power consumption components of the first power consumption mode and the second power consumption mode are different, or may refer to that the power consumption parameters of the first power consumption mode and the second power consumption mode for the same power consumption component are different, for example, the first power consumption mode includes that the first power consumption component, the second power consumption component and the third power consumption component are turned off at the same time, and the second power consumption mode includes that the first power consumption component, the second power consumption component, the fourth power consumption component and the fifth power consumption component are turned off at the same time; it is also possible that the power consumption part is a display part, the display parameter of the display part is set to 30 in the first power consumption mode, the display parameter of the display part is set to 10 in the second power consumption mode, and so on.
The embodiment of the application provides a power consumption control method, which can release the performance of electronic equipment to the maximum extent under the condition of meeting the required use duration by setting the expected target use duration of the electronic equipment and then adjusting the power consumption mode of the electronic equipment in a grading manner, so as to avoid the problem of poor experience effect caused by the fact that a user cannot better utilize the resources of the electronic equipment due to worry about the duration of the electronic equipment.
The performance of the electronic equipment is released to the maximum extent under the condition that the target using time of the electronic equipment can be met, so that the power consumption of the electronic equipment can be adjusted through the hierarchical adjustment of the power consumption mode.
In an implementation manner of the embodiment of the present application, if the second usage duration and the target usage duration of the electronic device in the first operational state are not satisfied with the second condition, the controlling the electronic device to switch to the second operational state corresponding to the second power consumption mode includes: if the second use time length and the target use time length of the electronic equipment in the first running state are not met by the second condition, a first level power consumption mode group corresponding to the first power consumption mode is obtained; determining a second power consumption mode in the first hierarchical power consumption mode group based on an operational characteristic of the electronic device in the first operational mode; and controlling the electronic equipment to switch to a second running state corresponding to the second power consumption mode.
The first-level power consumption mode group comprises at least one power consumption mode, and when the electronic equipment operates in each power consumption mode corresponding to the first-level power consumption mode group, the power consumption of the electronic equipment is smaller than that of the electronic equipment in the first power consumption mode. Specifically, the power consumption of each power consumption mode in the first-level power consumption mode group may be different, that is, each power consumption mode having a power consumption smaller than that of the first power consumption mode forms the first-level power consumption mode group, and then, according to the operation characteristics of the electronic device in the first operation mode, a corresponding second power consumption mode group is determined in the first-level power consumption mode group.
Correspondingly, the first-level power consumption mode group may include a plurality of power consumption modes, where the power consumption of each power consumption mode is the same or similar, for example, the first-level power consumption mode includes a power consumption mode a and a power consumption mode B, where the power consumption of both power consumption modes is 10 under normal conditions in unit time, and only the power consumption control parameters of both power consumption modes are different, and an appropriate control parameter may be selected based on the current operation characteristic, and then the corresponding power consumption mode is selected as the second power consumption mode in the level power consumption mode. In this embodiment, the first-level power consumption mode group may be a power consumption mode of a level in the first power consumption mode, or may be a target power consumption mode determined according to the operable duration and the target use duration, that is, if the power consumption of the first power consumption mode corresponds to 10% of the power consumption of the electronic device per unit time, the first-level power consumption mode group may be a power consumption mode in which the power consumption of the electronic device per unit time is 8%, or may be a power consumption mode in which the power consumption of the electronic device per unit time is 5%.
In one embodiment, the determining the second power consumption mode in the first hierarchical power consumption mode group based on the operation characteristics of the electronic device in the first operation state includes: determining a first power consumption control parameter of the electronic equipment in a first power consumption mode based on the operation characteristic of the electronic equipment in a first operation state; determining a second power consumption control parameter corresponding to the first power consumption control parameter; a second power consumption mode is determined in the first hierarchical power consumption mode group based on the second power consumption control parameter.
The first power consumption control parameter in the first power consumption mode not only includes a power consumption component corresponding to the first power consumption mode, but also includes a power consumption parameter corresponding to each power consumption component, for example, the power consumption component of the electronic device may include one or more of a network component, a communication component, a processing component, and a display component of the electronic device, and the corresponding power consumption parameter may include one or more of a network frequency control parameter, an electronic device performance parameter, a processor frequency parameter, an application control parameter, and an external device parameter of the electronic device. The power consumption parameters of the current adjustable power consumption components and the corresponding power consumption components can be determined according to the first power consumption control parameters, the power consumption parameters are determined to be the second power consumption control parameters, then the power consumption modes capable of realizing the second power consumption control parameters are determined to be the second power consumption modes, and thus the adjustment of the power consumption parameters which are most matched with the current use state of the user can be realized on the existing power consumption control parameters, the power consumption of the electronic equipment is reduced, and the experience effect of the user is also met.
Further, the determining a second power consumption control parameter corresponding to the first power consumption control parameter includes: obtaining a power consumption component of the electronic device corresponding to the first power consumption control parameter; determining a target power consumption component based on the association relation between the power consumption components to be adjusted; a second power consumption control parameter corresponding to the target power consumption component is determined.
The association relationship between the power consumption component corresponding to the first power consumption control parameter and the candidate power consumption component to be adjusted may include one or more of a power consumption difference relationship between the power consumption components, an experience effect relationship at a user plane, an attribute relationship between the power consumption components, a priority relationship, a security influence relationship, and the like. The candidate power consumption component to be adjusted may be a power consumption component capable of reducing power consumption of the electronic device. Taking the priority relation between the power consumption components and the power consumption components to be adjusted candidate as an example, determining the power consumption components to be adjusted candidate based on the power consumption components corresponding to the current first power consumption control parameters, and then determining the target power consumption components based on the priority information of each component in the power consumption components to be adjusted candidate. For example, the currently candidate power consumption components to be adjusted include an external connection device, a photosensitive module, a network module, and the like of the electronic device, and the external connection device, such as a camera, of the electronic device has a lower application priority, and the driving of the camera of the external connection device can be controlled to be turned off first, so as to reduce the power consumption of the electronic device. For another example, the target power consumption components may be determined based on a security impact relationship, and when each security coefficient in the candidate power consumption components to be adjusted, that is, if a certain power consumption component in the candidate power consumption components to be adjusted is turned off, whether the security of the electronic device is affected, the power consumption components affecting the security of the electronic device cannot be turned off when the power consumption mode is adjusted. For another example, the target power consumption component may be determined according to an application priority of a current application process of the electronic device, and specifically, an application process with a lower application priority and a higher power consumption may be turned off, for example, a game process with a current standby operation, or a video information caching process, etc. And determining the target power consumption component according to the subordination relation or the use state of each candidate power consumption component to be adjusted, for example, the controller of the current electronic device is a multi-core controller, and the cores of the current main operation can be kept in an on state, and the cores of other controllers are correspondingly closed, so that the current power consumption of the electronic device is reduced. Further, after the target power consumption components to be adjusted are determined, the second power consumption control parameters of the target power consumption components are determined according to the target use duration to be achieved, for example, some target power consumption components may be turned off directly, and some target power consumption components may be operated with lower power consumption control parameters, such as reducing the over-frequency power of the electronic device CPU (central processing unit) or displaying the maximum power of the electronic device CPU.
In the embodiment of the application, in order to keep the operation of the electronic equipment for a specified target use time, keep the current use state and better performance of the electronic equipment, a processing mode of hierarchical adjustment can be adopted, namely, the electronic equipment is not directly reduced to the operation state with the lowest power consumption mode, and if the electronic equipment is not directly controlled to enter the dormant state. But the electronic equipment is controlled to enter a lower power consumption mode, and if the requirement of the operation target using time is still not met, the electronic equipment is controlled to enter the lower power consumption mode. Thus, in one implementation of the embodiment of the present application, further includes: obtaining a third operable use duration of the electronic equipment in the second operation state; and if the third using time length and the target using time length do not meet the third condition, controlling the electronic equipment to switch to a third running state corresponding to a third power consumption mode in the first-level power consumption mode group. The power consumption control parameters of the third power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the third power consumption mode is smaller than that of the electronic equipment in the second power consumption mode. The time length that the electronic equipment can run after the second running state is stable is a third using time length, the time length obtained by subtracting the time length that the electronic equipment runs at the moment from the target using time length is an expected residual running time length, and if the third using time length is smaller than the residual running time length, the third using time length and the target using time length are represented to not meet a third condition. Specifically, the determination of the third power consumption mode and the determination of the power consumption control parameter in the third power consumption mode may refer to the foregoing determination of the second power consumption mode and the second power consumption control parameter, which are not described in detail herein.
When the electronic equipment is in the current power consumption mode, certain application programs are not used any more or a user of the electronic equipment actively closes certain processes, so that the power consumption of the electronic equipment is reduced, more performances of the electronic equipment can be released at the moment, the preset target use time of the electronic equipment can be met, namely the reverse regulation of the power consumption is realized, the current power consumption mode is regulated to a mode with relatively higher power consumption, and the performance experience of the user is improved. That is, in one implementation of the embodiment of the present application, further includes:
if the second use duration of the electronic equipment in the first operation state and the target use duration meet the second condition, a second-level power consumption mode group corresponding to the first power consumption mode is obtained; determining a target power consumption mode in the second-level power consumption mode group based on the operation characteristics of the electronic device in the first operation state; and controlling the electronic equipment to switch to a target running state corresponding to the target power consumption mode. The second-level power consumption mode group comprises at least one power consumption mode, and when the electronic equipment operates in each power consumption mode corresponding to the second-level power consumption mode group, the power consumption of the electronic equipment is not smaller than the power consumption of the electronic equipment in the first power consumption mode. For example, if the current first power consumption mode is the C power consumption mode, the target power consumption mode may be the B power consumption mode or the a power consumption mode, specifically, the selected a power consumption mode or the B power consumption mode may be determined according to the difference between the current second usage time length and the current remaining time length of the target usage time length, if the second usage time length is 30 minutes, the remaining time length corresponding to the current time length of the target usage time is 20 minutes, and the target power consumption mode may be determined as the B power consumption mode; if the second usage period is 40 minutes, the target power consumption mode may be determined as the A power consumption mode.
In the embodiment of the application, in order to improve the user experience effect, corresponding power consumption adjustment prompt information can be generated before each power consumption mode switching, and the power consumption adjustment mode or the power consumption adjustment parameter and the like are determined according to feedback information corresponding to a user. Describing the process by taking the determination of the first power consumption mode as an example, in one embodiment, if the first usage duration and the target usage duration do not meet the first condition, controlling the electronic device to switch to a first operation state corresponding to the first power consumption mode includes: if the first using time length and the target using time length do not meet the first condition, generating prompt information based on the current power consumption component of the electronic equipment; determining a target power consumption component in the power consumption components to be adjusted based on feedback information corresponding to the prompt information; determining a first power consumption mode corresponding to the target power consumption component; the control electronics switch to a first operational state corresponding to the first power consumption mode. The prompt information is used for prompting the power consumption components to be adjusted. For example, the prompting information may be prompting the user whether to close the wireless network connection module, whether to reduce the screen brightness, whether to close the designated application process, and the like, and then determining the final target power consumption component to be adjusted according to the selected information of the user and the information such as the power consumption parameter of the current power consumption component, and further determining the adjustment parameters of each target power consumption component to determine the first power consumption mode satisfying the adjustment.
The method for controlling the power consumption mode according to the embodiment of the present application is described below with a specific application scenario, in which the electronic device may be a notebook computer, and each power consumption mode may be based on adjustment information corresponding to a current power consumption mode, for example, the second power consumption mode is to add adjustment information corresponding to a level to the first power consumption mode. Specifically, the first level may be a mode of adjusting energy-saving setting under an operating system of the electronic device, specifically may be a mode of adjusting a battery usage mode of the electronic device, and adjusting an optimal performance mode to a longer battery endurance mode, that is, adjusting other power-saving settings under the system, for example, controlling a box cover of the electronic device to turn off a screen, waiting for a start time of dormancy, and the like, and specifically may be to change from 3 minutes into 1 minute into dormancy when in misoperation into dormancy. The second level may be to modify the current performance mode, such as switching the current high performance mode to a normal mode or a quiet mode corresponding to the second level, where the high performance mode is a maximum value that the operating system of the electronic device will operate at full load with a set maximum main frequency, and the main frequency will remain within the set range. The third level is an adjustment mode for relevant parameters of the Basic Input Output System (BIOS) or the Embedded Controller (EC) of the electronic device, i.e. system power consumption is limited by the BIOS, EC, such as setting power adjustment, adjustment of CPU operation parameters and adjustment of main frequency or workload. The fourth level may be a throttling mode that limits applications under the Operating System (OS), i.e. in which only Applications (APP) that the user is allowed to run are run, preventing other applications from consuming power in the background running. The fifth level may be a mode of limiting peripherals, such as limiting peripherals by BIOS, EC, such as turning off dGPU (discrete GPU independent graphics card), USB port (USB interface), etc., unused devices. Referring to fig. 2, a schematic diagram of hierarchical adjustment is provided in an embodiment of the present application, in which an adjustment sequence from top to bottom in fig. 2 is an adjustment sequence for reducing power consumption, and an adjustment sequence from bottom to top is an adjustment sequence for improving power consumption. When the expected use time is set by the user, calculating the current battery power and power consumption of the electronic device to obtain a sustainable time value, and when the expected use time cannot be met by the user, first-level adjustment can be performed first. After adjustment, the calculation is performed again, and when the requirement of the expected use time of the user is not met, the second level adjustment can be continued, and so on until the requirement of the user time is met. Only a schematic illustration of the stepwise adjustment is shown in fig. 2, corresponding to the cross-stage adjustment, also possible if the first stage does not fulfil the adjustment to the third level. Specifically, the user may input the expected usage time value T0 through a power consumption control application or a shortcut key preset in the electronic device, and transfer T0 to the EC through the BIOS. EC calculates the current battery power and power consumption to obtain a sustainable time value T1; when T1< T0, the EC sends a power consumption adjustment event instruction to inform the BIOS, and the BIOS informs an operating system or an application program (APP) through an advanced configuration and power management interface code (ACPI code) to perform first-level adjustment; and determining the current operable time in real time, and if the residual time corresponding to the expected time at the current moment is still not met, performing next-stage adjustment. If the current executable time is greater than the rest time corresponding to the expected time at the current moment, the adjustment can be reversely carried out to release the performance of the computer.
In the application scene, a user can set the expected use time numerical value of the electronic equipment through operations such as a shortcut key, the operation is simple and quick, the time set by the user is the actual usable time, and the time is different from the theoretical running time of a computer, so that the actual requirement of the user can be met. And by means of hierarchical adjustment, performance can be released to the greatest extent under the condition that the time requirement of a user is met, and the situation that the user cannot fully use computer resources due to the fact that the user worries about the duration of the battery is avoided. When the software operated by the user is reduced, the system power consumption is reduced, more performance can be released at the time, and then the adjustment can be reversely performed, so that more performance experience is provided for the user.
In an embodiment of the present application, a power consumption control apparatus is provided, referring to fig. 3, the apparatus may include:
a determining unit 301, configured to determine a target usage duration for an electronic device, and a first usage duration that the electronic device is currently operable;
a first control unit 302, configured to control the electronic device to switch to a first operation state corresponding to a first power consumption mode if the first usage duration and the target usage duration do not meet a first condition;
A second control unit 303, configured to control the electronic device to switch to a second operation state corresponding to a second power consumption mode if a second usage period during which the electronic device is operable in the first operation state and the target usage period do not satisfy the second condition;
the power consumption control parameters of the first power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the second power consumption mode is smaller than that of the electronic equipment in the first power consumption mode.
Optionally, the second control unit includes:
the first obtaining subunit is configured to obtain a first level power consumption mode group corresponding to the first power consumption mode if a second usage duration of the electronic device that is in a first operational state and that of the electronic device that is in a second operational state do not meet a second condition;
a first determining subunit configured to determine a second power consumption mode in the first-level power consumption mode group based on an operation characteristic of the electronic device in the first operation state;
the first control subunit is used for controlling the electronic equipment to switch to a second running state corresponding to the second power consumption mode;
the first-level power consumption mode group comprises at least one power consumption mode, and when the electronic equipment operates in each power consumption mode corresponding to the first-level power consumption mode group, the power consumption of the electronic equipment is smaller than that of the electronic equipment in the first power consumption mode.
Optionally, the method further comprises:
a second obtaining subunit, configured to obtain a second level power consumption mode group corresponding to the first power consumption mode if a second usage duration of the electronic device that is in the first operational state and the target usage duration meet a second condition;
a second determining subunit configured to determine a target power consumption mode in the second-level power consumption mode group based on an operation characteristic of the electronic device in the first operation state;
the second control subunit is used for controlling the electronic equipment to switch to a target running state corresponding to the target power consumption mode;
the second-level power consumption mode group comprises at least one power consumption mode, and when the electronic equipment operates in each power consumption mode corresponding to the second-level power consumption mode group, the power consumption of the electronic equipment is not smaller than the power consumption of the electronic equipment in the first power consumption mode.
Optionally, the first determining subunit is specifically configured to:
determining a first power consumption control parameter of the electronic equipment in a first power consumption mode based on the operation characteristic of the electronic equipment in the first operation state;
determining a second power consumption control parameter corresponding to the first power consumption control parameter;
A second power consumption mode is determined in the first hierarchical power consumption mode group based on the second power consumption control parameter.
Wherein the determining a second power consumption control parameter corresponding to the first power consumption control parameter includes:
obtaining a power consumption component of the electronic device corresponding to the first power consumption control parameter;
determining a target power consumption component based on the association relationship between the power consumption component and the candidate power consumption component to be adjusted;
a second power consumption control parameter corresponding to the target power consumption component is determined.
Optionally, the method further comprises:
a duration obtaining unit, configured to obtain a third operable duration of the electronic device in the second operation state;
the third control unit is used for controlling the electronic equipment to switch to a third running state corresponding to a third power consumption mode in the first-level power consumption mode group if the third using time length and the target using time length do not meet a third condition;
the power consumption control parameters of the third power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the third power consumption mode is smaller than that of the electronic equipment in the second power consumption mode.
Optionally, the determining unit is specifically configured to:
obtaining current operation information of the electronic equipment;
determining at least one power consuming component of the electronic device based on the current operational information;
and determining a first using duration of the electronic equipment which can be operated currently based on the current residual electric quantity of the electronic equipment and the power consumption parameters of each power consumption component.
Optionally, the first control unit is specifically configured to:
if the first using time length and the target using time length do not meet a first condition, generating prompt information based on the current power consumption component of the electronic equipment, wherein the prompt information is used for prompting the power consumption component to be regulated;
determining a target power consumption component in the power consumption components to be adjusted based on feedback information corresponding to the prompt information;
determining a first power consumption mode corresponding to the target power consumption component;
and controlling the electronic equipment to be switched to a first running state corresponding to the first power consumption mode.
It should be noted that, the specific implementation of each unit and sub-unit in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
In another embodiment of the present application, there is also provided a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the power consumption control method as set forth in any one of the above.
In another embodiment of the present application, there is also provided an electronic device, which may include:
a memory for storing an application program and data generated by the operation of the application program;
a processor for executing the application program to implement the power consumption control method as claimed in any one of the above.
It should be noted that, the specific implementation of the processor in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A power consumption control method, comprising:
determining a target use duration for an electronic device and a first use duration currently operable by the electronic device;
If the first using time length and the target using time length do not meet a first condition, controlling the electronic equipment to switch to a first running state corresponding to a first power consumption mode;
if the second using time length of the electronic equipment in the first operating state and the target using time length do not meet the second condition, controlling the electronic equipment to switch to a second operating state corresponding to a second power consumption mode;
the power consumption control parameters of the first power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the second power consumption mode is smaller than that of the electronic equipment in the first power consumption mode.
2. The method of claim 1, wherein if the second usage period of time that the electronic device is in the first operational state and the target usage period of time do not satisfy the second condition, controlling the electronic device to switch to the second operational state corresponding to the second power consumption mode comprises:
if the second use time length of the electronic equipment in the first operation state and the target use time length do not meet a second condition, a first-level power consumption mode group corresponding to the first power consumption mode is obtained;
Determining a second power consumption mode in the first hierarchical power consumption mode group based on an operational characteristic of the electronic device in the first operational state;
controlling the electronic equipment to switch to a second running state corresponding to the second power consumption mode;
the first-level power consumption mode group comprises at least one power consumption mode, and when the electronic equipment operates in each power consumption mode corresponding to the first-level power consumption mode group, the power consumption of the electronic equipment is smaller than that of the electronic equipment in the first power consumption mode.
3. The method of claim 2, further comprising:
if the second use duration of the electronic equipment in the first operation state and the target use duration meet a second condition, a second-level power consumption mode group corresponding to the first power consumption mode is obtained;
determining a target power consumption mode in the second-level power consumption mode group based on an operation characteristic of the electronic device in the first operation state;
controlling the electronic equipment to switch to a target running state corresponding to the target power consumption mode;
the second-level power consumption mode group comprises at least one power consumption mode, and when the electronic equipment operates in each power consumption mode corresponding to the second-level power consumption mode group, the power consumption of the electronic equipment is not smaller than the power consumption of the electronic equipment in the first power consumption mode.
4. The method of claim 2, the determining a second power consumption mode in the first hierarchical power consumption mode group based on an operational characteristic of the electronic device in the first operational state, comprising:
determining a first power consumption control parameter of the electronic equipment in a first power consumption mode based on the operation characteristic of the electronic equipment in the first operation state;
determining a second power consumption control parameter corresponding to the first power consumption control parameter;
a second power consumption mode is determined in the first hierarchical power consumption mode group based on the second power consumption control parameter.
5. The method of claim 4, the determining a second power consumption control parameter corresponding to the first power consumption control parameter, comprising:
obtaining a power consumption component of the electronic device corresponding to the first power consumption control parameter;
determining a target power consumption component based on the association relationship between the power consumption component and the candidate power consumption component to be adjusted;
a second power consumption control parameter corresponding to the target power consumption component is determined.
6. The method of claim 2, further comprising:
obtaining a third operable use duration of the electronic equipment in the second operation state;
If the third using time length and the target using time length do not meet a third condition, controlling the electronic equipment to switch to a third running state corresponding to a third power consumption mode in the first-level power consumption mode group;
the power consumption control parameters of the third power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the third power consumption mode is smaller than that of the electronic equipment in the second power consumption mode.
7. The method of claim 1, wherein determining a first in-use time length for which the electronic device is currently operational comprises:
obtaining current operation information of the electronic equipment;
determining at least one power consuming component of the electronic device based on the current operational information;
and determining a first using duration of the electronic equipment which can be operated currently based on the current residual electric quantity of the electronic equipment and the power consumption parameters of each power consumption component.
8. The method of claim 7, wherein if the first usage period and the target usage period do not satisfy the first condition, controlling the electronic device to switch to the first operation state corresponding to the first power consumption mode comprises:
If the first using time length and the target using time length do not meet a first condition, generating prompt information based on the current power consumption component of the electronic equipment, wherein the prompt information is used for prompting the power consumption component to be regulated;
determining a target power consumption component in the power consumption components to be adjusted based on feedback information corresponding to the prompt information;
determining a first power consumption mode corresponding to the target power consumption component;
and controlling the electronic equipment to be switched to a first running state corresponding to the first power consumption mode.
9. A power consumption control apparatus comprising:
a determining unit, configured to determine a target usage duration for an electronic device, and a first usage duration that the electronic device is currently operable;
the first control unit is used for controlling the electronic equipment to switch to a first running state corresponding to a first power consumption mode if the first using time length and the target using time length do not meet a first condition;
the second control unit is used for controlling the electronic equipment to switch to a second operation state corresponding to a second power consumption mode if the second use duration of the electronic equipment in the first operation state and the target use duration do not meet the second condition;
The power consumption control parameters of the first power consumption mode and the second power consumption mode are different, and the power consumption of the electronic equipment in the second power consumption mode is smaller than that of the electronic equipment in the first power consumption mode.
10. An electronic device, comprising:
a memory for storing an application program and data generated by the operation of the application program;
a processor for executing the application program to implement the power consumption control method according to any one of claims 1 to 8.
CN202311100579.4A 2023-08-29 2023-08-29 Power consumption control method and device and electronic equipment Pending CN117130455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311100579.4A CN117130455A (en) 2023-08-29 2023-08-29 Power consumption control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311100579.4A CN117130455A (en) 2023-08-29 2023-08-29 Power consumption control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117130455A true CN117130455A (en) 2023-11-28

Family

ID=88862475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311100579.4A Pending CN117130455A (en) 2023-08-29 2023-08-29 Power consumption control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117130455A (en)

Similar Documents

Publication Publication Date Title
US7596705B2 (en) Automatically controlling processor mode of multi-core processor
US10592254B2 (en) Technologies for fast low-power startup of a computing device
KR101562448B1 (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
JP5786641B2 (en) Control method of portable terminal device, control program, and portable terminal device
EP2106579B1 (en) Linked shell
US20140075220A1 (en) Method and device of controlling power saving
US20080055311A1 (en) Portable device with run-time based rendering quality control and method thereof
CN102402454B (en) Method for regulating memory operation frequency and electronic device
US20060279256A1 (en) Power management system for multi-function battery-operated device
US20090204835A1 (en) Use methods for power optimization using an integrated circuit having power domains and partitions
US9329663B2 (en) Processor power and performance manager
JP2014513877A (en) Method and apparatus for smart power management for mobile communication terminals using power thresholds
WO2018085097A1 (en) Thread importance based processor core parking and frequency selection
CN114490252A (en) Power consumption management and temperature control system and method for computer
CN102156535A (en) Energy-saving processing method and energy-saving processing device for hardware
CN110795323A (en) Load statistical method, device, storage medium and electronic equipment
KR20180076631A (en) Method and system for performance boosting for semiconductor device
CN117130455A (en) Power consumption control method and device and electronic equipment
JP6070321B2 (en) Portable information terminal, control method, control program
JP2004152068A (en) System and method for controlling operating frequency
CN112448429B (en) Control method, terminal and computer storage medium
CN114880042A (en) Application starting method and device, electronic equipment and computer readable storage medium
CN110148992B (en) Charging control method, terminal device and storage medium
CN115712337A (en) Scheduling method and device of processor, electronic equipment and storage medium
JP6789861B2 (en) Operating frequency control device, operating frequency control program, and operating frequency control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination