Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
Fig. 1 is the schematic flow sheet of the first embodiment of a kind of method for controlling backlight thereof of the present invention, comprising:
100, portable terminal is set as current backlight grade corresponding to described application operating and current backlight duration according to the current application operation with backlight level and the duration backlight that described current application operates acquiescence.
Need to prove, can preset each class application operating to the acquiescence backlight level used and give tacit consent to the duration backlight.When carrying out a certain class application operating, just according to predefined acquiescence backlight level and give tacit consent to the duration backlight and set described a certain class application operating corresponding current backlight grade and current backlight duration.
Take mobile phone as example, the acquiescence backlight level during default reading electronic book is 2, and giving tacit consent to the duration backlight is 2 minutes, and then the current backlight grade when mobile phone is carried out the application operating of reading electronic book is 2, and the current backlight duration is 2 minutes.
101, judge whether to arrive the described current backlight duration, be judged as when being, reduce described current backlight grade, execution instep 102 is judged as when no, continues execution instep 101.
Input instruction by reducing described current backlight grade with prompting user.
102, after the described current backlight duration arrival, judge in the default input time limit whether new input instruction is arranged, be judged as when no, close current application operation backlight and described, be judged as when being, reset corresponding backlight level and duration backlight according to described new input instruction.
Take mobile phone as example, if the current backlight grade during the application operating A of the current execution of mobile phone is 2, the current backlight duration is 2 minutes, then cell phone system will detect in real time current backlight duration corresponding to described application operating A and whether reach 2 minutes, if the current backlight duration reaches 2 minutes, cell phone system will be reduced described A application operating the current backlight grade of using will be inputted with prompting user, simultaneously, judgement has judged whether new instruction input within the default input time limit, the described default input time limit can be set according to demand, for example be made as 5 seconds, when within the default input time limit, not having new instruction input, cell phone system is closed backlight and application operating A, when new instruction input was arranged within the default input time limit, resets and the corresponding backlight level of described instruction and duration backlight according to described new input instruction.
Fig. 2 is the schematic flow sheet of the second embodiment of a kind of method for controlling backlight thereof of the present invention, comprising:
200, portable terminal is set as current backlight grade corresponding to described application operating and current backlight duration according to the current application operation with backlight level and the duration backlight that described current application operates acquiescence.
Need to prove, can preset each class application operating to the acquiescence backlight level used and give tacit consent to the duration backlight.When carrying out a certain class application operating, just according to predefined acquiescence backlight level and give tacit consent to the duration backlight and set described a certain class application operating corresponding current backlight grade and current backlight duration.
Take mobile phone as example, the acquiescence backlight level during default reading electronic book is 2, and giving tacit consent to the duration backlight is 2 minutes, and then the current backlight grade when mobile phone is carried out the application operating of reading electronic book is 2, and the current backlight duration is 2 minutes.
201, before the current backlight duration of described current application operation do not arrive, judge whether new input instruction, be judged as when being, reset corresponding backlight level and duration backlight according to described new input instruction, be judged as when no execution instep 202.
202, judge whether to reach the described current backlight duration, be judged as when being, reduce described current backlight grade, wait for the instruction of new input application operating, be judged as when no, continue execution instep 201.
Need to prove thatstep 201 does not have inevitable context withstep 202.
203, after the described current backlight duration arrival, judge in the default input time limit whether new input instruction is arranged, be judged as when no, close current application operation backlight and described, be judged as when being, reset corresponding backlight level and duration backlight according to described new input instruction.
Take mobile phone as example, if the current backlight grade during the application operating A of the current execution of user is 2, the current backlight duration is 2 minutes, in described current backlight in the duration, cell phone system will judge whether new input instruction, if, reset corresponding backlight level and duration backlight according to described new input instruction, if not, cell phone system will detect in real time current backlight duration corresponding to described application operating A and whether reach 2 minutes, if the duration backlight reaches 2 minutes, cell phone system will be reduced current backlight grade corresponding to described A application operating and input with prompting user, simultaneously, judgement has judged whether new instruction input within the default input time limit, the described default input time limit can be set according to demand, for example be made as 5 seconds, when within the default input time limit, not having new instruction input, cell phone system is closed backlight and application operating A, when new instruction input was arranged within the default input time limit, reset with described instruction according to described new input instruction and to use mutually backlight level and duration backlight.
Concrete, Fig. 3 is that the current backlight that do not reach described current application operational correspondence in thestep 201 is when having new input instruction before the duration, reset the idiographic flow synoptic diagram of the step of corresponding backlight level and duration backlight according to described new input instruction, comprising:
300, when described new input instruction be when adjusting instruction the current backlight duration, from described new input instruction input time, to prolong the described duration backlight, the time of prolongation equals the duration backlight of described application operating acquiescence.
For example, the acquiescence that application operating A the is corresponding duration backlight is 3 minutes, the corresponding current backlight duration is 3 minutes, if current having carried out of application operating A operated in 1 minute, it is onlysurplus 2 minutes current backlight duration, if receive the current backlight duration this moment when adjusting instruction, to adjust from the described duration backlight and to prolong the application operating A duration backlight the instruction input time, the time of prolongation is that acquiescence corresponding to the application operating A duration backlight is 3 minutes.
Need to prove, can function items that adjust the described current backlight duration be set at portable terminal, or mobile terminal configuration when action sensor is arranged a certain action of definable for example rock portable terminal for adjusting the described current backlight duration.
301, when described new input instruction when switching to other application operating instruction, reset and backlight level and the backlight duration of described other application operating to using according to described other application operating.
Need to prove there is not inevitable context betweenstep 300 and thestep 301.
Further, Fig. 4 is the current backlight after the duration that arrives described current application operational correspondence in thestep 202, resets the idiographic flow synoptic diagram of the step of corresponding backlight level and duration backlight according to described new input instruction, comprising:
400, when described new input instruction is carried out the current application operational order for continuation, judge whether the current C PU load of described current application operational correspondence equals the minimum cpu load value of default described current application operational correspondence,
If not, transfer to the preoperative backlight level of described downward modulation on the current backlight grade with described application operating, and reset duration backlight of described current application operational correspondence according to current backlight duration of described setting and described current C PU load,
If, transfer to the preoperative backlight level of described downward modulation on the current backlight grade with described application operating, and the current backlight duration when duration backlight of described current application operation acquiescence is set as described application operating and continues operation.
Need to prove that described minimum cpu load value can be set as certain value or certain interval range.
Preferably, portable terminal is that each class application operating is preset cpu load value minimum when carrying out described application operating.
Be judged as when no, the duration backlight when then described current application operation continues operation equals the acquiescence duration backlight of described current application operational correspondence.
For example, the current backlight duration of application operating A is 3 minutes, giving tacit consent to the duration backlight is 2 minutes, when the execution of application operating A in the time of 3 minutes, receive the instruction that continues to carry out current operation, and the minimum cpu load that the current C PU of application operating A load is corresponding with default application operating A equates that the duration backlight when then application operating A continues to carry out is 2 minutes.
Be judged as when being, the duration backlight when then described current application operation continues is:
When the current C PU of described current application operational correspondence load value was higher than the default corresponding minimum cpu load value of current application operation, the duration backlight when then described current application operation continues operation was calculated as follows:
Current backlight when described application operating continues to carry out duration=(1+ current C PU load value) * current application operates the last duration backlight
For example, the default corresponding minimum cpu load value of application operating A is 20%, the backlight level of setting is 2, and the duration backlight is 3 minutes, when application operating A carries out arrival in the time of 3 minutes for the first time, the backlight level downward modulation, the instructions to be entered such as this moment are established the instruction of input for continuing to carry out application operating A, at this moment, the current C PU load value 30% that application operating A is corresponding
Then continue to carry out duration backlight of application operating A=(1+30%) * 3=3.9 minute.
Need to prove that portable terminal can preset the higher limit of a duration backlight, the current backlight duration when namely described application operating continues to carry out is described higher limit to the maximum.
Described portable terminal can be adjusted described higher limit according to user's request.
When the current C PU of described current application operational correspondence load value was lower than the default corresponding minimum cpu load value of current application operation, the duration backlight when then described current application operation continues operation was calculated as follows:
Current backlight when described application operating continues to carry out duration=current C PU load value * current application operates the last duration backlight
For example, the default corresponding minimum cpu load value of application operating A is 20%, the backlight level of setting is 2, and the duration backlight is 3 minutes, when application operating A carries out arrival in the time of 3 minutes for the first time, the backlight level downward modulation, the instructions to be entered such as this moment are established the instruction of input for continuing to carry out application operating A, at this moment, the current C PU load value 10% that application operating A is corresponding
Then duration=10% backlight of continuation execution application operating A * 3=0.3 minute.
Need to prove that portable terminal can preset the lower limit of a duration backlight, the current backlight duration minimum when namely described application operating continues to carry out is described lower limit.
Described portable terminal can be adjusted described lower limit according to user's request.
401, when described new input instruction when switching to other application operating instruction, reset and backlight level and the backlight duration of described other application operating to using according to described other application operating.
Concrete, when switching to other application operating, according to the default acquiescence backlight level of described other application operating and give tacit consent to current backlight grade and the current backlight duration of duration backlight when setting described other application operating and carrying out.
Need to prove there is not inevitable context betweenstep 400 and thestep 401.
Fig. 5 is the structural representation of a kind of portable terminal the first embodiment of the present invention, comprising:
Setup unit 1 is used for portable terminal and according to the current application operation backlight level and the duration backlight that described current application operates acquiescence is set as current backlight grade corresponding to described application operating and current backlight duration.
Need to prove, can preset each class application operating to the acquiescence backlight level used and give tacit consent to the duration backlight.When carrying out a certain class application operating, just according to predefined acquiescence backlight level and give tacit consent to the duration backlight and set described a certain class application operating corresponding current backlight grade and current backlight duration.
Take mobile phone as example, acquiescence backlight level during default reading electronic book is 2, giving tacit consent to the duration backlight is 2 minutes, the current backlight grade that thensetup unit 1 is set the application operating of described reading electronic book when mobile phone is carried out the application operating of reading electronic book is 2, and the current backlight duration is 2 minutes.
Thefirst judging unit 2, the duration for judging whether to reach described current backlight, be judged as when being, reduce described current backlight grade, wait for the instruction of new input application operating.
Thesecond judging unit 3, being used for described thefirst judging unit 2 is judged as when being, judge in the default input time limit whether new input instruction is arranged, be judged as when no, close current application operation backlight and described, be judged as when being, reset corresponding backlight level and duration backlight according to described new input instruction.
Take mobile phone as example, if the current backlight grade during the application operating A of the current execution of mobile phone is 2, the current backlight duration is 3 minutes, then whether detection current backlight duration corresponding to described application operating A reaches 3 minutes to thefirst judging unit 2 in real time, if the duration backlight reaches 3 minutes, the described A application operating of downward modulation is inputted with prompting user the current backlight grade of using, arrive described current backlight after the duration, 3 judgements of the second judging unit have judged whether new instruction input within the default input time limit, the described default input time limit can preset according to demand, for example be made as 5 seconds, when within the default input time limit, not having new instruction input, close backlight and application operating A, when new instruction input was arranged within the default input time limit, reset with described instruction according to described new input instruction and to use mutually backlight level and duration backlight.
Fig. 6 is the structural representation of a kind of portable terminal the second embodiment of the present invention, and different from the first embodiment shown in Figure 5 is that described portable terminal also comprises:
The3rd judging unit 4 before the current backlight duration arrival for described current application operation, has judged whether new input instruction, is judged as when being, resets corresponding backlight level and duration backlight according to described new input instruction.
Wherein, described the3rd judging unit 4 comprises:
Thesecond adjustment unit 41, for being when the current backlight duration adjusting instruction, to prolong the described duration backlight from described new input instruction input time when described new input instruction, the time of prolongation equals the duration backlight of described application operating acquiescence.
For example, the acquiescence that application operating A the is corresponding duration backlight is 3 minutes, the corresponding current backlight duration is 3 minutes, if current having carried out of application operating A operated in 1 minute, it isonly surplus 2 minutes current backlight duration, if receive the current backlight duration this moment when adjusting instruction, thesecond adjustment unit 41 prolongs the application operating A duration backlight from described duration adjustment instruction input time backlight, the time of prolongation is that acquiescence corresponding to the application operating A duration backlight is 3 minutes.
Further, described thesecond judging unit 3 comprises:
Firstjudges adjustment unit 31, be used for thesecond judging unit 3 be judged as be and described new input instruction when continuing to carry out the current application operational order, judge whether the current C PU load of described current application operational correspondence equals the minimum cpu load value of default described current application operational correspondence
If not, transfer to the preoperative backlight level of described downward modulation on the current backlight grade with described application operating, and reset duration backlight of described current application operational correspondence according to current backlight duration of described setting and described current C PU load,
If, transfer to the preoperative backlight level of described downward modulation on the current backlight grade with described application operating, and the current backlight grade when duration backlight of described current application operation acquiescence is set as described application operating and continues operation.
Need to prove that described minimum cpu load value can be set as certain value or certain interval range.
Detectingunit 32 is for the current C PU load that detects described current application operational correspondence every the Preset Time section.
Concrete, portable terminal is that each class application operating is preset cpu load value minimum when carrying out described application operating.
Be judged as when no, the duration backlight when then described current application operation continues operation equals the acquiescence duration backlight of described current application operational correspondence.
For example, the current backlight duration of application operating A is 3 minutes, giving tacit consent to the duration backlight is 2 minutes, when the execution of application operating A in the time of 3 minutes, receive the instruction that continues to carry out current operation, and the minimum cpu load that the current C PU of application operating A load is corresponding with the application operating A that presets is equal, and then first judges that the duration backlight thatadjustment unit 31 is adjusted when setting application operating A continuation execution is 2 minutes.
Be judged as when being, the duration backlight when then described current application operation continues is:
When the current C PU of described current application operational correspondence load value was higher than the default corresponding minimum cpu load value of current application operation, the duration backlight when then described current application operation continues operation was calculated as follows:
Current backlight when described application operating continues to carry out duration=(1+ current C PU load value) * current application operates the last duration backlight
For example, the default corresponding minimum cpu load value of application operating A is 20%, the backlight level of setting is 2, and the duration backlight is 3 minutes, when application operating A carries out arrival in the time of 3 minutes for the first time, the backlight level downward modulation, the instructions to be entered such as this moment are established the instruction of input for continuing to carry out application operating A, at this moment, the current C PU load value 30% that application operating A is corresponding
Then first judges thatadjustment unit 31 adjusts duration backlight of setting that application operating A continue to carry out=(1+30%) * 3=3.9 minute.
Need to prove that portable terminal can preset the higher limit of a duration backlight, the current backlight duration when namely described application operating continues to carry out is described higher limit to the maximum.
Described portable terminal can be adjusted described higher limit according to user's request.
When the current C PU of described current application operational correspondence load value was lower than the default corresponding minimum cpu load value of current application operation, the duration backlight when then described current application operation continues operation was calculated as follows:
Current backlight when described application operating continues to carry out duration=current C PU load value * current application operates the last duration backlight
For example, the default corresponding minimum cpu load value of application operating A is 20%, the backlight level of setting is 2, and the duration backlight is 3 minutes, when application operating A carries out arrival in the time of 3 minutes for the first time, the backlight level downward modulation, the instructions to be entered such as this moment are established the instruction of input for continuing to carry out application operating A, at this moment, the current C PU load value 10% that application operating A is corresponding
Then first judges thatadjustment unit 31 adjustment setting application operating A continued duration=10% backlight of execution * 3=0.3 minute.
Need to prove that portable terminal can preset the lower limit of a duration backlight, the current backlight duration minimum when namely described application operating continues to carry out is described lower limit.
Described portable terminal can be adjusted described lower limit according to user's request.
Further again, described portable terminal also comprises:
The3rd adjustment unit 5, be used for when described new input instruction when switching to other application operating instruction, according to described other application operating set and described other application operating to backlight level and duration backlight of application.
Concrete, when switching to other application operating, the 3rd adjustment unit is according to the default acquiescence backlight level of described other application operating and give tacit consent to current backlight grade and the current backlight duration of duration backlight when setting described other application operating and carrying out.
Need to prove, at other embodiment, the3rd adjustment unit 5 can be merged into a unit withsetup unit 1.
As from the foregoing, implement the embodiment of the invention, by backlight level and backlight duration the purpose to realize save mobile terminal power consumption and simultaneously meet consumers' demand different to the different application operation setting, simultaneously, portable terminal also can be adjusted backlight level and duration backlight in real time according to different input instructions and in conjunction with the operating load of mobile terminal processor, further satisfy the user when using application operating to requirement backlight, Effective Raise the intellectuality of portable terminal, for the user has brought brand-new experience.
The above is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also are considered as protection scope of the present invention.