CN111309133A - Power saving control method and electronic equipment - Google Patents

Power saving control method and electronic equipment Download PDF

Info

Publication number
CN111309133A
CN111309133A CN202010075828.9A CN202010075828A CN111309133A CN 111309133 A CN111309133 A CN 111309133A CN 202010075828 A CN202010075828 A CN 202010075828A CN 111309133 A CN111309133 A CN 111309133A
Authority
CN
China
Prior art keywords
power saving
target
information
electronic device
application program
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
CN202010075828.9A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010075828.9A priority Critical patent/CN111309133A/en
Publication of CN111309133A publication Critical patent/CN111309133A/en
Pending legal-status Critical Current

Links

Images

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/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3212Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level

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 embodiment of the invention provides a power saving control method and electronic equipment, relates to the technical field of communication, and aims to solve the problem that the continuity of a power saving mode of the conventional electronic equipment is poor. The method comprises the following steps: acquiring first information; determining a first power saving strategy corresponding to a target application program according to the first information, wherein the target application program is an application program currently operated by the electronic equipment; instructing the target application program to execute a first power saving strategy; wherein the first information includes any one of: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program. The method is applied to the scene that the electronic equipment saves electricity.

Description

Power saving control method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a power saving control method and electronic equipment.
Background
With the widespread application of electronic devices, more and more applications are carried on the electronic devices, which results in shorter and shorter battery life of the electronic devices.
In the case where the amount of power of the battery of the electronic device is below a certain level, the electronic device may enter a power saving mode. Generally, after the electronic device enters a power saving mode, the electronic device may limit the number of applications running in the electronic device and control a display mode of a screen of the electronic device, a network connection of the electronic device, and resource occupation of other hardware, thereby reducing power consumption of the electronic device.
However, in the above process, since the electronic device enters the power saving mode when the power is about to be exhausted, the power saving mode of the electronic device is a temporary power saving mode, which results in a poor continuity of the power saving mode of the electronic device.
Disclosure of Invention
The embodiment of the invention provides a power saving control method and electronic equipment, and aims to solve the problem that the continuity of a power saving mode of the conventional electronic equipment is poor.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a power saving control method, where the method includes: acquiring first information; determining a first power saving strategy corresponding to a target application program according to the first information, wherein the target application program is an application program currently operated by the electronic equipment; and instructing the target application to execute a first power saving policy; wherein the first information includes any one of: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program.
In a second aspect, an embodiment of the present invention provides an electronic device, which includes an obtaining module, a determining module, and an executing module. The electronic equipment comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring first information which is used for indicating the current power saving urgency of the electronic equipment; the determining module is used for determining a first power saving strategy corresponding to a target application program according to the first information acquired by the acquiring module, wherein the target application program is an application program currently operated by the electronic equipment; the execution module is used for indicating the target application program to execute the first power saving strategy determined by the determination module; wherein the first information includes any one of: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and being executable on the processor, and when executed by the processor, the electronic device implements the steps of the power saving control method in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the power saving control method in the first aspect.
In the embodiment of the present invention, first information may be acquired; determining a first power saving strategy corresponding to a target application program (an application program currently operated by the electronic equipment) according to the first information; and instructing the target application to execute a first power saving policy; wherein the first information includes any one of: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program. By the proposal, the target power saving level corresponding to the electronic equipment and the target electric quantity quota level corresponding to the target application program can both reflect the current power saving urgency of the electronic equipment, and the first power saving policy is determined according to the first information and corresponds to the target application, so during the operation of the target application by the electronic device, the power saving strategy corresponding to the application program currently operated by the electronic equipment can be determined according to the current power saving urgency of the electronic equipment, and instruct the target application program to execute a corresponding power saving policy, so that after the target application program executes the power saving policy, the power consumed by the electronic device for running the target application program can be reduced, therefore, the electronic equipment can continuously save electricity in the process of running the application program, and the standby time of the electronic equipment can be further prolonged.
Drawings
Fig. 1 is a schematic diagram of an architecture of an android operating system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a power saving control method according to an embodiment of the invention;
fig. 3 is a second flowchart of a power saving control method according to an embodiment of the present invention;
fig. 4 is a third schematic flowchart of a power saving control method according to an embodiment of the invention;
fig. 5 is a fourth flowchart illustrating a power saving control method according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a hardware schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first information, the second information, and the like are for distinguishing different information, not for describing a specific order of information.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.
The embodiment of the invention provides a power saving control method and electronic equipment, which can acquire first information; determining a first power saving strategy corresponding to a target application program (an application program currently operated by the electronic equipment) according to the first information; and instructing the target application to execute a first power saving policy; wherein the first information includes any one of: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program. By the proposal, the target power saving level corresponding to the electronic equipment and the target electric quantity quota level corresponding to the target application program can both reflect the current power saving urgency of the electronic equipment, and the first power saving policy is determined according to the first information and corresponds to the target application, so during the operation of the target application by the electronic device, the power saving strategy corresponding to the application program currently operated by the electronic equipment can be determined according to the current power saving urgency of the electronic equipment, and instruct the target application program to execute a corresponding power saving policy, so that after the target application program executes the power saving policy, the power consumed by the electronic device for running the target application program can be reduced, therefore, the electronic equipment can continuously save electricity in the process of running the application program, and the standby time of the electronic equipment can be further prolonged.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the power saving control method provided by the embodiment of the present invention is described by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the power saving control method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the power saving control method may operate based on the android operating system shown in fig. 1. That is, the processor or the electronic device may implement the power saving control method provided by the embodiment of the present invention by running the software program in the android operating system.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not particularly limited.
An execution main body of the power saving control method provided in the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the power saving control method in the electronic device, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe the power saving control method provided by the embodiment of the present invention.
In the embodiment of the present invention, in a process of running an application program by an electronic device, in order to ensure that each function of the application program can be normally used, the electronic device may need to run a plurality of hardware or functional modules (e.g., a speaker, a camera, etc.), which may result in a faster power consumption speed of the electronic device. In this way, during the operation of the electronic device, the electronic device may obtain information (e.g., the first information in the embodiment of the present invention) indicating the current power saving urgency of the electronic device; then, according to the information, determining a power saving policy (e.g., a first power saving policy in the embodiment of the present invention) corresponding to the application currently running on the electronic device; and finally, the application program is instructed to execute the power saving strategy, so that the electronic equipment can continuously save power in the process of running the application program, and the standby time of the electronic equipment can be prolonged.
The following describes an exemplary power saving control method according to an embodiment of the present invention with reference to the drawings.
As shown in fig. 2, an embodiment of the invention provides a power saving control method. The method is applied to the electronic equipment and comprises the following steps S201-S203.
S201, the electronic equipment acquires first information.
Wherein, the first information may include any one of the following items: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program. The target application may be an application currently running on the electronic device.
It is to be understood that the first information may be used to indicate (or reflect) the current power saving urgency of the electronic device.
In the embodiment of the invention, in the process of running the application program by the electronic equipment, the electronic equipment can acquire the first information in real time, so that the current power saving urgency of the electronic equipment is determined. In this way, the electronic device may determine the power saving policy corresponding to the target application according to the first information.
It should be noted that, in the embodiment of the present invention, the obtaining, by the electronic device, the first information may specifically be: the application program operated by the electronic equipment acquires the first information at the application program layer. That is, the application includes a code segment for acquiring the first information, and the electronic device can acquire the first information after the electronic device runs the application.
Optionally, in this embodiment of the present invention, when the first information includes different contents, the electronic device may obtain the first information in different manners. That is, any of a variety of possible combinations may be included between the first information and the manner in which the electronic device obtains the first information.
The following exemplifies the first information and the manner in which the electronic device acquires the first information in two possible cases (specifically, a first case and a second case described below).
The first information and the manner in which the electronic device acquires the first information are exemplarily described below by taking two cases as examples, which do not limit the embodiments of the present invention at all. In actual implementation, the combination between the first information and the manner of acquiring the first information by the electronic device may further include any other possible situation, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
In the first case: the first information comprises a target power saving level corresponding to the electronic equipment; the manner in which the electronic device acquires the target power saving level (i.e., the manner in which the first information is acquired) may be: the electronic device first obtains the current remaining power (e.g., the first power in the embodiment of the present invention), and then determines the power saving level (i.e., the target power saving level) corresponding to the power according to the power and the rated power of the electronic device, so as to accurately obtain the first information.
In the embodiment of the present invention, as for the first case, the above S201 may be specifically realized by the following S201a and S201 b.
S201a, the electronic device obtains the current remaining first power of the electronic device.
S201b, the electronic device determines a target power saving level according to the first power and a rated power of the electronic device.
In the first case, the electronic device may first obtain a first power amount currently remaining in the electronic device, and then determine the target power saving level according to the first power amount and a rated power amount of the electronic device (specifically, a rated power amount of a battery of the electronic device), so that the electronic device may obtain the first information.
It should be noted that, the electric quantity (for example, the first electric quantity) mentioned in the embodiment of the present invention may specifically be an electric quantity value. For convenience of description and understanding, the embodiments of the present invention are all expressed in terms of "electric quantity".
Optionally, in the first case, a plurality of power saving levels may be preset in the electronic device, and each of the plurality of power saving levels corresponds to a different power interval. Wherein, the higher the power saving level is, the higher the power saving urgency level of the electronic device indicated by the power saving level is.
Therefore, after the electronic device obtains the first electric quantity, the electronic device may determine an electric quantity interval in which the first electric quantity is located; then, the electronic device may determine a target power saving level corresponding to the electronic device according to the power interval in which the first power is located.
For example, it is assumed that five power saving levels are preset in the electronic device, which are a first power saving level, a second power saving level, a third power saving level, a fourth power saving level, and a fifth power saving level. The electric quantity interval corresponding to the first power saving level can be [ 100% Q, 80% Q ]; the electric quantity interval corresponding to the second power saving level can be [ 80% Q, 60% Q); the electric quantity interval corresponding to the third power saving level can be [ 60% Q, 40% Q ]; the electric quantity interval corresponding to the fourth power saving level may be [ 40% Q, 20% Q ]; the electric quantity interval corresponding to the fifth power saving level may be [ 20% Q, 0% Q ").
The term "Q" is used to indicate the rated power of the electronic device.
It is to be understood that, in the above example, the power saving urgency levels indicated from the first power saving level to the fifth power saving level are sequentially incremented. That is, the power saving urgency level indicated by the first power saving level is smaller than the power saving urgency level indicated by the second power saving level, the power saving urgency level indicated by the second power saving level is smaller than the power saving urgency level indicated by the third power saving level, the power saving urgency level indicated by the third power saving level is smaller than the power saving urgency level indicated by the fourth power saving level, and the power saving urgency level indicated by the fourth power saving level is smaller than the power saving urgency level indicated by the fifth power saving level.
In addition, the above example is only exemplified by presetting five power saving levels in the electronic device, and does not limit the present application in any way. In actual implementation, any number of power saving levels may be preset in the electronic device, and may be determined specifically according to actual use requirements, which is not limited in the embodiment of the present invention.
The following describes an exemplary process of determining the target power saving level by the electronic device.
For example, assuming that the rated power of the electronic device is 3500 ma and the first power is 2450 ma, the electronic device may determine that the current remaining power of the electronic device is 70% of the rated power of the electronic device. Thus, the electronic device may determine that the power saving level corresponding to the power saving interval [ 80% Q, 60% Q ] is the second power saving level, so that the electronic device may determine that the power saving level corresponding to the first power saving is the second power saving level, and then the electronic device may determine that the target power saving level is the second power saving level.
In the embodiment of the invention, as the more the current remaining electric quantity of the electronic equipment is, the lower the current power saving urgency degree of the electronic equipment is, correspondingly, the less the current remaining electric quantity of the electronic equipment is, the higher the current power saving urgency degree of the electronic equipment is; and the higher the power saving level is, the higher the power saving urgency of the electronic device is, so that after the electronic device acquires the first power, the electronic device can accurately target the power saving level.
In the second case: the first information comprises a target electric quantity quota level corresponding to the target application program; the manner of acquiring the target electricity amount level (i.e. the manner of acquiring the first information) by the electronic device may be: the electronic equipment firstly obtains the information (such as the second information in the embodiment of the invention) of the consumption degree of the target electricity consumption amount (the maximum electricity amount allowed to be consumed by the target application program in the first time length), and then determines the target electricity consumption amount level according to the information and the target electricity consumption amount, so as to accurately obtain the first information.
In the embodiment of the present invention, as for the second case, the above S201 can be specifically realized by the following S201c and S201 d.
S201c, the electronic device acquires second information.
The second information may be used to indicate a consumption degree of a target electricity consumption amount, and the target electricity consumption amount may be a maximum amount of electricity allowed to be consumed by the target application program within the first duration.
It can be understood that the second information may reflect consumption of the target electricity consumption amount by the target application program (i.e. the running target application program) when the target application program is running by the electronic device.
S201d, the electronic device determines the target electric quantity limit level according to the second information and the target electric quantity limit.
In the second case, the electronic device may first obtain the second information, and then determine the target electricity amount level according to the second information and the target electricity amount, so that the electronic device may obtain the first information.
Optionally, in this embodiment of the present invention, the second information may be specifically used to indicate a consumption degree of the target electricity consumption amount by the target application program within the second time period.
It should be noted that the second time period may be shorter than the first time period. That is, the second duration may be within the range of the first duration.
Optionally, in this embodiment of the present invention, the second duration may be a duration during which the electronic device currently runs the target application.
Of course, in actual implementation, the second time period may also be any other possible time period, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited.
Optionally, in this embodiment of the present invention, the second information may include at least one of the following: a remaining amount of the target electricity amount, a second amount of electricity consumed by the target application, and a rate at which the target application consumes the amount of electricity (i.e., a rate at which the target electricity amount is consumed). The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
It is to be understood that the second amount of power consumed by the target application may be an amount of power consumed by the electronic device to run the target application, and the rate of power consumption by the target application may be a rate of power consumption by the electronic device to run the target application.
Optionally, in the embodiment of the present invention, the target electricity amount may be preset in the electronic device by a manufacturer of the electronic device, or may also be preset in the electronic device by a user. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
It will be appreciated that the target electricity usage amount may be used to limit or restrict the power consumption behavior of the target application.
Illustratively, the target electricity consumption amount can be any possible electricity amount such as 300 milliamperes or 500 milliamperes.
Optionally, in an embodiment of the present invention, the second information may be further used to indicate a remaining amount of the target electricity consumption amount. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
It should be noted that, in the examples in the embodiments of the present invention, the second information is used to indicate the consumption degree of the target electricity consumption amount, and as for the implementation manner of the second information used to indicate the remaining amount of the target electricity consumption amount, the implementation manner is similar to the implementation manner of the second information used to indicate the consumption degree of the target electricity consumption amount, and in order to avoid repetition, the embodiments of the present invention are not repeated.
Optionally, in the second case, a plurality of power amount limit levels may be preset in the electronic device, and each of the power amount limit levels corresponds to a consumption interval with a different target power amount.
It should be noted that, in the second case, the higher the power amount limit level is, i.e., the more the target power amount is consumed, the higher the power saving urgency of the electronic device indicated by the power amount limit level is.
For the second case, after the electronic device acquires the second information, the electronic device may determine a consumption interval of the target electricity consumption amount according to the second information and the target electricity consumption amount; then, the electronic device may determine a target electric quantity quota level corresponding to the target application program according to the consumption interval.
For example, assume that four electric quantity credit levels are preset in the electronic device, which are a first electric quantity credit level, a second electric quantity credit level, a third electric quantity credit level and a fourth electric quantity credit level, respectively. The consumption interval corresponding to the first electric quantity quota level can be (0% A, 25% A), the consumption interval corresponding to the second electric quantity quota level can be (25% A, 50% A), the consumption interval corresponding to the third electric quantity quota level can be (50% A, 75% A), and the consumption interval corresponding to the fourth electric quantity quota level can be (75% A, 100% A).
Wherein "A" is used to indicate the target electricity consumption amount.
It is to be understood that, in the above example, the power saving urgency levels indicated from the first power amount line level to the fourth power amount line level are sequentially increased. That is, the power saving urgency level indicated by the first power amount level is smaller than the power saving urgency level indicated by the second power amount level, the power saving urgency level indicated by the second power amount level is smaller than the power saving urgency level indicated by the third power amount level, and the power saving urgency level indicated by the third power amount level is smaller than the power saving urgency level indicated by the fourth power amount level.
In addition, the above example is only exemplified by presetting four electric quantity credit levels in the electronic device, and does not limit the application in any way. In actual implementation, any number of electric quantity quota levels can be preset in the electronic device, and can be specifically determined according to actual use requirements, which is not limited in the embodiment of the present invention.
Optionally, in this embodiment of the present invention, after the electronic device obtains the second information, the electronic device may map the second information to a corresponding electric quantity quota level, so as to determine the target electric quantity quota level.
The following describes an exemplary process of determining the target electric quantity credit level by the electronic device.
For example, assuming that the second information includes a second amount of power consumed by the target application, the second amount of power is 300 milliamps, and the target electricity consumption amount is 500 milliamps, the electronic device may determine that the second amount of power is 60% of the target electricity consumption amount. Therefore, the electronic device can determine that the consumption interval in which the second electric quantity is located is a consumption interval (50% a, 75% a) (wherein the electric quantity credit level corresponding to the consumption interval (50% a, 75% a) is a third electric quantity credit level), so that the electronic device can determine that the electric quantity credit level corresponding to the second electric quantity is a third electric quantity credit level, and further the electronic device can determine that the target electric quantity credit level is the third electric quantity credit level.
Optionally, in the embodiment of the present invention, after the electronic device acquires the second information, the electronic device may acquire the remaining amount of the target electricity consumption amount. If the remaining amount is less than the first threshold, the electronic device may display a first prompt to inform the user that the target application consumes too much power.
In the embodiment of the invention, as the more the remaining amount of the target electricity consumption amount is, the lower the current electricity saving urgency of the electronic equipment is, correspondingly, the less the remaining amount of the target electricity consumption amount is, the higher the current electricity saving urgency of the electronic equipment is; and the higher the electric quantity quota level is, the higher the power saving urgency level of the electronic device is, so that after the electronic device acquires the second information indicating the consumption degree of the target electric quantity quota, the electronic device can accurately obtain the target electric quantity quota level.
S202, the electronic equipment determines a first power saving strategy corresponding to the target application program according to the first information.
S203, the electronic equipment instructs the target application program to execute the first power saving strategy.
In this embodiment of the present invention, after the electronic device obtains the first information, the electronic device may determine, according to the first information, a first power saving policy corresponding to the target application, and after the first power saving policy is determined, the electronic device may instruct the target application to execute the first power saving policy. After the target application executes the first power saving strategy, the electronic device can continuously save power during the running of the target application.
It is to be understood that, in the embodiment of the present invention, the first power saving policy is executed by the target application, that is, the first power saving policy is processed by an application layer of the electronic device and is not executed by a system of the electronic device.
It should be noted that, in the embodiment of the present invention, after the target application executes the first power saving policy according to an instruction of the electronic device, the electronic device may still normally run the target application, so that the electronic device may continuously save power without affecting user experience. In addition, compared with the prior art in which the conventional power saving mode is executed through the electronic equipment system, the embodiment of the invention considers the difference of different applications, and can understand that the power saving strategies determined according to the first information can be different for different target application programs, so that the application programs internally adjust the behavior of the application programs to achieve the power saving effect, and the power saving measures are more flexible and more continuous.
Optionally, in the embodiment of the present invention, a manufacturer of the target application may preset a corresponding power saving mode in the application.
It can be understood that, in the embodiment of the present invention, the preset power saving modes in different applications may be different.
For example, taking an application as an example, the manufacturer of the application may preset the following nine power saving modes in the application:
1. freeing or reducing consumed system memory space.
2. Freeing or reducing consumed Graphics Processing Unit (GPU) space or resources.
3. The use mode of the screen of the electronic equipment is changed, and the power consumption of display hardware is reduced.
4. The use mode of the electronic equipment network is changed, and the power consumption of network hardware is reduced.
5. The use modes of a camera and loudspeaker hardware of the electronic equipment are changed, and power consumption is reduced;
6. limiting the use of certain functions of the electronic device.
7. And releasing the application program running in the background and reducing the use of resources.
8. The occupation of other hardware resources is reduced, or the use mode is adjusted, and the power consumption is reduced.
9. Other operations that consume power are reduced.
In this way, when multiple power saving modes are preset in the target application, after the electronic device acquires the first information, the electronic device may select an appropriate power saving mode (for example, a power saving mode matching the current power saving urgency level of the electronic device) from the power saving modes preset in the target application according to the first information, thereby configuring the first power saving policy. Therefore, the power saving mode of the electronic equipment can be more flexible.
The lower the power saving urgency level indicated by the first information is, the smaller the number of power saving modes selected by the electronic device from the target application, that is, the power saving modes in the first power saving policy determined by the electronic device are. Accordingly, the higher the power saving urgency indicated by the first information is, the more the number of power saving modes selected by the electronic device from the target application is, i.e. the more power saving modes in the first power saving policy determined by the electronic device are.
Optionally, in this embodiment of the present invention, each preset power saving mode in the target application may correspond to a switch, and when the electronic device selects a certain power saving mode as the power saving mode that constitutes the first power saving policy, the electronic device may instruct the target application to turn on the switch, so that the power saving mode is enabled. Thus, the electronic device can trigger the application program to execute or enable the power saving mode.
Optionally, in this embodiment of the present invention, when the first information includes a corresponding target power saving level of the electronic device, the electronic device may determine, according to the target power saving level, a power saving mode corresponding to the target power saving level from power saving modes preset in a target application, so as to determine the first power saving policy.
Correspondingly, when the first information includes a target electric quantity quota level corresponding to the target application program, the electronic device may determine, according to the target electric quantity quota level, a power saving mode corresponding to the target power saving level from power saving modes preset in the target application program, so as to determine the first power saving policy.
S202 and S203 are exemplarily described below, taking as an example that the first information includes a corresponding target power saving level of the electronic device.
For example, taking the target application as a browser as an example, it is assumed that the power saving modes preset in the browser include the following ten power saving modes:
A. and the memory caching strategy is adjusted, and the memory use is reduced, so that the memory power consumption is reduced.
B. Webpage rendering uses surface views (surface views) instead of texture views (texture views), thereby reducing GPU power consumption.
C. Video rendering uses surface views instead of texture views, thereby reducing GPU power consumption.
D. Video playback uses hardware decoding instead of more power-consuming software decoding, thereby reducing Central Processing Unit (CPU) power consumption.
E. And the idle player instance is released, so that the power consumption of a video decoder, a memory and a network is reduced.
F. The browser kernel enters a single-process mode, so that the power consumption of a memory and a CPU is reduced.
G. The number of background web page views (webviews) is reduced, and therefore power consumption of a memory and a CPU is reduced.
H. The full-screen playing is forbidden, and the volume and the brightness of the video are limited, so that the power consumption of a loudspeaker and a screen of the electronic equipment is reduced.
I. The webpage picture is opened in a non-picture mode, so that power consumption of network and picture decoding is reduced.
J. And the web page starts a dark and dark mode, so that the power consumption of the screen of the electronic equipment is reduced.
Thus, when the electronic device runs the browser, if the electronic device obtains that the target power saving level (i.e. the first information) is a certain power saving level, specifically, when the browser kernel detects that the target power saving level is a certain power saving level, the electronic device can flexibly combine the power saving modes of 10, thereby achieving the purpose of saving power.
When the browser kernel detects that the target power saving level is the first power saving level (that is, the target power saving level acquired by the electronic device is the first power saving level), the electronic device may instruct the browser kernel to perform a slight power saving adjustment, and specifically may perform the slight power saving adjustment through the power saving mode a. When the browser kernel starts the power saving mode A, the function of the browser is not affected.
When the browser kernel detects that the target power saving level is the second power saving level (that is, the target power saving level acquired by the electronic device is the second power saving level), the electronic device may indicate that the inside of the browser kernel may perform slight power saving adjustment, and may specifically perform slight power saving adjustment through the above power saving mode a, the power saving mode B, and the power saving mode C. When the browser kernel starts the power saving mode A, the power saving mode B and the power saving mode C, the function of the browser is not influenced.
When the browser kernel detects that the target power saving level is the third power saving level (that is, the target power saving level acquired by the electronic device is the third power saving level), the electronic device may instruct the browser kernel to perform moderate power saving adjustment, and may specifically perform moderate power saving adjustment through the power saving mode a, the power saving mode B, the power saving mode C, the power saving mode D, and the power saving mode E. When the browser kernel starts the power saving mode A, the power saving mode B, the power saving mode C, the power saving mode D and the power saving mode E, the functions of the browser are not affected.
And when the browser kernel detects that the target power saving level is a fourth power saving level (that is, the target power saving level acquired by the electronic device is the fourth power saving level), the electronic device may instruct the browser kernel to perform a high power saving adjustment, and may specifically perform the high power saving adjustment through the power saving mode a, the power saving mode B, the power saving mode C, the power saving mode D, the power saving mode E, the power saving mode F, and the power saving mode G. When the browser kernel starts the power saving mode A, the power saving mode B, the power saving mode C, the power saving mode D, the power saving mode E, the power saving mode F and the power saving mode G, the functions of the browser are slightly influenced.
And when the browser kernel detects that the target power saving level is the fifth power saving level (namely, the target power saving level acquired by the electronic device is the fifth power saving level), the electronic device can indicate that the inside of the browser kernel can be subjected to severe power saving adjustment, and can specifically perform severe power saving adjustment through the power saving mode A, the power saving mode B, the power saving mode C, the power saving mode D, the power saving mode E, the power saving mode F, the power saving mode G, the power saving mode H, the power saving mode I and the power saving mode J. When the browser kernel starts the power saving mode A, the power saving mode B, the power saving mode C, the power saving mode D, the power saving mode E, the power saving mode F, the power saving mode G, the power saving mode H, the power saving mode I and the power saving mode J, the functions of the browser are affected.
The embodiment of the invention provides a power saving control method, because the target power saving level corresponding to the electronic equipment and the target electric quantity quota level corresponding to the target application program can both reflect the current power saving urgency of the electronic equipment, and the first power saving policy is determined according to the first information and corresponds to the target application, so during the operation of the target application by the electronic device, the power saving strategy corresponding to the application program currently operated by the electronic equipment can be determined according to the current power saving urgency of the electronic equipment, and instruct the target application program to execute a corresponding power saving policy, so that after the target application program executes the power saving policy, the power consumed by the electronic device for running the target application program can be reduced, therefore, the electronic equipment can continuously save electricity in the process of running the application program, and the standby time of the electronic equipment can be further prolonged.
Optionally, in the embodiment of the present invention, with reference to fig. 2, as shown in fig. 3, the power saving control method provided in the embodiment of the present invention may further include S204 and S205 described below.
It should be noted that the execution sequence between S201-S203 and S204-S205 may not be limited in the embodiments of the present invention. That is, the electronic device may first perform S201-S203, and then perform S204-S205; it is also possible to perform S204-S205 first, followed by S201-S203. In fig. 3, the steps S201 to S203 are executed first, and then S204 to S205 are executed later.
S204, the electronic equipment acquires third information.
The third information may be used to indicate the number of times that the power consumption of the electronic device running the target application (hereinafter, referred to as the power consumption of the target application) is reduced as the power consumption of the electronic device is reduced in the first time period.
S205, the electronic equipment determines the target power saving credibility of the target application program according to the third information.
In this embodiment of the present invention, the electronic device may obtain the third information, and then determine, according to the third information, the number of times that the power consumption of the target application program decreases with the decrease in the power amount of the electronic device in the first time period, so as to determine whether the target application program performs power saving, and further determine the power saving credit degree of the target application program. In this manner, it may be determined whether the target application is able to comply with a power saving indication of the electronic device during the operation of the target application by the electronic device.
Optionally, in this embodiment of the present invention, the first time period may be a time period preset in the electronic device by a manufacturer of the electronic device.
The time length included in the first time period may be any possible time length such as one month or half month. The method can be determined according to actual use requirements, and the embodiment of the invention is not limited.
Optionally, the target power saving credit degree may be: and in the first time period, the ratio of the number of times of reducing the power consumption of the target application program to the number of times of reducing the power consumption of the electronic equipment.
For example, assuming that the power consumption of the electronic device is reduced 50 times and the power consumption of the target application is reduced 30 times in the first time period, the electronic device may determine that the target power saving credit is 60%.
Optionally, in this embodiment of the present invention, the electronic device may determine whether the target power saving reputation degree is greater than or equal to a preset threshold. If the target power saving credit degree is greater than or equal to a preset threshold value, the electronic equipment can determine that the target power saving credit degree reaches the standard; if the target power saving credibility is less than the preset threshold, the electronic equipment can determine that the target power saving credibility does not reach the standard.
It should be noted that, if the power saving reputation of the target reaches the standard, the electronic device may determine that the power saving reputation of the target application is better; if the target power saving reputation does not meet the standard, the electronic device can determine that the power saving reputation of the target application is poor.
Optionally, the preset threshold may be a value preset in the electronic device by a manufacturer of the electronic device. For example, any possible value such as 50% or 60% may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
Optionally, in the embodiment of the present invention, if the electronic device determines that the target power saving reputation reaches the standard, the electronic device may display a prompt message to notify the user that the power saving reputation of the target application program is better.
Optionally, in the embodiment of the present invention, if the electronic device determines that the target power saving reputation does not meet the standard, the electronic device may perform a corresponding operation to reduce the power consumption of the electronic device by the target application.
For example, with reference to fig. 3, as shown in fig. 4, after S205, the power saving control method provided in the embodiment of the present invention may further include S206.
S206, under the condition that the target power saving credibility is smaller than a preset threshold, the electronic equipment executes target operation.
Wherein the target operation may include at least one of: and the electronic equipment displays the target prompt information and executes a second power saving strategy on the target application program. The target prompt information may be used to indicate that the target power saving reputation is less than the preset threshold.
In the embodiment of the invention, the electronic equipment can inform the user that the power saving credibility of the target is smaller than the preset threshold value by displaying the target prompt information, namely, the electronic equipment can inform the user that the power saving credibility of the target application program is poor. As such, if the user wants to make the power saving performance of the electronic device better, the user may trigger the electronic device to uninstall the target application.
Optionally, in this embodiment of the present invention, a manner of executing, by the electronic device, the second power saving policy on the target application may be: the electronic equipment sets the function authority of the target application program in the system, so that certain functions of the target application program cannot be used, and the electric quantity consumed by the target application program when the target application program is operated can be reduced.
Optionally, with reference to fig. 3, as shown in fig. 5, after S205, the power saving control method provided in the embodiment of the present invention may further include S207 described below.
S207, the electronic equipment sends fourth information to the server.
The fourth information may be used to indicate the target power saving reputation.
In the embodiment of the present invention, after the electronic device determines the target power saving reputation of the target application, the electronic device may send the fourth information to the server. Therefore, after the server receives the fourth information, the server can package the target power saving credit degree and the installation package of the target application program, so that the electronic equipment connected with the server can display the target power saving credit degree of the target application program in an application store, and the power saving credit degree of the target application program can be published.
In the embodiment of the invention, under the condition that the electronic equipment displays the target power saving credit degree of the target application program in the application store, if the target power saving credit degree of the target application program is lower, a user can refuse to install the target application program in the electronic equipment, so that in order to ensure the use range of the target application program, a developer of the target application program can optimize the power saving performance of the target application program, and the standby time length of the electronic equipment provided with the target application program can be indirectly prolonged.
As shown in fig. 6, an embodiment of the present invention provides an electronic device 300, where the electronic device 300 may include an obtaining module 301, a determining module 302, and an executing module 303. An obtaining module 301, configured to obtain first information; a determining module 302, configured to determine, according to the first information acquired by the acquiring module 301, a first power saving policy corresponding to a target application, where the target application is an application currently running on the electronic device; an executing module 303, configured to instruct the target application to execute the first power saving policy determined by the determining module 302. Wherein the first information includes any one of: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program.
Optionally, the first information includes a target power saving level corresponding to the electronic device; the obtaining module 301 may be specifically configured to obtain a current remaining first electric quantity of the electronic device; and determining a target power saving level according to the first electric quantity and the rated electric quantity of the electronic equipment.
Optionally, the first information includes a target electric quantity quota level corresponding to the target application program; the obtaining module 301 may be specifically configured to obtain the second information; determining the level of the target electric quantity limit according to the second information and the target electric quantity limit; the second information is used for indicating the consumption degree of the target electricity consumption amount, and the target electricity consumption amount is the maximum electricity amount allowed to be consumed by the target application program in the first time length.
Optionally, the obtaining module 301 may be further configured to obtain third information, where the third information is used to indicate a number of times that power consumption of the target application program is reduced along with reduction of power consumption of the electronic device in the first time period; the determining module 302 may further be configured to determine the target power saving reputation of the target application according to the third information acquired by the acquiring module 301.
Optionally, the executing module 303 may be further configured to, after the determining module 302 determines the target power saving reputation of the target application according to the third information, execute a target operation when the target power saving reputation is smaller than a preset threshold, where the target operation includes at least one of: displaying target prompt information, and executing a second power saving strategy on the target application program; the target prompt information is used for indicating that the target power saving credibility is smaller than a preset threshold.
As shown in fig. 6, the electronic device 300 may also include a transmitting module 304. A sending module 304, configured to send fourth information to the server after the determining module 302 determines the target power saving reputation of the target application according to the third information, where the fourth information is used to indicate the target power saving reputation.
The electronic device provided by the embodiment of the invention can realize each process executed by the electronic device in the embodiment of the power saving control method, and can achieve the same technical effect, and the details are not repeated here in order to avoid repetition.
The embodiment of the invention provides an electronic device, because the target power saving level corresponding to the electronic device and the target electric quantity quota level corresponding to the target application program can both reflect the current power saving urgency of the electronic device, and the first power saving policy is determined according to the first information and corresponds to the target application, so during the operation of the target application by the electronic device, the power saving strategy corresponding to the application program currently operated by the electronic equipment can be determined according to the current power saving urgency of the electronic equipment, and instruct the target application program to execute a corresponding power saving policy, so that after the target application program executes the power saving policy, the power consumed by the electronic device for running the target application program can be reduced, therefore, the electronic equipment can continuously save electricity in the process of running the application program, and the standby time of the electronic equipment can be further prolonged.
Fig. 7 is a hardware schematic diagram of an electronic device implementing various embodiments of the invention. As shown in fig. 7, the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 may be configured to obtain first information; determining a first power saving strategy corresponding to the target application program according to the first information; and instructing the target application program to execute the first power saving strategy. The target application program is an application program currently operated by the electronic equipment, and the first information includes any one of the following items: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program.
It can be understood that, in the embodiment of the present invention, the obtaining module 301, the determining module 302, and the executing module 303 in the structural schematic diagram of the electronic device (for example, fig. 6) may be implemented by the processor 110; the transmitting module 304 in the structural schematic diagram of the electronic device may be implemented by the radio frequency unit 101.
The embodiment of the invention provides an electronic device, because the target power saving level corresponding to the electronic device and the target electric quantity quota level corresponding to the target application program can both reflect the current power saving urgency of the electronic device, and the first power saving policy is determined according to the first information and corresponds to the target application, so during the operation of the target application by the electronic device, the power saving strategy corresponding to the application program currently operated by the electronic equipment can be determined according to the current power saving urgency of the electronic equipment, and instruct the target application program to execute a corresponding power saving policy, so that after the target application program executes the power saving policy, the power consumed by the electronic device for running the target application program can be reduced, therefore, the electronic equipment can continuously save electricity in the process of running the application program, and the standby time of the electronic equipment can be further prolonged.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include an image capturing device (e.g., a camera) 1040, a Graphics Processing Unit (GPU) 1041, and a microphone 1042. An image capture device 1040 (e.g., a camera) captures image data for a still picture or video. The graphic processor 1041 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes the processor 110 shown in fig. 7, the memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements the processes of the foregoing power saving control method embodiment, and can achieve the same technical effects, and details are not repeated here to avoid repetition.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing power saving control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1. A power saving control method is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring first information;
determining a first power saving strategy corresponding to a target application program according to the first information, wherein the target application program is an application program currently operated by the electronic equipment;
instructing the target application to execute the first power saving policy;
wherein the first information comprises any one of: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program.
2. The method of claim 1, wherein the first information comprises a target power saving level corresponding to the electronic device;
the acquiring of the first information includes:
acquiring a first current residual electric quantity of the electronic equipment;
and determining the target power saving level according to the first electric quantity and the rated electric quantity of the electronic equipment.
3. The method of claim 1, wherein the first information comprises a target power quota level corresponding to the target application;
the acquiring of the first information includes:
acquiring second information, wherein the second information is used for indicating the consumption degree of a target electricity consumption amount, and the target electricity consumption amount is the maximum electricity amount allowed to be consumed by the target application program within a first time length;
and determining the level of the target electric quantity limit according to the second information and the target electric quantity limit.
4. The method according to any one of claims 1 to 3, further comprising:
acquiring third information, wherein the third information is used for indicating the number of times of power consumption reduction of the target application program in operation along with the reduction of the power consumption of the electronic equipment in a first time period;
and determining the target power saving credibility of the target application program according to the third information.
5. The method of claim 4, wherein after determining the target power saving reputation of the target application according to the third information, the method further comprises:
executing a target operation under the condition that the target power saving credibility is smaller than a preset threshold, wherein the target operation comprises at least one of the following items: displaying target prompt information, and executing a second power saving strategy on the target application program;
the target prompt information is used for indicating that the target power saving credibility is smaller than the preset threshold.
6. The method of claim 4, wherein after determining the target power saving reputation of the target application according to the third information, the method further comprises:
and sending fourth information to a server, wherein the fourth information is used for indicating the target power saving credibility.
7. An electronic device, comprising an obtaining module, a determining module and an executing module;
the acquisition module is used for acquiring first information;
the determining module is configured to determine, according to the first information acquired by the acquiring module, a first power saving policy corresponding to a target application program, where the target application program is an application program currently running on the electronic device;
the execution module is configured to instruct the target application to execute the first power saving policy determined by the determination module;
wherein the first information comprises any one of: the target power saving level corresponding to the electronic equipment and the target electric quantity limit level corresponding to the target application program.
8. The electronic device of claim 7, wherein the first information comprises a target power saving level corresponding to the electronic device;
the obtaining module is specifically configured to obtain a current remaining first electric quantity of the electronic device; and determining the target power saving level according to the first electric quantity and the rated electric quantity of the electronic equipment.
9. The electronic device of claim 7, wherein the first information includes a target power quota level corresponding to the target application;
the acquisition module is specifically used for acquiring second information; determining the level of the target electric quantity limit according to the second information and the target electric quantity limit;
the second information is used for indicating the consumption degree of the target electricity consumption amount, and the target electricity consumption amount is the maximum electricity amount allowed to be consumed by the target application program within the first time length.
10. The electronic device according to any one of claims 7 to 9, wherein the obtaining module is further configured to obtain third information, where the third information is used to indicate a number of times that power consumption of the target application program is reduced as power consumption of the electronic device is reduced in a first time period;
the determining module is further configured to determine a target power saving reputation of the target application according to the third information acquired by the acquiring module.
11. The electronic device of claim 10, wherein the execution module is further configured to, after the determination module determines the target power saving reputation of the target application according to the third information, execute a target operation if the target power saving reputation is less than a preset threshold, where the target operation includes at least one of: displaying target prompt information, and executing a second power saving strategy on the target application program;
the target prompt information is used for indicating that the target power saving credibility is smaller than the preset threshold.
12. The electronic device of claim 10, further comprising a transmitting module;
the sending module is configured to send fourth information to a server after the determining module determines the target power saving reputation of the target application according to the third information, where the fourth information is used to indicate the target power saving reputation.
13. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the power saving control method according to any one of claims 1 to 6.
CN202010075828.9A 2020-01-22 2020-01-22 Power saving control method and electronic equipment Pending CN111309133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010075828.9A CN111309133A (en) 2020-01-22 2020-01-22 Power saving control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010075828.9A CN111309133A (en) 2020-01-22 2020-01-22 Power saving control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN111309133A true CN111309133A (en) 2020-06-19

Family

ID=71148854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010075828.9A Pending CN111309133A (en) 2020-01-22 2020-01-22 Power saving control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111309133A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111867024A (en) * 2020-06-28 2020-10-30 维沃移动通信有限公司 Electronic equipment control method and device and electronic equipment
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500002A (en) * 2013-09-17 2014-01-08 小米科技有限责任公司 Method, device and terminal equipment for managing application program
CN103729052A (en) * 2013-12-31 2014-04-16 贝壳网际(北京)安全技术有限公司 Processing method and system for power consumption of application program and mobile terminal
CN104635908A (en) * 2013-11-13 2015-05-20 腾讯科技(深圳)有限公司 Method and device for lowering power consumption of mobile terminal
US20150253835A1 (en) * 2014-03-05 2015-09-10 Samsung Electronics Co., Ltd. Methods of constraining performance of a mobile device using an application processor, and related mobile devices
CN105094284A (en) * 2015-07-31 2015-11-25 北京金山安全软件有限公司 Power-saving processing method and device for application program
CN109116965A (en) * 2018-07-27 2019-01-01 维沃移动通信有限公司 A kind of electricity saving method and mobile terminal
CN109803358A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Mobile terminal electric quantity controlling method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500002A (en) * 2013-09-17 2014-01-08 小米科技有限责任公司 Method, device and terminal equipment for managing application program
CN104635908A (en) * 2013-11-13 2015-05-20 腾讯科技(深圳)有限公司 Method and device for lowering power consumption of mobile terminal
CN103729052A (en) * 2013-12-31 2014-04-16 贝壳网际(北京)安全技术有限公司 Processing method and system for power consumption of application program and mobile terminal
US20150253835A1 (en) * 2014-03-05 2015-09-10 Samsung Electronics Co., Ltd. Methods of constraining performance of a mobile device using an application processor, and related mobile devices
CN105094284A (en) * 2015-07-31 2015-11-25 北京金山安全软件有限公司 Power-saving processing method and device for application program
CN109116965A (en) * 2018-07-27 2019-01-01 维沃移动通信有限公司 A kind of electricity saving method and mobile terminal
CN109803358A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Mobile terminal electric quantity controlling method, device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111867024A (en) * 2020-06-28 2020-10-30 维沃移动通信有限公司 Electronic equipment control method and device and electronic equipment
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device
CN113220106B (en) * 2021-05-10 2024-05-14 维沃移动通信有限公司 Power saving control method and power saving control device

Similar Documents

Publication Publication Date Title
CN110995923B (en) Screen projection control method and electronic equipment
CN108255378B (en) Display control method and mobile terminal
CN108319390B (en) Control method of flexible screen and mobile terminal
CN110062105B (en) Interface display method and terminal equipment
CN110752980A (en) Message sending method and electronic equipment
CN110837327B (en) Message viewing method and terminal
CN110445924B (en) Network task execution method and terminal equipment
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN110058836B (en) Audio signal output method and terminal equipment
CN109413726B (en) Power consumption control method and mobile terminal
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN109407920B (en) Status icon display method, status icon processing method and related equipment
CN110752981B (en) Information control method and electronic equipment
CN109976611B (en) Terminal device control method and terminal device
CN111163224B (en) Voice message playing method and electronic equipment
CN111027030A (en) Permission setting method and terminal device
CN109639887B (en) Control method and terminal equipment
CN110597437A (en) Screen capturing method and terminal equipment
CN110730017A (en) Radio frequency device, control method thereof and terminal equipment
CN108804151B (en) Method and terminal for restarting application program
CN111405112B (en) Message prompting method and electronic equipment
CN110012151B (en) Information display method and terminal equipment
CN111343710A (en) Power adjustment method and electronic equipment
CN111309133A (en) Power saving control method and electronic equipment
CN108200635B (en) Operation control method of application program and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619