CN107885308A - Electricity saving method and device - Google Patents

Electricity saving method and device Download PDF

Info

Publication number
CN107885308A
CN107885308A CN201610875926.4A CN201610875926A CN107885308A CN 107885308 A CN107885308 A CN 107885308A CN 201610875926 A CN201610875926 A CN 201610875926A CN 107885308 A CN107885308 A CN 107885308A
Authority
CN
China
Prior art keywords
wakelock
application
program
module
time
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
CN201610875926.4A
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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610875926.4A priority Critical patent/CN107885308A/en
Publication of CN107885308A publication Critical patent/CN107885308A/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
    • 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/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure is directed to a kind of electricity saving method and device.Methods described includes:It is determined that whether the time for closing screen exceedes preset time threshold;Exceed preset time threshold if turned off the time of screen, it is determined that whether the program that application wakes up lock wakelock is pre-set programs;If application wakelock program is pre-set programs, application for execution wakelock operation;If the program for applying for wakelock is not pre-set programs, refusal application for execution wakelock operation.Disclosed technique scheme can be it is possible thereby to reduce quantity and the time for the program for holding wakelock, to substantially reduce equipment power dissipation, extension device cruising time.

Description

Electricity saving method and device
Technical field
This disclosure relates to electronic technology field, more particularly to a kind of electricity saving method and device.
Background technology
With the fast development of Internet technology, user often installs in mobile device, such as smart mobile phone, tablet personal computer Various applications (Application, APP) are to realize various application functions, accompanying problem is that even if user's pass hull closure Screen, any operation is not performed to equipment, the electricity of mobile device is as there is APP to need PUSH message and apply Wakelock, and then cause system to be unable to dormancy, electric quantity consumption quickly, can also substantially reduce the cruising time of equipment.
The content of the invention
To overcome problem present in correlation technique, the embodiment of the present disclosure provides a kind of electricity saving method and device, to prolong The cruising time of long mobile device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of electricity saving method, including:
It is determined that whether the time for closing screen exceedes preset time threshold;
Exceed preset time threshold if turned off the time of screen, it is determined that whether is application wake-up lock wakelock program For pre-set programs;
If application wakelock program is pre-set programs, application for execution wakelock operation;
If the program for applying for wakelock is not pre-set programs, refusal application for execution wakelock operation.
In one embodiment, it is determined that whether the program that application wakes up lock wakelock is pre-set programs, it may include:
Whether the program that application wakelock is determined by polling routine white list is pre-set programs, described program white list Wakelock program can be applied for for recording.
In one embodiment, method may also include:
Count each program application wakelock number and the time for holding wakelock in the first preset time period;
Wakelock application hint messages are generated, the wakelock application hint messages include each described program Shen Please wakelock number and hold wakelock time;
Receive the feedback information that user inputs according to the wakelock application hint messages;
According to the feedback information, described program white list is updated.
In one embodiment, method may also include:
Count each program application wakelock number and the time for holding wakelock in the second preset time period;
Wakelock application instruction message is sent to server, the wakelock applications instruction message carries described every One program application wakelock number and the time for holding wakelock;
Receive the wakelock that the server is sent according to all devices received in second preset time period The program white list determined using instruction message;
The program white list being locally stored based on the described program white list updating received.
In one embodiment, it is determined that whether the time for closing screen exceedes preset time threshold, it may include:
When screen is closed, the timer of a preset time threshold length is set;
By determining whether time-out determines whether the time for closing screen exceedes preset time threshold to the timer.
In one embodiment, application for execution wakelock operation, it may include:
Application wakelock message is sent to low layer program;
When successfully applying for wakelock, accreditation process successfully applies for wakelock event in kernel.
In one embodiment, application for execution wakelock operation is refused, it may include:
Refuse to send the message for applying for wakelock to low layer program, and application is returned to application wakelock program The instruction message of failure.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of electricity saver, it may include:
Screen time determining module is closed, is configured to determine that whether the time for closing screen exceedes preset time threshold;
Program determining module, it is configured as determining to close the time of screen more than default in the screen time determining module of closing During time threshold, it is determined that whether the program that application wakes up lock wakelock is pre-set programs;
Apply for module, be configured as determining that application wakelock program is pre-set programs in described program determining module When, application for execution wakelock operation;
Refuse an application module, is configured as determining that application wakelock program is not default in described program determining module During program, refusal application for execution wakelock operation.
In one embodiment, program determining module may include:
Submodule is inquired about, is configured as determining whether application wakelock program is default by polling routine white list Program, described program white list are used to record the program that can apply for wakelock.
In one embodiment, device may also include:
First statistical module, it is configured as counting the number of each program application wakelock in the first preset time period With the time for holding wakelock;
Reminding module, it is configurable to generate wakelock application hint messages, the wakelock application hint messages bag Include the number for each program application wakelock that first statistical module counts obtain and hold wakelock's Time;
Feedback module, it is configured as receiving the wakelock Application Hints letter that user generates according to the reminding module Cease the feedback information of input;
First update module, the feedback information received according to the feedback module is configured as, updates the journey Sequence white list.
In one embodiment, device may also include:
Second statistical module, it is configured as counting the number of each program application wakelock in the second preset time period With the time for holding wakelock;
Sending module, it is configured as sending wakelock application instruction message to server, the wakelock applications refer to Show message carry second statistical module counts to each program application wakelock number and hold Wakelock time;
Receiving module, it is configured as receiving the server and all is set according to what is received in second preset time period The program white list that the wakelock application instruction message that preparation is sent determines;
Second update module, the described program white list updating for being configured as being received based on the receiving module are locally deposited The program white list of storage.
In one embodiment, closing screen time determining module includes:
Submodule is set, is configured as when screen is closed, the timer of a preset time threshold length is set;
Overtime determination sub-module, it is configured as by determining whether the timer that the setting submodule is set is overtime Determine whether the time of the closing screen exceedes preset time threshold.
In one embodiment, application module includes:
Application submodule, it is configured as sending application wakelock message to low layer program;
Submodule is registered, is configured as, when the application submodule successfully applies for wakelock, journey being registered in kernel Sequence successfully applies for wakelock event.
In one embodiment, the module that refuses an application includes:
Refuse submodule, be configured as the message that refusal sends application wakelock to low layer program, and to application Wakelock program returns to the instruction message of application failure.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of electricity saver, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
It is determined that whether the time for closing screen exceedes preset time threshold;
Exceed preset time threshold if turned off the time of screen, it is determined that whether is application wake-up lock wakelock program For pre-set programs;
If application wakelock program is pre-set programs, application for execution wakelock operation;
If the program for applying for wakelock is not pre-set programs, refusal application for execution wakelock operation.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Exceed preset time threshold when the time for closing screen, such as at one minute, system can be to application wakelock Program be monitored, and application wakelock program be pre-set programs, such as the program in program white list or service When application for execution wakelock operation, when it is not pre-set programs to apply for wakelock program, refuse an application wakelock, It is possible thereby to reduce quantity and the time for the program for holding wakelock, equipment power dissipation, extension device cruising time are substantially reduced.
Also, by the way that each program application wakelock number in the first preset time period and wakelock will be held Time be pushed to user, can determine which program program white list includes by user, improve the experience of user.
By the number of each program application wakelock in the second preset time period and will hold wakelock's Time is pushed to server, the program Shen that server can be allowed to be incorporated in all devices received in the second preset time period Please wakelock number and hold wakelock time, and program white list is determined based on these data, with reference to multiple The application wakelock of equipment number and the referential for holding program white list determined by wakelock time are stronger.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Figure 1A is the flow chart of the electricity saving method according to an exemplary embodiment.
Figure 1B is the scene graph of the electricity saving method according to an exemplary embodiment.
Fig. 2A is the flow chart of the method for the more new procedures white list according to an exemplary embodiment one.
Fig. 2 B are the schematic diagrames of the wakelock application hint messages according to an exemplary embodiment one.
Fig. 3 is the flow chart of the method for the more new procedures white list according to an exemplary embodiment two.
Fig. 4 is a kind of block diagram of electricity saver according to an exemplary embodiment.
Fig. 5 is the block diagram of another electricity saver according to an exemplary embodiment.
Fig. 6 is a kind of block diagram suitable for electricity saver according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, of the invention.
Figure 1A is the flow chart of the electricity saving method according to an exemplary embodiment, and Figure 1B is according to an exemplary implementation The scene graph of the electricity saving method exemplified;The electricity saving method can be applied in mobile device, on smart mobile phone, tablet personal computer, As shown in Figure 1A, the electricity saving method comprises the following steps 101-104:
In a step 101, it is determined that whether the time for closing screen exceedes preset time threshold.
In one embodiment, can by when screen is closed set a preset time threshold length timer, such as Fruit timer expiry, then it can determine that the time for closing screen exceedes preset time threshold.
In one embodiment, preset time threshold can be one 30 seconds, the time interval of 1 minute etc., preset time Threshold value can be by default.
In one embodiment, screen can be closed by the physical button triggering of shutdown by user;In another embodiment, also Screen can be closed automatically when being not received by the operation of user for a long time.
In a step 102, preset time threshold is exceeded if turned off the time of screen, it is determined that apply for wakelock journey Whether sequence is pre-set programs, if application wakelock program is pre-set programs, performs step 103, if application Wakelock program is not pre-set programs, then performs step 104.
In one embodiment, can be determined by way of polling routine white list apply wakelock program whether For pre-set programs.
In one embodiment, program white list can be set by power management services module, and close screen when Between when exceeding preset time threshold, power management services module performs the program for determining application wakelock according to program white list Whether be pre-set programs operation.
In one embodiment, program white list can be updated by way of Fig. 2A and Fig. 3, be not described in detail first here.
In step 103, application for execution wakelock operation.
In one embodiment, application wakelock message can be sent to low layer program, and successfully applied During wakelock, accreditation process successfully applies for wakelock event in kernel.
In one embodiment, application for execution wakelock operation may be referred to the scheme of correlation technique, no longer detailed here State.
At step 104, application for execution wakelock operation is refused.
In one embodiment, can be by refusing to send the message for applying for wakelock to low layer program, and directly return The instruction message of application failure is returned to complete refusal application for execution wakelock operation.
, as shown in Figure 1B, can when mobile device 11, which closes screen, exceedes preset time threshold in an exemplary scenario Whether the program for determining to apply wakelock by way of polling routine white list is pre-set programs, and is refused to not being The program of pre-set programs provides wakelock.Wherein, program white list can be by server 12 according to every in multiple mobile devices Individual program application wakelock number and the time determination for holding wakelock.Mobile device also can be carried periodically to server 12 For each program application wakelock number in preset time period and the situation for the time for holding wakelock, by server more New procedures white list so that program white list is with more ageing.
In the present embodiment, exceed preset time threshold when the time for closing screen, such as at one minute, system can be to Shen Please wakelock program be monitored, and be pre-set programs in application wakelock program, such as the journey in program white list Application for execution wakelock operation when sequence or service, when application wakelock program is not pre-set programs, refuse Shen Please wakelock, it is possible thereby to reduce quantity and the time for the program for holding wakelock, substantially reduce equipment power dissipation, extension is set Standby cruising time.
In one embodiment, it is determined that whether the program that application wakes up lock wakelock is pre-set programs, it may include:
Whether the program that application wakelock is determined by polling routine white list is pre-set programs, and program white list is used for Record can apply for wakelock program.
In one embodiment, method may also include:
Count each program application wakelock number and the time for holding wakelock in the first preset time period;
Wakelock application hint messages are generated, wakelock application hint messages include each program application Wakelock number and the time for holding wakelock;
Receive the feedback information that user inputs according to wakelock application hint messages;
According to feedback information, more new procedures white list.
In one embodiment, method may also include:
Count each program application wakelock number and the time for holding wakelock in the second preset time period;
Wakelock application instruction message is sent to server, wakelock application instruction message carries each program Apply for wakelock number and hold wakelock time;
The wakelock application instructions that the reception server is sent according to all devices received in the second preset time period The program white list that message determines;
The program white list being locally stored based on the program white list updating received.
In one embodiment, it is determined that whether the time for closing screen exceedes preset time threshold, it may include:
When screen is closed, the timer of a preset time threshold length is set;
By determining whether the time that time-out determines to close screen exceedes preset time threshold to timer.
In one embodiment, application for execution wakelock operation, it may include:
Application wakelock message is sent to low layer program;
When successfully applying for wakelock, accreditation process successfully applies for wakelock event in kernel.
In one embodiment, application for execution wakelock operation is refused, it may include:
Refuse to send the message for applying for wakelock to low layer program, and application is returned to application wakelock program The instruction message of failure.
It is specific how to be defined application to wakelock by pre-set programs to extend mobile device cruising time, It refer to subsequent embodiment.
So far, the embodiment of the present disclosure provide the above method, it is possible to reduce hold wakelock program quantity and when Between, substantially reduce equipment power dissipation, extension device cruising time.
The technical scheme of embodiment of the present disclosure offer is provided with specific embodiment below.
Fig. 2A is the flow chart of the method for the more new procedures white list according to an exemplary embodiment one, and Fig. 2 B are roots According to the schematic diagram of the wakelock application hint messages shown in an exemplary embodiment one;The present embodiment utilizes the embodiment of the present disclosure The above method of offer, it is illustrative by taking how more new procedures white list as an example, as shown in Figure 2 A, including following step Suddenly:
In step 201, count each program application wakelock number in the first preset time period and hold Wakelock time.
In one embodiment, the time point of a new application program can be every time installed with user, pacified every time Fill in the first preset time period that time point of a new application program starts (for example, in one week), mobile device is closed Number of the screen more than each program application wakelock after preset time threshold and the time progress for holding wakelock Statistics.
In another embodiment, each first preset time period can also be counted during user uses mobile device Interior each program application wakelock number and the time for holding wakelock.
In step 202, wakelock application hint messages are generated, wakelock application hint messages include each journey Sequence application wakelock number and the time for holding wakelock.
In one embodiment, when user opens screen, wakelock application hint messages can be pushed to user, for example, In informing sending out notice message, notify each application program wakelock number in one day and hold wakelock Time, such as the informing message shown in display Fig. 2 B, which show each application program or service routine application Wakelock number and the time for holding wakelock, and corresponding program can also be provided and closed in the period of screen Power consumption information.
In one embodiment, the letter of similar " being added to white list " or " being added to blacklist " can also be shown in Fig. 2 B Breath, in one embodiment, " being added to blacklist " are used to represent not allowing program to apply for wakelock after screen is closed.
In step 203, the feedback information that user inputs according to wakelock application hint messages is received.
In one embodiment, user can be according to wakelock application hint message input feedback information, for example, in wechat Clicked on the wakelock data entries of program, select by wechat program be arranged to refuse an application wakelock program or will It is added in program white list, and corresponding feedback information can be inputted according to the operation of user.
In step 204, according to feedback information, more new procedures white list.
In one embodiment, wechat program, " is added to by the feedback information that can be inputted according to user for example, if receiving In program white list " feedback information, then can by wechat program be added to program white list in, namely allow wechat program closing Apply for wakelock after closing screen.
In the present embodiment, by that each program application wakelock number in the first preset time period and will hold Wakelock time is pushed to user, can determine which program program white list includes by user, improve user's Experience.
Fig. 3 is the flow chart of the method for the more new procedures white list according to an exemplary embodiment two;The present embodiment Using the embodiment of the present disclosure provide the above method, with how more new procedures white list and combine Figure 1B it is illustrative, As shown in figure 3, comprise the following steps:
In step 301, count each program application wakelock number in the second preset time period and hold Wakelock time.
In one embodiment, the time point of a new application program can be every time installed with user, pacified every time Fill in the second preset time period that time point of a new application program starts (for example, in one week), mobile device is closed Number of the screen more than each program application wakelock after preset time threshold and the time progress for holding wakelock Statistics.
In another embodiment, each second preset time period can also be counted during user uses mobile device Interior each program application wakelock number and the time for holding wakelock.
In step 302, wakelock application instruction message is sent to server, wakelock application instruction message carries There is each program application wakelock number and hold wakelock time.
In step 303, the reception server is sent according to all devices received in the second preset time period The program white list that wakelock application instruction message determines.
In one embodiment, server can be according to the wakelock application instruction message received in the second preset time period Determine that every kind of program applies for wakelock number and holds wakelock time recently, and then determine to be adapted to application Wakelock program, such as application wakelock number and to hold wakelock time be not too many program.
In one embodiment, because the program run in each mobile device is not fully identical, therefore can be according to every The program run in mobile device corresponding to the wakelock application instruction message determinations that one mobile device is sent, then to shifting Program white list corresponding to dynamic equipment return, such as:If do not wrapped in the wakelock application instruction message that mobile device A is sent The application wakelock of " bucket fish " live program information is included, then can determine to be likely to be fitted without " bucket in mobile device A The live program of fish ", therefore the wakelock application instruction message that server is sent according to all mobile devices beyond the clouds determines , can not also be in mobile device A program white list be returned to when the program white list gone out includes " bucket fish " live program Including " bucket fish " live program;In another embodiment, even if determining to be likely in mobile device A to be fitted without " bucket fish " live Program, if the program that the wakelock application instruction message that server is sent according to all mobile devices beyond the clouds is determined White list includes " bucket fish " live program, and it is straight that " bucket fish " can also be included in the program white list for returning to mobile device A Broadcast program.
In step 304, the program white list being locally stored based on the program white list updating received.
In one embodiment, if the program white list received includes the program being fitted without in this mobile device When, corresponding program in the program white list received can be deleted, the program white list being locally stored is updated with this.
In the present embodiment, by that the number of each program application wakelock in the second preset time period and will hold Wakelock time is pushed to server, and server can be allowed to be incorporated in all devices received in the second preset time period Interior program application wakelock number and the time for holding wakelock, and determine the white name of program based on these data It is single, with reference to multiple equipment apply wakelock number with hold wakelock time determined by program white list ginseng The property examined is stronger.
Fig. 4 is a kind of block diagram of electricity saver according to an exemplary embodiment, as shown in figure 4, electricity saver bag Include:
Screen time determining module 410 is closed, is configured to determine that whether the time for closing screen exceedes preset time threshold;
Program determining module 420, it is configured as closing the time of the determination closing screen of screen time determining module 410 more than pre- If during time threshold, it is determined that whether the program that application wakes up lock wakelock is pre-set programs;
Apply for module 430, be configured as determining that application wakelock program is pre-set programs in program determining module 420 When, application for execution wakelock operation;
The module that refuses an application 440, it is configured as determining that application wakelock program is not pre- in program determining module 420 If during program, refusal application for execution wakelock operation.
Fig. 5 is the block diagram of another electricity saver according to an exemplary embodiment, as shown in figure 5, in above-mentioned Fig. 4 On the basis of illustrated embodiment, in one embodiment, program determining module 420 may include:
Inquire about submodule 421, be configured as by polling routine white list determine application wakelock program whether be Pre-set programs, program white list are used to record the program that can apply for wakelock.
In one embodiment, device may also include:
First statistical module 450, it is configured as counting each program application wakelock in the first preset time period Number and the time for holding wakelock;
Reminding module 460, is configurable to generate wakelock application hint messages, and wakelock application hint messages include The number for each program application wakelock that first statistical module 450 statistics obtains and the time for holding wakelock;
Feedback module 470, it is configured as receiving the wakelock application hint messages that user generates according to reminding module 460 The feedback information of input;
First update module 480, it is configured as the feedback information received according to feedback module 470, the white name of more new procedures It is single.
In one embodiment, device may also include:
Second statistical module 490, it is configured as counting each program application wakelock in the second preset time period Number and the time for holding wakelock;
Sending module 500, it is configured as sending wakelock application instruction message, wakelock application instructions to server Message carries the number for each program application wakelock that the second statistical module 490 counts on and holds wakelock's Time;
Receiving module 510, it is configured as the reception server and is sent out according to all devices received in the second preset time period The program white list that the wakelock application instruction message sent determines;
Second update module 520, the program white list updating for being configured as being received based on receiving module 510 are locally stored Program white list.
In one embodiment, closing screen time determining module 410 includes:
Submodule 411 is set, is configured as when screen is closed, the timer of a preset time threshold length is set;
Overtime determination sub-module 412, it is configured as determining by the way that whether the timer for determining to set submodule to set is overtime Whether the time for closing screen exceedes preset time threshold.
In one embodiment, application module 430 includes:
Application submodule 431, it is configured as sending application wakelock message to low layer program;
Submodule 432 is registered, is configured as when application submodule successfully applies for wakelock, the accreditation process in kernel Wakelock event is applied in success.
In one embodiment, the module that refuses an application 440 includes:
Refuse submodule 441, be configured as the message that refusal sends application wakelock to low layer program, and to application Wakelock program returns to the instruction message of application failure.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 6 is a kind of block diagram suitable for electricity saver according to an exemplary embodiment.For example, device 600 can To be smart mobile phone, tablet personal computer etc..
Reference picture 6, device 600 can include following one or more assemblies:Processing component 602, memory 604, power supply Component 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of input/output (I/O), sensor cluster 614, and Communication component 616.
The integrated operation of the usual control device 600 of processing component 602, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Treatment element 602 can refer to including one or more processors 620 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 602 can include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 can include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in equipment 600.These data are shown Example includes the instruction of any application program or method for being operated on device 600, contact data, telephone book data, disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 606 provides electric power for the various assemblies of device 600.Electric power assembly 606 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 600.
Multimedia groupware 608 is included in the screen of one output interface of offer between described device 600 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 608 includes a front camera and/or rear camera.When equipment 600 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 610 is configured as output and/or input audio signal.For example, audio-frequency assembly 610 includes a Mike Wind (MIC), when device 600 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 604 or via communication set Part 616 is sent.In certain embodiments, audio-frequency assembly 610 also includes a loudspeaker, for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented Estimate.For example, sensor cluster 614 can detect opening/closed mode of equipment 600, and the relative positioning of component, for example, it is described Component is the display and keypad of device 600, and sensor cluster 614 can be with 600 1 components of detection means 600 or device Position change, the existence or non-existence that user contacts with device 600, the orientation of device 600 or acceleration/deceleration and device 600 Temperature change.Sensor cluster 614 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 614 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 614 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 616 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 616 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 604 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 620 of device 600.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (15)

