CN106125891A - Terminal power optimization method, device and terminal - Google Patents

Terminal power optimization method, device and terminal Download PDF

Info

Publication number
CN106125891A
CN106125891A CN201610474587.9A CN201610474587A CN106125891A CN 106125891 A CN106125891 A CN 106125891A CN 201610474587 A CN201610474587 A CN 201610474587A CN 106125891 A CN106125891 A CN 106125891A
Authority
CN
China
Prior art keywords
lock
application
waking
terminal
wake
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.)
Pending
Application number
CN201610474587.9A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610474587.9A priority Critical patent/CN106125891A/en
Publication of CN106125891A publication Critical patent/CN106125891A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Abstract

The invention discloses a kind of terminal power optimization method, device and terminal, wherein, terminal power optimization method includes: arrange the locking mechanism of terminal applies in systems, when the application request waking up lock for application up that the process that receives sends, it is judged that whether application request meets default application condition;If judging, obtaining application request meets default application condition, then wake up lock up for process application, and the relevant information waking up lock up is write lock listing file;If judging, obtaining application request does not meets default application condition, then refusal wakes up lock up for process application.Utilize the technical scheme that the present invention provides, by the locking mechanism arranged, it is achieved that limit waking up the effective of lock application up, be effectively saved the electricity of terminal, it is achieved that the optimization to terminal power.

Description

