CN103345297A - Method and device for managing power source - Google Patents

Method and device for managing power source Download PDF

Info

Publication number
CN103345297A
CN103345297A CN2013102600208A CN201310260020A CN103345297A CN 103345297 A CN103345297 A CN 103345297A CN 2013102600208 A CN2013102600208 A CN 2013102600208A CN 201310260020 A CN201310260020 A CN 201310260020A CN 103345297 A CN103345297 A CN 103345297A
Authority
CN
China
Prior art keywords
power supply
party application
lock
supply lock
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013102600208A
Other languages
Chinese (zh)
Other versions
CN103345297B (en
Inventor
常健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tinno Wireless Technology Co Ltd
Original Assignee
Shenzhen Tinno Wireless Technology 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 Shenzhen Tinno Wireless Technology Co Ltd filed Critical Shenzhen Tinno Wireless Technology Co Ltd
Priority to CN201310260020.8A priority Critical patent/CN103345297B/en
Publication of CN103345297A publication Critical patent/CN103345297A/en
Application granted granted Critical
Publication of CN103345297B publication Critical patent/CN103345297B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a method and device for managing a power source. According to the method for managing the power source, permission setting is conducted on third-party application programs of an intelligent terminal in advance, certain third-party application programs are permitted to call a power lock, other third-party application programs are forbidden to call the power lock, and when the third-party application programs submit a request of calling the power lock, the third-party application programs are permitted or forbidden to call the power lock according to the advance permission setting. Therefore, the third-party application programs do not need to be closed or deleted, in other words, part of the functions, which influence the operating states of the intelligent terminal, of the third-party application programs can be managed on the premise that the basic functions of the third-party application programs of the intelligent terminal are reserved, and the friendly degree and convenience of a power-saving operation are improved.

Description

Method for managing power supply and equipment
Technical field
The application relates to the data processing terminal field, relates in particular to a kind of method for managing power supply and equipment.
Background technology
Along with the update of mobile phone operating system, Android (Android) and the more powerful third party application of the apple IOS operating system compatible greater functionality of energy, and make the mobile intelligent degree more and more higher.Some third party application is when running background, still can call the power supply lock for a long time, make smart mobile phone can't enter dormant state, smart mobile phone is in significantly power consumption state for a long time, the smart mobile phone stand-by time is shortened, shortened the service time of smart mobile phone.
Prior art provides a kind of application-level other detection method, which third party application it can record is in running status and working time thereof etc., thereby the user can infer the third party application that may cause significantly power consumption according to the situation that record reflects, and then comes save power by closing or delete these third party applications.But long playing third party application does not represent that in fact it make smart mobile phone be in relative significantly power consumption state for a long time, therefore may cause the mistake of third party application to close or the mistake deletion; The hard closing third party application also may cause the generation of fortuitous events such as loss of data, the Force Deletion third party application needs the root authority, therefore, hard closing or deletion third party application are not only inconvenient, may cause the data security problem in addition; In addition, hard closing or deletion third party application are for the user, and it is lower to operate friendly degree, has reduced user's acceptance.
Summary of the invention
The application provides a kind of method for managing power supply and equipment, with under the prerequisite that keeps the basic function of third party application on the intelligent terminal, its partial function that influences the intelligent terminal dormancy is managed, and promotes friendly degree and the convenience of save power operation.
According to the application's first aspect, the application provides a kind of method for managing power supply, comprises power supply lock control step, and described power supply lock control step comprises:
Current third party application initiates to be used for attempting second call request that power supply is locked is set according to configuration, carries identifying information in described second call request;
After power management services is obtained described second call request, searched to obtain being used to indicate by described identifying information and allow or forbid that current third party application setting holds second presupposed information of power supply lock;
Described power management services is carried out alignment processing according to second presupposed information to second call request, described alignment processing is specially: when described second presupposed information indication allowed current third party application that the power supply lock is set, described power management services allowed current third party application that the power supply lock is set; When described second presupposed information indication forbade that current third party application arranges the power supply lock, described power management services was forbidden current third party application locking power supply status.
According to the application's second aspect, the application provides a kind of intelligent terminal, comprising:
Second acquisition unit is used for obtaining second call request of initiating according to configuration, be used for attempting arranging the power supply lock from current third party application, carries identifying information in described second call request;
Second searches the unit, is used for being searched to obtain being used to indicate by described identifying information allowing or forbidding that current third party application setting holds second presupposed information of power supply lock;
Second processing unit, be used for according to described second presupposed information second call request being carried out alignment processing, described alignment processing is specially: when described second presupposed information indication allows current third party application that the power supply lock is set, allow current third party application that the power supply lock is set; When described second presupposed information indication forbids that current third party application arranges the power supply lock, forbid current third party application locking power supply status.
The application's beneficial effect is:
By a kind of method for managing power supply and equipment are provided, in advance third party application on the intelligent terminal is carried out the authority setting, some third party application is allowed to call the authority of power supply lock, some third party application is under an embargo and obtains above-mentioned authority, when third party application need propose call request to power supply lock, according in advance authority situation is set, allows or forbid that third party application calls the power supply lock.Like this, need not to close or delete third party application, in other words, under the prerequisite that keeps the basic function of third party application on the intelligent terminal, just can realize that the partial function that it is influenced the intelligent terminal running status manages, thereby promote friendly degree and the convenience of save power operation.
Description of drawings
Fig. 1 is the process flow diagram of the method for managing power supply of the embodiment of the present application one;
Fig. 2 is the structural drawing of the intelligent terminal of the embodiment of the present application one;
Fig. 3 is the structural drawing of second processing unit 203 in the embodiment of the present application one;
Fig. 4 is the supplementary flow chart of the method for managing power supply of the embodiment of the present application two;
Fig. 5 is the structural drawing of the intelligent terminal of the embodiment of the present application two;
Fig. 6 is the structural drawing of the 3rd processing unit 502 in the embodiment of the present application three;
Fig. 7 is the synoptic diagram of the user interface of the embodiment of the present application five;
Fig. 8 is the supplementary flow chart of the method for managing power supply of the embodiment of the present application six;
Fig. 9 is the structural drawing of the intelligent terminal of the embodiment of the present application six;
Figure 10 is the structural drawing of first processing unit 903 in the embodiment of the present application six;
Figure 11 is the synoptic diagram of the user interface of the embodiment of the present application eight;
Figure 12 is the synoptic diagram of the user interface of the embodiment of the present application nine.
Embodiment
By reference to the accompanying drawings the application is described in further detail below by embodiment.
Embodiment one:
In the present embodiment, be that smart mobile phone is that example describes with the intelligent terminal.
The method for managing power supply of present embodiment is based on the spatial division of intelligent terminal underlying operating system, and it roughly comprises user's space and kernel spacing.In user's space, code operates on the lower Permission Levels, these codes can only use part system resource to finish the part systemic-function, some specific systemic-function can not be used by it, and these codes are access kernel space and hardware device directly, and third party application constitutes user's space.Kernel spacing is mainly formed by kernel software, and (Board Support Package, BSP), BSP can be the function bag that driver provides the access hardware register to comprise plate level support package.Can have the power supply lock function on the intelligent terminal, the power supply lock is a kind of mechanism of lock in the kernel spacing, as long as there is program to hold the power supply lock, intelligent terminal just can't switch to the running status of low power consumption from the running status of high power consumption, as entering dormant state from non-dormant state.The power supply lock can be held by program in third party application or the kernel.The power supply lock generally can be divided into two types, the first has the power supply lock of overtime characteristics, when program is held the power supply lock above behind the Preset Time, the power supply lock can be automatically released, thereby program is no longer held power supply lock, and it two is the power supply locks with overtime characteristics, after program is held the power supply lock and finished a certain processing, program initiatively discharges the power supply lock according to self disposing, and program just can no longer be held the power supply lock.After all were released by power supplys of being held lock, kernel spacing can start dormancy mechanism and enter dormant state.
The method for managing power supply of present embodiment comprises flow process as shown in Figure 1:
Step 101, current third party application initiates to be used for attempting arranging second call request of power supply lock according to configuration, carry identifying information in this second call request, second call request is used for attempting arranging the power supply lock and making current third party application hold the power supply lock.Particularly, identifying information can be the title of third party application or feature field etc., in addition, can also comprise the initiation temporal information of second call request in second call request;
After step 102, power management services are obtained second call request, record the identifying information of the current third party application in second call request and initiate temporal information;
Step 103, power management services is by identifying information, allow or forbid that third party application setting holds second indication information of power supply lock from recording, search to obtain being used to indicate and allow or forbid that current third party application setting holds second presupposed information of power supply lock, particularly, can pass through above-mentioned second indication information of a memory stores, second indication information refers in advance third party application on the intelligent terminal be carried out the information that authority arranges, the user can carry out the authority setting to third party application on the intelligent terminal by human-computer interaction interface, some third party application is allowed to arrange the power supply lock and holds the power supply lock, namely be allowed to obtain to stop intelligent terminal to switch to the authority of first running status of low power consumption from second running status of high power consumption, some third party application then is under an embargo and holds power supply and lock power supply status, namely is under an embargo to obtain above-mentioned authority.Second indication information establishes each third party application and is used to indicate the corresponding relation that allows or forbid the presupposed information of third party application locking power supply status, and the identifying information by current third party application can find above-mentioned second presupposed information from second indication information.Like this, obtain second presupposed information by searching, power management services just can be known and allows or forbid current third party application locking power supply status;
Step 104, power management services is carried out alignment processing according to second presupposed information to second call request, particularly, alignment processing is specially: when the indication of second presupposed information allows current third party application that the power supply lock is set, power management services allows current third party application that the power supply lock is set and holds the power supply lock, finish a certain processing back up to current third party application and initiatively discharge the power supply lock, perhaps hold the passive release power supply lock in the overtime back of power supply lock, in the time that the power supply lock is held by current third party application, even driving, the power supply lock receives that the dormancy trigger pip can not trigger intelligent terminal yet and switch to dormant state from non-dormant state;
When the indication of second presupposed information forbade that current third party application arranges the power supply lock, power management services was forbidden current third party application locking power supply status, specifically can comprise any in the following processing mode:
One, power management services forbid that current third party application arranges the power supply lock, returns to current third party application success message is set.Because the execution of some third party application must depend on and receive the power supply lock success message is set, therefore can completely realize for the basic function that guarantees third party application, when forbidding that current third party application arranges the power supply lock, need return the above-mentioned success message that arranges to third party application;
Its two, power management services forbids that current third party application arranges power supply lock, returns to current third party application failed message is set.
Above-mentioned processing mode can be arranged in second presupposed information, and power management services can be handled according to these processing modes, and certainly, the processing mode that arranges in second presupposed information includes but are not limited to above-mentioned three kinds.
Correspondingly, as shown in Figure 2, the intelligent terminal of present embodiment comprises following structure:
Second acquisition unit 201 is used for obtaining second call request of initiating according to configuration, be used for attempting arranging the power supply lock from current third party application, carries identifying information in this second call request;
Second searches unit 202, is used for being searched to obtain being used to indicate by identifying information allowing or forbidding that current third party application setting holds second presupposed information of power supply lock;
Second processing unit 203, be used for according to second presupposed information second call request being carried out alignment processing, alignment processing is specially: when the indication of second presupposed information allows current third party application that the power supply lock is set, allow current third party application that the power supply lock is set; When the indication of second presupposed information forbids that current third party application arranges the power supply lock, forbid current third party application locking power supply status.Second processing unit 203 can comprise structure as shown in Figure 3:
Second judging unit 301 is used for judging that the indication of second presupposed information allows or forbids that current third party application arranges the power supply lock;
Second performance element 302 is used for allowing current third party application that the power supply lock is set when the indication of second presupposed information allows current third party application that the power supply lock is set; When the indication of second presupposed information forbids that current third party application arranges the power supply lock, forbid that current third party application arranges the power supply lock, returns to current third party application success or failed message are set.
Embodiment two:
Present embodiment has increased following content on the basis of embodiment one:
In the method for managing power supply of present embodiment, when the indication of second presupposed information forbids that current third party application arranges the power supply lock, power management services forbids that current third party application locking power supply status is: power management services allows current third party application that the power supply lock is set, and mark power supply lock is the inactive power sources lock, can also return success message is set, in addition, the method for managing power supply of present embodiment also comprises flow process as shown in Figure 4:
Step 401, the power supply lock drives and obtain the dormancy trigger pip under non-dormant state, particularly, for the power management services of a user's space part, the power supply lock drives the part as kernel spacing, the dormancy trigger pip can be the indicator signal of arrival system free time thresholding, and the idle overtime needs of indication intelligent terminal enter dormant state and economize on electricity, and perhaps dormancy trigger pip is that user's operative intelligence terminal makes intelligent terminal force to enter the operation signal etc. of dormant state;
Step 402, the power supply lock drives based on the dormancy trigger pip carries out the dormancy determining step, this dormancy determining step comprises: power supply lock drives the state that checks the power supply lock, and judges whether to trigger intelligent terminal based on the state of power supply lock and switch to early stage dormant state or deep sleep state from non-dormant state.
Particularly, this dormancy determining step comprises:
Step 4021, power supply lock drive to check whether have third party application to hold the power supply lock, if having, then execution in step 4022, otherwise execution in step 4023;
Step 4022, power supply lock drive judges whether the power supply lock of holding all is marked as the inactive power sources lock, if then execution in step 4023, otherwise execution in step 4024;
Step 4023; The power supply lock drives the triggering intelligent terminal and switches to early stage dormant state or deep sleep state from non-dormant state;
Step 4024, when the power supply latching segment of holding was not marked as the inactive power sources lock, the power supply lock drove and makes intelligent terminal remain non-dormant state.
Correspondingly, as shown in Figure 5, the intelligent terminal of present embodiment also comprises except the structure that comprises as shown in Figure 2:
The 3rd acquiring unit 501 is used for obtaining the dormancy trigger pip under non-dormant state;
The 3rd processing unit 502 is used for checking based on described dormancy trigger pip the state of power supply lock, and judges whether to trigger intelligent terminal based on the state of power supply lock and switch to early stage dormant state or deep sleep state from non-dormant state.
Particularly, second processing unit is used for when the indication of second presupposed information forbids that current third party application arranges the power supply lock, allow current third party application that power supply lock is set, and the described power supply lock of mark locks for inactive power sources, and the 3rd processing unit 502 can specifically comprise:
The 3rd judging unit is used for whether inspection has third party application to hold the power supply lock based on the dormancy trigger pip, if having, judges then whether the power supply lock of holding all is marked as the inactive power sources lock;
The 3rd performance element is used for triggering intelligent terminal and switching to early stage dormant state or deep sleep state from non-dormant state when not having third party application to hold the power supply lock; Hold power supply lock and the power supply lock held when all being marked as the inactive power sources lock as third party application, trigger intelligent terminal and switch to early stage dormant state or deep sleep state from non-dormant state; Hold power supply lock and the power supply latching segment held when not being marked as the inactive power sources lock as third party application, make intelligent terminal remain non-dormant state.
Embodiment three:
Present embodiment has increased following content on the basis of embodiment two:
The method for managing power supply of present embodiment also comprises flow process down:
When having detected based on the dormancy trigger pip that power supply lock is held and when not being marked as the inactive power sources lock, the power supply lock drives to check whether have third party application to discharge the power supply lock, if have, then the power supply lock drives and calls the dormancy trigger pip and carry out the dormancy determining step based on the dormancy trigger pip.
Correspondingly, as shown in Figure 6, the 3rd processing unit 502 further comprises in the intelligent terminal of present embodiment:
The 4th judging unit 601 is used for that the power supply lock is held and when not being marked as the inactive power sources lock, check that whether having third party application to discharge power supply locks when having detected based on the dormancy trigger pip that obtains;
The 4th performance element 602 be used for calling the dormancy trigger pip and triggering the 3rd judging unit work based on the dormancy trigger pip when third party application discharges the power supply lock, thereby further whether inspection has third party application to hold the power supply lock.
Embodiment four:
Present embodiment has increased following content in arbitrary embodiment basis in embodiment one to embodiment three:
The method for managing power supply of present embodiment also comprises following flow process:
According to current third party application situation is called in the success of power supply lock, add up the 3rd execution information, the 3rd execution information comprises the identifying information of current third party application and successful call number information etc., perhaps, according to the malloc failure malloc situation of current third party application to the power supply lock, add up the 4th execution information, the 4th execution information comprises the identifying information of current third party application and malloc failure malloc number of times information etc.Like this, by the statistics to the 3rd execution information, the user can know which third party application frequently successfully calls the power supply lock, thereby determines whether to forbid that it calls the power supply lock and carries out quiescing by the user interface of correspondence.By to the 4th statistics of carrying out information, the user can be known which third party application is frequent and attempt calling the power supply lock and successfully forbidden calling the power supply lock.Like this, can be under the prerequisite of the basic function that keeps the third party application that frequently calls the power supply lock, the forbidding of function of power supply lock called in realization to third party application, perhaps can accurately close, delete the third party application that these frequently call the power supply lock, perhaps can contact this third party application supplier and solve its caused power consumption problem.
Correspondingly, the intelligent terminal of present embodiment also comprises:
Second statistical module, be used for according to current third party application situation being called in the success of power supply lock, add up the 3rd execution information, the 3rd execution information comprises the identifying information of current third party application and successful call number information etc., perhaps, according to the malloc failure malloc situation of current third party application to power supply lock, add up the 4th execution information, described the 4th execution information comprises the identifying information of current third party application and malloc failure malloc number of times information etc.
Embodiment five:
The difference of present embodiment and embodiment four mainly is:
In the method for managing power supply of present embodiment, need add up above-mentioned the 3rd execution information and the 4th execution information simultaneously, correspondingly, second statistical module in the intelligent terminal of present embodiment is also added up above-mentioned the 3rd execution information and the 4th execution information simultaneously.Fig. 7 shows the user interface that the 3rd execution information of adding up simultaneously and the 4th is carried out information, forbid that it calls the quiescing button 701 that wakes timer up after also comprising the select target third party application on this user interface, and corresponding cancellation this forbid limiting lift a ban button 702.
Content below by a concrete application example supplementary notes the application:
Third party application may be configured with one need call the function that power supply is locked, the third party application that for example has function of search, when third party application starts the WLAN (wireless local area network) function of search according to instruction, third party application can call the power supply lock, and in the process of carrying out search operation, hold power supply and lock, make system keep non-dormant state or early stage dormancy, stop panel computer to switch to deep-sleep from non-dormant state or early stage dormancy; The third party application that for example has video playback capability again, when third party application starts video playback capability according to instruction, third party application can call the power supply lock, and in carrying out video display process, hold power supply and lock, make system keep non-dormant state, stop panel computer to switch to early stage dormancy or deep-sleep etc. from non-dormant state.After adopting present embodiment, when the indication of second presupposed information forbids that current third party application calls the power supply lock, current third party application can't continue to carry out functions such as corresponding search or video playback by calling the power supply lock, need not to close or delete third party application, also namely under the prerequisite that keeps the basic function of third party application on the smart mobile phone, thereby just can realize that the partial function (functions such as search or video playback) that it is influenced the intelligent terminal running status manages, make this part function can't successfully call the power supply lock, thereby promoted friendly degree and the convenience of save power operation; Or allow current third party application to the calling of power supply lock, the described power supply lock of mark is locked for inactive power sources and return and call successful information; When presupposed information indication allows current third party application to the calling of power supply lock, power management services arranges the power supply lock according to call request, search or function such as video playback will stop panel computer to switch to the running status of low power consumption from the running status of high power consumption, correspondingly continue to carry out as search for or functions such as video playback.
By implementing the embodiment of the present application, allow the user that the authority that third party application arranges the power supply lock is arranged, and user's setting is stored as second indication information, be at intelligent terminal under the running status of high power consumption, when third party application is operated to carry out certain because self disposing the running status that needs intelligent terminal to keep high power consumption, second call request to the power supply lock that third party application sends is controlled based on presupposed information by power management services, the operation of keeping high power consumption running status of having avoided some users not expect to have, thereby make intelligent terminal reduce the power consumption that some users do not expect to have, both saved the power consumption of intelligent terminal, and do not needed user's Force Deletion again or close third party application.
Embodiment six:
Present embodiment has also increased following content on embodiment one basis:
Can have the timer function of waking up on the intelligent terminal, (Real-Time Clock RTC), also can have the non-timer function that wakes up to clock in the time of strictly according to the facts.The timer that wakes up in the kernel spacing drives to act on and wakes timer chip up, thereby the triggering intelligent terminal switches to a Comparatively speaking running status of high power consumption from the running status of a low power consumption, but not wakes the function that timer does not possess waken system up.Dormant state can be divided into early stage dormant state and deep sleep state, intelligent terminal mainly is that screen is closed under the dormant state in early days, but other hardware (as peripheral hardwares such as central processing unit and WIFI module or GPS modules) are outage and in running order not, and under deep sleep state, central processing unit has entered low power consumpting state, and the whole or most of outages of other peripheral hardwares, total system power consumption is minimum, for example, in early days during dormant state, the total system power consumption is the 50-100 milliampere, and when deep sleep state, the total system power consumption is the 1-2 milliampere.Above-mentionedly wake timer up at the timing that arranges then, can trigger intelligent terminal and switch to early stage dormant state from deep sleep state, perhaps switch to non-dormant state from early stage dormant state, perhaps switch to non-dormant state etc. from deep sleep state, thereby system power consumption is changed from low to high.
Please refer to Fig. 8, the method for managing power supply of present embodiment also comprises following flow process:
Step 801, current third party application carry the identifying information of current third party application according to self configuration initiation first call request in this first call request, first call request is used for attempting arranging waking timer up.Particularly, identifying information can be the title of third party application or feature field etc., in addition, can also comprise the initiation temporal information of call request in first call request;
Step 802 is waken up after the timer management service obtains first call request, records the identifying information of the current third party application in first call request and initiates temporal information;
Step 803, wake the timer management service up by identifying information, from recording permission or forbidding that third party application calls first indication information that wakes timer up, search and obtain being used to indicate permission or forbid that current third party application calls first presupposed information that wakes timer up, particularly, can pass through above-mentioned first indication information of a memory stores, first indication information refers in advance third party application on the intelligent terminal be carried out the information that authority arranges, the user can carry out the authority setting to third party application on the intelligent terminal by human-computer interaction interface, some third party application is allowed to arrange and wakes timer up, namely be allowed to obtain to trigger intelligent terminal switches to second running status of high power consumption from first running status of low power consumption authority, some third party application then is under an embargo to arrange and wakes timer up, and namely being under an embargo obtains above-mentioned authority.First indication information establishes each third party application and allows or forbid that third party application calls the corresponding relation of the presupposed information that wakes timer up with being used to indicate, and the identifying information by current third party application can find above-mentioned first presupposed information from first indication information.Like this, obtain first presupposed information by searching, wake the timer management service up and just can know and allow or forbid that current third party application setting wakes timer up;
Step 804, wake the timer management service up and according to first presupposed information first call request is carried out alignment processing, particularly, when first presupposed information indication allows current third party application to call to wake timer up, waking the timer management service up allows current third party application setting to wake timer up, current third party application arranges according to self configuration and wakes timer start-up time regularly up, and at the timing that arranges then, wake the timer management service up and send trigger message, trigger intelligent terminal switches to high power consumption from first running status of low power consumption second running status, the running status of intelligent terminal comprises non-dormant state, early stage dormant state and deep sleep state etc., when first running status was early stage dormant state or deep sleep state, second running status was non-dormant state; Perhaps, when first running status was deep sleep state, second running status was early stage dormant state;
Call when waking timer up and forbid current third party application when first presupposed information indication, wake the timer management service up and forbid waking up timer and trigger intelligent terminal based on first call request and switch to second running status of high power consumption from first running status of low power consumption, specifically can comprise any in the following processing mode:
One wakes the timer that wakes up that the timer management service will attempt arranging up and replaces with the non-timer that wakes up, and wakes timer setting according to first call request up to non-, returns to current third party application success message is set.Because the execution of some third party application must depend on to receive and wake timer up success message is set, therefore can completely realize for the basic function that guarantees third party application, will attempt arranging wake up timer replace with non-wake timer up in, need return the above-mentioned success message that arranges to third party application;
Its two, wake the timer management service up and forbid that current third party application setting wakes timer up, return to current third party application success message be set, also namely ignore the timer that wakes up that current third party application this time arranges.Equally, because the execution of some third party application must depend on to receive and wake timer up success message is set, therefore can completely realize for the basic function that guarantees third party application, ignore that current third party application this time arranges wake timer up in, need return the above-mentioned success message that arranges to third party application;
Its three, wake the timer management service up and forbid that current third party application setting wakes timer up, returns to current third party application failed message is set.
Above-mentioned processing mode can be arranged in first presupposed information, wakes the timer service up and can handle according to these processing modes, and certainly, the processing mode that arranges in first presupposed information includes but are not limited to above-mentioned three kinds.
Correspondingly, as shown in Figure 9, the intelligent terminal of present embodiment also comprises except comprising structure shown in Figure 2:
First acquiring unit 901, be used for from current third party application obtain initiate according to configuration, be used for attempting first call request of waking timer up is set, carry the identifying information of current third party application in this first call request;
First searches unit 902, obtains being used to indicate permission or forbids that current third party application calls first presupposed information that wakes timer up for being searched by identifying information;
First processing unit 903 is used for according to first presupposed information first call request being carried out alignment processing.First processing unit 903 can comprise structure as shown in figure 10:
First judging unit 1001 be used for to judge that the indication of first presupposed information allows or forbid that current third party application calls to wake timer up;
First performance element 1002, be used for calling when waking timer up when the current third party application of first presupposed information indication permission, allow current third party application setting to wake timer and at the timing that arranges then up, trigger intelligent terminal switches to high power consumption from first running status of low power consumption second running status; Forbid current third party application when first presupposed information indication and call when waking timer up, forbid waking up timer and trigger intelligent terminal based on first call request and switch to second running status from first running status.And first performance element 1002 can specifically comprise:
First carries out subelement, be used for calling when waking timer up when the current third party application of first presupposed information indication permission, allow current third party application setting to wake timer and at the timing that arranges then up, trigger intelligent terminal switches to high power consumption from first running status of low power consumption second running status;
Second carries out subelement, be used for indicating when first presupposed information and forbid that current third party application calls when waking timer up, one of carry out in following each step: the timer that wakes up that will attempt setting replaces with and non-ly wakes timer up and wake timer setting according to first call request up to non-, returns to current third party application success message is set; Forbid that current third party application setting wakes timer up, returns to current third party application success message is set; Forbid that current third party application setting wakes timer up, returns to current third party application failed message is set.
Embodiment seven:
The difference of present embodiment and embodiment six mainly is:
The method for managing power supply of present embodiment also comprises: according to current third party application situation is called in the success that wakes timer up, add up the first execution information, this first execution information comprises the identifying information of current third party application, successful call number information and carries out duration information etc., perhaps, according to current third party application to waking the malloc failure malloc situation of timer up, add up the second execution information, this second execution information comprises the identifying information of current third party application and forbids call number information etc.Like this, by to first statistics of carrying out information, the user can know which third party application frequently successfully calls and wake timer up, thereby determines whether to forbid that it calls wakes timer up and carry out quiescing by the user interface of correspondence.By to second statistics of carrying out information, the user can know which third party application frequent attempt calling wake timer up and successfully forbidden calling and wake timer up.Like this, can be under the prerequisite that keeps the basic function that frequently calls the third party application that wakes timer up, realization is to calling forbidding of the function of waking timer up in the third party application, perhaps can accurately close, delete these and frequently call the third party application that wakes timer up, perhaps can contact this third party application supplier and solve its caused power consumption problem.
Correspondingly, the intelligent terminal of present embodiment also comprises:
First statistical module, be used for according to current third party application situation being called in the success that wakes timer up, add up the first execution information, this first execution information comprises the identifying information of current third party application, successful call number information and carries out duration information etc., perhaps, according to current third party application to waking the malloc failure malloc situation of timer up, add up the second execution information, this second execution information comprises the identifying information of current third party application and forbids call number information etc.
Embodiment eight:
The difference of present embodiment and embodiment seven mainly is:
In the method for managing power supply of present embodiment, need add up the above-mentioned first execution information and the second execution information simultaneously, correspondingly, the statistical module in the intelligent terminal of present embodiment is also added up the above-mentioned first execution information and the second execution information simultaneously.Figure 11 shows the user interface that the first execution information of adding up simultaneously and second is carried out information, forbid that it calls the quiescing button 1101 that wakes timer up after also comprising the select target third party application on this user interface, and corresponding cancellation this forbid limiting lift a ban button 1102.
Content below by a concrete application example supplementary notes the application:
Third party application refers to user's attitude program, it may be configured with one need call the function of waking timer up, for example, the message push function can check behind a certain timing whether new information is arranged, at this moment, third party application can require to wake timer up according to self configuration attempt setting, after waking timer up and being set up, when timing then, to send trigger message after waking the timer management service up, trigger intelligent terminal and switch to early stage dormant state from deep sleep state, thereby triggering system receives new information by wireless network, further, and in order to show new information at the intelligent terminal display screen, third party application can be set equally and wake timer up, when the timing after receiving new information arrives, wake the timer management service up and make intelligent terminal switch to non-dormant state from early stage dormant state, this moment, display screen was connected power supply, screen is lighted, thereby is presented in new information on the display screen of intelligent terminal by message box; Update functions for example again, when setting when at a time upgrading in the third party application, third party application can call and wake timer up, at timing then, wake timer management service trigger intelligent terminal up and switch to early stage dormant state from deep sleep state, and communicate by letter to upgrade this third party application etc. with the network side background system automatically.After adopting present embodiment, forbidding current third party application when first presupposed information indication calls when waking timer up, current third party application can't wake that timer carries out that corresponding message pushes up or function such as renewal by calling, and after intelligent terminal enters non-dormant state, current third party application can correspondingly be carried out functions such as message propelling movement or renewal, like this, need not to close or delete third party application, also namely under the prerequisite that keeps the basic function of third party application on the smart mobile phone, thereby just can realize that the partial function (functions such as message propelling movement or renewal) that it is influenced the intelligent terminal running status manages, this part function can't successfully be called wake timer up, thereby promoted friendly degree and convenience that save power is operated; The indication of first presupposed information allows current third party application to call when waking timer up, setting wakes timer up according to first call request, when the timing of setting arrives, wake timer up and namely can trigger smart mobile phone switches to high power consumption from first running status of low power consumption second running status, and notify current third party application smart mobile phone to switch to a Comparatively speaking running status of high power consumption, at this moment, third party application namely can correspondingly be carried out as operations such as message propelling movement or renewals based on above-mentioned switching result.
By implementing the embodiment of the present application, allow user's authority that setting wakes timer up to third party application to arrange, and user's setting is stored as first indication information, be at intelligent terminal under the running status of low power consumption, when third party application need intelligent terminal to be waken up because of self configuration and the running status that switches to high power consumption when carrying out certain operation, first call request to waking timer up that third party application sends is controlled based on presupposed information by waking the timer management service up, the wake operation of having avoided some users not expect to have, thereby make intelligent terminal reduce the power consumption that some users do not expect to have, both saved the power consumption of intelligent terminal, and do not needed user's Force Deletion again or close third party application.
Embodiment nine:
Present embodiment mainly provides a kind of user interface, and as shown in figure 12, this user interface mainly combines embodiment three and 8 two kinds of user interfaces of embodiment.
Need to prove:
1, in other embodiments, first running status of intelligent terminal or second running status not only can be a kind of in non-dormant state, early stage dormancy or the deep-sleep, can also be the running status of a certain brightness degree of display screen, perhaps other have the running status of certain power consumption.
2, in other embodiments, intelligent terminal can also be panel computer or notebook computer etc.
Above content be in conjunction with concrete embodiment to further describing that the application does, can not assert that the application's concrete enforcement is confined to these explanations.For the application person of an ordinary skill in the technical field, under the prerequisite that does not break away from the application's design, can also make some simple deduction or replace.

Claims (13)

1. a method for managing power supply is characterized in that, comprises power supply lock control step, and described power supply lock control step comprises:
Current third party application initiates to be used for attempting second call request that power supply is locked is set according to configuration, carries identifying information in described second call request;
After power management services is obtained described second call request, searched to obtain being used to indicate by described identifying information and allow or forbid that current third party application setting holds second presupposed information of power supply lock;
Described power management services is carried out alignment processing according to second presupposed information to second call request, described alignment processing is specially: when described second presupposed information indication allowed current third party application that the power supply lock is set, described power management services allowed current third party application that the power supply lock is set; When described second presupposed information indication forbade that current third party application arranges the power supply lock, described power management services was forbidden current third party application locking power supply status.
2. the method for claim 1 is characterized in that, described power management services forbids that current third party application locking power supply status is:
Described power management services forbids that described current third party application arranges the power supply lock, returns to described current third party application success or failed message are set.
3. the method for claim 1, it is characterized in that, described method also comprises sleep step, described sleep step comprises: described power supply lock drives and obtain the dormancy trigger pip under non-dormant state, and based on described dormancy trigger pip execution dormancy determining step, described dormancy determining step comprises: described power supply lock drives the state that checks the power supply lock, and judges whether to trigger intelligent terminal based on the state of described power supply lock and switch to early stage dormant state or deep sleep state from non-dormant state.
4. method as claimed in claim 3, it is characterized in that, described power management services forbids that current third party application locking power supply status is: described power management services allows described current third party application that the power supply lock is set, and the described power supply of mark lock locks for inactive power sources, and described dormancy determining step specifically comprises:
Described power supply lock drives to check whether have third party application to hold the power supply lock, if have, then described power supply lock drives and judges whether the power supply lock of holding all is marked as the inactive power sources lock, if not, then described power supply lock drives the triggering intelligent terminal and switches to early stage dormant state or deep sleep state from non-dormant state;
When the power supply lock of holding all was marked as the inactive power sources lock, described power supply lock drove the triggering intelligent terminal and switches to early stage dormant state or deep sleep state from non-dormant state;
When the power supply latching segment of holding was not marked as the inactive power sources lock, described power supply lock drove and makes intelligent terminal remain non-dormant state.
5. method as claimed in claim 4 is characterized in that, described method also comprises:
Power supply lock is held and when not being marked as the inactive power sources lock, described power supply lock drives to check whether have third party application to discharge the power supply lock when having detected based on described dormancy trigger pip,
If have, then described power supply lock drives and calls the dormancy trigger pip and carry out the dormancy determining step based on the dormancy trigger pip.
6. as each described method in the claim 1 to 5, it is characterized in that described method also comprises:
According to described current third party application the success that wakes timer or power supply lock up is called or the malloc failure malloc situation, statistics execution information, described execution information comprises identifying information, and successful call number information or forbid call number information.
7. an intelligent terminal is characterized in that, comprising:
Second acquisition unit is used for obtaining second call request of initiating according to configuration, be used for attempting arranging the power supply lock from current third party application, carries identifying information in described second call request;
Second searches the unit, is used for being searched to obtain being used to indicate by described identifying information allowing or forbidding that current third party application setting holds second presupposed information of power supply lock;
Second processing unit, be used for according to described second presupposed information second call request being carried out alignment processing, described alignment processing is specially: when described second presupposed information indication allows current third party application that the power supply lock is set, allow current third party application that the power supply lock is set; When described second presupposed information indication forbids that current third party application arranges the power supply lock, forbid current third party application locking power supply status.
8. intelligent terminal as claimed in claim 7 is characterized in that, described second processing unit comprises:
Second judging unit is used for judging that described second presupposed information indication allows or forbids that current third party application arranges the power supply lock;
Second performance element is used for allowing current third party application that the power supply lock is set when described second presupposed information indication allows current third party application that the power supply lock is set; When described second presupposed information indication forbids that current third party application arranges the power supply lock, forbid that described current third party application arranges the power supply lock, returns to described current third party application success or failed message are set.
9. intelligent terminal as claimed in claim 7 is characterized in that, described intelligent terminal also comprises:
The 3rd acquiring unit is used for obtaining the dormancy trigger pip under non-dormant state;
The 3rd processing unit is used for checking based on described dormancy trigger pip the state of power supply lock, and judges whether to trigger intelligent terminal based on the state of power supply lock and switch to early stage dormant state or deep sleep state from non-dormant state.
10. intelligent terminal as claimed in claim 9, it is characterized in that described second processing unit is used for allowing described current third party application that the power supply lock is set when the indication of second presupposed information forbids that current third party application arranges the power supply lock, and the described power supply lock of mark is the inactive power sources lock
Described the 3rd processing unit comprises:
The 3rd judging unit is used for whether inspection has third party application to hold the power supply lock based on described dormancy trigger pip, if having, judges then whether the power supply lock of holding all is marked as the inactive power sources lock;
The 3rd performance element is used for triggering described intelligent terminal and switching to early stage dormant state or deep sleep state from non-dormant state when not having third party application to hold the power supply lock; Hold power supply lock and the power supply lock held when all being marked as the inactive power sources lock as third party application, trigger described intelligent terminal and switch to early stage dormant state or deep sleep state from non-dormant state; Hold power supply lock and the power supply latching segment held when not being marked as the inactive power sources lock as third party application, make described intelligent terminal remain non-dormant state.
11. intelligent terminal as claimed in claim 10 is characterized in that, described the 3rd processing unit also comprises:
The 4th judging unit is used for that the power supply lock is held and when not being marked as the inactive power sources lock, check that whether having third party application to discharge power supply locks when having detected based on described dormancy trigger pip;
The 4th performance element is used for calling the dormancy trigger pip and triggering described the 3rd judging unit work based on the dormancy trigger pip when third party application discharges the power supply lock.
12. intelligent terminal as claimed in claim 7 is characterized in that, described intelligent terminal also comprises:
Statistical module is used for according to described current third party application the success of power supply lock being called or the malloc failure malloc situation, statistics execution information, and described execution information comprises identifying information, and successful call number information or forbid call number information.
13., it is characterized in that described intelligent terminal is smart mobile phone or panel computer as each described intelligent terminal in the claim 7 to 12.
CN201310260020.8A 2013-06-26 2013-06-26 Method for managing power supply and equipment Expired - Fee Related CN103345297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310260020.8A CN103345297B (en) 2013-06-26 2013-06-26 Method for managing power supply and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310260020.8A CN103345297B (en) 2013-06-26 2013-06-26 Method for managing power supply and equipment

Publications (2)

Publication Number Publication Date
CN103345297A true CN103345297A (en) 2013-10-09
CN103345297B CN103345297B (en) 2016-09-07

Family

ID=49280100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310260020.8A Expired - Fee Related CN103345297B (en) 2013-06-26 2013-06-26 Method for managing power supply and equipment

Country Status (1)

Country Link
CN (1) CN103345297B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577306A (en) * 2013-11-04 2014-02-12 浪潮(北京)电子信息产业有限公司 Active-detecting high-availability software operating method in cloud platform
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110090644A1 (en) * 2009-10-20 2011-04-21 Wistron Corporation Switch and Electronic Device Having a Pivotable Cover
CN102841672A (en) * 2012-07-10 2012-12-26 上海果壳电子有限公司 Dormancy interception method and system
CN102968174A (en) * 2012-11-06 2013-03-13 珠海全志科技股份有限公司 Deep sleep awakening method of android device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110090644A1 (en) * 2009-10-20 2011-04-21 Wistron Corporation Switch and Electronic Device Having a Pivotable Cover
CN102841672A (en) * 2012-07-10 2012-12-26 上海果壳电子有限公司 Dormancy interception method and system
CN102968174A (en) * 2012-11-06 2013-03-13 珠海全志科技股份有限公司 Deep sleep awakening method of android device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577306A (en) * 2013-11-04 2014-02-12 浪潮(北京)电子信息产业有限公司 Active-detecting high-availability software operating method in cloud platform
CN105183137A (en) * 2015-09-09 2015-12-23 厦门美图移动科技有限公司 Mobile terminal and wake lock control method and system thereof
CN105183137B (en) * 2015-09-09 2018-06-01 厦门美图移动科技有限公司 A kind of mobile terminal and its wake-up lock control method and control system

Also Published As

Publication number Publication date
CN103345297B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN103336572A (en) Intelligent terminal and power saving method thereof
CN104221445B (en) A kind of method and terminal waking up terminal system
CN101395584B (en) JTAG power collapse debug
KR101641174B1 (en) Method for enabling shutdown alarm clock and mobile terminal, and program, and recording medium for enabling shutdown alarm clock
US8108704B2 (en) Method for automatically switching power states
CN105554316B (en) A kind of realization method and system of reserved intelligent terminal battery capacity
CN107302789B (en) Method and system for improving battery endurance of android device
US20120265974A1 (en) Method and Device for Resetting Intelligent Terminal
US8971870B2 (en) Mobile terminal device, and control method for mobile terminal device
US9609600B2 (en) Wireless communication system with enhanced power management
CN103064799A (en) Electronic system and method and apparatus for saving data thereof
CN109388225B (en) Key triggering energy-saving control method, storage medium, control device and terminal thereof
CN105022955A (en) Locking method and mobile terminal of application program
CN102968174A (en) Deep sleep awakening method of android device
US20060068855A1 (en) Cellular phone and operational mode switching method thereof
CN112799492A (en) Information processing apparatus and control method
CN102833830A (en) Mobile intelligent terminal and method for awakening same
CN110018905A (en) Information processing method, device, computer equipment and computer readable storage medium
CN100505796C (en) Time displaying method for cell phone
CN103345297A (en) Method and device for managing power source
CN100419624C (en) Power-supply management system and method for mobile terminal equipment
CN106686633A (en) Method for preventing WIFI malicious frequent awakening
CN110032397B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN106020426B (en) A kind of method for releasing and device waking up lock
CN101655734A (en) Computer with power saving state control and control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160907

Termination date: 20190626