CN113778214B - Power saving optimization method and device, mobile terminal and storage medium - Google Patents
Power saving optimization method and device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN113778214B CN113778214B CN202111078018.XA CN202111078018A CN113778214B CN 113778214 B CN113778214 B CN 113778214B CN 202111078018 A CN202111078018 A CN 202111078018A CN 113778214 B CN113778214 B CN 113778214B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- state information
- application
- information
- value
- 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
Links
- 238000005457 optimization Methods 0.000 title claims abstract description 73
- 238000000034 method Methods 0.000 title claims abstract description 35
- 206010048669 Terminal state Diseases 0.000 claims abstract description 23
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 3
- 239000002609 medium Substances 0.000 description 15
- 230000001413 cellular effect Effects 0.000 description 7
- 238000012544 monitoring process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 239000008186 active pharmaceutical agent Substances 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008014 freezing Effects 0.000 description 1
- 238000007710 freezing Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 239000012120 mounting media Substances 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
- G06F1/3212—Monitoring battery levels, e.g. power saving mode being initiated when battery voltage goes below a certain level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to a power saving optimization method, a power saving optimization device, a mobile terminal and a storage medium. The method comprises the steps of obtaining charging condition information of the mobile terminal; if the mobile terminal is in a non-charging state, acquiring state information of the mobile terminal, and determining the time for acquiring the state information of the mobile terminal next time according to the acquired state information of the mobile terminal; if the quotient of the difference value of the electric quantity of the battery information of the mobile terminal state information acquired by two adjacent times and the time interval of acquiring the mobile terminal state information of the two times is larger than a preset first threshold value, acquiring the state information of each running application of the mobile terminal; determining power consumption application according to the state information of each running application; generating an optimization strategy and providing the optimization strategy for a user. And the intelligent dynamic regulation strategy is adopted to monitor the electric quantity of the mobile terminal, the power consumption application is determined when the electric quantity drops quickly, the optimization strategy is provided for a user, and the user can reduce the electric quantity consumption by adopting the optimization strategy.
Description
Technical Field
The present invention relates to the field of mobile terminal applications, and in particular, to a power saving optimization method, a device, a mobile terminal, and a storage medium.
Background
The mobile terminal, such as a smart phone, a tablet personal computer and the like, has the characteristics of portability and mobility, and a user can conveniently use the mobile terminal to perform various work or leisure activities such as e-mail receiving and sending, document processing, surfing the internet, game entertainment and the like at any time and any place.
The mobile terminal is generally provided with an operating system, an application program and the like, the running of the mobile terminal can consume the electric quantity of a battery, the mobile terminal cannot work continuously for a long time, and the mobile terminal can be used continuously only by replacing the battery or charging, so that inconvenience is brought to a user.
The existing power management program is mainly realized by starting an asynchronous thread and continuously and circularly inquiring the system in the background. This approach is relatively inefficient and consumes power.
Disclosure of Invention
The present invention has been made in view of the above problems, and provides a power saving optimization method, apparatus, mobile terminal, and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a power saving optimization method.
The power saving optimization method comprises the following steps:
Acquiring charging condition information of a mobile terminal;
if the mobile terminal is in a non-charging state, acquiring state information of the mobile terminal, wherein the state information of the mobile terminal comprises battery information, CPU operation information, memory operation information and network information, and determining the time for acquiring the state information of the mobile terminal next time according to the acquired state information of the mobile terminal;
If the quotient of the difference value of the electric quantity of the battery information of the mobile terminal state information acquired by two adjacent times and the time interval of acquiring the mobile terminal state information of the two times is larger than a preset first threshold value, acquiring the state information of each running application of the mobile terminal;
determining power consumption application according to the state information of each running application;
generating an optimization strategy and providing the optimization strategy for a user.
Optionally, the method is scheduled by WorkManager.
Optionally, the state information of the application includes processor occupancy rate, network traffic consumption, and memory occupancy rate; the determining the power consumption application according to the state information of the running applications comprises the following steps:
calculating the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application, and calculating the weighted sum of the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application according to preset weights; and determining the application as the power consumption application if the weighted sum of the applications exceeds a preset second threshold or the weighted sum of the applications is maximum.
Optionally, the calculating the memory occupancy value, the network traffic consumption value, the processor occupancy value of the running applications includes:
generating a processor occupancy list according to the high-low order of the processor occupancy rate of each running application, and assigning a processor occupancy rate value based on the position applied to the processor occupancy list;
Generating a network traffic consumption list according to the network traffic consumption high-low sequence of each running application, and assigning a network traffic consumption value based on the position applied to the network traffic consumption list;
And generating a memory occupancy list according to the high-low ordering of the memory occupancy rate of each running application, and assigning a memory occupancy rate value based on the position applied to the memory occupancy list.
Optionally, the generating an optimization policy, providing the optimization policy to a user, includes:
And generating prompt information, wherein the prompt information is used for prompting a user to close the power consumption application.
In a second aspect, an embodiment of the present invention provides a power saving optimization apparatus.
The power saving optimizing device includes:
The charging condition information acquisition module is used for acquiring charging condition information of the mobile terminal;
The mobile terminal state information acquisition module is used for acquiring the state information of the mobile terminal if the mobile terminal is in a non-charging state, wherein the state information of the mobile terminal comprises battery information, CPU operation information, memory operation information and network information, and determining the time for acquiring the next mobile terminal state information according to the acquired mobile terminal state information;
The application state information acquisition module is used for acquiring the state information of each running application of the mobile terminal if the quotient of the difference value of the electric quantity of the battery information of the state information of the mobile terminal acquired by two adjacent times and the time interval of the state information acquisition of the mobile terminal is larger than a preset first threshold value;
the power consumption application determining module is used for determining power consumption applications according to the state information of the running applications;
and the optimization strategy generation module is used for generating an optimization strategy and providing the optimization strategy for a user.
Optionally, the apparatus further comprises:
WorkManager module for executing task scheduling.
Optionally, the state information of the application includes processor occupancy rate, network traffic consumption, and memory occupancy rate; the power consumption application determination module is further configured to:
calculating the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application, and calculating the weighted sum of the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application according to preset weights; and determining the application as the power consumption application if the weighted sum of the applications exceeds a preset second threshold or the weighted sum of the applications is maximum.
Optionally, the power consumption application determining module includes:
The processor occupancy rate assignment sub-module is used for generating a processor occupancy list according to the processor occupancy rate of each running application in a high-low order, and assigning a processor occupancy rate value based on the position applied to the processor occupancy list;
the network traffic consumption assignment sub-module is used for generating a network traffic consumption list according to the network traffic consumption high-low sequence of each running application, and assigning a network traffic consumption value based on the position applied to the network traffic consumption list;
And the memory occupancy rate assignment sub-module is used for generating a memory occupancy list according to the high-low ordering of the memory occupancy rate of each running application, and assigning a memory occupancy rate value based on the position applied to the memory occupancy list.
Optionally, the optimization strategy generation module includes:
and the prompt information generation sub-module is used for generating prompt information to prompt a user to close the power consumption application.
In a third aspect, an embodiment of the present invention provides a mobile terminal.
The mobile terminal comprises:
one or more processors;
a memory for storing one or more programs;
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the power saving optimization method of any of the first aspects.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium.
The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the power saving optimization method according to any one of the first aspects.
In this embodiment, charging condition information of a mobile terminal is obtained; if the mobile terminal is in a non-charging state, acquiring state information of the mobile terminal, wherein the state information of the mobile terminal comprises battery information, CPU operation information, memory operation information and network information, and determining the time for acquiring the state information of the mobile terminal next time according to the acquired state information of the mobile terminal; if the quotient of the difference value of the electric quantity of the battery information of the mobile terminal state information acquired by two adjacent times and the time interval of acquiring the mobile terminal state information of the two times is larger than a preset first threshold value, acquiring the state information of each running application of the mobile terminal; determining power consumption application according to the state information of each running application; generating an optimization strategy and providing the optimization strategy for a user. And the intelligent dynamic regulation strategy is adopted to monitor the electric quantity of the mobile terminal, the power consumption application is determined when the electric quantity drops quickly, the optimization strategy is provided for a user, and the user can reduce the electric quantity consumption by adopting the optimization strategy.
Drawings
Fig. 1 is a flowchart of a power saving optimization method according to a first embodiment of the present invention;
Fig. 2 is a schematic structural diagram of a power saving optimization device according to a second embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a power saving optimization method according to a first embodiment of the present invention, where the method may be performed by a power saving optimization device, and the power saving optimization device may be implemented by software and/or hardware, and may be configured in a mobile terminal, for example, a mobile phone, a tablet computer, etc., and may also be configured in a computer device, for example, a server, a personal computer, etc., and specifically includes the following steps:
and 101, acquiring charging condition information of the mobile terminal.
Mobile terminals are typically equipped with operating systems, applications, etc., which run to consume battery power. If the mobile terminal is in a charged state, the power of the mobile terminal generally increases with time, and power saving optimization of the mobile terminal may not be required. If the mobile terminal is in a non-charging state, the electric quantity can be reduced along with time, and if the power saving optimization is not performed under the condition of quick consumption of the electric quantity, the mobile terminal can not work in a short time.
Android provides WorkManager for developers to hand off tasks that do not need to be completed in time to mobile device power considerations. Deferrable asynchronous tasks that must run reliably can be easily scheduled using WorkManager API. Through WorkManager API, tasks may be created and submitted to WorkManager for execution when the operational constraints are met.
WorkManager is included in an Android new development framework Jetpack framework promoted in recent years by Google, and takes modernization, high efficiency and low power consumption as main dotting points. The method specifically comprises the following characteristics:
And the control is operated, so that the monitoring time of the battery can be restrained when the equipment is idle or at high frequency.
The powerful scheduling can be automatically performed after the device is restarted.
For complex related work, the powerful work chain can use a smooth and natural interface to connect all work tasks in series, and can control which parts run sequentially and which parts run in parallel.
Built-in thread interoperability, flexible insertion of asynchronous APIs is possible.
Based on the above excellent characteristics, workManager is extremely suitable for the scenario of low-power monitoring function. Preferably, the power saving optimization method is scheduled by WorkManager.
Step 102, if the mobile terminal is in a non-charging state, acquiring state information of the mobile terminal, wherein the state information of the mobile terminal comprises battery information, CPU operation information, memory operation information and network information, and determining the time for acquiring the next mobile terminal state information according to the acquired mobile terminal state information.
For example, through the battery information of the mobile terminal, such as the electric quantity and the battery temperature, the CPU operation information, such as the CPU execution state, the memory operation information, such as the memory use condition, the network information, such as the signal intensity, and the like, the power consumption condition of the mobile terminal is judged, if the current power consumption of the mobile terminal is judged to be higher, the time for acquiring the state information of the next mobile terminal is correspondingly shortened, if the current power consumption of the mobile terminal is judged to be lower, the time for acquiring the state information of the next mobile terminal is correspondingly prolonged, thereby realizing the dynamic regulation and control of the monitoring time and greatly reducing the electric quantity consumed by electric quantity monitoring.
In one embodiment, the time for acquiring the state information of the next mobile terminal is determined according to the electric quantity of the battery information in the state information of the last mobile terminal, if the electric quantity acquired this time is faster than the electric quantity acquired last time, and the current power consumption of the mobile terminal is higher through the battery information of the mobile terminal, the time for acquiring the state information of the next mobile terminal is correspondingly shortened, if the electric quantity is slower, and the current power consumption of the mobile terminal is lower through the battery information of the mobile terminal, the time for acquiring the state information of the next mobile terminal is correspondingly prolonged, so that the monitoring time is dynamically regulated, and the electric quantity consumed by electric quantity monitoring is greatly reduced.
Step 103, if the quotient of the difference of the electric quantity of the battery information of the mobile terminal state information acquired by two adjacent times and the time interval of acquiring the mobile terminal state information of the two times is greater than a preset first threshold value, acquiring the state information of each running application of the mobile terminal.
In other words, in the time of obtaining the state information of the mobile terminal twice, the power consumption of the mobile terminal in unit time is greater than a preset first threshold value, and the mobile terminal is in the condition of fast power consumption, so that power saving optimization is required.
In one embodiment, the state information of the application includes processor occupancy, network traffic consumption, and memory occupancy.
The network traffic includes one or both of cellular network traffic and WiFi traffic.
Cellular mobile networks include the currently commonly used 2G, 3G, 4G, 5G networks, and the currently used public mobile communication systems are all cellular mobile technologies. WiFi technology belongs to local area network technology in the communication industry, and it belongs to wireless local area network technology. Almost all mobile terminals currently support one or both of cellular mobile networks, wiFi.
In general, when a mobile terminal communicates through WiFi, the cellular network is disconnected, and when WiFi is disconnected, or there is no local area network or hot spot available nearby, the mobile terminal communicates through the cellular network, where the network traffic consumption is the sum of the cellular network traffic consumption and the WiFi traffic consumption.
The application continues to run with high power, which can lead to the increase of the occupancy rate of the processor, the increase of the network flow consumption and the increase of the memory occupancy rate, and the corresponding power consumption of the hardware of the three can be increased.
Therefore, in this embodiment, three performance dimensions of the processor occupancy rate, the network traffic consumption, and the memory occupancy rate of the application are collected, and the performance dimensions are analyzed to finally determine the power consumption application.
And 104, determining the power consumption application according to the state information of the running applications.
In one embodiment, the step 104 specifically includes:
and calculating the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application.
In one embodiment, the calculating the memory occupancy value, the network traffic consumption value, the processor occupancy value of the running applications includes:
generating a processor occupancy list according to the high-low order of the processor occupancy rate of each running application, and assigning a processor occupancy rate value based on the position applied to the processor occupancy list;
Generating a network traffic consumption list according to the network traffic consumption high-low sequence of each running application, and assigning a network traffic consumption value based on the position applied to the network traffic consumption list;
And generating a memory occupancy list according to the high-low ordering of the memory occupancy rate of each running application, and assigning a memory occupancy rate value based on the position applied to the memory occupancy list.
For example, N applications are running, and the N applications are ranked in the processor occupancy list according to that the processor occupancy rate is higher than that of the application with the highest processor occupancy rate, and the processor occupancy rate value is given as N; the application with the next highest processor occupancy rate gives the processor occupancy rate value of N-1; … …; and the application with the lowest processor occupancy rate is endowed with the processor occupancy rate value of 1.
The N applications are ranked in a list according to the fact that the network traffic consumption is higher than the network traffic consumption, wherein the application with the highest network traffic consumption gives a network traffic consumption value of N; the application with the next highest network traffic consumption gives a network traffic consumption value of N-1; … …; and the application with the lowest network traffic consumption is endowed with a network traffic consumption value of 1.
The N applications are ordered according to the fact that the memory occupancy rate is higher than that of the memory occupancy list, wherein the application with the highest memory occupancy rate is endowed with a memory occupancy rate value of N; the application with the next highest memory occupancy rate gives a memory occupancy rate value of N-1; … …; and (5) giving the memory occupancy value of 1 to the application with the lowest memory occupancy value.
It should be noted that, in the above-illustrated embodiment, the assignment of the processor occupancy value, the network traffic consumption value, and the memory occupancy value is merely an exemplary description, and is not limited to the present specification. In practical application, other values (scores) can be given to the processor occupancy value, the network flow consumption value and the memory occupancy value.
The step 104 specifically further includes:
Calculating the weighted sum of the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application according to preset weights; and if the weighted sum of the applications exceeds a preset second threshold value, determining the application as the power consumption application.
For example, the weight of the processor occupancy value is w1, such as 5, the weight of the network traffic consumption value is w2, such as 2, the weight of the memory occupancy value is w3, such as 3, the power saving optimization device may calculate the weighted sum of the processor occupancy value, the network traffic consumption value, and the memory occupancy value applied according to the preset weight, if the weighted sum of certain application is processor occupancy value w1+network traffic consumption value w2, and memory occupancy value w3; further, an application may be determined to be a power consuming application if the weighted sum of certain applications is calculated to exceed a preset threshold.
It should be noted that, in the above embodiment, the foregoing is merely an exemplary description and is not limiting to the present specification, with respect to a specific implementation manner of calculating the weighted sum of the application processor occupancy value, the network traffic consumption value and the memory occupancy value.
In one embodiment, the application is determined to be a power consuming application if the weighted sum of the applications is maximum.
For example, from among N applications running, the weighted sum of application X is the largest, i.e., greater than the weighted sum of the other N-1 applications, application X is determined to be a power consuming application.
And 105, generating an optimization strategy and providing the optimization strategy for a user.
After determining the power consuming application, an optimization strategy is generated and provided to the user. The user may process the running application according to an optimization strategy, such as shutting down the power consuming application, or freezing the power consuming application, etc.
In one embodiment, the generating an optimization strategy, providing the optimization strategy to a user, includes:
And generating prompt information, wherein the prompt information is used for prompting a user to close the power consumption application.
For example, the user is reminded to close the designated application, namely, close the power consumption application in a popup notification mode, so that the power consumption of the mobile terminal is reduced. Of course, the user may also be reminded to charge the mobile terminal.
In this embodiment, charging condition information of a mobile terminal is obtained; if the mobile terminal is in a non-charging state, acquiring state information of the mobile terminal, wherein the state information of the mobile terminal comprises battery information, CPU operation information, memory operation information and network information, and determining the time for acquiring the state information of the mobile terminal next time according to the acquired state information of the mobile terminal; if the quotient of the difference value of the electric quantity of the battery information of the mobile terminal state information acquired by two adjacent times and the time interval of acquiring the mobile terminal state information of the two times is larger than a preset first threshold value, acquiring the state information of each running application of the mobile terminal; determining power consumption application according to the state information of each running application; generating an optimization strategy and providing the optimization strategy for a user. And the intelligent dynamic regulation strategy is adopted to monitor the electric quantity of the mobile terminal, the power consumption application is determined when the electric quantity drops quickly, the optimization strategy is provided for a user, and the user can reduce the electric quantity consumption by adopting the optimization strategy.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Example two
Fig. 2 is a schematic structural diagram of a power saving optimization device according to a second embodiment of the present invention, where the power saving optimization device specifically may include the following modules:
a charging condition information obtaining module 201, configured to obtain charging condition information of a mobile terminal;
A mobile terminal status information obtaining module 202, configured to obtain status information of a mobile terminal if the mobile terminal is in a non-charging state, where the status information of the mobile terminal includes battery information, CPU operation information, memory operation information, and network information, and determine a time for obtaining next mobile terminal status information according to the obtained mobile terminal status information;
The application state information obtaining module 203 is configured to obtain state information of each running application of the mobile terminal if a quotient obtained by dividing a difference between electric quantities of battery information of state information of the mobile terminal obtained by two adjacent times and a time interval obtained by the state information of the mobile terminal obtained by the two times is greater than a preset first threshold;
A power consumption application determining module 204, configured to determine a power consumption application according to status information of the running applications;
The optimization policy generation module 205 is configured to generate an optimization policy, and provide the optimization policy to a user.
In one embodiment, the power saving optimization apparatus further includes:
WorkManager module for executing task scheduling.
In one embodiment, the state information of the application includes processor occupancy, network traffic consumption, and memory occupancy.
The power consumption application determination module 204 is further configured to:
calculating the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application, and calculating the weighted sum of the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application according to preset weights; and determining the application as the power consumption application if the weighted sum of the applications exceeds a preset second threshold or the weighted sum of the applications is maximum.
In one embodiment, the power consuming application determination module 204 includes:
The processor occupancy rate assignment sub-module is used for generating a processor occupancy list according to the processor occupancy rate of each running application in a high-low order, and assigning a processor occupancy rate value based on the position applied to the processor occupancy list;
the network traffic consumption assignment sub-module is used for generating a network traffic consumption list according to the network traffic consumption high-low sequence of each running application, and assigning a network traffic consumption value based on the position applied to the network traffic consumption list;
And the memory occupancy rate assignment sub-module is used for generating a memory occupancy list according to the high-low ordering of the memory occupancy rate of each running application, and assigning a memory occupancy rate value based on the position applied to the memory occupancy list.
In one embodiment, the optimization strategy generation module 205 includes:
and the prompt information generation sub-module is used for generating prompt information to prompt a user to close the power consumption application.
The power saving optimization device provided by the embodiment of the invention can execute the power saving optimization method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 3 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention, and shows a block diagram of an exemplary mobile terminal suitable for implementing an embodiment of the present invention. The mobile terminal shown in fig. 3 is only an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention. As shown in fig. 3, the mobile terminal includes a processor 31, a memory 32, an input device 33 and an output device 34; the number of processors 31 in the mobile terminal may be one or more, in fig. 3, one processor 31 is taken as an example, and the processors 31, the memory 32, the input device 33 and the output device 34 in the mobile terminal may be connected by a bus or other means, in fig. 3, by a bus connection is taken as an example.
The memory 32 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to the power saving optimization method in the embodiment of the present invention. The processor 31 executes various functional applications of the mobile terminal and data processing, i.e., implements the above-described power saving optimization method, by running software programs, instructions, and modules stored in the memory 32.
The memory 32 may mainly include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the mobile terminal, etc. In addition, memory 32 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 non-volatile solid-state storage device. In some examples, the memory 32 may further include memory remotely located relative to the processor 31, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 33 may be used for generating key signal inputs or the like relating to user settings and function control of the mobile terminal. The output device 34 includes a display screen or the like, and may be used to present the corresponding feedback results or the like to the user.
Example IV
The fourth embodiment of the present invention also provides a computer readable storage medium, on which a computer program is stored, the computer program implementing a power saving optimization method when executed by a processor, the method comprising:
Acquiring charging condition information of a mobile terminal;
if the mobile terminal is in a non-charging state, acquiring state information of the mobile terminal, wherein the state information of the mobile terminal comprises battery information, CPU operation information, memory operation information and network information, and determining the time for acquiring the state information of the mobile terminal next time according to the acquired state information of the mobile terminal;
If the quotient of the difference value of the electric quantity of the battery information of the mobile terminal state information acquired by two adjacent times and the time interval of acquiring the mobile terminal state information of the two times is larger than a preset first threshold value, acquiring the state information of each running application of the mobile terminal;
determining power consumption application according to the state information of each running application;
generating an optimization strategy and providing the optimization strategy for a user.
The storage medium may be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, etc.; nonvolatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (e.g., in different computer systems connected by a network). The storage medium may store program instructions (e.g., embodied as a computer program) executable by one or more processors.
Of course, the storage medium containing the computer program according to the embodiment of the present invention is not limited to the above-mentioned method operations, but may also perform the related operations in the power saving optimization method according to any embodiment of the present invention, and the same technical effects can be achieved, so that repetition is avoided and no further description is given here.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., and include several instructions for causing a mobile terminal (which may be a mobile phone, a tablet computer, or a smart wearable device, etc.) to perform the method according to the embodiments of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (8)
1. A power saving optimization method, the method comprising:
Acquiring charging condition information of a mobile terminal;
If the mobile terminal is in a non-charging state, acquiring state information of the mobile terminal, wherein the state information of the mobile terminal comprises battery information, CPU operation information, memory operation information and network information, and determining the time for acquiring the next state information of the mobile terminal according to the acquired state information of the mobile terminal and the electric quantity of the battery information in the state information of the mobile terminal acquired last time;
If the quotient of the difference value of the electric quantity of the battery information of the mobile terminal state information acquired by two adjacent times and the time interval of acquiring the mobile terminal state information of the two times is larger than a preset first threshold value, acquiring the state information of each running application of the mobile terminal;
determining power consumption application according to the state information of each running application;
generating an optimization strategy and providing the optimization strategy for a user;
The state information of the application comprises processor occupancy rate, network flow consumption and memory occupancy rate; the determining the power consumption application according to the state information of the running applications comprises the following steps:
calculating the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application, and calculating the weighted sum of the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application according to preset weights; and determining the application as the power consumption application if the weighted sum of the applications exceeds a preset second threshold or the weighted sum of the applications is maximum.
2. The method according to claim 1, characterized in that: the method is scheduled by WorkManager.
3. The method according to claim 1 or 2, wherein said calculating a memory occupancy value, a network traffic consumption value, a processor occupancy value of said running applications comprises:
generating a processor occupancy list according to the high-low order of the processor occupancy rate of each running application, and assigning a processor occupancy rate value based on the position applied to the processor occupancy list;
Generating a network traffic consumption list according to the network traffic consumption high-low sequence of each running application, and assigning a network traffic consumption value based on the position applied to the network traffic consumption list;
And generating a memory occupancy list according to the high-low ordering of the memory occupancy rate of each running application, and assigning a memory occupancy rate value based on the position applied to the memory occupancy list.
4. The method according to claim 1, characterized in that: the generating an optimization strategy, providing the optimization strategy to a user, comprises:
And generating prompt information, wherein the prompt information is used for prompting a user to close the power consumption application.
5. A power saving optimization apparatus, the apparatus comprising:
The charging condition information acquisition module is used for acquiring charging condition information of the mobile terminal;
The mobile terminal state information acquisition module is used for acquiring the state information of the mobile terminal if the mobile terminal is in a non-charging state, wherein the state information of the mobile terminal comprises battery information, CPU (Central processing Unit) operation information, memory operation information and network information, and determining the time for acquiring the next mobile terminal state information according to the acquired mobile terminal state information and the electric quantity of the battery information in the last acquired mobile terminal state information;
The application state information acquisition module is used for acquiring the state information of each running application of the mobile terminal if the quotient of the difference value of the electric quantity of the battery information of the state information of the mobile terminal acquired by two adjacent times and the time interval of the state information acquisition of the mobile terminal is larger than a preset first threshold value;
the power consumption application determining module is used for determining power consumption applications according to the state information of the running applications;
the optimization strategy generation module is used for generating an optimization strategy and providing the optimization strategy for a user;
The state information of the application comprises processor occupancy rate, network flow consumption and memory occupancy rate; the power consumption application determination module is further configured to:
calculating the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application, and calculating the weighted sum of the memory occupancy value, the network flow consumption value and the processor occupancy value of each running application according to preset weights; and determining the application as the power consumption application if the weighted sum of the applications exceeds a preset second threshold or the weighted sum of the applications is maximum.
6. The apparatus of claim 5, wherein the apparatus further comprises:
WorkManager module for executing task scheduling.
7. A mobile terminal, the mobile terminal comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the power save optimization method of any of claims 1-4.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the power saving optimization method according to any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111078018.XA CN113778214B (en) | 2021-09-15 | 2021-09-15 | Power saving optimization method and device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111078018.XA CN113778214B (en) | 2021-09-15 | 2021-09-15 | Power saving optimization method and device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113778214A CN113778214A (en) | 2021-12-10 |
CN113778214B true CN113778214B (en) | 2024-07-05 |
Family
ID=78843928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111078018.XA Active CN113778214B (en) | 2021-09-15 | 2021-09-15 | Power saving optimization method and device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113778214B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324519A (en) * | 2013-06-17 | 2013-09-25 | 华为技术有限公司 | Method and device for clearing malicious power consumption applications, and user terminal |
CN104298335A (en) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | Application program process cleaning method and device of mobile terminal and mobile terminal |
CN107844189A (en) * | 2017-10-30 | 2018-03-27 | 东莞市金铭电子有限公司 | A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103885803A (en) * | 2014-03-17 | 2014-06-25 | 可牛网络技术(北京)有限公司 | Method and device for managing procedures in mobile terminal and mobile terminal |
CN105467202B (en) * | 2014-08-22 | 2020-07-10 | 深圳市中兴微电子技术有限公司 | Electric quantity detection method and device and terminal |
CN104375624B (en) * | 2014-12-11 | 2017-04-26 | 深圳市奇虎智能科技有限公司 | Mobile terminal and power saving suggestion method thereof |
CN106708240B (en) * | 2015-11-18 | 2023-02-10 | 腾讯科技(深圳)有限公司 | Power saving method, server and power saving system |
CN107547742B (en) * | 2017-08-30 | 2020-10-02 | 深圳辉烨物联科技有限公司 | Wake-up lock release method and device for mobile terminal |
CN109471516B (en) * | 2017-09-07 | 2023-07-04 | 中兴通讯股份有限公司 | Terminal, power consumption control method and device thereof, and computer readable storage medium |
CN107908271A (en) * | 2017-10-19 | 2018-04-13 | 上海闻泰信息技术有限公司 | Prophylactic applications influence the method, apparatus and intelligent terminal of intelligent terminal power consumption |
CN108616653B (en) * | 2018-03-30 | 2020-01-17 | Oppo广东移动通信有限公司 | Information processing method, device, mobile terminal and computer readable storage medium |
-
2021
- 2021-09-15 CN CN202111078018.XA patent/CN113778214B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324519A (en) * | 2013-06-17 | 2013-09-25 | 华为技术有限公司 | Method and device for clearing malicious power consumption applications, and user terminal |
CN104298335A (en) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | Application program process cleaning method and device of mobile terminal and mobile terminal |
CN107844189A (en) * | 2017-10-30 | 2018-03-27 | 东莞市金铭电子有限公司 | A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption |
Also Published As
Publication number | Publication date |
---|---|
CN113778214A (en) | 2021-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5734505B2 (en) | Method and system for dynamically controlling power to multiple cores in a multi-core processor of a portable computing device | |
CN102695998B (en) | System and method for controlling central processing unit power in a virtualized system | |
EP3084607B1 (en) | Multi-core dynamic workload management | |
JP5792836B2 (en) | Method and apparatus for smart power management for mobile communication terminals using power thresholds | |
US10061366B2 (en) | Schedule-based energy storage device selection | |
EP3259825B1 (en) | Heterogeneous battery cell switching | |
JP5893568B2 (en) | System and method for controlling central processing unit power based on estimated workload parallelism | |
WO2016133688A1 (en) | Heterogeneous battery cell charging | |
CN103037109B (en) | Multicore equipment energy consumption management method and device | |
CN105467202B (en) | Electric quantity detection method and device and terminal | |
US9760154B2 (en) | Method of dynamically controlling power in multicore environment | |
CN112988362B (en) | Task processing method and device, electronic equipment and storage medium | |
CN111625080B (en) | Server energy saving method and device, electronic equipment and storage medium | |
WO2017184347A1 (en) | Adaptive doze to hibernate | |
US20120001883A1 (en) | Method and apparatus for calculating a power consumption segment and displaying a power consumption indicator | |
JP5930504B2 (en) | System and method for controlling central processing unit power with guaranteed transient deadlines | |
US8438412B1 (en) | System, method, and computer program for enabling an amount of multitasking for use by an operating system | |
CN113778214B (en) | Power saving optimization method and device, mobile terminal and storage medium | |
US20150220362A1 (en) | Multi-core processor system, electrical power control method, and computer product for migrating process from one core to another | |
Chang et al. | Energy-aware computing for android platforms | |
WO2016058149A1 (en) | Method for predicting utilization rate of processor, processing apparatus and terminal device | |
CN107613546B (en) | BLE chip, control method of designated element in BLE chip and Bluetooth low-power-consumption equipment | |
CN102385529B (en) | Multi-CPU (Central Processing Unit) domain mobile electronic device and operating method thereof | |
US12007827B2 (en) | Terminal power saving method and apparatus | |
CN110730084B (en) | Control method of communication module of meter, microcontroller and meter |
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 |