Terminal power optimization method, device and terminal
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of terminal power optimization method, device and terminal.
Background technology
Along with the disposal ability of the terminals such as the fast development of Internet technology, such as smart mobile phone is increasingly stronger, can support Multiple application program, but power consumption is the most increasing, highly shortened treating of its stand-by time, such as smart mobile phone The machine time, therefore user needed to use so that guarantee is normal for its charging continually scarcely more than one day.But have the biggest one Dividing electricity is to consume on some the unnecessary application programs being hidden in backstage, and these application programs are for enabling oneself real Time ground to purposes such as user's pushed information, abuse wakes up lock mechanism up, makes the CPU of terminal be constantly in running status, it is impossible to enter The park mode of power saving, thus cause battery power consumption quickly.
In the prior art, in order to solve this problem, technical staff develops some electricity optimization application, these Electricity optimization application can ceaselessly detect the behaviour in service waking up lock up, if finding that certain wakes up when taking of lock up after testing Between overlength time this will be waken up up lock and carry out compulsive unlocking process.But these electricity optimization application are due to needs ceaselessly Detection wakes up the behaviour in service of lock up, and itself also can consume a lot of electricity.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on State terminal power optimization method, device and the terminal of problem.
According to an aspect of the invention, it is provided a kind of terminal power optimization method, the method includes:
The locking mechanism of terminal applies is set in systems, when the application waking up lock for application up that the process that receives sends During request, it is judged that whether application request meets default application condition;
If judging, obtaining application request meets default application condition, then wake up lock up for process application, will wake up the relevant of lock up Information write lock listing file;
If judging, obtaining application request does not meets default application condition, then refusal wakes up lock up for process application.
According to a further aspect in the invention, it is provided that a kind of terminal power optimizes device, and this device includes:
Module is set, is suitable to arrange in systems the locking mechanism of terminal applies;
Judge module, is suitable to when the application request waking up lock for application up that the process that receives sends, it is judged that application please Seeking Truth is no meets default application condition;
Application module, if being suitable to judge module to judge that obtaining application request meets default application condition, is then process application Wake up lock up, the relevant information waking up lock up is write lock listing file;
Refusal module, if being suitable to judge module to judge that obtaining application request does not meets default application condition, then refusal is for entering Journey application wakes up lock up.
According to a further aspect of the invention, it is provided that a kind of terminal, device is optimized including above-mentioned terminal power.
The technical scheme provided according to the present invention, arranges the locking mechanism of terminal applies, in systems then when receiving During the application request waking up lock for application up that process sends, it is judged that whether application request meets default application condition;Judging Obtain in the case of application request meets default application condition, waking up lock up for process application, the relevant information write of lock being waken up up Lock listing file;In the case of judging that obtaining application request does not meets default application condition, refuse to wake up lock up for process application. With in prior art compared with detection wakes up up by the way of lock carries out electricity optimization, utilize the technical scheme that the present invention provides, logical Cross the locking mechanism arranged, not only achieve the effective restriction waking up lock application up, it is to avoid abuse wakes up the situation of lock up to be occurred, The most effectively save the electricity of terminal, it is achieved that the optimization to terminal power.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the schematic flow sheet of terminal power optimization method according to an embodiment of the invention;
Fig. 2 shows the schematic flow sheet of terminal power optimization method in accordance with another embodiment of the present invention;
Fig. 3 shows the structured flowchart of terminal power optimization device according to an embodiment of the invention;
Fig. 4 shows the structured flowchart of terminal power optimization device in accordance with another embodiment of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Fig. 1 shows the schematic flow sheet of terminal power optimization method according to an embodiment of the invention, wherein, terminal Can be the equipment such as smart mobile phone, PAD, intelligent back vision mirror, intelligent watch, as it is shown in figure 1, the method comprises the steps:
Step S100, arranges the locking mechanism of terminal applies in systems.
In the step s 100, the locking mechanism of terminal applies is set in systems, in order to follow-up according to this locking mechanism pair Terminal power is optimized.Specifically, the locking mechanism of terminal applies comprises the steps that and wakes up lock distribution mechanism up.
Step S101, when the application request waking up lock for application up that the process that receives sends, it is judged that application request is No meet default application condition;The most then perform step S102;If it is not, then perform step S103.
After step S100 is provided with the locking mechanism of terminal applies, in step S101, send when receiving process For application wake up up lock application request time, according to locking mechanism, it is judged that application request whether meet default application condition.Its In, default application condition can be configured by those skilled in the art according to actual needs, does not limits.If it is determined that Meet default application condition to application request, then perform step S102;If it is determined that obtain application request not meet default application Condition, then perform step S103.
Step S102, wakes up lock up for process application, and the relevant information waking up lock up is write lock listing file.
Judging to obtain in the case of application request meets default application condition through step S101, in step s 102, for Process application wakes up lock up, and the relevant information waking up lock up is write lock listing file.
Step S103, refuses to wake up lock up for process application.
In the case of judging that obtaining application request does not meets default application condition through step S101, in step s 103, Refusal wakes up lock up for process application.
The terminal power optimization method provided according to the present embodiment, arranges the locking mechanism of terminal applies in systems, connects When the application request waking up lock for application up that the process that receives sends, it is judged that whether application request meets default application slip Part;In the case of judging that obtaining application request meets default application condition, wake up lock up for process application, the relevant of lock will be waken up up Information write lock listing file;In the case of judging that obtaining application request does not meets default application condition, refuse as process Shen Please wake up lock up.With in prior art by detection wake up up lock carry out electricity optimization by the way of compared with, utilize the skill that the present invention provides Art scheme, by the locking mechanism arranged, not only achieve the effective restriction waking up lock application up, it is to avoid abuse wakes up lock up Situation occurs, the most effectively saves the electricity of terminal, it is achieved that the optimization to terminal power.
Fig. 2 shows the schematic flow sheet of terminal power optimization method in accordance with another embodiment of the present invention, wherein, eventually End can be the equipment such as smart mobile phone, PAD, intelligent back vision mirror, intelligent watch, as in figure 2 it is shown, the method comprises the steps:
Step S200, in ccf layer, the power management services of the operating system of amendment terminal.
Wherein, the power management services of operating system wakes up application and the release of lock up for management.In order to realize terminal The optimization of electricity, in step s 200, in ccf layer, the power management services of the operating system of amendment terminal.Specifically, at frame Rack-layer, can increase default white list waking up up of power management services in lock distribution mechanism.Wherein, default white list includes: permit Permitted application and waken up up the process of lock.Default white list can be configured by those skilled in the art according to the actual requirements, does not does Limit.
Step S201, when power management services receives the application request waking up lock for application up that process sends, sentences Whether disconnected application request meets default application condition;The most then perform step S202;If it is not, then perform step S205.
After the power management services of the operating system that have modified terminal in step S200, in step s 201, at power supply When management service receives the application request waking up lock for application up that process sends, it is judged that whether application request meets default Shen Please condition.Specifically, can determine whether whether the process of application request correspondence belongs to default white list.If it is determined that obtain application request Corresponding process belongs to default white list, then the request of explanation this application meets default application condition, then then perform step S202;If it is determined that obtain process corresponding to application request to be not belonging to preset white list, then the request of explanation this application does not meets pre- If application condition, then then perform step S205.
Step S202, wakes up the lock name of lock up according to the name of default naming rule, and by wake up up process corresponding to lock title, Lock name and wake up lock characteristic write lock listing file up.
In the case of judging that obtaining application request meets default application condition through step S201, in step S202, press Wake up the lock name of lock according to the name of default naming rule up, and the title of process corresponding to lock will be waken up up, lock name and wake up lock characteristic up Write lock listing file.Wherein, default naming rule can be configured, the most not by those skilled in the art according to actual needs Limit.In the prior art, the lock name waking up lock up is usually the process naming being waken up up lock by application, therefore wakes up the lock of lock up Name may be disorderly and unsystematic, is inconvenient in management, and the technical scheme that the present invention provides is to name according to default naming rule Wake up the lock name of lock up, and the title of process corresponding to lock, lock name will be waken up up and wake up lock characteristic write lock listing file up, thus It is favorably improved the efficiency to the unified management waking up lock up.
Step S203, according to lock listing file, whether the process that detection wakes up lock up corresponding is in abnormal operating condition;If It is then to perform step S204;If it is not, then the method terminates.
If the process waking up lock up corresponding is in abnormal operating condition, owing to waking up the existence of lock up, terminal cannot be introduced into not Sleep mode, also by expending the electricity of terminal, in order to be optimized terminal power further, in step S203, according to lock row List file, whether the process that detection wakes up lock up corresponding is in abnormal operating condition.If detection obtains waking up the process that lock is corresponding up It is in abnormal operating condition, then performs step S204;If the process that detection obtains waking up lock up corresponding is not in misoperation shape State, then the method terminates.Alternatively, whether misoperation can be in every the process that prefixed time interval detection wakes up lock up corresponding State, those skilled in the art can arrange prefixed time interval according to actual needs, not limit.
Step S204, release wakes up lock up.
Obtaining waking up up in the case of process corresponding to lock be in abnormal operating condition through the detection of step S203, release wakes up up Lock.
Step S205, refuses to wake up lock up for process application.
In the case of judging that obtaining application request does not meets default application condition through step S201, refuse as process application Wake up lock up.
Alternatively, in a possible implementation of the present embodiment, the method also includes for application request correspondence The step of process degree of establishment parameter, then in step S202, also will wake up the level parameters write lock of process corresponding to lock up Listing file, in step S203, according to the level parameters waking up process corresponding to lock up in lock listing file, detection wakes up lock up Whether corresponding process is in abnormal operating condition.Such as, the level parameters arranged for the process that application request is corresponding includes the One rank and second level, and the significance level of the process of first level is higher than the significance level of the process of second level, then The appearance of situation about having undesirable effect to terminal in order to avoid the waking up lock up of process because of release first level, in step In S203, can only detect and wake up whether corresponding and that level parameters is the second grade process of lock is in abnormal operating condition up.
Such as, when applying this method in intelligent back vision mirror, the electricity of intelligent back vision mirror can be effectively saved, make intelligence Rearview mirror has longer stand-by time.
The terminal power optimization method provided according to the present embodiment, at ccf layer, the power supply of the operating system of amendment terminal Management service, then when power management services receives the application request waking up lock for application up that process sends, it is judged that Shen Please ask whether to meet default application condition, in the case of judging that obtaining application request meets default application condition, according in advance If naming rule name wakes up the lock name of lock up, and will wake up the title of process corresponding to lock, lock name up and wake up lock characteristic write up Lock listing file, in the case of judging that obtaining application request does not meets default application condition, refuses to wake up lock up for process application; It addition, the method is always according to lock listing file, whether the process that detection wakes up lock up corresponding is in abnormal operating condition, if detection The process obtaining waking up lock up corresponding is in abnormal operating condition, then discharge this and wake up lock up.Waken up up by detection with prior art Lock carries out the mode of electricity optimization and compares, and utilizes the technical scheme that the present invention provides, by the operation in ccf layer amendment terminal The power management services of system, not only achieve the effective restriction waking up lock application up, it is to avoid abuse wakes up the situation of lock up and goes out Existing, the most effectively save the electricity of terminal, it addition, this technical scheme wakes up the lock name of lock up according to the name of default naming rule, It is favorably improved the efficiency to the unified management waking up lock up, and the process obtaining waking up lock up corresponding in detection is in misoperation shape During state, release wakes up lock up, thus saves the electricity of terminal further, it is achieved that the optimization to terminal power.
Fig. 3 shows the structured flowchart of terminal power optimization device according to an embodiment of the invention, and wherein, terminal can Think the equipment such as smart mobile phone, PAD, intelligent back vision mirror, intelligent watch, as it is shown on figure 3, this device includes: arrange module 310, Judge module 320, application module 330 and refusal module 340.
Arrange module 310 to be suitable to: arrange the locking mechanism of terminal applies in systems.
Specifically, the locking mechanism of terminal applies comprises the steps that and wakes up lock distribution mechanism up.
Judge module 320 is suitable to: when the application request waking up lock for application up that the process that receives sends, it is judged that application Whether request meets default application condition.
When the application request waking up lock for application up that the process that receives sends, it is judged that module 320 is according to arranging module 310 locking mechanisms arranged, it is judged that whether application request meets default application condition.Wherein, those skilled in the art can basis It is actually needed and default application condition is configured, do not limit.
Application module 330 is suitable to: if judge module 320 judges that obtaining application request meets default application condition, then for entering Journey application wakes up lock up, and the relevant information waking up lock up is write lock listing file.
Refusal module 340 is suitable to: if judge module 330 judges that obtaining application request does not meets default application condition, then refuse Lock is waken up up absolutely for process application.
Optimize device according to the terminal power that the present embodiment provides, module is set the locking of terminal applies is set in systems Mechanism, it is judged that module is when the application request waking up lock for application up that the process that receives sends, it is judged that whether application request accords with Close and preset application condition;In the case of judge module judges that obtaining application request meets default application condition, application module is Process application wakes up lock up, and the relevant information waking up lock up is write lock listing file;Judge to obtain application request not at judge module In the case of meeting default application condition, refusal module refusal wakes up lock up for process application.Called out by detection with prior art Awake lock carries out the mode of electricity optimization and compares, and utilizes the technical scheme that the present invention provides, by the locking mechanism arranged, not only real Show the effective restriction waking up lock application up, it is to avoid abuse wakes up the situation of lock up to be occurred, the most effectively saves the electricity of terminal Amount, it is achieved that the optimization to terminal power.
Fig. 4 shows the structured flowchart of terminal power optimization device in accordance with another embodiment of the present invention, such as Fig. 4 institute Showing, this device includes: arranges module 410, judge module 420, application module 430, refusal module 440, detection module 450 and releases Amplification module 460.
Arrange module 410 to be suitable to: in ccf layer, the power management services of the operating system of amendment terminal.
Wherein, the power management services of operating system wakes up application and the release of lock up for management.In order to realize terminal The optimization of electricity, arranges module 410 in ccf layer, the power management services of the operating system of amendment terminal.
Judge module 420 is suitable to: power management services receive process send for application wake up up lock application please When asking, it is judged that whether application request meets default application condition.
Wherein, default application condition can be configured by those skilled in the art according to actual needs, does not limits. If it is determined that module 420 judges that obtaining application request meets default application condition, then trigger application module 430;If it is determined that mould Block 420 judges that obtaining application request does not meets default application condition, then trigger refusal module 440.
Specifically, module 410 is set and is further adapted for: at ccf layer, wake up lock distribution mechanism up in power management services White list is preset in middle increase.Wherein, default white list includes: allow application to wake up the process of lock up.Those skilled in the art can root According to actual demand, default white list is configured, does not limits.
Judge module 420 is further adapted for: power management services receive process send for application wake up lock up During application request, it is judged that whether the process of application request correspondence belongs to default white list.If it is determined that module 420 judges to obtain Shen The process that please ask correspondence belongs to default white list, then the request of explanation this application meets default application condition, then trigger application Module 430;If it is determined that module 420 judges that obtaining process corresponding to application request is not belonging to preset white list, then illustrate this Shen Please ask not meet default application condition, then trigger refusal module 440.
Application module 430 is suitable to: if judge module 420 judges that obtaining application request meets default application condition, then according to Preset naming rule name and wake up the lock name of lock up, and the title of process corresponding to lock, lock name will be waken up up and wake up lock characteristic up and write Enter to lock listing file.
Wherein, default naming rule can be configured by those skilled in the art according to actual needs, does not limits. The technical scheme that the present invention provides is the lock name waking up lock according to the name of default naming rule up, and will wake up process corresponding to lock up Title, lock name and wake up lock characteristic write lock listing file up, thus be favorably improved the efficiency to the unified management waking up lock up.
Refusal module 440 is suitable to: if judge module 420 judges that obtaining application request does not meets default application condition, then refuse Lock is waken up up absolutely for process application.
Detection module 450 is suitable to: according to lock listing file, and whether the process that detection wakes up lock up corresponding is in misoperation shape State.
It is in abnormal operating condition in order to avoid there is waking up up process corresponding to lock and causes terminal to cannot be introduced into dormancy mould The situation of formula occurs, detection module 450 is according to lock listing file, and whether the process that detection wakes up lock up corresponding is in misoperation shape State.Alternatively, whether detection module 450 can be in misoperation shape every the process that prefixed time interval detection wakes up lock up corresponding State, those skilled in the art can arrange prefixed time interval according to actual needs, not limit.If detection module 450 The process that detection obtains waking up lock up corresponding is in abnormal operating condition, then trigger release module 460.
Release module 460 is suitable to: if the process that detection module 450 detection obtains waking up lock up corresponding is in misoperation shape State, then release wakes up lock up.
Alternatively, in a possible implementation of the present embodiment, module 410 is set and is further adapted for applying for asking Seek corresponding process degree of establishment parameter, then application module 430 is further adapted for waking up the rank ginseng of process corresponding to lock up Number write lock listing file, detection module 450 is further adapted for according to the level waking up process corresponding to lock up in lock listing file Other parameter, whether the process that detection wakes up lock up corresponding is in abnormal operating condition.Such as, it is right for application request that module 410 is set The level parameters that the process answered is arranged includes first level and second level, and the significance level of the process of first level is higher than the The significance level of the process of two ranks, causes bad shadow in order to avoid the waking up lock up of process because of release first level to terminal The appearance of situation rung, then it is entering of the second grade that detection module 450 can only detect and level parameters corresponding with waking up lock up Whether journey is in abnormal operating condition.
Optimize device according to the terminal power that the present embodiment provides, module is set in ccf layer, the operation system of amendment terminal System power management services, it is judged that module power management services receive process send for application wake up up lock application please When asking, it is judged that whether application request meets default application condition;Judge that obtaining application request meets default application at judge module In the case of condition, application module wakes up the lock name of lock up according to the name of default naming rule, and will wake up process corresponding to lock up Title, lock name and wake up up lock characteristic write lock listing file;Judge that obtaining application request does not meets default Shen at judge module Please be in the case of condition, refusal module refusal wakes up lock up for process application;It addition, detection module is always according to lock listing file, inspection Survey whether the process waking up lock up corresponding is in abnormal operating condition, if detection module detection obtains waking up up at the process that lock is corresponding In abnormal operating condition, then release module discharges this and wakes up lock up.Electricity optimization is carried out with prior art wakes up lock up by detection Mode compare, utilize the technical scheme that the present invention provides, by the power management of operating system in ccf layer amendment terminal Service, not only achieve the effective restriction waking up lock application up, it is to avoid abuse wakes up the situation of lock up to be occurred, is also effectively saved The electricity of terminal, it addition, this technical scheme wakes up the lock name of lock up according to the name of default naming rule, is favorably improved waking up up The efficiency of the unified management of lock, and wake up lock up detecting to obtain waking up up discharging when process corresponding to lock is in abnormal operating condition, Thus save the electricity of terminal further, it is achieved that the optimization to terminal power.
Present invention also offers a kind of terminal, this terminal includes that above-mentioned terminal power optimizes device.Specifically, terminal can Think the equipment such as smart mobile phone, PAD, intelligent back vision mirror, intelligent watch.Electricity is carried out with prior art wakes up lock up by detection The mode optimized is compared, and the technical scheme that the present invention provides, by the locking mechanism arranged, not only achieves waking up lock application up Effective restriction, it is to avoid abuse wakes up the situation of lock up to be occurred, the most effectively saves the electricity of terminal, it is achieved that to terminal electricity The optimization of amount.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein. Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore, The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's Within the scope of and form different embodiments.Such as, in the following claims, embodiment required for protection appoint One of meaning can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice Microprocessor or digital signal processor (DSP) realize according to embodiments of the present invention in some or all parts one A little or repertoire.The present invention is also implemented as part or all set for performing method as described herein Standby or device program (such as, computer program and computer program).The program of such present invention of realization can be deposited Store up on a computer-readable medium, or can be to have the form of one or more signal.Such signal can be from because of spy Download on net website and obtain, or provide on carrier signal, or provide with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame Claim.
The invention discloses:
A1, a kind of terminal power optimization method, including:
The locking mechanism of terminal applies is set in systems, when the application waking up lock for application up that the process that receives sends During request, it is judged that whether described application request meets default application condition;
If judging, obtaining described application request meets default application condition, then wake up lock up for described process application, will wake up up The relevant information write lock listing file of lock;
If judging, obtaining described application request does not meets default application condition, then refusal wakes up lock up for described process application.
A2, according to the method described in A1, the described locking mechanism arranging terminal applies in systems, when the process of receiving is sent out During the application request waking up lock for application up sent, it is judged that whether described application request meets default application condition is wrapped further Include: in ccf layer, the power management services of the operating system of amendment terminal so that receive process in described power management services During the application request waking up lock for application up sent, it is judged that whether described application request meets default application condition.
A3, according to the method described in A2, the locking mechanism of described terminal applies includes: wake up lock distribution mechanism up;
Described in ccf layer, the power management services of the operating system of amendment terminal so that in described power management services During the application request waking up lock for application up that the process that receives sends, it is judged that whether described application request meets default application slip Part is particularly as follows: at ccf layer, increase default white list waking up up of power management services so that at described electricity in lock distribution mechanism When source control service receives the application request waking up lock for application up that process sends, it is judged that described application corresponding the entering of request Whether journey belongs to default white list.
A4, according to the method described in any one of A1-A3, described wake up lock up for described process application, the relevant of lock will be waken up up Information write lock listing file farther includes:
Wake up the lock name of lock according to the name of default naming rule up, and wake up the title of process corresponding to lock, lock name up by described And wake up lock characteristic write lock listing file up.
A5, according to the method described in any one of A1-A4, described the relevant information waking up lock up write lock listing file it After, described method also includes:
According to described lock listing file, whether the process that detection wakes up lock up corresponding is in abnormal operating condition;
If the process that detection obtains waking up lock up corresponding is in abnormal operating condition, then wake up lock up described in release.
A6, according to the method described in A5, after judging that obtaining described application request meets default application condition, described side Method also includes:
For the process degree of establishment parameter that described application request is corresponding;
Described wake up lock up for described process application, the relevant information write lock listing file of lock will be waken up up particularly as follows: by institute State the level parameters write lock listing file waking up process corresponding to lock up;
Described according to described lock listing file, detection wakes up process corresponding to lock up, and whether to be in abnormal operating condition concrete For: according to the level parameters waking up process corresponding to lock up in described lock listing file, whether detection wakes up process corresponding to lock up It is in abnormal operating condition.
B7, a kind of terminal power optimize device, including:
Module is set, is suitable to arrange in systems the locking mechanism of terminal applies;
Judge module, is suitable to when the application request waking up lock for application up that the process that receives sends, it is judged that described Shen Please ask whether to meet default application condition;
Application module, if being suitable to described judge module to judge that obtaining described application request meets default application condition, then be Described process application wakes up lock up, and the relevant information waking up lock up is write lock listing file;
Refusal module, if being suitable to described judge module to judge that obtaining described application request does not meets default application condition, then Refusal wakes up lock up for described process application.
B8, according to the device described in B7, the described module that arranges is further adapted for: at ccf layer, the operation system of amendment terminal The power management services of system;
Described judge module is further adapted for: receive waking up up for application of process transmission in described power management services When the application of lock is asked, it is judged that whether described application request meets default application condition.
B9, according to the device described in B8, the locking mechanism of described terminal applies includes: wake up lock distribution mechanism up;
The described module that arranges is further adapted for: at ccf layer, increase waking up up in lock distribution mechanism of power management services Preset white list;
Described judge module is further adapted for: receive waking up up for application of process transmission in described power management services When the application of lock is asked, it is judged that whether the process of described application request correspondence belongs to default white list.
B10, according to the device described in any one of B7-B9, described application module is further adapted for:
Wake up the lock name of lock according to the name of default naming rule up, and wake up the title of process corresponding to lock, lock name up by described And wake up lock characteristic write lock listing file up.
B11, according to the device described in any one of B7-B10, described device also includes:
Detection module, is suitable to according to described lock listing file, and whether the process that detection wakes up lock up corresponding is in misoperation State;
Release module, if being suitable to the process that the detection of described detection module obtains waking up up lock corresponding to be in abnormal operating condition, Then wake up lock up described in release.
B12, according to the device described in B11, the described module that arranges is further adapted for: for the process that described application request is corresponding Degree of establishment parameter;
Described application module is further adapted for: by the described level parameters write lock list literary composition waking up process corresponding to lock up Part;
Described detection module is further adapted for: according to the rank ginseng of process corresponding to lock that wake up up in described lock listing file Number, whether the process that detection wakes up lock up corresponding is in abnormal operating condition.
C13, a kind of terminal, optimize device including the terminal power as described in any one of B7-B12.

