CN104635908B - A kind of method and device for the power consumption reducing mobile terminal - Google Patents
A kind of method and device for the power consumption reducing mobile terminal Download PDFInfo
- Publication number
- CN104635908B CN104635908B CN201310567322.XA CN201310567322A CN104635908B CN 104635908 B CN104635908 B CN 104635908B CN 201310567322 A CN201310567322 A CN 201310567322A CN 104635908 B CN104635908 B CN 104635908B
- Authority
- CN
- China
- Prior art keywords
- application program
- mobile terminal
- power consumption
- power
- duration
- 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
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/3234—Power saving characterised by the action undertaken
- G06F1/329—Power saving characterised by the action undertaken by task scheduling
-
- 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/3228—Monitoring task completion, e.g. by use of idle timers, stop commands or wait commands
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 present invention is suitable for field of mobile terminals, provides a kind of method and device for the power consumption reducing mobile terminal, the method includes:Detect the power consumption of the application program in mobile terminal;That detects the application program in mobile terminal uses duration;According to the power consumption rate for determining the application program using duration of the power consumption of the application program in mobile terminal and application program;The out of service of the application program in mobile terminal is controlled according to the power consumption rate of application program described in mobile terminal.The present invention is by controlling the out of service of the application program in mobile terminal according to the power consumption rate of application program in mobile terminal, so as to quickly reduce the power consumption of mobile terminal, extend the cruise duration of battery of mobile terminal, and then extends the service life of battery of mobile terminal.
Description
Technical field
The invention belongs to field of mobile terminals more particularly to a kind of method and devices reducing mobile terminal power consumption.
Background technology
With the continuous development of mobile communication technology, the use of mobile terminal is more and more universal, can transport in the terminal
Capable application program is also more and more, causes the cruise duration of the battery of mobile terminal also shorter and shorter in this way.Intelligent sliding at present
A bottleneck for having become mobile terminal development cruise duration for dynamic end cell, in the technology item of existing battery of mobile terminal
Under part, the power consumption of mobile terminal how is saved, the cruise duration for extending battery of mobile terminal has become a hot research
Project.
The method of the existing power consumption for reducing mobile terminal is generally by each application program in accumulative mobile terminal
Power consumption, when the electricity of battery of mobile terminal is less than default power threshold, power consumption is most in mobile terminal out of service
Application program.Due to the power consumption that the application program being commonly used in mobile terminal is generally accumulated to be it is most, use
The method of the existing power consumption for reducing mobile terminal stops fortune when the electricity of battery of mobile terminal is less than default power threshold
Capable application program is usually the higher application program of frequency of use in mobile terminal, rather than power consumption is most fast in mobile terminal
Application program, to can not quickly reduce the power consumption of mobile terminal, simultaneously because frequency of use out of service is higher
Application program is by the defect in terms of bringing interactive friendly to user, to reduce the competitiveness of mobile terminal.
Invention content
The embodiment of the present invention provides a kind of method and device for the power consumption reducing mobile terminal, it is intended to solve existing drop
The problem of power consumption rate of mobile terminal can not be quickly reduced existing for the method for the power consumption of low mobile terminal.
On the one hand, a kind of method for the power consumption reducing mobile terminal is provided, the method includes:
Detect the power consumption of the application program in mobile terminal;
That detects the application program in mobile terminal uses duration;
The application program is determined according to the use duration of the power consumption of the application program in mobile terminal and application program
Power consumption rate;
The stopping fortune of the application program in mobile terminal is controlled according to the power consumption rate of application program described in mobile terminal
Row.
On the other hand, a kind of device for the power consumption reducing mobile terminal is provided, described device includes:
First detection unit, the power consumption for detecting the application program in mobile terminal;
Second detection unit, the use duration for detecting the application program in mobile terminal;
Power consumption rate determination unit, for according to the power consumption of the application program in mobile terminal and the use of application program
Duration determines the power consumption rate of the application program;
Stop control unit, for being controlled in mobile terminal according to the power consumption rate of application program described in mobile terminal
Application program it is out of service.
In embodiments of the present invention, by detecting the power consumption of application program and making for application program in mobile terminal
With duration, the power consumption rate of application program is determined according to the power consumption of application program and using duration, is answered according in mobile terminal
The out of service of the application program in mobile terminal is controlled with the power consumption rate of program, so as to quickly reduce mobile terminal
Power consumption, extend the cruise duration of battery of mobile terminal, so extend battery of mobile terminal service life.
Description of the drawings
Fig. 1 is the implementation flow chart of the method for the power consumption provided in an embodiment of the present invention for reducing mobile terminal;
Fig. 2 is the implementation flow chart of the method for the power consumption for the reduction mobile terminal that another embodiment of the present invention provides;
Fig. 3 is the implementation flow chart of the method for the power consumption for the reduction mobile terminal that another embodiment of the present invention provides;
Fig. 4 is the particular flow sheet of the power consumption of the application program in detection mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of the device of the power consumption provided in an embodiment of the present invention for reducing mobile mobile terminal.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In embodiments of the present invention, by being controlled in mobile terminal according to the power consumption rate of application program in mobile terminal
Application program it is out of service, so as to quickly reduce the power consumption of mobile terminal, extend the continuation of the journey of battery of mobile terminal
Time, and then extend the service life of battery of mobile terminal.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Fig. 1 shows the implementation process of the method for the power consumption provided in an embodiment of the present invention for reducing mobile terminal, is described in detail
It is as follows:
S101 detects the power consumption of the application program in mobile terminal.
Wherein mobile terminal includes but not limited to smart mobile phone, tablet computer, laptop etc..
Wherein, the power consumption of the application program refers to the power consumption out of any specified duration, can be to disconnect charging
The electricity consumed to current time.It is whether at full charge unrelated when disconnecting charging with the mobile terminal.
Prior art offer may be used in the concrete mode for wherein detecting the power consumption of the application program in mobile terminal
Any one can detect that the mode of the power consumption of the application program in mobile terminal, the embodiment of the present invention can also be used to provide
Mode as shown in Figure 4.
S102, that detects the application program in mobile terminal uses duration.
Wherein, the corresponding specified duration of power consumption in a length of S101 with step when the use, when the power consumption is
When disconnection is charged to the electricity that current time is consumed, a length of duration disconnected when charging to current time when corresponding.
Wherein, application program of the detection in specified duration whether operation method, can preset one small
Time interval, often duration Jing Guo set time interval detect the motion state of an application program, if detecting
Point detects that application program is being run, then it is assumed that in the time interval duration before test point, application program is being run always.
The small time interval could be provided as the period of very little, such as 2 minutes, and when time interval is shorter, detection accuracy is higher.
S103, according to the power consumption rate for determining application program using duration of the power consumption of application program and application program.
Specifically, using the power consumption of application program divided by application program using the value that duration obtains as the application program
Power consumption rate.
S104 controls the stopping of the application program in mobile terminal according to the power consumption rate of the application program in mobile terminal
Operation.
In embodiments of the present invention, before application program out of service, prompt out of service is exported, to inform that user will
Application program out of service, to improve the interaction friendly of mobile terminal.
In the present embodiment, application program can be all application programs in mobile terminal or be mobile terminal terminal
In third party application.All application programs wherein in mobile terminal include system application and third-party application journey
Sequence, system application refer to the included application program of mobile terminal operating system, and third party application refers to except system is answered
With the remaining applications other than program.
The stopping of the application program in mobile terminal is wherein controlled according to the power consumption rate of the application program in mobile terminal
The sectional drawing process of operation is as follows:
It is directly that the most fast application program of power consumption rate in the application program being currently running is out of service, or first sentence
Whether the remaining capacity of disconnected battery of mobile terminal once is less than preset power threshold, if so, the application that will be currently running
The most fast application program of power consumption rate is out of service in program, otherwise, without any processing.
In the present embodiment, by directly by the most fast application program of power consumption rate in the application program being currently running
It is out of service so that the optimization of battery capacity need not be participated in artificially, and quick and easy and intelligence degree is high.By in movement
When the remaining capacity of end cell is less than preset power threshold, just most by power consumption rate in the application program being currently running
Fast application program is out of service so that use of the optimization of the battery capacity of mobile terminal to the application program in mobile terminal
Minor impact is generated, to while extending the cruise duration of battery of mobile terminal, ensure that the application in mobile terminal
The stability of program.
In an alternative embodiment of the invention, it is controlled in mobile terminal according to the power consumption rate of the application program in mobile terminal
Application program detailed process out of service it is as follows:
The application program END instruction that user inputs according to the power consumption rate of application program is received, according to the application program knot
Shu Zhiling terminates to run the specified application program of the application program END instruction.
In the present embodiment, by the way that the power consumption rate of application program is supplied to user, allow user by the consumption of application program
Reference factor of the electric speed as application program out of service, can be in the use of application program and continuing for battery thereby using family
It is balanced on ETS estimated time of sailing.
In an alternative embodiment of the invention, it is controlled in mobile terminal according to the power consumption rate of the application program in mobile terminal
Application program detailed process out of service it is as follows:
A1, it is in advance the application program configuration preference level in mobile terminal;
In the present embodiment, important application program is caused to be stopped due to extending the cruise duration of battery in order to prevent
The phenomenon that operation can be the application program configuration preference level in mobile terminal in advance, and priority is higher, indicates out of service
The application program is bigger to being influenced caused by mobile terminal or user.
A2, according to the power consumption rate of the application program in mobile terminal and the two priority classes mobile terminal of application program
In application program end operation.
Wherein moved eventually according to the power consumption rate of the application program in mobile terminal and the two priority classes of application program
The detailed process of the end operation of application program in end is as follows:
Priority out of service most fast application program of power consumption rate in pre-set priority threshold value application program below.
In this way, while extending the cruise duration of battery of mobile terminal, it ensure that the higher application program of priority is not stopped fortune
Row.
In an alternative embodiment of the invention, wherein according to the power consumption rate of the application program in mobile terminal and applying journey
The detailed process of the end operation of application program in the two priority classes mobile terminal of sequence is as follows:
Respectively weight is arranged in the power consumption rate of the priority of application program and application program, obtains the preferential of application program
The vector sum of the power consumption rate of grade and application program terminates the operation highest application program of vector sum.Application can be passed through in this way
The power consumption rate and priority of program, which consider, needs application program out of service so that reduces the power consumption of mobile terminal
Mode it is more reasonable.
In the power consumption rate setting weight of the priority and application program for application journey, for different in mobile terminal
Identical or different priority weighting and power consumption rate weight can be arranged, such as answering in mobile terminal in application program
With program a and application programs b, the priority weighting of application program a can be set to 0.3, the setting of power consumption rate weight
It is 0.7, the priority weighting of application program b is also configured as 0.3, power consumption rate weight is also configured as 0.7;Or journey will be applied
The priority weighting of sequence a is set as 0.3, and power consumption rate weight is set as 0.7, and the priority weighting of application program b is also provided with
It is 0.6, power consumption rate weight is also configured as 0.4.
Fig. 2 shows another embodiment of the present invention provide reduction mobile terminal power consumption method implementation process,
Details are as follows:
S201 detects the power consumption of the application program in mobile terminal.
S202, that detects the application program in mobile terminal uses duration.
S203 determines the power consumption rate of each application program according to the power consumption of application program and using duration.
S204 is ranked up display using preset sortord to the application program in mobile terminal.
Wherein preset sortord is that preset sortord is using the power consumption rate of application program as ranking factor
Or the sortord as one of ranking factor, including but not limited to it is ranked up near slow sequence according to power consumption rate
Deng.
When showing application program, the power consumption rate of application program can be shown simultaneously.Wherein show the consumption of application program
The concrete mode of electric speed includes but not limited to word, figure etc..
In the present embodiment, by being shown after being ranked up according to preset sortord to application program, consequently facilitating
User fast, easily selects most suitable application program out of service to extend the continuous of mobile terminal from multiple application programs
ETS estimated time of sailing.
S205 controls the stopping of the application program in mobile terminal according to the power consumption rate of the application program in mobile terminal
Operation.Its detailed process is as described above, details are not described herein.
Fig. 3 shows the implementation process of the method for the power consumption for the reduction mobile terminal that another embodiment of the present invention provides,
This method is the step of increase obtains the remaining capacity of battery of mobile terminal on the basis of Fig. 1 and/or method shown in Fig. 2,
And it when the remaining capacity of battery of mobile terminal is less than preset power threshold, is controlled according to Fig. 1 and/or method shown in Fig. 2
Application program is out of service in mobile terminal, and by taking method shown in Fig. 2 as an example, details are as follows:
S301 obtains the remaining capacity of battery of mobile terminal.
S302 detects answering in mobile terminal when the remaining capacity of battery of mobile terminal is less than preset power threshold
With the power consumption of program.
In an alternative embodiment of the invention, when the remaining capacity of mobile terminal is less than preset power threshold, in order to make
User can timely adjust the application program being currently running in mobile terminal, and prompt is saved in output power consumption, to inform use
Family in the case that battery capacity it is insufficient can certain application programs out of service quickly to reduce the power consumption of mobile terminal, to reach
To the purpose in the cruise duration for extending battery of mobile terminal.
S303 detects answering in mobile terminal when the remaining capacity of battery of mobile terminal is less than preset power threshold
Duration is used with program.
S304 determines the power consumption rate of each application program according to the power consumption of application program and using duration.
S305 is ranked up display using preset sortord to the application program in mobile terminal.
S306 controls the stopping of the application program in mobile terminal according to the power consumption rate of the application program in mobile terminal
Operation.
In the present embodiment, when the power consumption of battery of mobile terminal is less than preset power threshold, the present invention is just used
The method of the power consumption for the reduction mobile terminal that embodiment provides quickly to reduce the power consumption of mobile terminal, avoids due to moving
The power consumption of dynamic terminal it is too fast and cause the information of the preservation have not enough time to preserve or need the application program promptly used by
It can not be used in dead battery capability.
Referring to Fig. 4, for the specific of the power consumption provided in an embodiment of the present invention for detecting the application program in mobile terminal
Flow, details are as follows:
S401 obtains the power consumption of each power-consuming hardware in mobile terminal.
Wherein, the power consumption for obtaining each power-consuming hardware in mobile terminal, can directly return from system interface from reading
The power consumption for respectively having electric hardware returned.
Wherein power-consuming hardware includes but not limited to display screen, memory etc..
In the present embodiment, it was being run since the power consumption of each application program in mobile terminal generally refers to application program
The electricity consumed due to the use of the various power-consuming hardwares in mobile terminal in journey.Therefore, each in mobile terminal in order to detect
The power consumption of application program needs the power consumption for first obtaining each power-consuming hardware in mobile terminal.
When in view of charging, the data of power consumption information are consistent before keeping and charging without refreshing so that interface, which returns, to be consumed
Power information is unstable, therefore, starts the power consumption of each power-consuming hardware in accumulative mobile terminal after each charging complete of mobile terminal
Amount, in the power consumption of each power-consuming hardware in obtaining mobile terminal, it is only necessary to it is hard to read each power consumption in current time mobile terminal
The accumulative power consumption of part can get the power consumption by the end of each power-consuming hardware in current time mobile terminal.It wherein obtains and moves
The concrete mode of the power consumption of each power-consuming hardware belongs to the prior art in dynamic terminal, and details are not described herein.
In the present embodiment, when the power consumption rate for only needing to detect that out the application program being currently running in mobile terminal
When, then only need the power consumption for obtaining the used power-consuming hardware of application program being currently running in mobile terminal;When need
When detecting the power consumption rate of each application program in mobile terminal, then the power consumption for obtaining each power-consuming hardware in mobile terminal is needed
Amount.
S402 obtains application program in mobile terminal and uses the duty ratio of time of each power-consuming hardware in mobile terminal.It has
Body process is as follows:
Each power-consuming hardware always uses duration T in B1, acquisition mobile terminal.The arbitrary of prior art offer may be used in it
A kind of total mode for using duration getting each power-consuming hardware in mobile terminal, can also use the embodiment of the present invention to provide
The following two kinds mode:
A kind of mode is to be directed to each power-consuming hardware, detect each application program in mobile terminal using the power-consuming hardware when
It is long, each application program in mobile terminal is added using the duration of the power-consuming hardware, you can it is hard to obtain the power consumption in mobile terminal
Part always uses duration.+ the Tn such as T=T1+T2+ ..., wherein n are the application program that the power-consuming hardware was used in mobile terminal
Number, T1 are that use the duration of the power-consuming hardware, T2 be that second use should to the application program of first use power-consuming hardware
It is that n-th of application program using the power-consuming hardware uses that the application program of power-consuming hardware, which uses the duration of the power-consuming hardware, Tn,
The duration of the power-consuming hardware.It is illustrated below:
Assuming that power-consuming hardware is display screen, then the duration that each application program in mobile terminal uses display screen is detected, it is assumed that
Detect that application program a, application program b and application program c used display screen, and application program a using display screen when
Using the when a length of Tb1 of display screen, application program c then shown using the when a length of Tc1 of display screen by a length of Ta1, application program b
Screen always uses duration T=Ta1+Tb1+Tc1.
Assuming that power-consuming hardware is memory, then the duration that each application program in mobile terminal uses memory is detected, it is assumed that detection
Memory was used to application program a, application program b and application program e, and application program a is using the when a length of Ta2 of memory,
Application program b is using the when a length of Tb2 of memory, and application program e is using the when a length of Te2 of memory, then memory always uses duration T
=Ta2+Tb2+Te2。
In the present embodiment, when the power consumption rate for only needing to detect that out the application program being currently running in mobile terminal
When, then only need the used power-consuming hardware of application program being currently running in acquisition mobile terminal always uses duration;
When needing to detect the power consumption rate of each application program in mobile terminal, then need to obtain each power-consuming hardware in mobile terminal
Always use duration.
B2, the duration that application program in mobile terminal uses each power-consuming hardware in mobile terminal is obtained.
In the present embodiment, when the power consumption rate for only needing to detect that out the application program being currently running in mobile terminal
When, then only need to obtain the application program that is currently running in mobile terminal using in mobile terminal each power-consuming hardware when
It is long;When needing to detect the power consumption rate of each application program in mobile terminal, then needs to obtain and respectively apply journey in mobile terminal
Sequence uses the duration of each power-consuming hardware in mobile terminal.
In B3, duration and mobile terminal according to application program in mobile terminal using each power-consuming hardware in mobile terminal
Each power-consuming hardware always uses duration, determines that application program uses the duty ratio of time of each power-consuming hardware in mobile terminal.
For each power-consuming hardware, the duration using the power-consuming hardware divided by the power consumption by certain application program in mobile terminal
Total duty ratio of time for using the value of duration to use the power-consuming hardware as the application program of hardware.Such as:Pkm=Tkm/T,
Middle Pkm refers to the duty ratio of time that application program k uses power-consuming hardware m in mobile terminal, and Tkm is that application program k uses power consumption
The duration of hardware m.
S403 is used mobile whole according to application program in the power consumption and mobile terminal of each power-consuming hardware in mobile terminal
The duty ratio of time of each power-consuming hardware in end determines that application program uses the power consumption of each power-consuming hardware in mobile terminal.It has
Body process is as follows:
For each application program, which is multiplied by using the duty ratio of time of each power-consuming hardware in mobile terminal
The value of the power consumption of the power-consuming hardware uses the power consumption of the power-consuming hardware as the application program.It is illustrated below:
Assuming that the used power-consuming hardwares of application program a include display screen and memory, and application program a uses display screen
Duty ratio of time is Pa1, and the duty ratio of time using memory is Pa2;The used power-consuming hardwares of application program b also include display
Screen and memory, and application program b is Pb1 using the duty ratio of time of display screen, the duty ratio of time using memory is Pb2;It answers
Include display screen with the used power-consuming hardwares of program c, and application program c is Pc1 using the duty ratio of time of display screen;Using
The used power-consuming hardwares of program e include memory, and application program e is Pc2 using the duty ratio of time of memory;The consumption of display screen
Electricity is Q1, when total use of memory a length of Q2.
Then application program a is Pa1*Q1 using the power consumption of display screen, and the power consumption using memory is Pa2*Q2;Using journey
Sequence is Pb1*Q1 using the power consumption of display screen, and the power consumption using memory is Pb2*Q2;Application program c uses the consumption of display screen
Electricity is Pc1*Q1;Application program e is Pe2*Q2 using the power consumption of memory.
In the present embodiment, when the power consumption rate for only needing to detect that out the application program being currently running in mobile terminal
When, then only need the application journey being currently running in power consumption and mobile terminal according to each power-consuming hardware in mobile terminal
Sequence uses the duty ratio of time of each power-consuming hardware in mobile terminal, determines that the application program being currently running in mobile terminal makes
With the power consumption of each power-consuming hardware;When needing to detect the power consumption rate of each application program in mobile terminal, then basis is needed
Each application program uses each power-consuming hardware in mobile terminal in the power consumption and mobile terminal of each power-consuming hardware in mobile terminal
Duty ratio of time, determine that each application program in mobile terminal uses the power consumption of each power-consuming hardware.
S404 is determined in mobile terminal using the power consumption of each power-consuming hardware according to each application program in mobile terminal and is respectively answered
With the power consumption of program.
Specifically, for each application program in mobile terminal, which can be used each power-consuming hardware
Power consumption of the value that power consumption is added as the application program.It is illustrated below:
Assuming that the used power-consuming hardwares of application program a include display screen and memory, and application program a uses display screen
Power consumption is Pa1*Q1, and the power consumption using memory is Pa2*Q2, then the power consumption of application program a is Pa1*Q1+Pa2*Q2.
Assuming that the used power-consuming hardwares of application program b also include display screen and memory, and application program b uses display screen
Power consumption be Pb1*Q1, using memory power consumption be Pb2*Q2, then the power consumption of application program b be Pb1*Q1+Pb2*Q2.
Assuming that the used power-consuming hardwares of application program c include display screen, and application program c uses the power consumption of display screen
For Pc1*Q1, then the power consumption of application program c is Pc1*Q1.
Assuming that the used power-consuming hardwares of application program e include memory, and application program e is using the power consumption of memory
Pe2*Q2, then the power consumption of application program e is Pe2*Q2.
Fig. 5 shows the structure of the device of the power consumption provided in an embodiment of the present invention for reducing mobile mobile terminal, in order to
It is illustrated only and the relevant part of the embodiment of the present invention convenient for explanation.
The device can be used for mobile terminal, such as smart mobile phone, tablet computer, laptop etc., can be operation
In the unit that software unit, hardware cell or the software and hardware in mobile terminal are combined, independent pendant collection can also be used as
At in mobile terminal or running in the application system of mobile terminal, which includes:
First detection unit 11 is used to detect the power consumption of the application program in mobile terminal.
Wherein first detection unit 11 may be used any one that the prior art provides and can detect that in mobile terminal
The detection structure of the power consumption of application program can also use the detection list provided in an embodiment of the present invention for including following modules
Member.
The first detection unit 11 determines mould including the first acquisition module 111, the second acquisition module 112, the first power consumption
Block 113 and the second power consumption determining module 114.Wherein:
First acquisition module 111 is used to obtain the power consumption of each power-consuming hardware in mobile terminal.
Second acquisition module 112 is used to obtain the time duty that the application program in mobile terminal uses each power-consuming hardware
Than.
In an alternative embodiment of the invention, which it is hard to be specifically used for obtaining each power consumption in mobile terminal
Part always uses duration;Obtain duration of the application program in mobile terminal using each power-consuming hardware in mobile terminal;According to shifting
Application program in dynamic terminal using in the duration and mobile terminal of each power-consuming hardware in mobile terminal each power-consuming hardware it is total
Using duration, determine that the application program in mobile terminal uses the duty ratio of time of each power-consuming hardware.
Total concrete mode using duration of each power-consuming hardware may be used the prior art and carry wherein in acquisition mobile terminal
For any one can get total mode for using duration of each power-consuming hardware in mobile terminal, the present invention can also be used real
The following two kinds mode of example offer is provided:
A kind of mode is total use of directly each power-consuming hardware from reading mobile terminal in the operating system of mobile terminal
Duration T.
Another way is to be directed to each power-consuming hardware, detects each application program in mobile terminal and uses the power-consuming hardware
Each application program in mobile terminal is added, you can obtain the power consumption in mobile terminal by duration using the duration of the power-consuming hardware
Hardware always uses duration.
First power consumption determining module 113 is used for power consumption and mobile terminal according to each power-consuming hardware in mobile terminal
In application program using the duty ratio of time of each power-consuming hardware in mobile terminal, determine that the application program in mobile terminal uses
The power consumption of each power-consuming hardware in mobile terminal.Its detailed process is as follows:
For each application program, which is multiplied by using the duty ratio of time of each power-consuming hardware in mobile terminal
The value of the power consumption of the power-consuming hardware uses the power consumption of the power-consuming hardware as the application program.
Second power consumption determining module 114 is used to use each power consumption in mobile terminal according to the application program in mobile terminal
The power consumption of hardware determines the power consumption of the application program in mobile terminal.
Specifically, for each application program in mobile terminal, which can be used each power-consuming hardware
Power consumption of the value that power consumption is added as the application program.
Second detection unit 12 is used to detect the use duration of the application program in mobile terminal.
Power consumption rate determination unit 13 is used for according to the power consumption of the application program in mobile terminal and making for application program
The power consumption rate of the application program is determined with duration.
Specifically, using the power consumption of application program divided by application program using the value that duration obtains as the application program
Power consumption rate.
Stop control unit 14 is used to be controlled in mobile terminal according to the power consumption rate of application program described in mobile terminal
Application program it is out of service.
In the present embodiment, application program can be all application programs in mobile terminal or be mobile terminal terminal
In third party application.All application programs wherein in mobile terminal include system application and third-party application journey
Sequence, system application refer to the included application program of mobile terminal operating system, and third party application refers to except system is answered
With the remaining applications other than program.
In an alternative embodiment of the invention, which further includes prompt unit 15.The prompt unit 15 is stopping control list
Before first 14 application programs out of service, prompt out of service is exported, to inform user i.e. by application program out of service, to carry
The interaction friendly of high mobile terminal.
In an alternative embodiment of the invention, which is specifically used for the application being directly currently running
The most fast application program of power consumption rate is out of service in program, or first judge battery of mobile terminal remaining capacity whether
Less than preset power threshold, if so, the most fast application program of power consumption rate in the application program being currently running is stopped
Operation, it is otherwise, without any processing.
In an alternative embodiment of the invention, which is specifically used for the consumption for receiving user according to application program
The application program END instruction of electric speed input terminates to run the application program and terminate according to the application program END instruction
The specified application program of instruction.
In an alternative embodiment of the invention, which includes priority configuration module 141 and terminates to run
Module 142.Wherein:
Priority configuration module 141 is used for as the application program configuration preference level in mobile terminal.
Terminate operation module 142 to be used for according to the excellent of the power consumption rate of the application program in mobile terminal and application program
The end operation of application program in first grade control mobile terminal.
Wherein moved eventually according to the power consumption rate of the application program in mobile terminal and the two priority classes of application program
The detailed process of the end operation of application program in end is as follows:
Priority out of service most fast application program of power consumption rate in pre-set priority threshold value application program below.
In this way, while extending the cruise duration of battery of mobile terminal, it ensure that the higher application program of priority is not stopped fortune
Row.
In an alternative embodiment of the invention, wherein according to the power consumption rate of the application program in mobile terminal and applying journey
The detailed process of the end operation of application program in the two priority classes mobile terminal of sequence is as follows:
Respectively weight is arranged in the power consumption rate of the priority of application program and application program, obtains the preferential of application program
The vector sum of the power consumption rate of grade and application program terminates the operation highest application program of vector sum.
In the power consumption rate setting weight of the priority and application program for application journey, for different in mobile terminal
Identical or different priority weighting and power consumption rate weight can be arranged in application program.
In an alternative embodiment of the invention, which further includes sequencing display unit 16.The sequencing display unit 16 is used for
Display is ranked up to the application program in mobile terminal using preset sortord.Wherein preset sortord is will to answer
Sortord of the power consumption rate of program as ranking factor or as one of ranking factor is used, including but not limited to according to consumption
Electric speed is ranked up near slow sequence.
In an alternative embodiment of the invention, which further includes remaining capacity acquiring unit 17.The remaining capacity obtains single
Remaining capacity of the member 17 for obtaining battery of mobile terminal, and it is less than default power threshold in the remaining capacity of battery of mobile terminal
When, trigger first detection unit 11 and second detection unit 12.
It is worth noting that, each unit included by above-mentioned apparatus is only divided according to function logic, but simultaneously
It is not limited to above-mentioned division, as long as corresponding function can be realized;In addition, the specific name of each functional unit is also
For the ease of mutually distinguishing, the protection domain being not intended to restrict the invention.
It will appreciated by the skilled person that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, the program can be stored in a computer read/write memory medium
In, the storage medium, such as ROM/RAM, disk, CD.
In embodiments of the present invention, by the power consumption rate of application program is used as the reference of application program out of service because
Element or as one of with reference to factor, so as to quickly reduce the power consumption of mobile terminal, extends battery of mobile terminal
Cruise duration.By being ranked up display to application program according to preset sortord so that user can be more convenient,
The efficiently application program of the power consumption out of service that can quickly reduce mobile terminal.Pass through the residue electricity in battery of mobile terminal
When amount is less than preset power threshold, the power consumption of mobile terminal is just reduced according to the power consumption rate of application program, thus
While extending the cruise duration of battery of mobile terminal, the influence of mobile terminal used will be preferably minimized.By for application
Priority is arranged in program, and determines the application program for needing to terminate operation according to the priority of application program and power consumption rate,
To while extending the cruise duration of battery of mobile terminal, ensure that the higher application program of priority is not stopped fortune
Row.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.
Claims (6)
1. a kind of method for the power consumption reducing mobile terminal, which is characterized in that the method includes:
The remaining capacity for obtaining battery of mobile terminal is obtained when the remaining capacity of battery of mobile terminal is less than default power threshold
Take the power consumption of each power-consuming hardware in mobile terminal;
It obtains the total of each power-consuming hardware in mobile terminal and uses duration;
Obtain duration of the application program in mobile terminal using each power-consuming hardware in mobile terminal;
It is respectively consumed in duration and mobile terminal according to the application program in mobile terminal using each power-consuming hardware in mobile terminal
Electric hardware always uses duration, determines that the application program in mobile terminal uses the duty ratio of time of each power-consuming hardware, for every
Kind power-consuming hardware, the duty ratio of time of the power-consuming hardware are the duration that certain application program uses the power-consuming hardware in mobile terminal
With total ratio for using duration of the power-consuming hardware;
It determines power consumption of the application program in mobile terminal using each power-consuming hardware in mobile terminal, journey is applied for each
Sequence, the application program are that the application program is accounted for using the time of power-consuming hardware in mobile terminal using the power consumption of power-consuming hardware
Sky is than the product with the power consumption of the power-consuming hardware;
It is determined in mobile terminal using the power consumption of each power-consuming hardware in mobile terminal according to the application program in mobile terminal
The power consumption of application program, the power consumption of the application program are the sum of the power consumption that application program uses each power-consuming hardware;
That detects the application program in mobile terminal uses duration;
According to the consumption for determining the application program using duration of the power consumption of the application program in mobile terminal and application program
Electric speed;
The out of service of the application program in mobile terminal is controlled according to the power consumption rate of application program described in mobile terminal;
The stopping that the application program in mobile terminal is controlled according to the power consumption rate of application program described in mobile terminal is transported
Row, specifically includes:
It is in advance the application program configuration preference level in mobile terminal, the priority of application program is higher, indicates the application program
It is bigger to being influenced caused by mobile terminal or user;
Respectively the power consumption rate of the priority of application program and application program be arranged weight, obtain application program priority and
The vector sum of the power consumption rate of application program terminates the operation highest application program of vector sum.
2. the method as described in claim 1, which is characterized in that in the power consumption according to application program described in mobile terminal
Application program in speed control mobile terminal it is out of service before, the method further includes:
Display is ranked up to the application program in mobile terminal using preset sortord, the preset sortord is
Sortord using the power consumption rate of application program as ranking factor or as one of ranking factor.
3. the method as described in claim 1, which is characterized in that the power consumption speed according to application program described in mobile terminal
Degree controls the out of service of the application program in mobile terminal, specifically includes:
The application program END instruction that user inputs according to the power consumption rate of application program is received, is terminated according to the application program
Instruction terminates to run the specified application program of the application program END instruction.
4. a kind of device for the power consumption reducing mobile terminal, which is characterized in that described device includes:
Remaining capacity acquiring unit, the remaining capacity for obtaining battery of mobile terminal, and in the residue electricity of battery of mobile terminal
When amount is less than default power threshold, first detection unit and second detection unit are triggered;
First detection unit, the power consumption for detecting the application program in mobile terminal;
Second detection unit, the use duration for detecting the application program in mobile terminal;
Power consumption rate determination unit, for according to the power consumption of the application program in mobile terminal and the use duration of application program
Determine the power consumption rate of the application program;
Stop control unit, for controlling the application in mobile terminal according to the power consumption rate of application program described in mobile terminal
Program it is out of service;
The stop control unit specifically includes:
Priority configuration module, for being the application program configuration preference level in mobile terminal, the priority of application program is higher,
Indicate that the application program is bigger to being influenced caused by mobile terminal or user;
Terminate operation module, weight is set for the respectively power consumption rate of the priority of application program and application program, is obtained
The vector sum of the priority of application program and the power consumption rate of application program terminates the operation highest application program of vector sum;
The first detection unit includes:
First acquisition module, the power consumption for obtaining each power-consuming hardware in mobile terminal;
Second acquisition module uses duration for obtaining the total of each power-consuming hardware in mobile terminal;Obtain answering in mobile terminal
The duration of each power-consuming hardware in mobile terminal is used with program;It is used according to the application program in mobile terminal each in mobile terminal
The total of each power-consuming hardware uses duration in the duration and mobile terminal of power-consuming hardware, determines that the application program in mobile terminal makes
With the duty ratio of time of each power-consuming hardware, for each power-consuming hardware, the duty ratio of time of the power-consuming hardware is mobile terminal
In certain application program using duration and the power-consuming hardware of the power-consuming hardware total ratio for using duration;
First power consumption determining module, it is for being directed to each application program, the application program is hard using power consumption in mobile terminal
The product of the duty ratio of time of part and the power consumption of the power-consuming hardware uses the power consumption of power-consuming hardware as the application program;
Second power consumption determining module, for using each power-consuming hardware in mobile terminal according to the application program in mobile terminal
Power consumption determines the power consumption of the application program in mobile terminal, and the power consumption of the application program is that application program uses each consumption
The sum of the power consumption of electric hardware.
5. device as claimed in claim 4, which is characterized in that described device further includes:
Sequencing display unit, for being ranked up display, institute to the application program in mobile terminal using preset sortord
It is the sequence using the power consumption rate of application program as ranking factor or as one of ranking factor to state preset sortord
Mode.
6. device as claimed in claim 4, which is characterized in that the stop control unit is specifically used for receiving user according to answering
The application program END instruction inputted with the power consumption rate of program terminates to answer described in operation according to the application program END instruction
With the specified application program of EP (end of program) instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310567322.XA CN104635908B (en) | 2013-11-13 | 2013-11-13 | A kind of method and device for the power consumption reducing mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310567322.XA CN104635908B (en) | 2013-11-13 | 2013-11-13 | A kind of method and device for the power consumption reducing mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104635908A CN104635908A (en) | 2015-05-20 |
CN104635908B true CN104635908B (en) | 2018-09-28 |
Family
ID=53214761
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310567322.XA Active CN104635908B (en) | 2013-11-13 | 2013-11-13 | A kind of method and device for the power consumption reducing mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104635908B (en) |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104866069A (en) * | 2015-06-12 | 2015-08-26 | 广东小天才科技有限公司 | Method and device for automatically clearing background application programs |
CN105094282A (en) * | 2015-07-22 | 2015-11-25 | 深圳市金立通信设备有限公司 | Management method for application programs and terminal |
CN105302598B (en) * | 2015-10-15 | 2018-09-04 | 广东欧珀移动通信有限公司 | A kind of time control method and device of application operation |
CN105491459A (en) * | 2015-11-24 | 2016-04-13 | 深圳Tcl数字技术有限公司 | Terminal power information prompting method and device |
CN105573472B (en) * | 2015-12-15 | 2019-04-16 | 小米科技有限责任公司 | A kind of method and apparatus for closing application program |
CN106896890A (en) * | 2015-12-21 | 2017-06-27 | 北京奇虎科技有限公司 | Electric quantity for electronic equipment management method and device |
CN106951050B (en) * | 2016-01-06 | 2020-11-06 | 北京小米移动软件有限公司 | Method and device for determining power consumption of terminal |
CN105467329B (en) * | 2016-01-25 | 2018-09-28 | 上海斐讯数据通信技术有限公司 | A kind of terminal continuation of the journey test system and method |
WO2017128067A1 (en) * | 2016-01-26 | 2017-08-03 | 陈学良 | Method and system for detecting power consumption of mobile phone application programs |
CN107450704A (en) * | 2016-05-31 | 2017-12-08 | 中兴通讯股份有限公司 | A kind of control method, device and the terminal of terminal abnormal power consumption |
CN106292997A (en) * | 2016-07-28 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application program freezing method and device |
CN106484071A (en) * | 2016-09-12 | 2017-03-08 | 惠州Tcl移动通信有限公司 | A kind of electricity saving method of intelligent terminal and system |
CN106774806A (en) * | 2016-12-18 | 2017-05-31 | 滁州昭阳电信通讯设备科技有限公司 | The method and mobile terminal of a kind of power saving |
CN107222612B (en) * | 2017-04-18 | 2020-03-17 | 广东小天才科技有限公司 | Background application program closing method and device of mobile terminal |
CN108055386B (en) * | 2017-10-30 | 2021-01-08 | 捷开通讯(深圳)有限公司 | Mobile terminal, management method thereof and storage device |
CN110045811B (en) * | 2018-01-12 | 2021-02-02 | Oppo广东移动通信有限公司 | Application program processing method and device, electronic equipment and computer readable storage medium |
CN108958696A (en) * | 2018-07-02 | 2018-12-07 | Oppo广东移动通信有限公司 | Principal and subordinate's earphone method for handover control and Related product |
CN111198607B (en) * | 2018-11-20 | 2022-11-25 | 浙江宇视科技有限公司 | Method and device for managing power consumption of electronic equipment |
WO2020206703A1 (en) * | 2019-04-12 | 2020-10-15 | 深圳市欢太科技有限公司 | Terminal control method and apparatus, storage medium, and electronic device |
TWI717878B (en) * | 2019-10-24 | 2021-02-01 | 宏碁股份有限公司 | Battery power prediction method and computer program product thereof |
CN110891304B (en) * | 2019-11-29 | 2023-07-28 | 浙江如新智能科技有限公司 | gPS power consumption control method for mobile terminal |
CN111309133A (en) * | 2020-01-22 | 2020-06-19 | 维沃移动通信有限公司 | Power saving control method and electronic equipment |
CN112799495A (en) * | 2021-01-21 | 2021-05-14 | 惠州Tcl移动通信有限公司 | Power consumption mode setting method, terminal device and computer readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102498739A (en) * | 2009-08-14 | 2012-06-13 | 谷歌公司 | Providing a user with feedback regarding power consumption in battery-operated electronic devices |
CN102918473A (en) * | 2010-06-07 | 2013-02-06 | 松下电器产业株式会社 | Mobile-type information processing terminal |
CN103092685A (en) * | 2012-12-21 | 2013-05-08 | 广东欧珀移动通信有限公司 | Method and device for closing application program |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012149738A1 (en) * | 2011-09-14 | 2012-11-08 | 华为技术有限公司 | Power management method and device for mobile terminal |
-
2013
- 2013-11-13 CN CN201310567322.XA patent/CN104635908B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102498739A (en) * | 2009-08-14 | 2012-06-13 | 谷歌公司 | Providing a user with feedback regarding power consumption in battery-operated electronic devices |
CN102918473A (en) * | 2010-06-07 | 2013-02-06 | 松下电器产业株式会社 | Mobile-type information processing terminal |
CN103092685A (en) * | 2012-12-21 | 2013-05-08 | 广东欧珀移动通信有限公司 | Method and device for closing application program |
Also Published As
Publication number | Publication date |
---|---|
CN104635908A (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104635908B (en) | A kind of method and device for the power consumption reducing mobile terminal | |
US10666063B2 (en) | Charging method, charging device and terminal | |
CN110729790B (en) | Charging method and device, computer equipment and storage medium | |
CN103200318B (en) | The power-saving method of mobile terminal and mobile terminal | |
US20150280486A1 (en) | Switching mode charger for charging system | |
CN103858070B (en) | A kind of control method, starting-up method and electronic equipment thereof of the threshold voltage that shuts down | |
US20130346762A1 (en) | Optimizing battery use for known future load | |
US20140006807A1 (en) | Apparatus and method for managing power in an electronic system | |
CN102097844A (en) | Intelligent battery management system | |
CN105094936A (en) | Background application program cleaning method and device applied to mobile terminal | |
EP3193179B1 (en) | Electric quantity detection method and apparatus, terminal and storage medium | |
KR102592452B1 (en) | Charging method and device, electronic device and storage medium | |
CN103248763A (en) | Communication method and mobile terminal | |
CN112165140A (en) | Charging and discharging control method and device and power supply equipment | |
CN110716631A (en) | Power supply management method, device, equipment and readable storage medium | |
US20110316471A1 (en) | Battery control system | |
CN103809129A (en) | Hierarchical electric quantity prompt method and electronic device | |
CN204465030U (en) | Portable power source and charge-discharge system thereof | |
US20210021137A1 (en) | Battery management device and mobile terminal | |
CN109596989A (en) | Display methods, device and the electronic equipment of electric quantity for electronic equipment | |
CN106786959B (en) | Charge control method, device and terminal | |
CN106131342B (en) | A kind of method and system of control mobile terminal shutdown | |
CN107222612A (en) | The background application method for closing and device of a kind of mobile terminal | |
WO2024021473A1 (en) | Power supply switching circuit, system and method for electronic device | |
CN104467063A (en) | Battery monitoring device and battery monitoring system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |