[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104239195B - A kind of method and electronic equipment for handling electronic equipment power consumption - Google Patents

A kind of method and electronic equipment for handling electronic equipment power consumption Download PDF

Info

Publication number
CN104239195B
CN104239195B CN201410475122.6A CN201410475122A CN104239195B CN 104239195 B CN104239195 B CN 104239195B CN 201410475122 A CN201410475122 A CN 201410475122A CN 104239195 B CN104239195 B CN 104239195B
Authority
CN
China
Prior art keywords
power consumption
background application
consumption rate
application
electronic equipment
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.)
Expired - Fee Related
Application number
CN201410475122.6A
Other languages
Chinese (zh)
Other versions
CN104239195A (en
Inventor
李丁盼
徐仕猛
李鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Conew Network Technology Beijing Co Ltd
Original Assignee
Conew Network Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Conew Network Technology Beijing Co Ltd filed Critical Conew Network Technology Beijing Co Ltd
Priority to CN201410475122.6A priority Critical patent/CN104239195B/en
Publication of CN104239195A publication Critical patent/CN104239195A/en
Application granted granted Critical
Publication of CN104239195B publication Critical patent/CN104239195B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

Embodiments of the invention disclose a kind of method and electronic equipment for handling electronic equipment power consumption.The method of processing electronic equipment power consumption includes:Each background application power consumption information run in recorded electronic equipment;Each background application power consumption information of record is sequentially read according to the monitoring cycle pre-set;Judge whether to have more than the background application of the background application power consumption rate threshold value pre-set, if so, being handled according to the backstage strategy pre-set, the background application power consumption rate threshold value is configured for each background application.Using the present invention, use, the efficiency of lifting processing electronic equipment power consumption of user's normal use business can be ensured.

Description

A kind of method and electronic equipment for handling electronic equipment power consumption
Technical field
Set the present invention relates to electronic equipment power-saving technology, more particularly to a kind of method and electronics for handling electronic equipment power consumption It is standby.
Background technology
With the development of mobile communication technology, especially 3G, 4G communication technology, electronic equipment, for example, mobile phone, individual The function of personal digital assistant and Intelligent worn device is stronger and stronger, electronic equipment by using open operating system, Corresponding application program can be loaded to realize corresponding application function, as collection call, short message, network insertion, video display amusement, net The comprehensive terminal device that network instant messaging, e-Bank payment, online game, digital map navigation are integrated, be user life, work, Leisure, the important carrier of amusement.
Electronic equipment increasingly incorporate user life, application function be gradually improved, bring great advantage to the user and While improving Consumer's Experience, because the application function quantity of operation is more and more, the power consumption of electronic equipment is also increasing, makes Obtain electronic equipment continuous firing or the standby time is shorter.Thus, the application program (application function) run with electronic equipment In the case of more and more, in the case where not influenceing the normal use of electronic equipment, the power consumption of electronic equipment how is effectively reduced Amount, as each electronic equipment manufacturer technical problem urgently to be resolved hurrily.
The method of the reduction electronic equipment power consumption of existing proposition is by the way of cleaning electronic equipment internal memory, will to load The application program of off-duty and the application program of running background are disposed in internal memory, so as to save a part of power consumption.But should Method, whole removings are carried out by the application program of running background, and the application program of some running backgrounds is probably user's needs , for example, in application software downloading process, the application software download on foreground being transferred into backstage and is downloaded.Using this method The normal use business for influenceing user is used;Further, because a part of background application has automatic loading function, It can be loaded automatically after being cleaned out by internal memory, thus, the method by clearing up memory applications has automatic add to such The application program for carrying function does not work, it is impossible to effectively solve the technical problem of electronic equipment power consumption, lowers consumption less efficient;And And, due to being cleared up only for the background application in internal memory, and the reason for cause electronic equipment power consumption and influence because Element be it is diversified, for example, cell degradation, interruption network connection check etc., thus, by clear up internal memory reduce electronics set The method efficiency of standby power consumption is not still high.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method and electronic equipment for handling electronic equipment power consumption, Neng Gouyou The power consumption of effect reduction electronic equipment, ensures use, the efficiency of lifting processing electronic equipment power consumption of user's normal use business.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
On the one hand, the embodiment of the present invention provides a kind of method for handling electronic equipment power consumption, including:
Each background application power consumption information run in recorded electronic equipment;
Each background application power consumption information of record is sequentially read according to the monitoring cycle pre-set;
Judge whether to have more than the background application of the background application power consumption rate threshold value pre-set, if Have, handled according to the backstage strategy pre-set, the background application power consumption rate threshold value should for each backstage It is configured with program.
The method of processing electronic equipment power consumption provided in an embodiment of the present invention, is that background application sets the guarantee application The background application power consumption rate threshold value normally used, by obtaining background application power consumption information, and to more than setting The background application of background application power consumption rate threshold value handled, making for user's normal use business can be ensured With, reduction electronic equipment power consumption, lifting processing electronic equipment power consumption efficiency.
On the other hand, the embodiment of the present invention provides a kind of electronic equipment, including:
Logging modle, read module and judging treatmenting module, wherein,
Logging modle, for each background application power consumption information run in recorded electronic equipment;
Read module, each background application recorded for sequentially being read according to the monitoring cycle pre-set in logging modle Program power consumption information;
Judging treatmenting module, for judging whether to have more than after the background application power consumption rate threshold value pre-set Platform application program, if so, being handled according to the backstage strategy pre-set, the background application power consumption rate threshold value It is configured for each background application.
Electronic equipment provided in an embodiment of the present invention, by recording and obtaining background application power consumption information, according to rear Platform application program power consumption information obtains background application power consumption rate, when background application power consumption rate exceed set after During platform application program power consumption rate threshold value, determine its power consumption exception and handled, user's normal use business can be ensured Using, reduction electronic equipment power consumption, lifting processing electronic equipment power consumption efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the method flow schematic diagram that the embodiment of the present invention handles electronic equipment power consumption;
Fig. 2 is electronic devices structure schematic diagram of the embodiment of the present invention.
Embodiment
The embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.
It will be appreciated that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its Its embodiment, belongs to the scope of protection of the invention.
Fig. 1 is the method flow schematic diagram that the embodiment of the present invention handles electronic equipment power consumption.Referring to Fig. 1, this method includes:
Step 101, each background application power consumption information for recording operation in the electronic device is pre-set;
In this step, each background application power consumption information run in recorded electronic equipment.At present, for the overwhelming majority Electronic equipment, for example, for be provided with Android operation system, microsoft operation system, Saipan operating system, Linux operation be System or apple iOS operating systems mobile phone, be able to record that each application program based on operating system power consumption information and The overall power consumption information of electronic equipment.For example, for the overall power consumption information of electronic equipment, built in electronic device system Power consumption detection application program can carry out the detection of electric device battery electricity and be recorded, simultaneously, moreover it is possible to by battery electric quantity Testing result in the status bar of electronic equipment, shown in the way of icon.For example, by being filled in icon The ratio of color shows dump energy that electronic equipment is current.
In this step, it is contemplated that what the application program of electronic equipment front stage operation was run the need for being generally user's selection should With program, no matter its power consumption how much, can not all be turned off to save power consumption, and for the background application of operation, User directly can close the application program to reduce power consumption.Thus, in the embodiment of the present invention, utilize electronic device system The application program that operation can be distinguished is the characteristic of foreground application or background application, is distinguished for operating system Background application, carries out the power consumption information record of each background application.
It is preferred that in the embodiment of the present invention, setting backstage power consumption data storehouse to be used for the background application consumption for recording operation Power information, including:Background application is identified and background application segmentation power consumption information.Wherein, background application Identify for uniquely representing the background application, can be that the webserver refers in the application program installation kit of offer It is fixed;Background application segmentation power consumption information is the consumption counted in units of the application program split time cycle pre-set Information about power, the background application split time cycle is less than the monitoring cycle subsequently referred to.
In practical application, the background application power consumption information of record can also include:Background application starts the time Information, background application temporal information out of service and background application total power consumption information.Wherein, background application journey It is the application program time point information that backstage starts in the electronic device that sequence, which starts temporal information, for example, for starting shooting rear The application program of platform self-starting, it is the time point letter that backstage loads the application program automatically that background application, which starts temporal information, Breath, the application program for being transferred to running background by foreground, it is that the application program is transferred to that background application, which starts temporal information, The time point information on backstage;Each background application segmentation power consumption sum of record is background application total power consumption.When So, in practical application, electronic equipment can also background application startup temporal information for monitoring starting point, to the backstage should It is monitored with the actual power consumption amount consumed in program operation process, and records the actual power consumption amount that monitoring is obtained, obtains backstage Application program total power consumption, and, add up the total run time of the background application.
It is preferred that each foreground application power consumption information for recording operation in the electronic device can also be set, with after an action of the bowels Continuous analysis.On each foreground application power consumption information of record operation, consumed with each background application of foregoing record operation Content is similar in power information, will not be repeated here.
It should be noted that, step 101 is when being performed a plurality of times the method for processing electronic equipment power consumption of the embodiment of the present invention, only It need to perform once, without being carried out every time.
Step 102, each background application power consumption information of record is read according to the monitoring cycle pre-set;
In this step, each background application power consumption information of record is sequentially read, monitoring cycle can be real according to user Border needs to be configured.It is larger due to there is the abnormal probability of power consumption for example, for daytime, it could be arranged to one hour or more Short time, and for needing the user of start after evening or sleep, the probability for power consumption exception occur is smaller, could be arranged to two small When or the longer time.
As it was previously stated, each background application power consumption information record is in the power consumption data storehouse of backstage, with Android operation system Exemplified by, backstage power consumption data storehouse can record the specific power consumption information of each background application and it is ranked up, therefore, it is possible to Each background application power consumption information is read from the backstage power consumption data storehouse of Android operation system.
Step 103, judge whether to have more than the background application journey of the background application power consumption rate threshold value pre-set Sequence, if so, being handled according to the backstage strategy pre-set.
In this step, corresponding background application power consumption rate threshold value is set for each background application.For Different background applications, can set different background application power consumption rate threshold values.For example, for downloading class application Program, can set higher application program power consumption rate threshold value, for obtain user profile application program, can set compared with Low application program power consumption rate threshold value.Certainly, in practical application, background application power consumption rate threshold value can also be according to not It is configured respectively with the period, for example, the power consumption rate threshold value of leisure time section on daytime can be set to be more than working time section Power consumption rate threshold value.In another example, the background application journey of the electronic equipment of start (interruption-free period) after being slept for evening Sequence, its power consumption rate threshold value can be less than the power consumption rate threshold value on daytime.
In practical application, background application power consumption rate threshold value can be provided by electronic equipment interface is set, after this Platform application program power consumption rate threshold value is set there is provided there is common application program in interface, and each application program correspondence is configured with One application program power consumption rate threshold value input frame, user can set each answer according to actual needs, in corresponding input frame With the corresponding background application power consumption rate threshold value of program, for example, user can set the mail applications of running background Power consumption rate threshold value for 5 milliamperes it is per minute, the power consumption rate threshold of the MPC application program of running background can also be set It is worth per minute etc. for 5 milliamperes, the power consumption rate threshold value of mail applications and MPC application program can also be all provided with Be set to 5 milliamperes it is per minute.Or, it is preferred that in background application power consumption rate threshold value sets interface, furthermore providing There are each background application power consumption rate threshold reference value scope or background application power consumption rate threshold list, in order to To the unfamiliar user of application program power consumption can according to offer background application power consumption rate threshold reference value scope or Background application power consumption rate threshold list is selected.Wherein, background application power consumption rate threshold reference value scope Can be provided by corresponding application program service business, can also by other third parties by analyze the power consumption condition of application program come There is provided.
As another alternative embodiment, background application power consumption rate threshold value can also be carried out according to battery dump energy Set.For example, for same background application, when battery dump energy is more, background application power consumption can be set Threshold speed takes higher value, and gradually decreasing with battery dump energy, the background application power consumption rate threshold value of setting Also it is corresponding to reduce, that is, battery dump energy and the corresponding relation of background application power consumption rate threshold value are built, subsequently should In, inquired about according to the dump energy of present battery and obtain corresponding background application power consumption rate threshold value.So, in electricity When pond electricity is relatively low, it can be grasped accordingly according to the differential power consumption information of battery drain information and application program simultaneously Make, so as to avoid background application from consuming excessive electricity, save more electricity.
In this step, judge whether to have more than the background application bag of the application program power consumption rate threshold value pre-set Include:
A11, chooses a background application power consumption information from the background application power consumption information of reading;
A12, obtains the time of background application operation and power consumption interior at runtime;
In this step, if background application power consumption information includes:Background application be segmented power consumption information, then after Platform application program operation time for the background application split time cycle be multiplied by including background application be segmented power consumption Measure information number, at runtime interior power consumption be each split time cycle in background application segmentation power consumption it With.If background application power consumption information includes:It is out of service that background application starts temporal information, background application Temporal information and background application total power consumption information, the then time that background application is run move back for background application Go out the difference that run time information starts temporal information with background application, interior power consumption is background application journey at runtime Sequence total power consumption information.Certainly, in practical application, if background application repeatedly starts, background application operation Time is the multiple sum for starting the duration between exiting.
A13, calculates power consumption interior at runtime and the business of the time of operation, obtains background application power consumption speed Degree;
A14, inquires about and obtains the background application power consumption rate threshold value of the background application identity map, if The background application power consumption rate arrived is more than the background application power consumption rate threshold value obtained, and it is super to determine the application program Cross the background application of the background application power consumption rate threshold value pre-set.
As an alternative embodiment, include according to the tactful progress processing in the backstage pre-set:
The background application out of service.
As another alternative embodiment, include according to the tactful progress processing in the backstage pre-set:
The background application run time is limited, so that its power consumption rate is not more than corresponding background application power consumption Threshold speed.
As yet another alternative embodiment, include according to the tactful progress processing in the backstage pre-set:
Using the operating system root authority obtained in advance, forbid the automatic loading function of the background application.
In this step, after operating system root authority is obtained, this method may further include:
The memory variable of background application authority is found in process;
In the rear in the memory variable of platform application program authority, the internal memory for forbidding automatic loading function privilege is set to become Amount.So, in subsequent applications, the automatic loading function privilege of the background application is forbidden if desired, can be by inciting somebody to action The memory variable of current background application program authority is updated to the memory variable for forbidding automatic loading function privilege set.
Can also be any combination of above-mentioned processing mode according to the tactful progress processing pre-set in practical application, For example, the background application out of service and forbidding the automatic loading function of the background application, it is allowed in subsequent applications In, it is impossible to loaded automatically.
In order to lift the application experience of user, before automatic loading function is forbidden, if in daytime, can by whether The prompt message of automatic loading function is forbidden to be pointed out to user, the selection made further according to user with the prompt message shown Perform corresponding selection operation;And if in night, in order to avoid displaying prompt message is bothered user, first can directly prohibit Only automatic loading function, and within daytime, prompting the user with night forbids the application program of automatic loading function, and provides user Whether the selection of forbidding automatic loading function is cancelled.Thus, it is preferred that using the operating system root authority obtained in advance, prohibiting Only the automatic loading function of the background application includes:
B11, judges current time whether within the interruption-free period that user pre-sets, if it is, performing step B12;Otherwise, step B15 is performed;
B12, using the operating system root authority obtained in advance, forbids the automatic loading function of the background application, and Carry out timing wait;
, can be to any application program due to the highest authority that operating system root authority is operating system in this step Authority enters edlin, modification, thus, forbid the automatic loading function privilege of background application if desired, it is possible to use behaviour Make system root authority function, the current memory variable of the background application authority is found in process, and this is current interior That deposits variable replacement (renewal) to set forbids the memory variable of automatic loading function privilege, you can forbid the background application Automatic loading function.
B13, it is determined that the current time of progress timing wait is not within the interruption-free period that user pre-sets, to user Whether prompting continues the background application for forbidding having forbidden automatic loading function;
B14, if user's selection is to continue to forbid the automatic loading function of the background application;If user selects It is no, recover the automatic loading function of the background application;
B15, prompts the user with the automatic loading function of whether forbidding the background application;
B16, if user's selection is the automatic loading function of forbidding the background application;If user's selection is no, no Deal with.
In the embodiment of the present invention, as an alternative embodiment, if it is judged that to be not above the backstage pre-set The background application of application program power consumption rate threshold value, then wait monitoring cycle next time, returns and performs step 102.
As another alternative embodiment, further, not or the background application consumption pre-set is being had more than In the case of the background application of electric threshold speed, this method can also include:
Step 104, electronic equipment dump energy information and each foreground application power consumption information of operation are obtained;
Step 105, the total power consumption rate of foreground application is calculated according to each foreground application power consumption information of acquisition, with And, calculate electronic equipment power consumption rate according to electronic equipment dump energy information;
In this step, the total power consumption rate of foreground application is each application program consumption of front stage operation in monitoring cycle The ratio of electricity sum and monitoring cycle, the total power consumption rate of background application be in monitoring cycle, running background respectively should With the ratio of program power consumption sum and monitoring cycle, i.e., each background application power consumption rate sum.
In the embodiment of the present invention, the formula for calculating the power consumption rate of electronic equipment is:
In formula,
VEFor the power consumption rate of electronic equipment;
B(k-1)For the corresponding electronic equipment dump energy of (k-1) monitoring cycle, k is natural number;
BkFor the corresponding electronic equipment dump energy of kth monitoring cycle, wherein, kth monitoring cycle is set to be the currently monitored Cycle;
T is monitoring cycle.
Step 106, the total power consumption rate of foreground application is added with the total power consumption rate of background application, be applied The total power consumption rate of program, calculates the difference of electronic equipment power consumption rate and the total power consumption rate of application program, obtains power consumption rate poor;
Step 107, if power consumption rate difference exceedes the poor threshold value of the power consumption rate pre-set, it is defined as cell degradation consumption Electricity.
As alternative embodiment, after cell degradation power consumption is defined as, this method further comprises:
The power consumption rate for prompting the user with cell degradation power consumption and cell degradation power consumption is poor.
In practical application, after each foreground application power consumption information of operation is obtained, this method may further include:
Judge whether to have more than the foreground application of the foreground application power consumption rate threshold value pre-set, if Have, handled according to the foreground strategy pre-set.
In this step, for foreground application, in order to not influence the normal use business of user, according to what is pre-set Foreground strategy progress processing includes:
Prompt the user with the automatic loading function of whether forbidding the foreground application;
If user's selection is, using the operating system root authority obtained in advance, to forbid the automatic of the foreground application Load function;If user's selection is no, do not deal with.
From above-mentioned, the method that the embodiment of the present invention handles electronic equipment power consumption, base is able to record that using electronic equipment In each application program of operating system power consumption information and electronic equipment overall power consumption information the characteristics of, by set it is each after Each background application consumption run in the corresponding background application power consumption rate threshold value of platform application program, recorded electronic equipment Power information, and background application power consumption rate is calculated based on background application power consumption information, to background application power consumption The background application that speed exceedes corresponding background application power consumption rate threshold value is handled, and according to background application journey Sequence power consumption rate, foreground application power consumption rate and electronic equipment power consumption rate determine whether cell degradation power consumption phenomenon Occur.So, only the application program that power consumption rate in the application program of running background exceedes the power consumption rate threshold value set is entered Row processing, does not influence the normal use business of user to use;Further, should by limiting the backstage with automatic loading function With the automatic loading function of program, the technical problem of electronic equipment power consumption can be effectively solved, lower consumption efficiency high;Moreover, it is also possible to The power consumptions such as cell degradation, the network connection inspection of interruption are handled, with respect to cleaning internal memory reduction electronic equipment consumption The method of electricity is more efficient, can effectively reduce the power consumption of electronic equipment, the efficiency of lifting processing electronic equipment power consumption.
Fig. 2 is electronic devices structure schematic diagram of the embodiment of the present invention.Referring to Fig. 2, the electronic equipment includes:Logging modle 1, Read module 2 and judging treatmenting module 3, wherein,
Logging modle 1, for each background application power consumption information run in recorded electronic equipment;
In the embodiment of the present invention, as alternative embodiment, background application power consumption information includes:Background application mark Know and background application segmentation power consumption information.As another alternative embodiment, background application power consumption information may be used also To further comprise:Background application starts temporal information, background application temporal information out of service and backstage should With program total power consumption information.
Read module 2, each backstage recorded for sequentially being read according to the monitoring cycle pre-set in logging modle should With program power consumption information;
Judging treatmenting module 3, for judging whether to have more than the background application power consumption rate threshold value pre-set Background application, if so, being handled according to the backstage strategy pre-set, the background application power consumption rate threshold Value is configured for each background application.
In the embodiment of the present invention, background application power consumption rate threshold value can be set by operator in webserver side Put and issued by the webserver or personalization is carried out by person skilled or user on each electronic equipment Set.
As alternative embodiment, the electronic equipment may further include:
Threshold value set interface module 4, for provide the user background application power consumption rate threshold reference value scope or Background application power consumption rate threshold list, to set the corresponding background application power consumption rate threshold of each application program Value.
As another alternative embodiment, the electronic equipment may further include:
Corresponding relation builds module 5, for setting the background application power consumption rate that interface module is set according to threshold value Threshold value, builds battery dump energy and the corresponding relation of background application power consumption rate threshold value.
In the embodiment of the present invention, judging treatmenting module includes:Choose unit, acquiring unit, computing unit, query unit with And processing unit (not shown), wherein,
Unit is chosen, for choosing background application power consumption letter from the background application power consumption information of reading Breath;
Acquiring unit, for the time for obtaining background application operation and power consumption interior at runtime;
Computing unit, for calculating power consumption interior at runtime and the business of the time of operation, obtains background application journey Sequence power consumption rate;
Query unit, the background application power consumption rate threshold for inquiring about and obtaining the background application identity map Value, if obtained background application power consumption rate is more than the background application power consumption rate threshold value obtained, it is determined that should answer It is the background application more than the background application power consumption rate threshold value pre-set with program;
Processing unit, for according to the backstage strategy pre-set, being carried out to the background application that query unit is determined Processing.
In the embodiment of the present invention, according to the backstage strategy pre-set, the background application that query unit is determined is entered Row processing includes:
The background application out of service;And/or,
The background application run time is limited, so that its power consumption rate is not more than corresponding background application power consumption Threshold speed;And/or,
Using the operating system root authority obtained in advance, forbid the automatic loading function of the background application.
It is preferred that the electronic equipment can further include:Foreground message acquisition module, the first computing module, second Computing module and cell degradation judge module (not shown), wherein,
Foreground message acquisition module, each foreground application for obtaining electronic equipment dump energy information and operation Power consumption information;
First computing module, for calculating the total power consumption of foreground application according to each foreground application power consumption information of acquisition Speed, and, calculate electronic equipment power consumption rate according to electronic equipment dump energy information;
Second computing module, for by the total power consumption rate phase of the total power consumption rate of foreground application and background application Plus, the total power consumption rate of the program that is applied calculates the difference of electronic equipment power consumption rate and the total power consumption rate of application program, consumed Electric speed difference;
Cell degradation judge module, if power consumption rate difference exceedes the poor threshold value of the power consumption rate pre-set, is defined as electricity Pond aging power consumption.
In practical application, after it is determined that needing background application to be processed, it can also further analyze and cause power consumption Factor, for example, be due to that certain application program is installed and stealthily run on backstage to cause a large amount of power consumptions, or, it is due to open Wifi, and frequently connection causes power consumption fast to wifi signals, or because cell degradation causes more than the lattice of power down per hour 10.So, Analyzed by the power consumption information to each reporting of user, it may be determined that the concrete reason of each user's power consumption, for example, party A-subscriber Power consumption problem is to install certain application program stealthily to run on backstage;Party B-subscriber is to open wifi, and wifi signals are frequently connected Cause power consumption fast;C user causes more than the lattice of power down per hour 10 because of cell degradation.Drawn a conclusion (background application in analysis Power consumption information processing result) after, then match the operating system identifies information of user, the version of battery applications class software such as battery doctor Information such as this number (software versions), provided effective power save scheme.
In practical application, the electronic equipment can further include:
Foreground application processing module (not shown), for judging whether to have more than the foreground application pre-set The foreground application of program power consumption rate threshold value, if so, being handled according to the foreground strategy pre-set.
In the embodiment of the present invention, include according to the tactful progress processing in the foreground pre-set:
Prompt the user with the automatic loading function of whether forbidding the foreground application;
If user's selection is, using the operating system root authority obtained in advance, to forbid the automatic of the foreground application Load function;If user's selection is no, do not deal with.
It should be noted that, in various embodiments of the present invention, foreground application refers to visible in electronic equipment display screen Operation application program, background application refers to foreground application after closing, but not out of service, but resident Application program continued to run with the position pre-set in an operating system, sightless, that is, need to reside at operating system The application program on backstage.For example, instant messaging class application program, electronic market class application program and positioning service class application journey Sequence etc., wherein, instant messaging class application program can be QQ, wechat, microblogging etc..
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (RandomAccess Memory, RAM) etc..
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, the change or replacement that can be readily occurred in, all should It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (15)

1. a kind of method for handling electronic equipment power consumption, it is characterised in that this method includes:
Each background application power consumption information run in recorded electronic equipment;
Each background application power consumption information of record is sequentially read according to the monitoring cycle pre-set;
Judge whether to have more than the background application of the background application power consumption rate threshold value pre-set, if so, pressing Handled according to the backstage strategy pre-set, the background application power consumption rate threshold value is directed to each background application It is configured;
Obtain electronic equipment dump energy information and each foreground application power consumption information of operation;
The total power consumption rate of foreground application is calculated according to each foreground application power consumption information is obtained, and, set according to electronics Standby dump energy information calculates electronic equipment power consumption rate;
The total power consumption rate of foreground application is added with the total power consumption rate of background application, the total power consumption speed of the program that is applied Degree, calculates the difference of electronic equipment power consumption rate and the total power consumption rate of application program, obtains power consumption rate poor;
If power consumption rate difference exceedes the poor threshold value of the power consumption rate pre-set, it is defined as cell degradation power consumption.
2. according to the method described in claim 1, it is characterised in that methods described further comprises:
There is provided have for setting background application in the background application power consumption rate threshold value setting interface of electronic equipment The each background application power consumption rate threshold reference value scope or background application power consumption rate threshold of power consumption rate threshold value Value list.
3. according to the method described in claim 1, it is characterised in that described to judge whether to have more than the application program pre-set The background application of power consumption rate threshold value includes:
A background application power consumption information is chosen from the background application power consumption information of reading;
Obtain the time of background application operation and power consumption interior at runtime;
Power consumption interior at runtime and the business of the time of operation are calculated, background application power consumption rate is obtained;
The background application power consumption rate threshold value of the background application identity map is inquired about and obtains, if obtained backstage Application program power consumption rate is more than the background application power consumption rate threshold value obtained, and it is more than setting in advance to determine the application program The background application for the background application power consumption rate threshold value put.
4. according to the method described in claim 1, it is characterised in that described to carry out processing bag according to the backstage pre-set strategy Include:
The background application out of service.
5. according to the method described in claim 1, it is characterised in that described to carry out processing bag according to the backstage pre-set strategy Include:
The background application run time is limited, so that its power consumption rate is not more than corresponding background application power consumption rate Threshold value.
6. according to the method described in claim 1, it is characterised in that described to carry out processing bag according to the backstage pre-set strategy Include:
Using the operating system root authority obtained in advance, forbid the automatic loading function of the background application.
7. method according to claim 6, it is characterised in that after operating system root authority is obtained, methods described is entered One step includes:
The memory variable of background application authority is found in process;
In the rear in the memory variable of platform application program authority, the memory variable for forbidding automatic loading function privilege is set.
8. method according to claim 6, it is characterised in that described using the operating system root authority obtained in advance, prohibits Only the automatic loading function of the background application includes:
B11, judges current time whether within the interruption-free period that user pre-sets, if it is, performing step B12;It is no Then, step B15 is performed;
B12, using the operating system root authority obtained in advance, forbids the automatic loading function of the background application, and carry out Timing is waited;
B13, it is determined that the current time for carrying out timing wait is prompted the user with not within the interruption-free period that user pre-sets Whether the background application forbidding forbidden automatic loading function is continued;
B14, if user's selection is to continue to forbid the automatic loading function of the background application;If user's selection is no, extensive The automatic loading function of the multiple background application;
B15, prompts the user with the automatic loading function of whether forbidding the background application;
B16, if user's selection is the automatic loading function of forbidding the background application;If user's selection is no, do not make to locate Reason.
9. according to the method described in claim 1, it is characterised in that in each foreground application power consumption letter for obtaining operation After breath, methods described further comprises:
Judge whether to have more than the foreground application of the foreground application power consumption rate threshold value pre-set, if so, pressing Handled according to the foreground strategy pre-set.
10. method according to claim 9, it is characterised in that described to be handled according to the foreground pre-set strategy Including:
Prompt the user with the automatic loading function of whether forbidding the foreground application;
If user's selection is, using the operating system root authority obtained in advance, to forbid the automatic loading of the foreground application Function;If user's selection is no, do not deal with.
11. a kind of electronic equipment, it is characterised in that the electronic equipment includes:Logging modle, read module and judgement processing mould Block, wherein,
Logging modle, for each background application power consumption information run in recorded electronic equipment;
Read module, each background application recorded for sequentially being read according to the monitoring cycle pre-set in logging modle Power consumption information;
Judging treatmenting module, for judging whether that the backstage for having more than the background application power consumption rate threshold value pre-set should With program, if so, being handled according to the backstage strategy pre-set, the background application power consumption rate threshold value is directed to Each background application is configured;
The electronic equipment further comprises:Foreground message acquisition module, the first computing module, the second computing module and battery Aging judge module, wherein,
Foreground message acquisition module, each foreground application power consumption for obtaining electronic equipment dump energy information and operation Information;
First computing module, for fast according to the total power consumption of each foreground application power consumption information calculating foreground application is obtained Degree, and, calculate electronic equipment power consumption rate according to electronic equipment dump energy information;
Second computing module, for the total power consumption rate of foreground application to be added with the total power consumption rate of background application, is obtained To the total power consumption rate of application program, the difference of electronic equipment power consumption rate and the total power consumption rate of application program is calculated, power consumption speed is obtained Degree is poor;
Cell degradation judge module, if power consumption rate difference exceedes the poor threshold value of the power consumption rate pre-set, is defined as battery old Change power consumption.
12. electronic equipment according to claim 11, it is characterised in that the electronic equipment further comprises:
Threshold value sets interface module, should for providing the user background application power consumption rate threshold reference value scope or backstage With program power consumption rate threshold list, to set the corresponding background application power consumption rate threshold value of each application program.
13. electronic equipment according to claim 11, it is characterised in that the electronic equipment further comprises:
Corresponding relation builds module, for setting the background application power consumption rate threshold value that interface module is set according to threshold value, Build battery dump energy and the corresponding relation of background application power consumption rate threshold value.
14. electronic equipment according to claim 11, it is characterised in that the electronic equipment further comprises:
Foreground application processing module, for judging whether to have more than the foreground application power consumption rate threshold value pre-set Foreground application, if so, according to pre-set foreground strategy handled.
15. the electronic equipment according to any one of claim 11 to 14, it is characterised in that the judging treatmenting module bag Include:
Unit is chosen, for choosing a background application power consumption information from the background application power consumption information of reading;
Acquiring unit, for the time for obtaining background application operation and power consumption interior at runtime;
Computing unit, for calculating power consumption interior at runtime and the business of the time of operation, obtains background application consumption Electric speed;
Query unit, the background application power consumption rate threshold value for inquiring about and obtaining the background application identity map, If obtained background application power consumption rate is more than the background application power consumption rate threshold value obtained, determine that this applies journey Sequence is the background application more than the background application power consumption rate threshold value pre-set;
Processing unit, for according to the backstage strategy pre-set, handling the background application that query unit is determined.
CN201410475122.6A 2014-09-17 2014-09-17 A kind of method and electronic equipment for handling electronic equipment power consumption Expired - Fee Related CN104239195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410475122.6A CN104239195B (en) 2014-09-17 2014-09-17 A kind of method and electronic equipment for handling electronic equipment power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410475122.6A CN104239195B (en) 2014-09-17 2014-09-17 A kind of method and electronic equipment for handling electronic equipment power consumption

Publications (2)

Publication Number Publication Date
CN104239195A CN104239195A (en) 2014-12-24
CN104239195B true CN104239195B (en) 2017-07-28

Family

ID=52227311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410475122.6A Expired - Fee Related CN104239195B (en) 2014-09-17 2014-09-17 A kind of method and electronic equipment for handling electronic equipment power consumption

Country Status (1)

Country Link
CN (1) CN104239195B (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9021021B2 (en) 2011-12-14 2015-04-28 Seven Networks, Inc. Mobile network reporting and usage analytics system and method aggregated using a distributed traffic optimization system
CN104461576B (en) * 2014-12-29 2018-06-01 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN106155256A (en) * 2015-03-23 2016-11-23 天彩电子(深圳)有限公司 End cell management method
CN104869241B (en) * 2015-05-04 2018-02-23 惠州Tcl移动通信有限公司 Intelligent terminal and its electric quantity reminding method
CN105491459A (en) * 2015-11-24 2016-04-13 深圳Tcl数字技术有限公司 Terminal power information prompting method and device
CN105653323B (en) 2015-12-28 2019-07-02 小米科技有限责任公司 Application management method and device
CN106933323B (en) * 2015-12-30 2020-06-26 北京金山安全软件有限公司 Method and device for optimizing power consumption of application program and electronic equipment
CN105759942A (en) * 2016-02-25 2016-07-13 广东欧珀移动通信有限公司 Handling method for power consumption anomaly and mobile terminal
CN105867845A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Application storage space management method and device
CN105912370B (en) * 2016-05-03 2020-02-14 Oppo广东移动通信有限公司 Control method and device for background application program of mobile terminal and mobile terminal
CN107391348A (en) * 2016-05-16 2017-11-24 广州市动景计算机科技有限公司 Processing method and processing device for the power consumption condition of application program
CN106383571A (en) * 2016-09-09 2017-02-08 宇龙计算机通信科技(深圳)有限公司 Application processing apparatus and method
CN106535115A (en) * 2016-09-30 2017-03-22 福建工程学院 Electric quantity method and system of smart shoes
CN106569579A (en) * 2016-10-21 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Power-saving control method and device of terminal
CN106502776A (en) * 2016-10-31 2017-03-15 宇龙计算机通信科技(深圳)有限公司 A kind of method and device of application program management
CN107357620A (en) * 2017-07-14 2017-11-17 广东欧珀移动通信有限公司 A kind of method of adjustment of application program, device, mobile terminal and storage medium
CN107728774A (en) * 2017-10-20 2018-02-23 维沃移动通信有限公司 Parameter regulation means and mobile terminal
CN107835311B (en) * 2017-10-31 2020-05-12 Oppo广东移动通信有限公司 Application management method and device, storage medium and electronic equipment
CN109885349B (en) * 2017-12-06 2021-04-16 Oppo广东移动通信有限公司 Application cleaning method and device, mobile terminal and computer readable storage medium
CN110008008A (en) * 2017-12-29 2019-07-12 广东欧珀移动通信有限公司 Applied program processing method and device, electronic equipment, computer readable storage medium
CN111198607B (en) * 2018-11-20 2022-11-25 浙江宇视科技有限公司 Method and device for managing power consumption of electronic equipment
CN110134219B (en) * 2019-05-13 2024-03-19 深圳传音通讯有限公司 Application program background power consumption processing method and device
CN110187753B (en) * 2019-05-27 2021-09-07 Oppo广东移动通信有限公司 Application program control method, device, terminal and computer readable storage medium
CN113760081B (en) * 2021-07-20 2022-09-13 荣耀终端有限公司 Power consumption processing method based on service and terminal equipment
CN114428546B (en) * 2022-01-25 2024-04-09 惠州Tcl移动通信有限公司 Background application cleaning method and device, storage medium and terminal equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6630814B2 (en) * 2000-12-19 2003-10-07 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for calibrating a rechargeable battery
CA2516815A1 (en) * 2003-04-23 2004-11-18 Powertron Eng'g Co., Ltd Diagnosis for expected life of emergency power apparatus
TWI426288B (en) * 2011-12-26 2014-02-11 Ind Tech Res Inst Method for estimating battery degradation
CN103324519A (en) * 2013-06-17 2013-09-25 华为技术有限公司 Method and device for clearing malicious power consumption applications, and user terminal
CN103500002B (en) * 2013-09-17 2016-08-03 小米科技有限责任公司 The method of application program management, device and terminal unit
CN103729052A (en) * 2013-12-31 2014-04-16 贝壳网际(北京)安全技术有限公司 Processing method and system for power consumption of application program and mobile terminal
CN103941871B (en) * 2014-04-24 2018-01-02 可牛网络技术(北京)有限公司 The method and apparatus for controlling the hardware running status of intelligent terminal

Also Published As

Publication number Publication date
CN104239195A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN104239195B (en) A kind of method and electronic equipment for handling electronic equipment power consumption
CN104267799B (en) Network server and method and system for processing power consumption of electronic equipment
CN104317649B (en) Processing method and device of terminal application program APP and terminal
CN104217161B (en) A kind of virus scan method and system, terminal unit
CN106125896A (en) A kind of application program freezing method and mobile terminal
CN105072292A (en) Application control method and terminal
CN106455022A (en) Power saving mode switching method and device
CN105403836A (en) Battery power consumption monitoring
CN104092835A (en) Power consumption anomaly detection method and device for mobile terminal
CN109656349A (en) Electricity saving method, terminal and the computer readable storage medium of terminal
CN106055077A (en) Wake-up lock-based processing method and device
WO2015007197A1 (en) A method, device, platform, and mobile terminal for recording and analyzing battery power of a mobile terminal
CN110445210B (en) Charging method and device for electronic equipment, electronic equipment and storage medium
CN106292997A (en) A kind of application program freezing method and device
CN103870319B (en) Information processing method, device and electronic equipment
CN105487639A (en) Method and device for optimizing power consumption of application program and electronic equipment
CN103973885A (en) Data reporting method and mobile terminal
CN105243007A (en) Aging testing method and apparatus for memory in mobile terminal
CN106648767A (en) Application freezing method and apparatus
CN106326065B (en) Terminal use duration management method and device
CN106657660A (en) Information prompting method and apparatus
CN104063316B (en) The method of testing and device of a kind of application
CN111025068A (en) Method and device for reading load curve data of electric meter and electronic equipment
CN112714368B (en) Method and device for prompting abnormal electricity consumption, computer equipment and storage medium
CN113947827A (en) Method and device for adjusting running power consumption of door lock, electronic equipment and storage medium

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170728