Claims (10)

1. a terminal power optimization method, including:
The locking mechanism of terminal applies is set in systems, when the application request waking up lock for application up that the process that receives sends Time, it is judged that whether described application request meets default application condition;
If judging, obtaining described application request meets default application condition, then wake up lock up for described process application, will wake up lock up Relevant information write lock listing file;
If judging, obtaining described application request does not meets default application condition, then refusal wakes up lock up for described process application.
Method the most according to claim 1, the described locking mechanism arranging terminal applies in systems, when receiving process During the application request waking up lock for application up sent, it is judged that whether described application request meets default application condition is wrapped further Include: in ccf layer, the power management services of the operating system of amendment terminal so that receive process in described power management services During the application request waking up lock for application up sent, it is judged that whether described application request meets default application condition.
Method the most according to claim 2, the locking mechanism of described terminal applies includes: wake up lock distribution mechanism up;
Described in ccf layer, the power management services of the operating system of amendment terminal so that receive in described power management services When the application being used for applying for waking up lock up to process transmission is asked, it is judged that whether described application request meets default application condition has Body is: at ccf layer, increase default white list waking up up of power management services so that at described power supply pipe in lock distribution mechanism When the service of managing receives the application request waking up lock for application up that process sends, it is judged that the process of described application request correspondence is No belong to default white list.
4. according to the method described in any one of claim 1-3, described wake up lock up for described process application, the relevant of lock will be waken up up Information write lock listing file farther includes:
Wake up the lock name of lock up according to the name of default naming rule, and by described wake up up the title of process corresponding to lock, lock name and Wake up lock characteristic write lock listing file up.
5., according to the method described in any one of claim 1-4, described, the relevant information waking up lock up is write lock listing file Afterwards, described method also includes:
According to described lock listing file, whether the process that detection wakes up lock up corresponding is in abnormal operating condition;
If the process that detection obtains waking up lock up corresponding is in abnormal operating condition, then wake up lock up described in release.
Method the most according to claim 5, after judging that obtaining described application request meets default application condition, described Method also includes:
For the process degree of establishment parameter that described application request is corresponding;
Described wake up lock up for described process application, the relevant information write lock listing file of lock will be waken up up particularly as follows: call out described The level parameters write lock listing file of the process that lock of waking up is corresponding;
Described according to described lock listing file, detection wakes up whether process corresponding to lock is in abnormal operating condition particularly as follows: root up According to the level parameters waking up process corresponding to lock up in described lock listing file, whether the process that detection wakes up lock up corresponding is in different Often running status.
7. terminal power optimizes a device, including:
Module is set, is suitable to arrange in systems the locking mechanism of terminal applies;
Judge module, is suitable to when the application request waking up lock for application up that the process that receives sends, it is judged that described application please Seeking Truth is no meets default application condition;
Application module, if being suitable to described judge module to judge that obtaining described application request meets default application condition, is then described Process application wakes up lock up, and the relevant information waking up lock up is write lock listing file;
Refusal module, if being suitable to described judge module to judge that obtaining described application request does not meets default application condition, then refuse Lock is waken up up for described process application.
Device the most according to claim 7, the described module that arranges is further adapted for: in ccf layer, the operation of amendment terminal The power management services of system;
Described judge module is further adapted for: described power management services receive process send for application wake up lock up During application request, it is judged that whether described application request meets default application condition.
Device the most according to claim 8, the locking mechanism of described terminal applies includes: wake up lock distribution mechanism up;
The described module that arranges is further adapted for: at ccf layer, the increase in lock distribution mechanism that wakes up up in power management services is preset White list;
Described judge module is further adapted for: described power management services receive process send for application wake up lock up During application request, it is judged that whether the process of described application request correspondence belongs to default white list.
10. a terminal, optimizes device including the terminal power as described in any one of claim 7-9.
CN201610474587.9A 2016-06-24 2016-06-24 Terminal power optimization method, device and terminal Pending CN106125891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610474587.9A CN106125891A (en) 2016-06-24 2016-06-24 Terminal power optimization method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610474587.9A CN106125891A (en) 2016-06-24 2016-06-24 Terminal power optimization method, device and terminal

