CN113220106B - Power saving control method and power saving control device - Google Patents

Power saving control method and power saving control device Download PDF

Info

Publication number
CN113220106B
CN113220106B CN202110505813.6A CN202110505813A CN113220106B CN 113220106 B CN113220106 B CN 113220106B CN 202110505813 A CN202110505813 A CN 202110505813A CN 113220106 B CN113220106 B CN 113220106B
Authority
CN
China
Prior art keywords
application
power saving
target application
level
power consumption
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.)
Active
Application number
CN202110505813.6A
Other languages
Chinese (zh)
Other versions
CN113220106A (en
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 CN202110505813.6A priority Critical patent/CN113220106B/en
Publication of CN113220106A publication Critical patent/CN113220106A/en
Application granted granted Critical
Publication of CN113220106B publication Critical patent/CN113220106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The application discloses a power saving control method and a power saving control device, and belongs to the technical field of electronic equipment. The power saving control method comprises the following steps: receiving preset duration of the electronic equipment input by a user; after a first time period, acquiring power consumption information of a target application in the electronic equipment, wherein the target application is an operating application; adjusting the power saving mode level of the target application under the condition that the power consumption of the target application is larger than the target preset power consumption; the target preset power consumption is as follows: and determining the theoretical power consumption of the target application under the condition that the electronic equipment runs for a preset duration according to the historical running information of the target application.

Description

Power saving control method and power saving control device
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a power saving control method and a power saving control device.
Background
At present, the duration of the electronic equipment is set by a manufacturer when the electronic equipment leaves the factory, and the fixed factory duration set by the manufacturer often cannot meet the actual requirements of different users on the duration.
In the related art, a common power saving strategy prolongs the duration according to target crowd investigation, user complaints, or old model comparison. However, for people not concerned about duration, the automatically effective power saving strategy can influence the use performance of the electronic equipment, so that the use experience of users is influenced.
Disclosure of Invention
The embodiment of the application aims to provide a power saving control method and a power saving control device, which can solve the problem that the fixed factory duration in the related technology cannot meet the actual requirements of different users on the duration.
In a first aspect, an embodiment of the present application provides a power saving control method, including:
Receiving preset duration of the electronic equipment input by a user;
After a first time period, acquiring power consumption information of a target application in the electronic equipment, wherein the target application is an operating application;
Adjusting the power saving mode level of the target application under the condition that the power consumption of the target application is larger than the target preset power consumption;
The target preset power consumption is as follows: and determining the theoretical power consumption of the target application under the condition that the electronic equipment runs for a preset duration according to the historical running information of the target application.
In a second aspect, an embodiment of the present application provides a power saving control device, including:
the receiving module is used for receiving preset duration of the electronic equipment, which is input by a user;
The first acquisition module is used for acquiring power consumption information of a target application in the electronic equipment after a first period of time, wherein the target application is an operating application;
the adjusting module is used for adjusting the power saving mode level of the target application under the condition that the power consumption of the target application is larger than the target preset power consumption;
The target preset power consumption is as follows: and determining the theoretical power consumption of the target application under the condition that the electronic equipment runs for a preset duration according to the historical running information of the target application.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions implementing a method as in the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement a method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute programs or instructions to implement a method as in the first aspect.
In the embodiment of the application, the user can customize the duration of the electronic equipment expected by the user, and further, after the user uses the electronic equipment for a first duration, the power saving mode level of the target application can be adaptively adjusted according to the preset duration customized by the user and the power consumption information of the target application. Specifically, under the condition that the power consumption of the target application is greater than the target preset power consumption, the power saving mode level of the target application is improved, so that the actual duration of the electronic equipment is ensured to be not less than the preset duration. According to the embodiment of the application, the power saving mode level of the target application is adaptively adjusted by combining the requirements of the user on the duration, so that the duration of the electronic equipment is ensured, and meanwhile, the duration requirements of different users on the electronic equipment can be met.
Drawings
FIG. 1 is a schematic flow chart of a power saving control method according to an embodiment of the application;
FIG. 2 is a second flow chart of a power saving control method according to an embodiment of the application;
FIG. 3 is a schematic block diagram of a power saving control device according to an embodiment of the present application;
FIG. 4 is one of the schematic block diagrams of the electronic device of an embodiment of the present application;
fig. 5 is a second schematic block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the application may be practiced otherwise than as specifically illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The power saving control method, the power saving control device, the electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The embodiment of the application provides a power saving control method, as shown in fig. 1, which comprises the following steps:
Step 102, receiving preset duration of the electronic equipment input by a user;
104, after a first period of time, acquiring power consumption information of a target application in the electronic equipment, wherein the target application is an operating application;
And 106, adjusting the power saving mode level of the target application under the condition that the power consumption of the target application is larger than the target preset power consumption.
The target preset power consumption is as follows: and determining the theoretical power consumption of the target application under the condition that the electronic equipment runs for a preset duration according to the historical running information of the target application.
In this embodiment, the user may customize the duration of the electronic device desired by the user, and further, after the user uses the electronic device for the first duration, the power saving mode level of the target application may be adaptively adjusted according to the preset duration customized by the user and the power consumption information of the target application. Specifically, under the condition that the power consumption of the target application is greater than the target preset power consumption, the power saving mode level of the target application is improved, so that the actual duration of the electronic equipment is ensured to be not less than the preset duration.
It should be noted that, the user-defined preset duration may be a duration of one day, and the power consumption information of the target application is power consumption information of the target application in the same day. For example, the user may set the desired duration of the day to H hours (H does not exceed the limit duration of the day Hmax of the electronic device), or the user may set a preset duration, such as to 10 pm. In addition, the user can set the effective period of the power saving control method, for example, the effective period is the same day or the effective period is long-term.
The target preset power consumption of the target application under the preset duration can be calculated according to the historical operation information of the target application. Specifically, the historical operating information may include: the power consumption ratio of the target application in a certain historical time period, namely, the target preset power consumption is equal to the product of the power consumption ratio and the preset duration.
According to the embodiment of the application, the power saving mode level of the target application is adaptively adjusted by combining the requirements of the user on the duration, so that the duration of the electronic equipment is ensured, and meanwhile, the duration requirements of different users on the electronic equipment can be met.
For example, if the user a uses the application with less power consumption and the requirement on the preset duration is not high, the electronic device can always provide the highest performance use performance. If the user b plays the game frequently and needs the electronic equipment to be shut down too early, the electronic equipment can perform power-saving control on the game application in advance, so that the power consumption is prevented from being too early.
In addition, when the power saving mode level of the target application is adjusted, the minimum requirement of the use performance in different power consumption application scenarios can be considered, and the maximum value of the power saving mode level in the power consumption application scenarios can be limited.
Further, in one embodiment of the present application, before receiving the preset duration of the electronic device input by the user, the method further includes: acquiring a first use time duty ratio of a first application and a second use time duty ratio of a second application in the electronic equipment within a second duration, wherein the first application is an application with power consumption larger than or equal to a first threshold value, and the second application is an application with power consumption smaller than the first threshold value; after receiving the preset duration of the electronic device input by the user, the method further comprises the following steps: and determining a first preset duration corresponding to the first application and a second preset duration corresponding to the second application according to the preset duration, the first use time duty ratio and the second use time duty ratio.
In this embodiment, the electronic device may record historical usage information of the user for each application to determine a usage time duty cycle for each application. Specifically, a first usage time duty cycle of the first application and a second usage time duty cycle of the second application are acquired within a second duration.
It should be noted that the first application and the second application are applications with different power consumption types, and specifically, when running, the power consumption of the first application is greater than the power consumption of the second application. It is understood that the first application may be all high power consumption applications, and the second application may be all low power consumption applications.
Illustratively, on weekends, the user's high power consumption application is A, the low power consumption application is B, and the ratio of the usage times within the second time period (e.g., 8 hours) is 3:5, i.e., the first usage time of the high power consumption application A is 3/8 and the second usage time of the low power consumption application B is 5/8.
Further, calculating the product of the preset duration and the first use time duty ratio to obtain a first preset duration of the first application in the preset duration, and calculating the product of the preset duration and the second use time duty ratio to obtain a second preset duration of the second application in the preset duration. For example, if the user sets that the electronic device is expected to be used for 6 hours, it is calculated that the high power consumption application a is likely to be used for 135 minutes and the low power consumption application B is likely to be used for 225 minutes in the 6 hours according to the first usage time ratio of 3/8 and the second usage time ratio of 5/8.
It should be understood that in daily use, when the use time is long, the usage ratio of the user to the high power consumption application, the medium power consumption application, and the low power consumption application is substantially uniform.
By the method, the estimated use time of each application in the preset duration set by the user can be accurately calculated, so that the estimated use time can be utilized to realize the self-adaptive adjustment of the power saving mode level of the power consumption application.
Further, in one embodiment of the present application, the target application is either the first application or the second application; under the condition that the target application is a first application, the first time length is smaller than a first preset time length; or in the case that the target application is the second application, the first time period is smaller than the second preset time period.
In actual use, if the current residual power is 90% when the user just opens the first application, the first application is expected to use the first preset duration, and the residual power after the first preset duration (i.e. after the first application is used) is expected to be 50%. However, the power consumption of the first application may be beyond the expected value during the use of the first application, that is, the remaining power after the first preset period of time is actually used may only be 35%. In the process of using the first application, specifically, the power consumption of the first application is acquired when the first preset time is half of the first preset time, and if the power consumption of the first application is detected to be beyond the expected value, the power saving operation is performed on the first application. Therefore, the situation that the subsequent power saving operation cannot be timely performed due to the fact that the power consumption is detected after the first preset duration of the first application is finished is avoided.
Therefore, in this embodiment, the first time period is defined to be smaller than the first preset time period or the second preset time period, so that the power consumption information of the application is detected before the first preset time period or the second preset time period is reached, thereby achieving the purpose of adjusting the power saving mode level of the application.
For example, after the first application is used for more than half of the duration (i.e., the first duration is equal to half of the preset duration of the first application), the real-time power consumption of the first application is detected or calculated according to the usage current, and if the real-time power consumption of the first application exceeds the target preset power consumption corresponding to the preset duration, the power saving management is performed on the first application.
By the method, the crisis of insufficient electric quantity can be predicted in advance, and the power saving operation can be performed on an application and the subsequent application before the application exceeds the corresponding preset time (and the power saving operation has no great influence on the use of the user), so that the problem of inconvenient use of the user caused by the fact that the power saving operation is performed on the application in low electric quantity is solved.
Further, in one embodiment of the present application, adjusting the power saving mode level of the target application includes: when the current residual electric quantity of the electronic equipment is larger than or equal to the preset electric quantity, the power saving mode level of the target application is adjusted from the initial level to a first level, and the difference between the first level and the initial level of the target application is smaller than a second threshold value; after adjusting the power saving mode level of the target application, the method further comprises: and adjusting the power saving mode level of the other application from the initial level to a second level, wherein the difference between the second level and the initial level of the other application is smaller than a second threshold value, and the other application is an application running except the target application.
In this embodiment, when the current remaining power of the electronic device is greater than or equal to the preset power amount, it is indicated that the current remaining power amount is high, but since the power consumption of the target application is greater than the target preset power consumption, that is, the power consumption of the target application is already relatively high, in this case, the power saving operation is performed on the running target application, specifically, the power saving mode level of the running target application is increased from the initial level to the first level.
Further, after performing the power saving operation on the running target application, the power saving operation is also performed on other applications that are running or about to run, specifically, the power saving mode level of the other applications that are running or about to run is increased from the initial level to the second level.
The actual duration of the electronic equipment can reach the preset duration expected by the user by improving the power saving mode level of the application so as to meet the user requirement.
It should be noted that, the difference between the first level and the initial level of the target application is smaller than the second threshold, and the difference between the second level and the initial levels of other applications is smaller than the second threshold, that is, the power saving operation corresponding to the first level and the second level is a slight power saving operation (low power saving mode), which has less influence on the aspects of the image of the application, and the like. For example, when the current remaining power is high, the low power saving mode may be preferentially adopted, that is, the low power saving mode is adopted for the current high power consumption application, and if the user enters the application of other power consumption levels, the user directly enters the low power saving starting mode.
Compared with the mode that the current application is subjected to stronger power saving operation when the electric quantity is lower than a certain electric quantity in the related art, the embodiment of the application has larger influence on the normal use of the application by a user due to the strong power saving operation (high power saving mode), achieves the same power saving effect by adopting slight power saving operation on a plurality of applications, and can effectively avoid the blocked use of the application.
By the method, different power saving management modes can be adopted according to the current residual electric quantity, and particularly when the current residual electric quantity is high, the low power saving management mode is adopted for all the applications running later, so that the running loss of each application is not large, and the power saving effect can be achieved.
It should be noted that, increasing the power saving mode level of the application corresponds to reducing the actual working current of the application, for example, reducing the actual working current of the application by reducing the display brightness, definition, network speed, etc. of the application, so as to make the application more power saving.
Further, in an embodiment of the present application, the power saving control method further includes: adjusting a power saving mode level of a target application, comprising: and under the condition that the current residual electric quantity of the electronic equipment is smaller than the preset electric quantity, adjusting the power saving mode level of the target application from the initial level to a third level, wherein the difference between the third level and the initial level of the target application is larger than or equal to a second threshold value.
In this embodiment, when the current remaining power of the electronic device is smaller than the preset power, it indicates that the current remaining power is smaller, and since the power consumption of the target application is greater than the target preset power consumption, that is, the power consumption of the target application is already relatively large, in this case, the power saving operation is performed on the running target application, specifically, the power saving mode level of the running target application is increased from the initial level to the third level. The actual duration of the electronic equipment can reach the preset duration expected by the user by improving the power saving mode level of the target application so as to meet the user requirement.
It should be noted that, the difference between the third level and the initial level of the target application is greater than or equal to the second threshold, that is, the above power saving operation is a strong power saving operation.
By the above way, different power saving management modes can be adopted according to the current residual electric quantity, in particular, when the current residual electric quantity is less, and a strong power saving management mode is adopted for all the later running applications, so that the power saving effect is ensured to be greatly improved.
In a specific embodiment, as shown in fig. 2, the power saving control method includes:
Step 202, desensitizing record user's usage data and power consumption data;
Step 204, a user sets a preset duration;
step 206, determining the current target application;
Step 208, obtaining estimated use time of the target application;
Step 210, judging whether the current residual electric quantity can meet the requirement that the target application is operated for the preset duration, if so, entering step 218, otherwise, entering step 212;
Step 212, judging whether the actual use time length of the target application exceeds the estimated use time length, if yes, entering step 214, otherwise entering step 216;
Step 214, increasing the power saving mode level of the target application, increasing the power saving mode level of other applications, and returning to step 210;
Step 216, the power saving mode level of the target application is improved, the estimated use time is determined by using the actual use time of the target application, and the step 210 is returned;
Step 218, working to a preset duration.
In this embodiment, a method for dynamically adjusting a power saving policy of a target application according to an actual usage time length of the target application is provided when the current remaining power does not satisfy a preset duration and the actual usage time length of the target application is less than or equal to a corresponding estimated usage time length:
Assuming that the average working current of the target application is I, the average current of the target application when using the power saving strategy is f i(Sj),fi(Sj) is less than or equal to I, wherein S j is the j-th power consumption application scenario, I is the power saving mode level, the larger I is, the more power is saved, the more performance is affected, and f 0(Sj) =i.
Step one, if the current residual electric quantity Q is only used for running the high-power consumption application S1, the residual expected duration T can be used, that is, the duration model is Q is greater than or equal to f 0(S1) ×t, the power saving mode level of S1 is increased, so that when the estimated use duration T1 is run under S1, the current residual electric quantity Q can meet the requirement of running the power consumption application S2 to the residual expected duration T, that is, the duration model is Q-f 1(S1)×t1≥f0(S2) × (T-T1).
Step two, after the power saving mode level of the step 1 is adjusted, if the current residual electric quantity Q still cannot meet the residual expected duration T, the power saving mode level of the step 2 is increased, so that the estimated use duration T1 is operated under the step 1, the estimated use duration T2 is operated under the step 2, and the current residual electric quantity Q can meet the requirement of operating the low-power consumption application S3 to the residual expected duration T, namely, meet the duration model Q-f 1(S1)×t1-f1(S2)×t2≥f0(S3) x (T-T1-T2).
And step three, after the power saving mode level of the step S2 is adjusted, if the current residual electric quantity Q still cannot meet the residual expected duration T, the power saving mode level is continuously increased in sequence from high power consumption level to low power consumption level until the current residual electric quantity Q is determined to meet the duration model of the residual expected duration T.
In addition, it should be noted that, if the current remaining power Q does not satisfy the remaining expected duration T and the user uses an application beyond its estimated use duration, and needs to ensure that t=t1+t2+t3=a×t1+b×t2+c×t3, the power saving mode level of the application is first increased, and the actual use time T j of the application is used to replace the estimated use duration tj in the second and third steps, so as to recalculate the power saving mode level of each application.
For example, if the current endurance model is Q-f 1(S1)×t1-f1(S2)×t2≥f0(S3) × (T-T1-T2), if the actual usage time period T1 of the user using S1 exceeds the estimated usage time period T1, it is necessary to determine Q-f2(S1)×T1-f1(S2)×t2≥f0(S3)×(T-T1-t2) whether it is satisfied, and then adjust the power saving mode level.
In summary, through the above manner, the purpose of flexibly adjusting the power saving mode level of the power consumption application in the use process of the electronic device is achieved, so as to meet the endurance requirements of different users on the electronic device.
It should be noted that, in the power saving control method provided in the embodiment of the present application, the execution body may be a power saving control device, or a control module in the power saving control device for executing the power saving control method. In the embodiment of the present application, a power saving control device executes a power saving control method as an example, and the power saving control device provided in the embodiment of the present application is described.
An embodiment of the present application provides a power saving control device, as shown in fig. 3, the power saving control device 300 includes:
the receiving module 302 is configured to receive a preset duration of the electronic device input by a user;
the first obtaining module 304 is configured to obtain, after a first period of time, power consumption information of a target application in the electronic device, where the target application is an running application;
the adjustment module 306 is configured to adjust a power saving mode level of the target application when the power consumption of the target application is greater than the target preset power consumption.
The target preset power consumption is as follows: and determining the theoretical power consumption of the target application under the condition that the electronic equipment runs for a preset duration according to the historical running information of the target application.
In this embodiment, the user may customize the duration of the electronic device desired by the user, and further, after the user uses the electronic device for the first duration, the power saving mode level of the target application may be adaptively adjusted according to the preset duration customized by the user and the power consumption information of the target application. Specifically, under the condition that the power consumption of the target application is greater than the target preset power consumption, the power saving mode level of the target application is improved, so that the actual duration of the electronic equipment is ensured to be not less than the preset duration.
According to the embodiment of the application, the power saving mode level of the target application is adaptively adjusted by combining the requirements of the user on the duration, so that the duration of the electronic equipment is ensured, and meanwhile, the duration requirements of different users on the electronic equipment can be met.
Further, in an embodiment of the present application, the power saving control device 300 further includes: the second acquisition module is used for acquiring a first use time duty ratio of a first application and a second use time duty ratio of a second application in the electronic equipment within a second duration, wherein the first application is an application with power consumption larger than or equal to a first threshold value, and the second application is an application with power consumption smaller than the first threshold value; the determining module is used for determining a first preset duration corresponding to the first application and a second preset duration corresponding to the second application according to the preset duration, the first use time duty ratio and the second use time duty ratio.
Further, in one embodiment of the present application, the target application is either the first application or the second application; under the condition that the target application is a first application, the first time length is smaller than a first preset time length; or in the case that the target application is the second application, the first time period is smaller than the second preset time period.
Further, in one embodiment of the present application, the adjusting module is specifically configured to: when the current residual electric quantity of the electronic equipment is larger than or equal to the preset electric quantity, the power saving mode level of the target application is adjusted from the initial level to a first level, and the difference between the first level and the initial level of the target application is smaller than a second threshold value; the adjusting module is further configured to adjust the power saving mode level of the other application from the initial level to a second level, where a difference between the second level and the initial level of the other application is smaller than a second threshold, and the other application is an application running except the target application.
Further, in an embodiment of the present application, the adjustment module is specifically configured to adjust the power saving mode level of the target application from the initial level to a third level when the current remaining power of the electronic device is less than the preset power, and a difference between the third level and the initial level of the target application is greater than or equal to the second threshold.
The power saving control device 300 in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an Ultra-mobile Personal computer (Ultra-Mobile Personal Computer, UMPC), a netbook or Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a Personal computer (Personal Computer, PC), a Television (Television, TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The power saving control device 300 in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The power saving control device 300 provided in the embodiment of the present application can implement each process implemented in the power saving control method embodiment of fig. 1 and 2, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 400, including a processor 402, a memory 404, and a program or an instruction stored in the memory 404 and capable of running on the processor 402, where the program or the instruction implements each process of the above-mentioned power saving control method embodiment when executed by the processor 402, and the process can achieve the same technical effect, and for avoiding repetition, a description is omitted herein.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: radio frequency unit 502, network module 504, audio output unit 506, input unit 508, sensor 510, display unit 512, user input unit 514, interface unit 516, memory 518, and processor 520.
Those skilled in the art will appreciate that the electronic device 500 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 520 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The user input unit 514 is configured to receive a preset duration of the electronic device input by a user; the processor 520 is configured to obtain power consumption information of a target application in the electronic device after a first period of time, where the target application is an operating application, and adjust a power saving mode level of the target application if the power consumption of the target application is greater than a target preset power consumption; the target preset power consumption is as follows: and determining the theoretical power consumption of the target application under the condition that the electronic equipment runs for a preset duration according to the historical running information of the target application.
In this embodiment, the user may customize the duration of the electronic device desired by the user, and further, after the user uses the electronic device for the first duration, the power saving mode level of the target application may be adaptively adjusted according to the preset duration customized by the user and the power consumption information of the target application. Specifically, under the condition that the power consumption of the target application is greater than the target preset power consumption, the power saving mode level of the target application is improved, so that the actual duration of the electronic equipment is ensured to be not less than the preset duration.
According to the embodiment of the application, the power saving mode level of the target application is adaptively adjusted by combining the requirements of the user on the duration, so that the duration of the electronic equipment is ensured, and meanwhile, the duration requirements of different users on the electronic equipment can be met.
Further, in an embodiment of the present application, the processor 520 is further configured to obtain a first usage time duty cycle of a first application in the electronic device and a second usage time duty cycle of a second application in the second duration, where the first application is an application with power consumption greater than or equal to a first threshold, and the second application is an application with power consumption less than the first threshold; the processor 520 is further configured to determine a first preset duration corresponding to the first application and a second preset duration corresponding to the second application according to the preset duration, the first usage time duty ratio, and the second usage time duty ratio.
Further, in one embodiment of the present application, the target application is either the first application or the second application; under the condition that the target application is a first application, the first time length is smaller than a first preset time length; or in the case that the target application is the second application, the first time period is smaller than the second preset time period.
Further, in one embodiment of the present application, the processor 520 is specifically configured to adjust the power saving mode level of the target application from the initial level to a first level when the current remaining power of the electronic device is greater than or equal to the preset power, and a difference between the first level and the initial level of the target application is less than a second threshold; the processor 520 is further configured to adjust the power saving mode level of the other application from the initial level to a second level, where a difference between the second level and the initial level of the other application is less than a second threshold, and where the other application is an application running other than the target application.
Further, in an embodiment of the present application, the processor 520 is specifically configured to adjust the power saving mode level of the target application from the initial level to a third level, where a difference between the third level and the initial level of the target application is greater than or equal to the second threshold, when the current remaining power of the electronic device is less than the preset power.
It should be understood that, in the embodiment of the present application, the radio frequency unit 502 may be configured to receive and transmit information or signals during a call, and specifically, receive downlink data of a base station or send uplink data to the base station. The radio frequency unit 502 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.
The network module 504 provides wireless broadband internet access to the user, such as helping the user to email, browse web pages, access streaming media, and the like.
The audio output unit 506 may convert audio data received by the radio frequency unit 502 or the network module 504 or stored in the memory 518 into an audio signal and output as sound. Also, the audio output unit 506 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 500. The audio output unit 506 includes a speaker, a buzzer, a receiver, and the like.
The input unit 508 is used to receive an audio or video signal. The input unit 508 may include a graphics processor (Graphics Processing Unit, GPU) 5082 and a microphone 5084, the graphics processor 5082 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 512, or stored in the memory 518 (or other storage medium), or transmitted via the radio frequency unit 502 or the network module 504. The microphone 5084 may receive sound and may be capable of processing the sound into audio data, which may be converted into a format output that may be transmitted to the mobile communication base station via the radio frequency unit 502 in case of a phone call mode.
The electronic device 500 further comprises at least one sensor 510, such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, a light sensor, a motion sensor, and other sensors.
The display unit 512 is used to display information input by a user or information provided to the user. The display unit 512 may include a display panel 5122, and the display panel 5122 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
The user input unit 514 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. In particular, the user input unit 514 includes a touch panel 5142 and other input devices 5144. The touch panel 5142, also referred to as a touch screen, can collect touch operations thereon or thereabout by a user. The touch panel 5142 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 520, and receives and executes commands sent by the processor 520. Other input devices 5144 can include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Further, the touch panel 5142 can be overlaid on the display panel 5122, and when the touch panel 5142 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 520 to determine a type of touch event, and then the processor 520 provides a corresponding visual output on the display panel 5122 according to the type of touch event. The touch panel 5142 and the display panel 5122 may be two independent components or may be integrated into one component.
The interface unit 516 is an interface to which an external device is connected to the electronic apparatus 500. For example, the external devices may include a wired or wireless headset port, an external power (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 516 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 500 or may be used to transmit data between the electronic apparatus 500 and an external device.
Memory 518 may be used to store software programs and various data. The memory 518 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebooks, etc.) created according to the use of the mobile terminal, etc. In addition, memory 518 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.
Processor 520 performs various functions of electronic device 500 and processes data by executing or executing software programs and/or modules stored in memory 518, and invoking data stored in memory 518, thereby performing overall monitoring of electronic device 500. Processor 520 may include one or more processing units; preferably, the processor 520 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the above-mentioned power saving control method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the above power saving control method embodiment can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (8)

1. A power saving control method, characterized by comprising:
Receiving preset duration of the electronic equipment input by a user;
after a first duration, acquiring power consumption information of a target application in the electronic equipment, wherein the target application is an operating application;
When the power consumption of the target application is larger than the target preset power consumption, adjusting the power saving mode level of the target application;
Wherein, the target preset power consumption is: according to the historical operation information of the target application, determining the theoretical power consumption of the target application under the condition that the electronic equipment operates for the preset duration;
the adjusting the power saving mode level of the target application includes:
And under the condition that the current residual electric quantity of the electronic equipment is smaller than the preset electric quantity, adjusting the power saving mode level of the target application from the initial level to a third level, wherein the difference between the third level and the initial level of the target application is larger than or equal to a second threshold value.
2. The power saving control method according to claim 1, further comprising, before the receiving the preset duration of the electronic device input by the user:
Acquiring a first use time duty ratio of a first application and a second use time duty ratio of a second application in the electronic device within a second duration, wherein the first application is an application with power consumption larger than or equal to a first threshold value, and the second application is an application with power consumption smaller than the first threshold value, and the target application is any one of the first application or the second application;
After receiving the preset duration of the electronic device input by the user, the method further comprises the following steps:
And determining a first preset duration corresponding to the first application and a second preset duration corresponding to the second application according to the preset duration, the first use time duty ratio and the second use time duty ratio.
3. The power saving control method according to claim 2, characterized in that,
The first time length is smaller than the first preset time length under the condition that the target application is the first application;
Or in the case that the target application is the second application, the first time period is smaller than the second preset time period.
4. A power saving control method according to any one of claims 1 to 3, wherein the adjusting the power saving mode level of the target application includes:
When the current residual electric quantity of the electronic equipment is larger than or equal to the preset electric quantity, adjusting the power saving mode level of the target application from an initial level to a first level, wherein the difference between the first level and the initial level of the target application is smaller than a second threshold value;
After the adjusting the power saving mode level of the target application, the method further comprises:
and adjusting the power saving mode level of other applications from an initial level to a second level, wherein the difference between the second level and the initial level of the other applications is smaller than the second threshold, and the other applications are applications running except the target application.
5. A power saving control device, characterized by comprising:
the receiving module is used for receiving preset duration of the electronic equipment, which is input by a user;
The first acquisition module is used for acquiring power consumption information of a target application in the electronic equipment after a first time, wherein the target application is an operating application;
The adjusting module is used for adjusting the power saving mode level of the target application under the condition that the power consumption of the target application is larger than the target preset power consumption;
Wherein, the target preset power consumption is: according to the historical operation information of the target application, determining the theoretical power consumption of the target application under the condition that the electronic equipment operates for the preset duration;
The adjusting module is specifically configured to adjust the power saving mode level of the target application from an initial level to a third level when the current remaining power of the electronic device is less than a preset power, where a difference between the third level and the initial level of the target application is greater than or equal to a second threshold.
6. The power saving control apparatus according to claim 5, wherein the target application is either one of a first application or a second application; the power saving control device further includes:
The second acquisition module is used for acquiring a first use time duty ratio of a first application and a second use time duty ratio of a second application in the electronic equipment within a second duration, wherein the first application is an application with power consumption larger than or equal to a first threshold value, and the second application is an application with power consumption smaller than the first threshold value;
the determining module is configured to determine a first preset duration corresponding to the first application and a second preset duration corresponding to the second application according to the preset duration, the first usage time duty ratio and the second usage time duty ratio.
7. The power saving control device according to claim 6, wherein,
The first time length is smaller than the first preset time length under the condition that the target application is the first application;
Or in the case that the target application is the second application, the first time period is smaller than the second preset time period.
8. The power saving control device according to any one of claims 5 to 7, characterized in that the adjustment module is specifically configured to:
When the current residual electric quantity of the electronic equipment is larger than or equal to the preset electric quantity, adjusting the power saving mode level of the target application from an initial level to a first level, wherein the difference between the first level and the initial level of the target application is smaller than a second threshold value;
The adjustment module is further configured to adjust a power saving mode level of another application from an initial level to a second level, where a difference between the second level and the initial level of the other application is smaller than the second threshold, where the other application is an application that operates other than the target application.
CN202110505813.6A 2021-05-10 2021-05-10 Power saving control method and power saving control device Active CN113220106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110505813.6A CN113220106B (en) 2021-05-10 2021-05-10 Power saving control method and power saving control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110505813.6A CN113220106B (en) 2021-05-10 2021-05-10 Power saving control method and power saving control device

Publications (2)

Publication Number Publication Date
CN113220106A CN113220106A (en) 2021-08-06
CN113220106B true CN113220106B (en) 2024-05-14

Family

ID=77094219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110505813.6A Active CN113220106B (en) 2021-05-10 2021-05-10 Power saving control method and power saving control device

Country Status (1)

Country Link
CN (1) CN113220106B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115002892B (en) * 2022-04-18 2023-12-01 芯翼信息科技(上海)有限公司 Method, terminal and medium for reducing influence of temperature drift of crystal oscillator of narrow-band system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018032581A1 (en) * 2016-08-15 2018-02-22 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for application program control
CN107817891A (en) * 2017-11-13 2018-03-20 广东欧珀移动通信有限公司 Screen control method, device, equipment and storage medium
CN107861603A (en) * 2017-10-31 2018-03-30 广东欧珀移动通信有限公司 Power consumption control method and equipment
CN108112063A (en) * 2017-12-21 2018-06-01 珠海市魅族科技有限公司 Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing
CN108810226A (en) * 2018-06-22 2018-11-13 维沃移动通信有限公司 A kind of electricity method for early warning and mobile terminal
CN109101101A (en) * 2018-08-30 2018-12-28 Oppo广东移动通信有限公司 Control method, device, storage medium and the wearable device of wearable device
WO2019047924A1 (en) * 2017-09-07 2019-03-14 中兴通讯股份有限公司 Terminal and power consumption control method therefor, device and computer readable storage medium
CN110320991A (en) * 2019-06-24 2019-10-11 维沃移动通信有限公司 A kind of method for managing power supply and device of mobile terminal
CN110839275A (en) * 2019-11-22 2020-02-25 广东小天才科技有限公司 Intelligent power saving method, mobile terminal, electronic equipment and storage medium
CN111309133A (en) * 2020-01-22 2020-06-19 维沃移动通信有限公司 Power saving control method and electronic equipment
CN111600355A (en) * 2020-06-04 2020-08-28 西安易朴通讯技术有限公司 Charging control method, device and equipment
CN112764513A (en) * 2021-01-28 2021-05-07 维沃移动通信有限公司 Prompting method and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018032581A1 (en) * 2016-08-15 2018-02-22 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for application program control
WO2019047924A1 (en) * 2017-09-07 2019-03-14 中兴通讯股份有限公司 Terminal and power consumption control method therefor, device and computer readable storage medium
CN107861603A (en) * 2017-10-31 2018-03-30 广东欧珀移动通信有限公司 Power consumption control method and equipment
CN107817891A (en) * 2017-11-13 2018-03-20 广东欧珀移动通信有限公司 Screen control method, device, equipment and storage medium
CN108112063A (en) * 2017-12-21 2018-06-01 珠海市魅族科技有限公司 Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing
CN108810226A (en) * 2018-06-22 2018-11-13 维沃移动通信有限公司 A kind of electricity method for early warning and mobile terminal
CN109101101A (en) * 2018-08-30 2018-12-28 Oppo广东移动通信有限公司 Control method, device, storage medium and the wearable device of wearable device
CN110320991A (en) * 2019-06-24 2019-10-11 维沃移动通信有限公司 A kind of method for managing power supply and device of mobile terminal
CN110839275A (en) * 2019-11-22 2020-02-25 广东小天才科技有限公司 Intelligent power saving method, mobile terminal, electronic equipment and storage medium
CN111309133A (en) * 2020-01-22 2020-06-19 维沃移动通信有限公司 Power saving control method and electronic equipment
CN111600355A (en) * 2020-06-04 2020-08-28 西安易朴通讯技术有限公司 Charging control method, device and equipment
CN112764513A (en) * 2021-01-28 2021-05-07 维沃移动通信有限公司 Prompting method and electronic equipment

Also Published As

Publication number Publication date
CN113220106A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN107357385B (en) Method for controlling temperature based on frequency, terminal and computer readable storage medium
CN107272872B (en) Power saving control method and related product
CN108108007A (en) A kind of processing method and mobile terminal for reducing power consumption
CN107886321B (en) Payment method and mobile terminal
CN107577332A (en) A kind of power consumption control method, mobile terminal and computer-readable recording medium
CN111050422B (en) Discontinuous reception control method and terminal
CN112803523A (en) Charging power regulation and control method, device and computer readable storage medium
CN114389648A (en) Signal transmission method and device, terminal equipment, intelligent equipment and electronic equipment
CN113220106B (en) Power saving control method and power saving control device
CN109545120B (en) Screen light sensor adjusting method, mobile terminal and computer readable storage medium
CN110198560B (en) Power configuration method and terminal
CN112822001A (en) Control method of electronic equipment and electronic equipment
CN110543333B (en) Sleep processing method and device for processor, mobile terminal and storage medium
CN107770811B (en) Data processing method, mobile terminal and computer readable storage medium
CN112003983A (en) Adaptive vibration system, terminal, method, and computer-readable storage medium
CN108008808B (en) Operation parameter adjusting method and mobile terminal
CN108874111B (en) Battery over-discharge protection control method and mobile terminal
CN111240451A (en) Heat dissipation method, electronic device and computer-readable storage medium
CN108170360B (en) Control method of gesture function and mobile terminal
CN116033530A (en) Dynamic configuration method and device for price tag power consumption and computer readable storage medium
CN113099542B (en) Parameter reporting method, uplink scheduling method, device and medium
CN109412986B (en) Communication channel setting method and mobile terminal
CN108287755B (en) Application program control method and mobile terminal
CN110035553B (en) Resource scheduling request method and device and mobile terminal
CN110210197B (en) Screen sensitivity adjusting method 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
GR01 Patent grant
GR01 Patent grant