CN104239195A - Method for processing power consumption of electronic equipment, and electronic equipment - Google Patents
Method for processing power consumption of electronic equipment, and electronic equipment Download PDFInfo
- Publication number
- CN104239195A CN104239195A CN201410475122.6A CN201410475122A CN104239195A CN 104239195 A CN104239195 A CN 104239195A CN 201410475122 A CN201410475122 A CN 201410475122A CN 104239195 A CN104239195 A CN 104239195A
- Authority
- CN
- China
- Prior art keywords
- power consumption
- background application
- consumption rate
- electronic equipment
- application
- 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.)
- Granted
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The embodiment of the invention discloses a method for processing the power consumption of electronic equipment, and the electronic equipment. The method for processing the power consumption of the electronic equipment comprises the following steps: recording the power consumption message of each background application program running in the electronic equipment; reading the recorded power consumption message of each background application program sequentially according to a preset monitoring period; judging whether a background application program exceeding the preset power consumption speed threshold value of the background application programs exits, if yes, processing the power consumption according to a preset background strategy, wherein the preset power consumption speed threshold value of the background application programs is set according to each background application program. Through the application of the method and the electronic equipment, the use of normal application service for a user can be guaranteed, and the efficiency of processing the power consumption of the electronic equipment is promoted.
Description
Technical field
The present invention relates to electronic equipment power-saving technology, particularly relate to a kind of method and the electronic equipment that process electronic equipment power consumption.
Background technology
Along with mobile communication technology, especially the development of 3G, 4G communication technology, electronic equipment, such as, the function of mobile phone, personal digital assistant and Intelligent worn device from strength to strength, electronic equipment is by adopting open operating system, corresponding application program can be loaded to realize corresponding application function, becoming the comprehensive terminal device integrating call, note, network insertion, video display amusement, network instant communication, e-Bank payment, online game, digital map navigation, is that user lives, works, lies fallow, the important carrier of amusement.
Day by day incorporate user's life at electronic equipment, application function is gradually improved, while bringing great advantage to the user and improving Consumer's Experience, because the application function quantity run gets more and more, the power consumption of electronic equipment is also increasing, make electronic equipment continuous firing or the standby time shorter.Thus, in the increasing situation of the application program (application function) run along with electronic equipment, when not affecting electronic equipment and normally using, how effectively to reduce the power consumption of electronic equipment, become the technical matters that each electronic equipment manufacturer is urgently to be resolved hurrily.
The method of the reduction electronic equipment power consumption of existing proposition is the mode adopting cleaning electronic equipment internal memory, and the application program being about to load on off-duty application program and running background in internal memory is disposed, thus saves a part of power consumption.But the method, carries out full scale clearance by the application program of running background, and the application program of some running backgrounds may to be user need, such as, in application software downloading process, the application software on foreground is downloaded and proceeds to backstage and download.The normal use business affecting user uses by application the method; Further, because a part of background application has automatic value-added tax function, can automatically load after being cleaned out by internal memory, thus, by clearing up the method for memory applications, the application program such to automatic value-added tax function is inoperative, effectively can not solve the technical matters of electronic equipment power consumption, and consumption reduction efficiency is lower; And, owing to only clearing up for the background application in internal memory, and cause the reason of electronic equipment power consumption and influence factor to be diversified, such as, the network of cell degradation, interruption connects inspection etc., thus, still not high by the method efficiency of cleaning internal memory reduction electronic equipment power consumption.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and the electronic equipment that process electronic equipment power consumption, effectively can reduce the power consumption of electronic equipment, ensures the use of user's normal use business, promotes the efficiency of process electronic equipment power consumption.
For achieving the above object, embodiments of the invention adopt following technical scheme:
On the one hand, the embodiment of the present invention provides a kind of method processing electronic equipment power consumption, comprising:
The 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 periods pre-set;
Judge whether the background application exceeding the background application power consumption rate threshold value pre-set, if had, process according to the backstage strategy pre-set, described background application power consumption rate threshold value is arranged for each background application.
The method of the process electronic equipment power consumption that the embodiment of the present invention provides, for background application arranges the background application power consumption rate threshold value ensureing that this application normally uses, by obtaining background application power consumption information, and the background application of the background application power consumption rate threshold value exceeding setting is processed, the use of user's normal use business can be ensured, reduce the power consumption of electronic equipment, promote the efficiency of process electronic equipment power consumption.
On the other hand, the embodiment of the present invention provides a kind of electronic equipment, comprising:
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, for sequentially reading each background application power consumption information recorded in logging modle according to the monitoring periods pre-set;
Judging treatmenting module, for judging whether the background application exceeding the background application power consumption rate threshold value pre-set, if had, process according to the backstage strategy pre-set, described background application power consumption rate threshold value is arranged for each background application.
The electronic equipment that the embodiment of the present invention provides, by recording and obtaining background application power consumption information, background application power consumption rate is obtained according to background application power consumption information, when background application power consumption rate exceedes the background application power consumption rate threshold value of setting, determine the abnormal row relax of going forward side by side of its power consumption, the use of user's normal use business can be ensured, reduce the power consumption of electronic equipment, promote the efficiency of process electronic equipment power consumption.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow schematic diagram of embodiment of the present invention process electronic equipment power consumption;
Fig. 2 is embodiment of the present invention electronic devices structure schematic diagram.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Should be clear and definite, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the method flow schematic diagram of embodiment of the present invention process electronic equipment power consumption.See Fig. 1, the method comprises:
Step 101, pre-sets each background application power consumption information recording operation in the electronic device;
In this step, each background application power consumption information run in recorded electronic equipment.At present, for the electronic equipment of the overwhelming majority, such as, for the mobile phone being provided with Android operation system, microsoft operation system, Saipan operating system, (SuSE) Linux OS or apple iOS operating system, the overall power consumption information of power consumption information based on each application program of operating system and electronic equipment can be recorded.Such as, for the overall power consumption information of electronic equipment, the built-in power consumption of electronic equipment operating system detects detection that application program can carry out electric device battery electricity and to go forward side by side line item, simultaneously, by the testing result of battery electric quantity in the status bar of electronic equipment, can also show in the mode of icon.For example, the current dump energy of electronic equipment is shown by the ratio of institute's Fill Color in icon.
In this step, consider that the application program of electronic equipment front stage operation is generally the application program of the needs operation that user chooses, no matter its power consumption is how many, all can not be closed to save power consumption, and for the background application run, user directly can close this application program to reduce power consumption.Thus, in the embodiment of the present invention, the application program utilizing electronic equipment operating system can distinguish operation is the characteristic of foreground application or background application, for the background application that operating system is distinguished, carries out the power consumption information record of each background application.
Preferably, in the embodiment of the present invention, power consumption data storehouse, backstage being set for recording the background application power consumption information of operation, comprising: background application mark and background application segmentation power consumption information.Wherein, background application mark is used for unique this background application of expression, can be that the webserver is specified in this application program installation kit provided; Background application segmentation power consumption information is the power consumption information added up in units of the application program split time cycle to pre-set, and this background application split time cycle is less than the follow-up monitoring periods mentioned.
In practical application, the background application power consumption information of record can also comprise: background application information start-up time, background application temporal information out of service and background application total power consumption information.Wherein, background application information start-up time be this application program in the electronic device backstage start time point information, such as, for the application program of start in backstage self-starting, background application information start-up time is the time point information that backstage loads this application program automatically, for the application program being proceeded to running background by foreground, background application information start-up time is the time point information that this application program proceeds to backstage; Each background application segmentation power consumption sum of record is background application total power consumption.Certainly, in practical application, electronic equipment also can background application start-up time information for monitoring starting point, the actual power consumption amount consumed in this background application operational process is monitored, and the actual power consumption amount obtained monitored in record, obtain background application total power consumption, and, the total run time of this background application accumulative.
Preferably, each foreground application power consumption information recording operation in the electronic device can also be set, so that subsequent analysis.About each foreground application power consumption information that record runs, with aforementioned to record content in each background application power consumption information run similar, do not repeat them here.
It should be noted that step 101 is when the method for multiple exercise embodiment of the present invention process electronic equipment power consumption, only need perform once, without the need to all performing at every turn.
Step 102, reads each background application power consumption information of record according to the monitoring periods pre-set;
In this step, sequentially read each background application power consumption information of record, monitoring periods can be arranged according to user's actual needs.Such as, for daytime, comparatively large owing to there is the probability of power consumption exception, one hour or shorter time can be set to, and for the user needing after evening or sleep to start shooting, occur that the probability of power consumption exception is less, can be set to two hours or the longer time.
As previously mentioned, each background application power consumption information is recorded in power consumption data storehouse, backstage, for Android operation system, power consumption data storehouse, backstage can be recorded the concrete power consumption information of each background application and be sorted to it, thus, described each background application power consumption information can be read from the power consumption data storehouse, backstage of Android operation system.
Step 103, judges whether the background application exceeding the background application power consumption rate threshold value pre-set, if had, processes 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, different background application power consumption rate threshold values can be set.Such as, for download class application program, higher application program power consumption rate threshold value can be set, for the application program obtaining user profile, lower application program power consumption rate threshold value can be set.Certainly, in practical application, background application power consumption rate threshold value also can be arranged according to different time sections respectively, and such as, the power consumption rate threshold value that can arrange leisure time section on daytime is greater than the power consumption rate threshold value of working time section.Again such as, for the background application of the electronic equipment of start (interruption-free time period) after sleep in evening, its power consumption rate threshold value can be less than the power consumption rate threshold value on daytime.
In practical application, can provide background application power consumption rate threshold value that interface is set by electronic equipment, arrange in interface in this background application power consumption rate threshold value, provide common application program, each application program correspondence is configured with an application program power consumption rate threshold value input frame, user can be according to actual needs, in corresponding input frame, the background application power consumption rate threshold value that each application program is corresponding is set, such as, the power consumption rate threshold value that user can arrange the mail applications of running background be 5 milliamperes per minute, the power consumption rate threshold value that the MPC application program of running background also can be set be 5 milliamperes per minute etc., the power consumption rate threshold value of mail applications and MPC application program all can also be set to 5 milliamperes per minute.Or, preferably, arrange in interface in background application power consumption rate threshold value, the unfamiliar user of application programs power consumption is also further provided with each background application power consumption rate threshold reference value scope or background application power consumption rate threshold list, so that can select according to the background application power consumption rate threshold reference value scope provided or background application power consumption rate threshold list.Wherein, background application power consumption rate threshold reference value scope can be provided by corresponding application program service business, also can be provided by the power consumption condition of analysis application by other third parties.
As another embodiment, background application power consumption rate threshold value can also be arranged according to battery dump energy.Such as, for same background application, when battery dump energy is more, background application power consumption rate threshold value can be set and get higher value, and along with the minimizing gradually of battery dump energy, the background application power consumption rate threshold value also corresponding reduction of setting, namely builds the corresponding relation of battery dump energy and background application power consumption rate threshold value, with in subsequent applications, inquire about according to the dump energy of present battery and obtain corresponding background application power consumption rate threshold value.Like this, when battery electric quantity is lower, can operate accordingly according to the differential power consumption information of battery drain information and application program simultaneously, thus the electricity avoiding background application consumption too much, save more electricity.
In this step, judge whether that the background application exceeding the application program power consumption rate threshold value pre-set comprises:
A11, chooses a background application power consumption information from the background application power consumption information read;
A12, obtains the time of this background application operation and operationally interior power consumption;
In this step, if background application power consumption information comprises: background application segmentation power consumption information, the time that then background application runs is be multiplied by the background application segmentation power consumption information number comprised the background application split time cycle, and the power consumption is operationally the background application segmentation power consumption sum in each split time cycle.If background application power consumption information comprises: background application information start-up time, background application temporal information out of service and background application total power consumption information, then the time of background application operation is the difference of background application temporal information out of service and background application information start-up time, and the power consumption is operationally background application total power consumption information.Certainly, in practical application, if background application repeatedly starts, then the time that background application runs be repeatedly start to the duration between exiting and.
A13, calculates the business of the time of operationally interior power consumption and operation, obtains background application power consumption rate;
A14, inquire about and obtain the background application power consumption rate threshold value of this background application identity map, if the background application power consumption rate obtained is greater than the background application power consumption rate threshold value of acquisition, determine that this application program is the background application exceeding the background application power consumption rate threshold value pre-set.
As an embodiment, carry out process according to the backstage strategy pre-set and comprise:
This background application out of service.
As another embodiment, carry out process according to the backstage strategy pre-set and comprise:
Limit this background application working time, be not more than corresponding background application power consumption rate threshold value to make its power consumption rate.
As an embodiment again, carry out process according to the backstage strategy pre-set and comprise:
Utilize the operating system root authority obtained in advance, forbid the automatic value-added tax function of this background application.
In this step, after acquisition operating system root authority, the method may further include:
The memory variable of background application authority is found in process;
In the memory variable of platform application program authority in the rear, the memory variable forbidding automatic value-added tax function authority is set.Like this, in subsequent applications, if need the automatic value-added tax function authority of forbidding this background application, can by the memory variable of current background application program authority being updated to the memory variable forbidding automatic value-added tax function authority of setting.
In practical application, carrying out processing according to the strategy pre-set also can be the combination in any of above-mentioned processing mode, and such as, this background application out of service also forbids the automatic value-added tax function of this background application, make it in subsequent applications, can not automatically load.
In order to the application promoting user is experienced, before forbidding automatic value-added tax function, if by day, whether can will forbid that the information of automatic value-added tax function is pointed out to user, then perform corresponding selection operation according to user with the selection that the information of showing is made; And if at night, in order to avoid showing information bothering user, first can directly forbid automatic value-added tax function, and by day in, the application program of forbidding automatic value-added tax function night is pointed out to user, and the selection providing user whether to cancel this to forbid automatic value-added tax function.Thus, preferably, utilize the operating system root authority obtained in advance, forbid that the automatic value-added tax function of this background application comprises:
B11, judges current time whether within the interruption-free time period that user pre-sets, and if so, performs step B12; Otherwise, perform step B15;
B12, utilizes the operating system root authority that obtains in advance, forbids the automatic value-added tax function of this background application, and carries out calendar scheduling and treat;
In this step, due to the highest weight limit that operating system root authority is operating system, can the authority of any application program be edited, be revised, thus, if need the automatic value-added tax function authority of forbidding background application, operating system root authority function can be utilized, the current memory variable of this background application authority is found in process, and this current memory variable is replaced the memory variable forbidding automatic value-added tax function authority that (renewal) is setting, the automatic value-added tax function of this background application can be forbidden.
B13, determines that the current time of carrying out timing wait is not within the interruption-free time period that user pre-sets, and whether continues the background application forbidding forbidding automatic value-added tax function to user's prompting;
B14, if user selects to be continue the automatic value-added tax function of forbidding this background application; If user selects no, recover the automatic value-added tax function of this background application;
Whether B15, forbid the automatic value-added tax function of this background application to user's prompting;
B16, if user selects to be forbid the automatic value-added tax function of this background application; If user selects no, do not deal with.
In the embodiment of the present invention, as an embodiment, if judged result is the background application not exceeding the background application power consumption rate threshold value pre-set, then wait for monitoring periods next time, return and perform step 102.
As another embodiment, further, when not or when having a background application exceeding the background application power consumption rate threshold value pre-set, the method can also comprise:
Step 104, obtains each foreground application power consumption information of electronic equipment dump energy information and operation;
Step 105, calculates the total power consumption rate of foreground application according to obtaining each foreground application power consumption information, and, according to electronic equipment dump energy information calculating electronic equipment power consumption rate;
In this step, the total power consumption rate of foreground application is in monitoring periods, each application program power consumption sum of front stage operation and the ratio of monitoring periods, the total power consumption rate of background application is in monitoring periods, each application program power consumption sum of running background and the ratio of monitoring periods, i.e. each background application power consumption rate sum.
In the embodiment of the present invention, the formula of the power consumption rate of calculating electronic equipment is:
In formula,
V
efor the power consumption rate of electronic equipment;
B
(k-1)be the electronic equipment dump energy that (k-1) monitoring periods is corresponding, k is natural number;
B
kfor the electronic equipment dump energy that kth monitoring periods is corresponding, wherein, arranging kth monitoring periods is current monitoring periods;
T is monitoring periods.
Step 106, is added total for foreground application power consumption rate with the total power consumption rate of background application, the total power consumption rate of the program that is applied, and the difference of calculating electronic equipment power consumption rate and the total power consumption rate of application program, obtains power consumption rate difference;
Step 107, if power consumption rate difference exceedes the power consumption rate difference limen value pre-set, is defined as cell degradation power consumption.
As embodiment, after being defined as cell degradation power consumption, the method comprises further:
Point out the power consumption rate of cell degradation power consumption and cell degradation power consumption poor to user.
In practical application, after obtaining each foreground application power consumption information run, the method may further include:
Judge whether the foreground application exceeding the foreground application power consumption rate threshold value pre-set, if had, process according to the foreground strategy pre-set.
In this step, for foreground application, in order to not affect the normal use business of user, carrying out process according to the foreground strategy pre-set and comprising:
The automatic value-added tax function of this foreground application whether is forbidden to user's prompting;
If user selects, utilize the operating system root authority obtained in advance, forbid the automatic value-added tax function of this foreground application; If user selects no, do not deal with.
From above-mentioned, the method of embodiment of the present invention process electronic equipment power consumption, utilize electronic equipment can record feature based on the power consumption information of each application program of operating system and the overall power consumption information of electronic equipment, by arranging background application power consumption rate threshold value corresponding to each background application, the each background application power consumption information run in recorded electronic equipment, and calculate background application power consumption rate based on background application power consumption information, background application background application power consumption rate being exceeded to corresponding background application power consumption rate threshold value processes, and according to background application power consumption rate, foreground application power consumption rate and electronic equipment power consumption rate have determined whether that cell degradation power consumption phenomenon occurs.Like this, the application program only power consumption rate in the application program of running background being exceeded the power consumption rate threshold value of setting processes, and the normal use business not affecting user uses; Further, had the automatic value-added tax function of the background application of automatic value-added tax function, effectively can solve the technical matters of electronic equipment power consumption by restriction, consumption reduction efficiency is high; And, the power consumptions such as inspection can also be connected to the network of cell degradation, interruption to process, the method efficiency reducing electronic equipment power consumption with respect to cleaning internal memory is higher, effectively can reduce the power consumption of electronic equipment, promotes the efficiency of process electronic equipment power consumption.
Fig. 2 is embodiment of the present invention electronic devices structure schematic diagram.See Fig. 2, this electronic equipment comprises: 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 embodiment, background application power consumption information comprises: background application mark and background application segmentation power consumption information.As another embodiment, background application power consumption information can further include: background application information start-up time, background application temporal information out of service and background application total power consumption information.
Read module 2, for sequentially reading each background application power consumption information recorded in logging modle according to the monitoring periods pre-set;
Judging treatmenting module 3, for judging whether the background application exceeding the background application power consumption rate threshold value pre-set, if had, process according to the backstage strategy pre-set, described background application power consumption rate threshold value is arranged for each background application.
In the embodiment of the present invention, background application power consumption rate threshold value can be to be arranged in webserver side by operator and issued by the webserver, also can be carry out personalized setting by person skilled or user on each electronic equipment.
As embodiment, this electronic equipment may further include:
Threshold value arranges interface module 4, for providing background application power consumption rate threshold reference value scope or background application power consumption rate threshold list for user, to arrange background application power consumption rate threshold value corresponding to each application program.
As another embodiment, this electronic equipment may further include:
Corresponding relation builds module 5, for arranging the background application power consumption rate threshold value that interface module is arranged according to threshold value, builds the corresponding relation of battery dump energy and background application power consumption rate threshold value.
In the embodiment of the present invention, judging treatmenting module comprises: choose unit, acquiring unit, computing unit, query unit and processing unit (not shown), wherein,
Choose unit, for choosing a background application power consumption information from the background application power consumption information read;
Acquiring unit, for obtaining the time of this background application operation and operationally interior power consumption;
Computing unit, for calculating the business of the time of operationally interior power consumption and operation, obtains background application power consumption rate;
Query unit, for inquiring about and obtaining the background application power consumption rate threshold value of this background application identity map, if the background application power consumption rate obtained is greater than the background application power consumption rate threshold value of acquisition, determine that this application program is the background application exceeding the background application power consumption rate threshold value pre-set;
Processing unit, for according to the backstage strategy pre-set, processes the background application that query unit is determined.
In the embodiment of the present invention, according to the backstage strategy pre-set, the background application determined query unit carries out process and comprises:
This background application out of service; And/or,
Limit this background application working time, be not more than corresponding background application power consumption rate threshold value to make its power consumption rate; And/or,
Utilize the operating system root authority obtained in advance, forbid the automatic value-added tax function of this background application.
Preferably, this electronic equipment can further include: foreground message acquisition module, the first computing module, the second computing module and cell degradation judge module (not shown), wherein,
Foreground message acquisition module, for obtaining each foreground application power consumption information of electronic equipment dump energy information and operation;
First computing module, for calculating the total power consumption rate of foreground application according to obtaining each foreground application power consumption information, and, according to electronic equipment dump energy information calculating electronic equipment power consumption rate;
Second computing module, for total for foreground application power consumption rate is added with the total power consumption rate of background application, the total power consumption rate of the program that is applied, the difference of calculating electronic equipment power consumption rate and the total power consumption rate of application program, obtains power consumption rate difference;
Cell degradation judge module, if power consumption rate difference exceedes the power consumption rate difference limen value pre-set, is defined as cell degradation power consumption.
In practical application, after determining to need background application to be processed, the factor causing power consumption can also be analyzed further, such as, stealthily to run on backstage cause a large amount of power consumption owing to installing certain application program, or, be owing to opening wifi, and wifi signal frequently connects and causes power consumption fast, or cause more than power down 10 lattice per hour because of cell degradation.Like this, by analyzing the power consumption information of each reporting of user, can determine the concrete reason of each user's power consumption, such as, the power consumption problem of party A-subscriber installs certain application program stealthily to run on backstage; Party B-subscriber opens wifi, and wifi signal frequently connects and causes power consumption fast; C user causes more than power down 10 lattice per hour because of cell degradation.After (background application power consumption information processing result) is reached a conclusion in analysis, the operating system identification information of match user again, battery applications class software, as information such as version number'ss (software version) of battery doctor, provides effective power save scheme for it.
In practical application, this electronic equipment can further include:
Foreground application processing module (not shown), for judging whether the foreground application exceeding the foreground application power consumption rate threshold value pre-set, if had, processes according to the foreground strategy pre-set.
In the embodiment of the present invention, carry out process according to the foreground strategy pre-set and comprise:
The automatic value-added tax function of this foreground application whether is forbidden to user's prompting;
If user selects, utilize the operating system root authority obtained in advance, forbid the automatic value-added tax function of this foreground application; If user selects 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 running application, background application refers to that foreground application is after closedown, but it is not out of service, but run, sightless application program is continued in the resident position pre-set in an operating system, namely needs the application program residing at operating system backstage.Such as, instant messaging class application program, electronic market class application program and positioning service class application program etc., wherein, instant messaging class application program can be QQ, micro-letter, microblogging etc.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (RandomAccess Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.
Claims (17)
1. process a method for electronic equipment power consumption, it is characterized in that, the method comprises:
The 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 periods pre-set;
Judge whether the background application exceeding the background application power consumption rate threshold value pre-set, if had, process according to the backstage strategy pre-set, described background application power consumption rate threshold value is arranged for each background application.
2. method according to claim 1, is characterized in that, described method comprises further:
Arranging in interface in the background application power consumption rate threshold value of electronic equipment, providing each the background application power consumption rate threshold reference value scope for arranging background application power consumption rate threshold value or background application power consumption rate threshold list.
3. method according to claim 1, is characterized in that, described in judge whether that the background application exceeding the application program power consumption rate threshold value pre-set comprises:
A background application power consumption information is chosen from the background application power consumption information read;
Obtain the time of this background application operation and operationally interior power consumption;
Calculate the business of the time of operationally interior power consumption and operation, obtain background application power consumption rate;
Inquire about and obtain the background application power consumption rate threshold value of this background application identity map, if the background application power consumption rate obtained is greater than the background application power consumption rate threshold value of acquisition, determine that this application program is the background application exceeding the background application power consumption rate threshold value pre-set.
4. method according to claim 1, is characterized in that, the described backstage strategy according to pre-setting carries out process and comprises:
This background application out of service.
5. method according to claim 1, is characterized in that, the described backstage strategy according to pre-setting carries out process and comprises:
Limit this background application working time, be not more than corresponding background application power consumption rate threshold value to make its power consumption rate.
6. method according to claim 1, is characterized in that, the described backstage strategy according to pre-setting carries out process and comprises:
Utilize the operating system root authority obtained in advance, forbid the automatic value-added tax function of this background application.
7. method according to claim 6, is characterized in that, after acquisition operating system root authority, described method comprises further:
The memory variable of background application authority is found in process;
In the memory variable of platform application program authority in the rear, the memory variable forbidding automatic value-added tax function authority is set.
8. according to the method that claim 6 is stated, it is characterized in that, the operating system root authority that described utilization obtains in advance, forbid that the automatic value-added tax function of this background application comprises:
B11, judges current time whether within the interruption-free time period that user pre-sets, and if so, performs step B12; Otherwise, perform step B15;
B12, utilizes the operating system root authority that obtains in advance, forbids the automatic value-added tax function of this background application, and carries out calendar scheduling and treat;
B13, determines that the current time of carrying out timing wait is not within the interruption-free time period that user pre-sets, and whether continues the background application forbidding forbidding automatic value-added tax function to user's prompting;
B14, if user selects to be continue the automatic value-added tax function of forbidding this background application; If user selects no, recover the automatic value-added tax function of this background application;
Whether B15, forbid the automatic value-added tax function of this background application to user's prompting;
B16, if user selects to be forbid the automatic value-added tax function of this background application; If user selects no, do not deal with.
9. the method according to any one of claim 1 to 8, is characterized in that, described method comprises further:
Obtain each foreground application power consumption information of electronic equipment dump energy information and operation;
The total power consumption rate of foreground application is calculated according to obtaining each foreground application power consumption information, and, according to electronic equipment dump energy information calculating electronic equipment power consumption rate;
Be added with the total power consumption rate of background application by total for foreground application power consumption rate, the total power consumption rate of the program that is applied, the difference of calculating electronic equipment power consumption rate and the total power consumption rate of application program, obtains power consumption rate difference;
If power consumption rate difference exceedes the power consumption rate difference limen value pre-set, be defined as cell degradation power consumption.
10. method according to claim 9, is characterized in that, after each foreground application power consumption information that described acquisition runs, described method comprises further:
Judge whether the foreground application exceeding the foreground application power consumption rate threshold value pre-set, if had, process according to the foreground strategy pre-set.
11. methods according to claim 10, is characterized in that, the described foreground strategy according to pre-setting carries out process and comprises:
The automatic value-added tax function of this foreground application whether is forbidden to user's prompting;
If user selects, utilize the operating system root authority obtained in advance, forbid the automatic value-added tax function of this foreground application; If user selects no, do not deal with.
12. 1 kinds of electronic equipments, is characterized in that, this electronic equipment comprises: 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, for sequentially reading each background application power consumption information recorded in logging modle according to the monitoring periods pre-set;
Judging treatmenting module, for judging whether the background application exceeding the background application power consumption rate threshold value pre-set, if had, process according to the backstage strategy pre-set, described background application power consumption rate threshold value is arranged for each background application.
13. electronic equipments according to claim 12, is characterized in that, described electronic equipment comprises further:
Threshold value arranges interface module, for providing background application power consumption rate threshold reference value scope or background application power consumption rate threshold list for user, to arrange background application power consumption rate threshold value corresponding to each application program.
14. electronic equipments according to claim 12, is characterized in that, described electronic equipment comprises further:
Corresponding relation builds module, for arranging the background application power consumption rate threshold value that interface module is arranged according to threshold value, builds the corresponding relation of battery dump energy and background application power consumption rate threshold value.
15. electronic equipments according to claim 12, is characterized in that, described electronic equipment comprises further: foreground message acquisition module, the first computing module, the second computing module and cell degradation judge module, wherein,
Foreground message acquisition module, for obtaining each foreground application power consumption information of electronic equipment dump energy information and operation;
First computing module, for calculating the total power consumption rate of foreground application according to obtaining each foreground application power consumption information, and, according to electronic equipment dump energy information calculating electronic equipment power consumption rate;
Second computing module, for total for foreground application power consumption rate is added with the total power consumption rate of background application, the total power consumption rate of the program that is applied, the difference of calculating electronic equipment power consumption rate and the total power consumption rate of application program, obtains power consumption rate difference;
Cell degradation judge module, if power consumption rate difference exceedes the power consumption rate difference limen value pre-set, is defined as cell degradation power consumption.
16. electronic equipments according to claim 12, is characterized in that, described electronic equipment comprises further:
Foreground application processing module, for judging whether the foreground application exceeding the foreground application power consumption rate threshold value pre-set, if had, processes according to the foreground strategy pre-set.
17., according to claim 12 to the electronic equipment described in 16 any one, is characterized in that, described judging treatmenting module comprises:
Choose unit, for choosing a background application power consumption information from the background application power consumption information read;
Acquiring unit, for obtaining the time of this background application operation and operationally interior power consumption;
Computing unit, for calculating the business of the time of operationally interior power consumption and operation, obtains background application power consumption rate;
Query unit, for inquiring about and obtaining the background application power consumption rate threshold value of this background application identity map, if the background application power consumption rate obtained is greater than the background application power consumption rate threshold value of acquisition, determine that this application program is the background application exceeding the background application power consumption rate threshold value pre-set;
Processing unit, for according to the backstage strategy pre-set, processes the background application that query unit is determined.
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 true CN104239195A (en) | 2014-12-24 |
CN104239195B 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) |
Cited By (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461576A (en) * | 2014-12-29 | 2015-03-25 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104869241A (en) * | 2015-05-04 | 2015-08-26 | 惠州Tcl移动通信有限公司 | Intelligent terminal and electric quantity prompting method thereof |
CN105491459A (en) * | 2015-11-24 | 2016-04-13 | 深圳Tcl数字技术有限公司 | Terminal power information prompting method and device |
CN105653323A (en) * | 2015-12-28 | 2016-06-08 | 小米科技有限责任公司 | Application program management method and device |
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 |
CN105912370A (en) * | 2016-05-03 | 2016-08-31 | 广东欧珀移动通信有限公司 | Control method and apparatus for background application of mobile terminal and mobile terminal |
CN106155256A (en) * | 2015-03-23 | 2016-11-23 | 天彩电子(深圳)有限公司 | End cell management method |
CN106383571A (en) * | 2016-09-09 | 2017-02-08 | 宇龙计算机通信科技(深圳)有限公司 | Application processing apparatus and method |
CN106502776A (en) * | 2016-10-31 | 2017-03-15 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method and device of application program management |
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 |
CN106933323A (en) * | 2015-12-30 | 2017-07-07 | 北京金山安全软件有限公司 | Method and device for optimizing power consumption of application program and electronic equipment |
CN107357620A (en) * | 2017-07-14 | 2017-11-17 | 广东欧珀移动通信有限公司 | A kind of method of adjustment of application program, device, mobile terminal and storage medium |
WO2017198025A1 (en) * | 2016-05-16 | 2017-11-23 | 广州市动景计算机科技有限公司 | Method, apparatus for processing power consumption of an application programme, calculation device and machine readable storage medium |
CN107728774A (en) * | 2017-10-20 | 2018-02-23 | 维沃移动通信有限公司 | Parameter regulation means and mobile terminal |
CN107835311A (en) * | 2017-10-31 | 2018-03-23 | 广东欧珀移动通信有限公司 | application management method, device, storage medium and electronic equipment |
WO2019109788A1 (en) * | 2017-12-06 | 2019-06-13 | Oppo广东移动通信有限公司 | Application cleanup method, terminal device and computer readable storage medium |
WO2019128546A1 (en) * | 2017-12-29 | 2019-07-04 | Oppo广东移动通信有限公司 | Application program processing method, electronic device, and computer readable storage medium |
CN110134219A (en) * | 2019-05-13 | 2019-08-16 | 深圳传音通讯有限公司 | Application program backstage power consumption processing method and processing device |
CN110187753A (en) * | 2019-05-27 | 2019-08-30 | Oppo广东移动通信有限公司 | Application control method, device, terminal and computer readable storage medium |
US10595228B2 (en) | 2011-12-14 | 2020-03-17 | Seven Networks, Llc | Mobile device configured for operating in a power save mode and a traffic optimization mode and related method |
CN111198607A (en) * | 2018-11-20 | 2020-05-26 | 浙江宇视科技有限公司 | Method and device for managing power consumption of electronic equipment |
CN113760081A (en) * | 2021-07-20 | 2021-12-07 | 荣耀终端有限公司 | Power consumption processing method based on service and terminal equipment |
CN114428546A (en) * | 2022-01-25 | 2022-05-03 | 惠州Tcl移动通信有限公司 | Background application cleaning method and device, storage medium and terminal equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020167293A1 (en) * | 2000-12-19 | 2002-11-14 | Kristoffer Ptasinski | Battery capacity calibration |
US20060152224A1 (en) * | 2003-04-23 | 2006-07-13 | Deuk-Soo Kim | Diagnosis for expected life of emergency power apparatus |
US20130166234A1 (en) * | 2011-12-26 | 2013-06-27 | Industrial Technology Research Institute | 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 |
CN103500002A (en) * | 2013-09-17 | 2014-01-08 | 小米科技有限责任公司 | Method, device and terminal equipment for managing application program |
CN103729052A (en) * | 2013-12-31 | 2014-04-16 | 贝壳网际(北京)安全技术有限公司 | Processing method and system for power consumption of application program and mobile terminal |
CN103941871A (en) * | 2014-04-24 | 2014-07-23 | 可牛网络技术(北京)有限公司 | Method and equipment for controlling hardware operating state of intelligent terminal |
-
2014
- 2014-09-17 CN CN201410475122.6A patent/CN104239195B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020167293A1 (en) * | 2000-12-19 | 2002-11-14 | Kristoffer Ptasinski | Battery capacity calibration |
US20060152224A1 (en) * | 2003-04-23 | 2006-07-13 | Deuk-Soo Kim | Diagnosis for expected life of emergency power apparatus |
US20130166234A1 (en) * | 2011-12-26 | 2013-06-27 | Industrial Technology Research Institute | 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 |
CN103500002A (en) * | 2013-09-17 | 2014-01-08 | 小米科技有限责任公司 | Method, device and terminal equipment for managing application program |
CN103729052A (en) * | 2013-12-31 | 2014-04-16 | 贝壳网际(北京)安全技术有限公司 | Processing method and system for power consumption of application program and mobile terminal |
CN103941871A (en) * | 2014-04-24 | 2014-07-23 | 可牛网络技术(北京)有限公司 | Method and equipment for controlling hardware operating state of intelligent terminal |
Cited By (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10595228B2 (en) | 2011-12-14 | 2020-03-17 | Seven Networks, Llc | Mobile device configured for operating in a power save mode and a traffic optimization mode and related method |
CN104461576A (en) * | 2014-12-29 | 2015-03-25 | 联想(北京)有限公司 | Information processing method and electronic equipment |
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 |
CN104869241A (en) * | 2015-05-04 | 2015-08-26 | 惠州Tcl移动通信有限公司 | Intelligent terminal and electric quantity prompting method thereof |
CN105491459A (en) * | 2015-11-24 | 2016-04-13 | 深圳Tcl数字技术有限公司 | Terminal power information prompting method and device |
CN105653323A (en) * | 2015-12-28 | 2016-06-08 | 小米科技有限责任公司 | Application program management method and device |
US10282561B2 (en) | 2015-12-28 | 2019-05-07 | Xiaomi Inc. | Method and apparatus for managing application |
CN106933323A (en) * | 2015-12-30 | 2017-07-07 | 北京金山安全软件有限公司 | Method and device for optimizing power consumption of application program and electronic equipment |
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 |
CN105912370A (en) * | 2016-05-03 | 2016-08-31 | 广东欧珀移动通信有限公司 | Control method and apparatus for background application of mobile terminal and mobile terminal |
CN105912370B (en) * | 2016-05-03 | 2020-02-14 | Oppo广东移动通信有限公司 | Control method and device for background application program of mobile terminal and mobile terminal |
WO2017198025A1 (en) * | 2016-05-16 | 2017-11-23 | 广州市动景计算机科技有限公司 | Method, apparatus for processing power consumption of an application programme, calculation device and machine readable storage medium |
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 |
CN107835311A (en) * | 2017-10-31 | 2018-03-23 | 广东欧珀移动通信有限公司 | application management method, device, storage medium and electronic equipment |
WO2019109788A1 (en) * | 2017-12-06 | 2019-06-13 | Oppo广东移动通信有限公司 | Application cleanup method, terminal device and computer readable storage medium |
WO2019128546A1 (en) * | 2017-12-29 | 2019-07-04 | Oppo广东移动通信有限公司 | Application program processing method, electronic device, and computer readable storage medium |
CN111198607A (en) * | 2018-11-20 | 2020-05-26 | 浙江宇视科技有限公司 | Method and device for managing power consumption of electronic equipment |
CN111198607B (en) * | 2018-11-20 | 2022-11-25 | 浙江宇视科技有限公司 | Method and device for managing power consumption of electronic equipment |
CN110134219A (en) * | 2019-05-13 | 2019-08-16 | 深圳传音通讯有限公司 | Application program backstage power consumption processing method and processing device |
CN110134219B (en) * | 2019-05-13 | 2024-03-19 | 深圳传音通讯有限公司 | Application program background power consumption processing method and device |
CN110187753A (en) * | 2019-05-27 | 2019-08-30 | Oppo广东移动通信有限公司 | Application control method, device, terminal and computer readable storage medium |
CN110187753B (en) * | 2019-05-27 | 2021-09-07 | Oppo广东移动通信有限公司 | Application program control method, device, terminal and computer readable storage medium |
CN113760081A (en) * | 2021-07-20 | 2021-12-07 | 荣耀终端有限公司 | Power consumption processing method based on service and terminal equipment |
CN113760081B (en) * | 2021-07-20 | 2022-09-13 | 荣耀终端有限公司 | Power consumption processing method based on service and terminal equipment |
CN114428546A (en) * | 2022-01-25 | 2022-05-03 | 惠州Tcl移动通信有限公司 | Background application cleaning method and device, storage medium and terminal equipment |
CN114428546B (en) * | 2022-01-25 | 2024-04-09 | 惠州Tcl移动通信有限公司 | Background application cleaning method and device, storage medium and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104239195B (en) | 2017-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104239195A (en) | Method for processing power consumption of electronic equipment, and electronic equipment | |
CN104267799B (en) | Network server and method and system for processing power consumption of electronic equipment | |
US9785428B2 (en) | Internal software updating method and system | |
US11955827B2 (en) | Rule based smart charging | |
CN103199310A (en) | Battery power guaranteeing method and battery power guaranteeing apparatus for portable electronic product, and mobile terminal | |
CN105072292A (en) | Application control method and terminal | |
CN106455022B (en) | A kind of battery saving mode switching method and device | |
CN110554762A (en) | Method and terminal for controlling application program | |
CN103347009A (en) | Method and device filtering information | |
CN105094282A (en) | Management method for application programs and terminal | |
CN104267795A (en) | Capacity management method, capacity management device and electronic equipment | |
CN105224439A (en) | Method and device for detecting CPU occupancy rate of terminal APP and terminal | |
CN111539563A (en) | Energy consumption safety state prediction method, device, server and storage medium | |
CN105281965B (en) | Traffic acquisition method and device based on IOS (input/output system) | |
CN104519190A (en) | Mobile apparatus low-electric-quantity power-on control method and system | |
CN105528171A (en) | Method and system for quickly starting application of intelligent terminal, and intelligent terminal | |
CN105337783A (en) | Method of monitoring abnormal flow consumption of communication equipment and apparatus | |
CN103002163A (en) | Mobile terminal background program control method and mobile terminal | |
CN107783633A (en) | A kind of method, terminal and computer-readable recording medium for managing application program | |
CN104267950A (en) | Setting method and device of terminal application program and mobile terminal | |
CN113777398A (en) | Electric energy meter electric quantity recording method, electric energy meter and readable storage medium | |
CN105302702A (en) | Method and apparatus for testing performance of terminal | |
CN109819503B (en) | Management method and device of terminal APP | |
CN110134219B (en) | Application program background power consumption processing method and device | |
CN104348140A (en) | Low electric quantity prompting method and electronic equipment |
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 |
Granted publication date: 20170728 |
|
CF01 | Termination of patent right due to non-payment of annual fee |