Publications (1)

Publication Number Publication Date
CN106125891A true CN106125891A (en) 2016-11-16

Family

ID=57265559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610474587.9A Pending CN106125891A (en) 2016-06-24 2016-06-24 Terminal power optimization method, device and terminal

Country Status (1)

Country Link
CN (1) CN106125891A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121570A (en) * 2017-12-21 2018-06-05 深圳市沃特沃德股份有限公司 The method and apparatus of onboard system dormancy
CN108848417A (en) * 2018-07-20 2018-11-20 晶晨半导体(上海)股份有限公司 Wake up the control method and control system of lock
CN109412891A (en) * 2018-10-19 2019-03-01 郑州云海信息技术有限公司 A kind of method and apparatus detecting client state
CN110572866A (en) * 2019-07-26 2019-12-13 华为技术有限公司 Management method of wake-up lock and electronic equipment
CN110688165A (en) * 2019-09-26 2020-01-14 珠海市魅族科技有限公司 Application wake-up lock management method and device, terminal, storage medium and electronic device
CN110837290A (en) * 2019-09-30 2020-02-25 华为终端有限公司 Management method of kernel lock and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014075722A (en) * 2012-10-05 2014-04-24 Sharp Corp Portable terminal device
CN104221445A (en) * 2013-11-15 2014-12-17 华为终端有限公司 Method for waking up terminal system and terminal
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105306743A (en) * 2015-09-30 2016-02-03 小米科技有限责任公司 Screen control method and device
CN105474125A (en) * 2013-09-27 2016-04-06 英特尔公司 Techniques for tracing wakelock usage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014075722A (en) * 2012-10-05 2014-04-24 Sharp Corp Portable terminal device
CN105474125A (en) * 2013-09-27 2016-04-06 英特尔公司 Techniques for tracing wakelock usage
CN104221445A (en) * 2013-11-15 2014-12-17 华为终端有限公司 Method for waking up terminal system and terminal
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105306743A (en) * 2015-09-30 2016-02-03 小米科技有限责任公司 Screen control method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121570A (en) * 2017-12-21 2018-06-05 深圳市沃特沃德股份有限公司 The method and apparatus of onboard system dormancy
CN108121570B (en) * 2017-12-21 2021-01-19 深圳市沃特沃德股份有限公司 Method and device for sleeping vehicle-mounted system
CN108848417A (en) * 2018-07-20 2018-11-20 晶晨半导体(上海)股份有限公司 Wake up the control method and control system of lock
CN109412891A (en) * 2018-10-19 2019-03-01 郑州云海信息技术有限公司 A kind of method and apparatus detecting client state
CN109412891B (en) * 2018-10-19 2022-04-22 郑州云海信息技术有限公司 Method and device for detecting client state
CN110572866A (en) * 2019-07-26 2019-12-13 华为技术有限公司 Management method of wake-up lock and electronic equipment
WO2021017935A1 (en) * 2019-07-26 2021-02-04 华为技术有限公司 Wakelock management method and electronic device
CN110688165A (en) * 2019-09-26 2020-01-14 珠海市魅族科技有限公司 Application wake-up lock management method and device, terminal, storage medium and electronic device
CN110837290A (en) * 2019-09-30 2020-02-25 华为终端有限公司 Management method of kernel lock and terminal equipment