1. a kind of electricity saving method, it is characterised in that methods described includes:
It is determined that whether the time for closing screen exceedes preset time threshold;
Exceed preset time threshold if turned off the time of screen, it is determined that whether the program that application wakes up lock wakelock is pre- If program;
If application wakelock program is pre-set programs, application for execution wakelock operation;
If the program for applying for wakelock is not pre-set programs, refusal application for execution wakelock operation.
2. according to the method for claim 1, it is characterised in that whether the program for determining application wake-up lock wakelock For pre-set programs, including:
Whether the program that application wakelock is determined by polling routine white list is pre-set programs, and described program white list is used for Record can apply for wakelock program.
3. according to the method for claim 2, it is characterised in that methods described also includes:
Count each program application wakelock number and the time for holding wakelock in the first preset time period;
Wakelock application hint messages are generated, the wakelock application hint messages include each described program application Wakelock number and the time for holding wakelock;
Receive the feedback information that user inputs according to the wakelock application hint messages;
According to the feedback information, described program white list is updated.
4. according to the method for claim 2, it is characterised in that methods described also includes:
Count each program application wakelock number and the time for holding wakelock in the second preset time period;
Send wakelock application instruction message to server, wakelock application instruction message carry it is described each Program application wakelock number and the time for holding wakelock;
The wakelock that the server is sent according to all devices received in second preset time period is received to apply Indicate the program white list that message determines;
The program white list being locally stored based on the described program white list updating received.
5. according to the method for claim 1, it is characterised in that when whether the time for determining closing screen exceedes default Between threshold value, including:
When screen is closed, the timer of a preset time threshold length is set;
By determining whether time-out determines whether the time for closing screen exceedes preset time threshold to the timer.
6. according to the method for claim 1, it is characterised in that the operation of the application for execution wakelock, including:
Application wakelock message is sent to low layer program;
When successfully applying for wakelock, accreditation process successfully applies for wakelock event in kernel.
7. according to the method for claim 1, it is characterised in that the operation of the refusal application for execution wakelock, including:
Refuse to send the message for applying for wakelock to low layer program, and application failure is returned to application wakelock program Instruction message.
8. a kind of electricity saver, it is characterised in that described device includes:
Screen time determining module is closed, is configured to determine that whether the time for closing screen exceedes preset time threshold;
Program determining module, it is configured as determining that the time of closing screen exceedes preset time in the screen time determining module of closing During threshold value, it is determined that whether the program that application wakes up lock wakelock is pre-set programs;
Apply for module, be configured as, when it is pre-set programs that described program determining module, which determines application wakelock program, holding Row application wakelock operation;
Refuse an application module, is configured as determining that application wakelock program is not pre-set programs in described program determining module When, refusal application for execution wakelock operation.
9. device according to claim 8, it is characterised in that described program determining module includes:
Submodule is inquired about, is configured as determining whether application wakelock program is default journey by polling routine white list Sequence, described program white list are used to record the program that can apply for wakelock.
10. device according to claim 9, it is characterised in that described device also includes:
First statistical module, it is configured as counting each program application wakelock number in the first preset time period and holds There is wakelock time;
Reminding module, is configurable to generate wakelock application hint messages, and the wakelock application hint messages include institute State the number for each program application wakelock that the first statistical module counts obtain and hold wakelock time;
Feedback module, it is defeated to be configured as the wakelock application hint messages that reception user generates according to the reminding module The feedback information entered;
First update module, is configured as the feedback information received according to the feedback module, and renewal described program is white List.
11. device according to claim 9, it is characterised in that described device also includes:
Second statistical module, it is configured as counting each program application wakelock number in the second preset time period and holds There is wakelock time;
Sending module, it is configured as sending wakelock application instruction message to server, the wakelock applications instruction disappears Breath carry second statistical module counts to each program application wakelock number and hold Wakelock time;
Receiving module, it is configured as receiving the server according to all devices hair received in second preset time period The program white list that the wakelock application instruction message sent determines;
Second update module, what the described program white list updating for being configured as being received based on the receiving module was locally stored Program white list.
12. device according to claim 8, it is characterised in that the screen time determining module of closing includes:
Submodule is set, is configured as when screen is closed, the timer of a preset time threshold length is set;
Overtime determination sub-module, it is configured as by determining whether time-out determines the timer of the setting submodule setting Whether the time for closing screen exceedes preset time threshold.
13. device according to claim 8, it is characterised in that the application module includes:
Application submodule, it is configured as sending application wakelock message to low layer program;
Register submodule, be configured as when the application submodule successfully applies for wakelock, in kernel accreditation process into Work(application wakelock event.
14. device according to claim 8, it is characterised in that the module that refuses an application includes:
Refuse submodule, be configured as the message that refusal sends application wakelock to low layer program, and to application Wakelock program returns to the instruction message of application failure.
15. a kind of electricity saver, it is characterised in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
It is determined that whether the time for closing screen exceedes preset time threshold;
Exceed preset time threshold if turned off the time of screen, it is determined that whether the program that application wakes up lock wakelock is pre- If program;
If application wakelock program is pre-set programs, application for execution wakelock operation;
If the program for applying for wakelock is not pre-set programs, refusal application for execution wakelock operation.
CN201610875926.4A 2016-09-30 2016-09-30 Electricity saving method and device Pending CN107885308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610875926.4A CN107885308A (en) 2016-09-30 2016-09-30 Electricity saving method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610875926.4A CN107885308A (en) 2016-09-30 2016-09-30 Electricity saving method and device

Publications (1)

Publication Number Publication Date
CN107885308A true CN107885308A (en) 2018-04-06

Family

ID=61769756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610875926.4A Pending CN107885308A (en) 2016-09-30 2016-09-30 Electricity saving method and device

Country Status (1)

Country Link
CN (1) CN107885308A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189196A (en) * 2018-08-01 2019-01-11 北京珠穆朗玛移动通信有限公司 Management method, terminal device and the device of terminal device
CN111045507A (en) * 2019-11-27 2020-04-21 RealMe重庆移动通信有限公司 List management and control method, device, mobile terminal and storage medium
CN112035242A (en) * 2020-11-06 2020-12-04 南京研利科技有限公司 Method for playing push message, computing device and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402027A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Mobile terminal and method for putting same into sleeping state
CN104156053A (en) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 Abnormal power consumption control method, abnormal power consumption control device and mobile terminal
CN105306743A (en) * 2015-09-30 2016-02-03 小米科技有限责任公司 Screen control method and device
CN105867581A (en) * 2015-12-16 2016-08-17 乐视移动智能信息技术(北京)有限公司 Power optimization method and device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402027A (en) * 2013-07-29 2013-11-20 广东欧珀移动通信有限公司 Mobile terminal and method for putting same into sleeping state
CN104156053A (en) * 2014-07-29 2014-11-19 深圳市中兴移动通信有限公司 Abnormal power consumption control method, abnormal power consumption control device and mobile terminal
CN105306743A (en) * 2015-09-30 2016-02-03 小米科技有限责任公司 Screen control method and device
CN105867581A (en) * 2015-12-16 2016-08-17 乐视移动智能信息技术(北京)有限公司 Power optimization method and device and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189196A (en) * 2018-08-01 2019-01-11 北京珠穆朗玛移动通信有限公司 Management method, terminal device and the device of terminal device
CN111045507A (en) * 2019-11-27 2020-04-21 RealMe重庆移动通信有限公司 List management and control method, device, mobile terminal and storage medium
CN112035242A (en) * 2020-11-06 2020-12-04 南京研利科技有限公司 Method for playing push message, computing device and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN104239094B (en) Control method, device and the terminal device of background application
WO2017113660A1 (en) Application program management method and device
CN104980565A (en) Terminal anti-addiction method and device
CN106766022B (en) Sensor control method and device
CN106201686A (en) Management method, device and the terminal of application
EP3065009A1 (en) Methods and apparatuses for switching state
CN104598093A (en) Method and device for prompting message during screen locking
CN104298547A (en) Terminal setting method and device
CN105224349A (en) The deletion reminding method of application program and device
CN107666540B (en) Terminal control method, device and storage medium
CN105093980B (en) Control the method and device of smart machine start and stop
CN104156848A (en) Schedule management method and schedule management device
CN107506019A (en) Management method and device, terminal, the storage medium of application program
CN103995834A (en) Sensitive information detection method and related device
CN107438811A (en) One kind breath screen shows method and device
CN104010072A (en) Electric quantity prompt method and device
CN107885307B (en) Equipment control method and device
CN104463047B (en) The device and method of control module work
CN104657172A (en) System upgrading method and device
CN107885308A (en) Electricity saving method and device
CN105607979B (en) Networking control method and device
CN107133059A (en) Camera control method, device and mobile terminal
CN105786561B (en) Method and device for calling process
CN105227660A (en) A kind of based reminding method and device
CN105159434A (en) Time display method, device and terminal

Legal Events

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

Application publication date: 20180406