Similar Documents

Publication Publication Date Title
CN106125891A (en) Terminal power optimization method, device and terminal
CN104221445B (en) A kind of method and terminal waking up terminal system
CN103942061B (en) Battery firmware updating method, portable electronic device and rechargeable battery module
CN105183137A (en) Mobile terminal and wake lock control method and system thereof
CN106534277A (en) Data sharing method and device
CN106055077A (en) Wake-up lock-based processing method and device
US20130055271A1 (en) Apparatus and method for controlling polling
CN103118188A (en) Application heartbeat cycle adjusting method and device, and terminal
CN102105848A (en) A resource manager for managing hardware resources
CN106569585A (en) Method and terminal of managing application program process
CN105224421B (en) Data backup method and device and electronic equipment
CN106168902A (en) Awakening control method, device and equipment
CN109409096A (en) Kernel loophole restorative procedure, device, server and system
CN105388991A (en) Timing wake-up processing system and method
CN107608724A (en) A kind of method, terminal and computer-readable recording medium for managing application program
CN103577749A (en) Method and device for processing notification column message
CN110928685A (en) Intelligent cooperative computing system and method
CN105867577A (en) Terminal awakening method and terminal
CN106293709A (en) The management method of application program, managing device and terminal
CN105824660A (en) Application program updating method and terminal
CN107783633A (en) A kind of method, terminal and computer-readable recording medium for managing application program
CN107292613A (en) Mobile payment means of defence, device and mobile terminal
CN116719586B (en) Software module calling method, device, equipment, storage medium and program product
CN106095412A (en) The method for closing of a kind of application program and device
CN105446691A (en) Mobile terminal and system parameter information showing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161116

RJ01 Rejection of invention patent application after publication