CN105159437A - Method and device for controlling electronic equipment - Google Patents

Method and device for controlling electronic equipment Download PDF

Info

Publication number
CN105159437A
CN105159437A CN201510642380.3A CN201510642380A CN105159437A CN 105159437 A CN105159437 A CN 105159437A CN 201510642380 A CN201510642380 A CN 201510642380A CN 105159437 A CN105159437 A CN 105159437A
Authority
CN
China
Prior art keywords
mode
event
response speed
electronic equipment
system triggers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510642380.3A
Other languages
Chinese (zh)
Inventor
刘荫夏
陈实
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510642380.3A priority Critical patent/CN105159437A/en
Publication of CN105159437A publication Critical patent/CN105159437A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a method and a device for controlling electronic equipment. After a system trigger event in the electronic equipment is acquired, the attribute of the system trigger event can be determined; and a working state corresponding to the system trigger event is determined based on the attribute of the system trigger event, so that the electronic equipment is controlled to work in the working state corresponding to the system trigger event. Namely, after any one system trigger event is acquired, the working state matched with the attribute of the system trigger event is configured for the electronic equipment, a processor of the electronic equipment can run under a working frequency matched with the attribute of the system trigger event in a matched working state, so that the system power consumption is lowered. The processor can run under the working frequency matched with the attribute of the system trigger event, so that the response speed of the electronic equipment can meet the requirement of the system trigger event, and balance between system response speed and system power consumption is realized.

Description

A kind of method and device controlling electronic equipment
Technical field
The present invention relates to equipment control technology field, in particular, particularly a kind of method and device controlling electronic equipment.
Background technology
Current electronic equipment is in the consideration to operating system performance, control CPU (CentralProcessingUnit, central processing unit) adopt (ondemand) frequency modulation system as required, wherein frequency modulation system refers to the frequency of operation improving CPU after receiving any one system triggers event as required, makes CPU can responding system trigger event in time.
In the prior art, in order to the timely responding system trigger event of CPU can be made, all the frequency of operation of CPU can be risen to certain frequency often receiving any one system triggers event.As when receiving the system triggers event that response button is pressed, the frequency of operation of CPU can rise to maximum operation frequency.When CPU receives system triggers event frequently, the frequency of operation of CPU frequently can rise to maximum operation frequency from a frequency of operation, system power dissipation can be increased accordingly, especially, the frequency of operation of CPU frequently deducts a percentage maximum operation frequency from lowest operating frequency, system power dissipation can increase greatly.
Summary of the invention
In view of this, the invention provides a kind of method and the device that control electronic equipment, for equalizing system response speed and system power dissipation, technical scheme is as follows:
The invention provides a kind of method controlling electronic equipment, described method comprises:
Obtain the system triggers event in electronic equipment;
Judge the attribute of described system triggers event;
Based on the attribute of described system triggers event, determine the duty of the electronic equipment corresponding with described system triggers event;
Control described electronic equipment to work under described duty.
Preferably, the attribute of the described system triggers event of described judgement, comprising: the event identifier obtaining described system triggers event;
Based on the event identifier of described system triggers event, determine the event type of described system triggers event, described event type is an attribute of described system triggers event.
Preferably, the described attribute based on described system triggers event, determine the duty of the electronic equipment corresponding with described system triggers event, comprising:
Based on the event type of described system triggers event, determine by the corresponding relation of described event type and response priority the response priority that described system triggers event is corresponding;
When the response priority of described system triggers event is the i-th priority, determine i-th mode of operation corresponding with described i-th priority, wherein the response priority of the i-th mode of operation is higher than the response priority of the i-th-1 mode of operation, and the response priority of described i-th mode of operation is lower than the response priority of the i-th+1 mode of operation, 1≤i≤N, i is positive integer, and N is mode of operation sum.
Preferably, the described electronic equipment of described control works under described duty, comprising: obtain the response speed under described i-th mode of operation;
Based on described response speed, determine the frequency of operation of processor in described electronic equipment;
Control under described processor operates in determined frequency of operation.
Preferably, obtain the response speed under described i-th mode of operation, comprise: directly within the scope of the response speed described i-th mode of operation, obtain out maximum response speed, wherein within the scope of adjacent two response speeds, each response speed is different, or adjacent two response speed scopes comprise identical response speed.
Preferably, described based on described response speed, determine the frequency of operation of processor in described electronic equipment, comprising: in the direct operating frequency range corresponding from described maximum response speed, determine maximum frequency of operation.
Preferably, the response speed under described i-th mode of operation of described acquisition, comprising:
Based on the maximum power dissipation under described i-th mode of operation, a response speed is selected within the scope of the response speed described i-th mode of operation, the power consumption that wherein selected response speed of taking out makes electronic equipment reach is no more than the maximum power dissipation under the i-th mode of operation, within the scope of adjacent two response speeds, each response speed is different, or adjacent two response speed scopes comprise identical response speed.
Preferably, described based on described response speed, determine the frequency of operation of processor in described electronic equipment, comprising:
Based on the maximum power dissipation under described i-th mode of operation, a frequency of operation is selected in the operating frequency range that described response speed is corresponding, each frequency of operation is different in operating frequency range wherein under adjacent two mode of operations, or comprises identical frequency of operation between operating frequency range under adjacent two mode of operations.
The present invention also provides a kind of device controlling electronic equipment, and described device comprises:
Acquiring unit, for obtaining the system triggers event in electronic equipment;
Judging unit, for judging the attribute of described system triggers event;
Determining unit, for the attribute based on described system triggers event, determines the duty of the electronic equipment corresponding with described system triggers event;
Control module, works under described duty for controlling described electronic equipment.
Preferably, described judging unit is used for: the event identifier obtaining described system triggers event, based on the event identifier of described system triggers event, determine the event type of described system triggers event, described event type is an attribute of described system triggers event.
Preferably, described determining unit is used for: based on the event type of described system triggers event, the response priority that described system triggers event is corresponding is determined by the corresponding relation of described event type and response priority, when the response priority of described system triggers event is the i-th priority, determine i-th mode of operation corresponding with described i-th priority, wherein the response priority of the i-th mode of operation is higher than the response priority of the i-th-1 mode of operation, and the response priority of described i-th mode of operation is lower than the response priority of the i-th+1 mode of operation, 1≤i≤N, i is positive integer, N is mode of operation sum.
Preferably, described control module comprises:
Obtain subelement, for obtaining the response speed under described i-th mode of operation;
Determine subelement, for based on described response speed, determine the frequency of operation of processor in described electronic equipment;
Control subelement, for controlling under described processor operates in determined frequency of operation.
Preferably, described acquisition subelement is used for: directly within the scope of the response speed described i-th mode of operation, obtain out maximum response speed, wherein within the scope of adjacent two response speeds, each response speed is different, or adjacent two response speed scopes comprise identical response speed.
Preferably, described determine subelement for: directly in operating frequency range corresponding to described maximum response speed, determine maximum frequency of operation.
Preferably, described acquisition subelement is used for: based on the maximum power dissipation under described i-th mode of operation, a response speed is selected within the scope of the response speed described i-th mode of operation, the power consumption that wherein selected response speed of taking out makes electronic equipment reach is no more than the maximum power dissipation under the i-th mode of operation, within the scope of adjacent two response speeds, each response speed is different, or adjacent two response speed scopes comprise identical response speed.
Preferably, described determine subelement for: based on the maximum power dissipation under described i-th mode of operation, a frequency of operation is selected in the operating frequency range that described response speed is corresponding, each frequency of operation is different in operating frequency range wherein under adjacent two mode of operations, or comprises identical frequency of operation between operating frequency range under adjacent two mode of operations.
Compared with prior art, there is following advantage in technique scheme provided by the invention:
Technique scheme provided by the invention is after getting the system triggers event in electronic equipment, the attribute of system triggers event can be judged, based on the attribute of system triggers event, determine the duty corresponding with system triggers event, and then control electronic equipment works under the duty corresponding with system triggers event.That is after getting any one system triggers event, for the duty that the attribute of electronic configurations and system triggers event matches, under under the duty matched, the processor of electronic equipment may operate in the frequency of operation matched with the attribute of system triggers event, directly be promoted to the probability of maximum operation frequency with the frequency of operation reducing processor from lowest operating frequency, thus reduce system power dissipation.And under the processor of electronic equipment may operate in the frequency of operation matched with the attribute of system triggers event, therefore the response speed of electronic equipment can meet the requirement of system triggers event, thus realizes the equilibrium at system response time and system power dissipation these two aspects.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of process flow diagram of the method for the control electronic equipment that Fig. 1 provides for the embodiment of the present invention;
The another kind of process flow diagram of the method for the control electronic equipment that Fig. 2 provides for the embodiment of the present invention;
The structural representation of the device of the control electronic equipment that Fig. 3 provides for the embodiment of the present invention.
Embodiment
The method of control electronic equipment that the embodiment of the present invention provides and the core concept of device are: based on the attribute of system triggers event, for the duty that the attribute of electronic configurations and system triggers event matches, under under the duty matched, the processor of electronic equipment may operate in the frequency of operation matched with the attribute of system triggers event, directly be promoted to the probability of maximum operation frequency with the frequency of operation reducing processor from lowest operating frequency, thus reduce system power dissipation.And under the processor of electronic equipment may operate in the frequency of operation matched with the attribute of system triggers event, therefore the response speed of electronic equipment can meet the requirement of system triggers event, thus realizes the equilibrium at system response time and system power dissipation these two aspects.
The embodiment of the present invention is understood better for making those skilled in the art, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, it illustrates a kind of process flow diagram of the method for the control electronic equipment that the embodiment of the present invention provides, for equalizing system response speed and system power dissipation, can comprise the following steps:
101: obtain the system triggers event in electronic equipment.Wherein system triggers event is used to indicate the request that electronic equipment is currently received an operand triggering, described operand can be arbitrary hardware in electronic equipment, arbitrary application program and other equipment of being connected with electronic equipment in the display interface of electronic equipment, and these operands can as the system triggers event in the embodiment of the present invention to every request that electronic equipment sends.Such as system triggers event can be the click event of physical button in electronic equipment, or the trigger event of viewing area in electronic equipment, then or the data acquisition request that sends of other electronic equipments of being connected with electronic equipment.
102: the attribute judging system triggers event.In embodiments of the present invention, the attribute of different system trigger event can be different, wherein for any one system triggers event, its attribute can comprise event type, Time To Event and Event origin etc., the time that wherein Time To Event can receive system triggers event with electronic equipment is as the criterion, it is the request sent by which operand that Event origin is used to indicate, and therefore can be obtained by the transmit leg of request for Event origin.Which kind of types of events is the system triggers event that corresponding event type is then used to indicate current acquisition be, as first kind event (mainly the trigger event of mouse and button), Second Type event (mainly the trigger event of the medium such as video, image and audio frequency).
That is in embodiments of the present invention, event type can divide according to the system triggers event of electronic equipment process, obtains multiple event type.And in order to carry out distinguishing the mode that can adopt event identifier to event type, the corresponding a kind of event type of one of them event identifier.Such as 001 corresponding first kind event, 002 corresponding Second Type event.
Because above-mentioned event identifier can corresponding unique cases type, and event type is an attribute of system triggers event, so judge that a kind of mode of the attribute of system triggers event is in embodiments of the present invention: the event identifier obtaining system triggers event, based on the event identifier of system triggers event, the event type of certainty annuity trigger event, thus the attribute using event type as system triggers event.
Certainly other parameters can also be adopted in embodiments of the present invention to judge the attribute of system triggers event, as above-mentioned Event origin.After receiving arbitrary system triggers event, the operating system run in electronic equipment can detect the transmit leg of this system triggers event, and this transmit leg indicates the Event origin of system triggers event, and then using the attribute of Event origin as system triggers event.Except detected the mode of Event origin by operating system except, Event origin mark can also be carried in embodiments of the present invention in system triggers event, the Event origin mark that each Event origin is corresponding different, therefore namely can the Event origin of certainty annuity trigger event based on Event origin mark.
103: based on the attribute of system triggers event, determine the duty of the electronic equipment corresponding with system triggers event.
Electronic equipment adopts existing when frequency modulation system carrys out control processor as required, the frequency of operation of processor can be risen to maximum operation frequency after electronic equipment receives arbitrary system triggers event, and for part system trigger event, the frequency of operation of processor still can meet the demand of system triggers event when not rising to maximum operation frequency, therefore the duty of the electronic equipment corresponding with system triggers event can be determined in embodiments of the present invention based on the attribute of system triggers event, namely for each system triggers event, be the corresponding duty of electronic configurations based on its attribute, and be the processor configuration frequency of operation corresponding with system triggers event in electronic equipment under corresponding duty, directly rise to the probability of maximum operation frequency like this from a frequency of operation relative to the frequency of operation that can reduce processor prior art, and then reduction system power dissipation.
104: control electronic equipment lower work in working order.In embodiments of the present invention, the feasible pattern controlling electronic equipment lower work is in working order: obtain the frequency of operation corresponding with system triggers event for the processor configuration in electronic equipment under duty, and then under control processor operates in configured frequency of operation.
Owing to being the corresponding duty of electronic configurations based on the attribute of system triggers event and being the mode of the frequency of operation corresponding with system triggers event of the processor configuration in electronic equipment under corresponding duty, the probability of maximum operation frequency is directly risen to from a frequency of operation, so system power dissipation can be reduced when processor operates under configured frequency of operation relative to the frequency of operation that can reduce processor prior art.And the Attribute Relative of the frequency of operation of configuration and system triggers event is answered, the requirement of system triggers event to system response time can be met to a certain extent.
As can be seen from the technical scheme that the invention described above embodiment provides, the method of the control electronic equipment that the embodiment of the present invention provides is after getting the system triggers event in electronic equipment, the attribute of system triggers event can be judged, based on the attribute of system triggers event, determine the duty corresponding with system triggers event, and then control electronic equipment works under the duty corresponding with system triggers event.That is after getting any one system triggers event, for the duty that the attribute of electronic configurations and system triggers event matches, under under the duty matched, the processor of electronic equipment may operate in the frequency of operation matched with the attribute of system triggers event, directly be promoted to the probability of maximum operation frequency with the frequency of operation reducing processor from lowest operating frequency, thus reduce system power dissipation.And under the processor of electronic equipment may operate in the frequency of operation matched with the attribute of system triggers event, therefore the response speed of electronic equipment can meet the requirement of system triggers event, thus realizes the equilibrium at system response time and system power dissipation these two aspects.
Below for this attribute of the event type of system triggers event, elaborate the frequency of operation how determined based on the event type of system triggers event under duty, specifically can consult shown in Fig. 2, can comprise the following steps:
201: obtain the system triggers event in electronic equipment.Wherein system triggers event is used to indicate the request that electronic equipment is currently received an operand triggering, described operand can be arbitrary hardware in electronic equipment, arbitrary application program and other equipment of being connected with electronic equipment in the display interface of electronic equipment, and these operands can as the system triggers event in the embodiment of the present invention to every request that electronic equipment sends.Such as system triggers event can be the click event of physical button in electronic equipment, or the trigger event of viewing area in electronic equipment, then or the data acquisition request that sends of other electronic equipments of being connected with electronic equipment.
202: the event identifier obtaining system triggers event.
203: based on the event identifier of system triggers event, the event type of certainty annuity trigger event, wherein event type is an attribute of system triggers event.
In embodiments of the present invention, event identifier is the standard of the event type of compartment system trigger event, a corresponding a kind of event type of event identifier, such as 001 corresponding first kind event, 002 corresponding Second Type event, therefore in embodiments of the present invention can based on the event type of the direct certainty annuity trigger event of the event identifier of system triggers event.
204: based on the event type of system triggers event, carry out response priority corresponding to certainty annuity trigger event by the corresponding relation of event type and response priority.
In embodiments of the present invention, it is that the event type of system triggers event is used to indicate the system triggers event that current electronic device gets for which kind of type of time, for the system triggers event of different event type, the speed of electronic equipment responding system trigger event is also different, and namely the system triggers event of often kind of event type response priority is in the electronic device different.
Such as the click event of physical button in electronic equipment, these three kinds of system trigger events of detection event of sensor in the trigger event of viewing area and electronic equipment in electronic equipment, its response priority is followed successively by: in electronic equipment, the click event of physical button is better than the trigger event of viewing area in electronic equipment, and the trigger event of viewing area is better than the detection event of sensor in electronic equipment in electronic equipment, therefore the corresponding relation of event type and response priority can be pre-determined in the embodiment of the present invention, and then after the event type of certainty annuity trigger event, the response priority of the system triggers event of current acquisition can be determined from the corresponding relation of predetermined event type and response priority.
205: when the response priority of system triggers event is the i-th priority, determine i-th mode of operation corresponding with the i-th priority, wherein the response priority of the i-th mode of operation is higher than the response priority of the i-th-1 mode of operation, and the response priority of the i-th mode of operation is lower than the response priority of the i-th+1 mode of operation, 1≤i≤N, i is positive integer, and N is mode of operation sum.
206: obtain the response speed under the i-th mode of operation.The mode of operation that different priorities is corresponding in embodiments of the present invention can be determined according to practical application, as mode of operation can respectively: system response time is optimum, system response time and system power dissipation is balanced, system response time lower than system power dissipation and system power dissipation optimum.For these four mode of operations, its response priority is followed successively by: the response priority of system response time optimum is the highest, the response priority of system response time and system power dissipation equilibrium is higher than the response priority of system response time lower than system power dissipation, the response priority of system power dissipation optimum is minimum, and the sequence of corresponding response priority is the 4th response priority, the 3rd response priority, the 2nd response priority and the 1st response priority.Therefore, after the response priority of certainty annuity trigger event, the mode of operation of its correspondence can be obtained according to the sequence of response priority in whole priority.
For above-mentioned four mode of operations, if when response priority is the 2nd response priority, then the mode of operation of its correspondence is that system response time is lower than system power dissipation; If response priority is the 4th response priority, illustrate that its response priority is the highest, the mode of operation of its correspondence is that system response time is optimum.
Further after determining mode of operation, then need the response speed under acquisition i-th mode of operation, as for mode of operation being the mode of operation of system response time optimum, its response speed got may higher than the response speed under system response time and system power dissipation this mode of operation balanced.
In embodiments of the present invention, the response speed obtained under the i-th mode of operation includes but not limited to following two kinds of modes:
A kind of mode is: directly within the scope of the response speed the i-th mode of operation, obtain out maximum response speed, namely under each mode of operation to there being a response speed scope, directly within the scope of the response speed of its correspondence, maximum response speed is obtained out after determining the i-th mode of operation, to accelerate the response speed to system triggers event, thus elevator system response speed.
Another kind of mode is: based on the maximum power dissipation under the i-th mode of operation, a response speed is selected within the scope of the response speed the i-th mode of operation, the power consumption that wherein selected response speed of taking out makes electronic equipment reach is no more than the maximum power dissipation under the i-th mode of operation, that is between the maximum power dissipation of the power consumption that the response speed selected makes electronic equipment promote under electronic equipment current power consumption and electronic equipment operate in the i-th mode of operation, system power dissipation requirement under making electronic equipment both can meet the i-th mode of operation like this, the requirement of system triggers event to system response time can be met again.
Here it should be noted is that: obtain in response speed mode at above-mentioned two kinds, within the scope of adjacent two response speeds, each response speed is different, namely each response speed within the scope of the response speed under the i-th mode of operation is different from each response speed within the scope of the response speed under the i-th-1 mode of operation, response speed scope under such as the i-th mode of operation is [8ms, 4ms], response speed scope under i-th-1 mode of operation is [12ms, 9ms].Certainly obtain in response speed mode at above-mentioned two kinds, adjacent two response speed scopes comprise identical response speed, wherein identical response speed can be that the identical or response speed scope of partial response speed is within the scope of another response speed, namely there is identical response speed within the scope of the response speed under the response speed scope under the i-th mode of operation and the i-th-1 mode of operation, response speed scope under such as the i-th mode of operation is [8ms, 4ms], response speed scope under i-th-1 mode of operation is [10ms, 6ms], or be response speed scope under the i-th mode of operation be [8ms, 4ms], response speed scope under i-th-1 mode of operation is [8ms, 6ms], wherein ms is millisecond.
207: based on response speed, determine the frequency of operation of processor in electronic equipment.Each response speed to there being a frequency of operation, can be determined and unique frequency of operation based on response speed in such cases in embodiments of the present invention.Certain response speed also can a corresponding operating frequency range, is determining that the mode of frequency of operation includes but not limited to following two kinds of modes in such cases:
A kind of mode is: determine maximum frequency of operation in the direct operating frequency range corresponding from response speed, if above-mentioned response speed is the maximum response speed selected from the i-th mode of operation, then determine maximum frequency of operation in the direct operating frequency range corresponding from maximum response speed.
Another kind of mode is: based on the maximum power dissipation under the i-th mode of operation, a frequency of operation is selected in the operating frequency range that response speed is corresponding, the power consumption that wherein selected frequency of operation of taking out makes electronic equipment reach is no more than the maximum power dissipation under the i-th mode of operation, that is between the maximum power dissipation of the power consumption that the frequency of operation selected makes electronic equipment promote under electronic equipment current power consumption and electronic equipment operate in the i-th mode of operation, system power dissipation requirement under making electronic equipment both can meet the i-th mode of operation like this, the requirement of system triggers event to system response time can be met again.
Here it should be noted is that: in the operating frequency range under adjacent two mode of operations, each frequency of operation is different, namely each frequency of operation in the operating frequency range under the i-th mode of operation is different from each frequency of operation in the operating frequency range under the i-th-1 mode of operation, operating frequency range under such as the i-th mode of operation is [8HZ, 4HZ], operating frequency range under i-th-1 mode of operation is [12HZ, 9HZ].Certainly identical frequency of operation is comprised between adjacent two operating frequency ranges, wherein identical frequency of operation can be that the identical or operating frequency range of some work frequency is in another operating frequency range, namely there is identical frequency of operation in the operating frequency range under the operating frequency range under the i-th mode of operation and the i-th-1 mode of operation, operating frequency range under such as the i-th mode of operation is [8HZ, 4HZ], operating frequency range under i-th-1 mode of operation is [10HZ, 6HZ], or be operating frequency range under the i-th mode of operation be [8HZ, 4HZ], operating frequency range under i-th-1 mode of operation is [8HZ, 6HZ], wherein HZ is hertz.
208: under control processor operates in determined frequency of operation.
From technique scheme, the method of the control electronic equipment that the embodiment of the present invention provides can be determined to respond priority based on the event type of system triggers event, when the response priority of system triggers event is the i-th priority, determine i-th mode of operation corresponding with the i-th priority, then the response speed under acquisition i-th mode of operation, and be as the criterion with response speed and obtain frequency of operation, such processor then can the frequency of operation under the i-th mode of operation that system triggers event is corresponding run, make the system response time of electronic equipment corresponding with the requirement of system triggers event with system power dissipation, reach the equilibrium of system response time and system power dissipation as far as possible.
Corresponding with said method embodiment, the embodiment of the present invention also provides a kind of device controlling electronic equipment, and its structural representation as shown in Figure 3, can comprise: acquiring unit 11, judging unit 12, determining unit 13 and control module 14.
Acquiring unit 11, for obtaining the system triggers event in electronic equipment.Wherein system triggers event is used to indicate the request that electronic equipment is currently received an operand triggering, described operand can be arbitrary hardware in electronic equipment, arbitrary application program and other equipment of being connected with electronic equipment in the display interface of electronic equipment, and these operands can as the system triggers event in the embodiment of the present invention to every request that electronic equipment sends.Such as system triggers event can be the click event of physical button in electronic equipment, or the trigger event of viewing area in electronic equipment, then or the data acquisition request that sends of other electronic equipments of being connected with electronic equipment.
Judging unit 12, for judging the attribute of system triggers event.In embodiments of the present invention, the attribute of different system trigger event can be different, wherein for any one system triggers event, its attribute can comprise event type, Time To Event and Event origin etc., the time that wherein Time To Event can receive system triggers event with electronic equipment is as the criterion, it is the request sent by which operand that Event origin is used to indicate, and therefore can be obtained by the transmit leg of request for Event origin.Which kind of types of events is the system triggers event that corresponding event type is then used to indicate current acquisition be, as first kind event (mainly the trigger event of mouse and button), Second Type event (mainly the trigger event of the medium such as video, image and audio frequency).
That is in embodiments of the present invention, event type can divide according to the system triggers event of electronic equipment process, obtains multiple event type.And in order to carry out distinguishing the mode that can adopt event identifier to event type, the corresponding a kind of event type of one of them event identifier.Such as 001 corresponding first kind event, 002 corresponding Second Type event.
Because above-mentioned event identifier can corresponding unique cases type, and event type is an attribute of system triggers event, so judging unit 12 judges that a kind of mode of the attribute of system triggers event is in embodiments of the present invention: the event identifier obtaining system triggers event, based on the event identifier of system triggers event, the event type of certainty annuity trigger event, thus the attribute using event type as system triggers event.
Determining unit 13, for the attribute based on system triggers event, determines the duty of the electronic equipment corresponding with system triggers event.
Control module 14, for controlling electronic equipment lower work in working order.
Electronic equipment adopts existing when frequency modulation system carrys out control processor as required, the frequency of operation of processor can be risen to maximum operation frequency after electronic equipment receives arbitrary system triggers event, and for part system trigger event, the frequency of operation of processor still can meet the demand of system triggers event when not rising to maximum operation frequency, therefore determining unit 13 can determine the duty of the electronic equipment corresponding with system triggers event based on the attribute of system triggers event in embodiments of the present invention, namely for each system triggers event, be the corresponding duty of electronic configurations based on its attribute, and be the processor configuration frequency of operation corresponding with system triggers event in electronic equipment under corresponding duty, under corresponding control module 14 processors that can control in electronic equipment operate in configured frequency of operation, directly rise to the probability of maximum operation frequency like this from a frequency of operation relative to the frequency of operation that can reduce processor prior art, and then reduction system power dissipation.
As can be seen from the technical scheme that the invention described above embodiment provides, the device of the control electronic equipment that the embodiment of the present invention provides is after getting the system triggers event in electronic equipment, the attribute of system triggers event can be judged, based on the attribute of system triggers event, determine the duty corresponding with system triggers event, and then control electronic equipment works under the duty corresponding with system triggers event.That is after getting any one system triggers event, for the duty that the attribute of electronic configurations and system triggers event matches, under under the duty matched, the processor of electronic equipment may operate in the frequency of operation matched with the attribute of system triggers event, directly be promoted to the probability of maximum operation frequency with the frequency of operation reducing processor from lowest operating frequency, thus reduce system power dissipation.And under the processor of electronic equipment may operate in the frequency of operation matched with the attribute of system triggers event, therefore the response speed of electronic equipment can meet the requirement of system triggers event, thus realizes the equilibrium at system response time and system power dissipation these two aspects.
In embodiments of the present invention, judging unit 12 can carry out the event type of certainty annuity trigger event based on event identifier, determining unit 13 can based on the event type of system triggers event, response priority corresponding to certainty annuity trigger event is carried out by the corresponding relation of event type and response priority, when the response priority of system triggers event is the i-th priority, determine i-th mode of operation corresponding with the i-th priority, wherein the response priority of the i-th mode of operation is higher than the response priority of the i-th-1 mode of operation, and the response priority of the i-th mode of operation is lower than the response priority of the i-th+1 mode of operation, 1≤i≤N, i is positive integer, N is mode of operation sum.
The alternate configurations of corresponding control module 14 comprises: obtain subelement, determine subelement and control subelement; Wherein obtain subelement, for obtaining the response speed under the i-th mode of operation.
Determine subelement, for based on response speed, determine the frequency of operation of processor in electronic equipment.
Control subelement, under operating in determined frequency of operation for control processor.
In embodiments of the present invention, obtain the response speed that subelement obtains under the i-th mode of operation and include but not limited to following two kinds of modes:
A kind of mode is: directly within the scope of the response speed the i-th mode of operation, obtain out maximum response speed, namely under each mode of operation to there being a response speed scope, directly within the scope of the response speed of its correspondence, maximum response speed is obtained out after determining the i-th mode of operation, to accelerate the response speed to system triggers event, thus elevator system response speed.
Another kind of mode is: based on the maximum power dissipation under the i-th mode of operation, a response speed is selected within the scope of the response speed the i-th mode of operation, the power consumption that wherein selected response speed of taking out makes electronic equipment reach is no more than the maximum power dissipation under the i-th mode of operation, that is between the maximum power dissipation of the power consumption that the response speed selected makes electronic equipment promote under electronic equipment current power consumption and electronic equipment operate in the i-th mode of operation, system power dissipation requirement under making electronic equipment both can meet the i-th mode of operation like this, the requirement of system triggers event to system response time can be met again.
Here it should be noted is that: obtain in response speed mode at above-mentioned two kinds, within the scope of adjacent two response speeds, each response speed is different, namely each response speed within the scope of the response speed under the i-th mode of operation is different from each response speed within the scope of the response speed under the i-th-1 mode of operation, response speed scope under such as the i-th mode of operation is [8ms, 4ms], response speed scope under i-th-1 mode of operation is [12ms, 9ms].Certainly obtain in response speed mode at above-mentioned two kinds, adjacent two response speed scopes comprise identical response speed, wherein identical response speed can be that the identical or response speed scope of partial response speed is within the scope of another response speed, namely there is identical response speed within the scope of the response speed under the response speed scope under the i-th mode of operation and the i-th-1 mode of operation, response speed scope under such as the i-th mode of operation is [8ms, 4ms], response speed scope under i-th-1 mode of operation is [10ms, 6ms], or be response speed scope under the i-th mode of operation be [8ms, 4ms], response speed scope under i-th-1 mode of operation is [8ms, 6ms], wherein ms is millisecond.
Determine that the mode of subelement determination frequency of operation includes but not limited to following two kinds of modes accordingly:
A kind of mode is: determine maximum frequency of operation in the direct operating frequency range corresponding from response speed, if above-mentioned response speed is the maximum response speed selected from the i-th mode of operation, then determine maximum frequency of operation in the direct operating frequency range corresponding from maximum response speed.
Another kind of mode is: based on the maximum power dissipation under the i-th mode of operation, a frequency of operation is selected in the operating frequency range that response speed is corresponding, the power consumption that wherein selected frequency of operation of taking out makes electronic equipment reach is no more than the maximum power dissipation under the i-th mode of operation, that is between the maximum power dissipation of the power consumption that the frequency of operation selected makes electronic equipment promote under electronic equipment current power consumption and electronic equipment operate in the i-th mode of operation, system power dissipation requirement under making electronic equipment both can meet the i-th mode of operation like this, the requirement of system triggers event to system response time can be met again.
Here it should be noted is that: in the operating frequency range under adjacent two mode of operations, each frequency of operation is different, namely each frequency of operation in the operating frequency range under the i-th mode of operation is different from each frequency of operation in the operating frequency range under the i-th-1 mode of operation, operating frequency range under such as the i-th mode of operation is [8HZ, 4HZ], operating frequency range under i-th-1 mode of operation is [12HZ, 9HZ].Certainly identical frequency of operation is comprised between adjacent two operating frequency ranges, wherein identical frequency of operation can be that the identical or operating frequency range of some work frequency is in another operating frequency range, namely there is identical frequency of operation in the operating frequency range under the operating frequency range under the i-th mode of operation and the i-th-1 mode of operation, operating frequency range under such as the i-th mode of operation is [8HZ, 4HZ], operating frequency range under i-th-1 mode of operation is [10HZ, 6HZ], or be operating frequency range under the i-th mode of operation be [8HZ, 4HZ], operating frequency range under i-th-1 mode of operation is [8HZ, 6HZ], wherein HZ is hertz.
From technique scheme, the device of the control electronic equipment that the embodiment of the present invention provides can be determined to respond priority based on the event type of system triggers event, when the response priority of system triggers event is the i-th priority, determine i-th mode of operation corresponding with the i-th priority, then the response speed under acquisition i-th mode of operation, and be as the criterion with response speed and obtain frequency of operation, such processor then can the frequency of operation under the i-th mode of operation that system triggers event is corresponding run, make the system response time of electronic equipment corresponding with the requirement of system triggers event with system power dissipation, reach the equilibrium of system response time and system power dissipation as far as possible.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Above to provided by the present invention a kind of control electronic equipment method and device be described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (16)

1. control a method for electronic equipment, it is characterized in that, described method comprises:
Obtain the system triggers event in electronic equipment;
Judge the attribute of described system triggers event;
Based on the attribute of described system triggers event, determine the duty of the electronic equipment corresponding with described system triggers event;
Control described electronic equipment to work under described duty.
2. method according to claim 1, is characterized in that, the attribute of the described system triggers event of described judgement, comprising: the event identifier obtaining described system triggers event;
Based on the event identifier of described system triggers event, determine the event type of described system triggers event, described event type is an attribute of described system triggers event.
3. method according to claim 2, is characterized in that, the described attribute based on described system triggers event, determines the duty of the electronic equipment corresponding with described system triggers event, comprising:
Based on the event type of described system triggers event, determine by the corresponding relation of described event type and response priority the response priority that described system triggers event is corresponding;
When the response priority of described system triggers event is the i-th priority, determine i-th mode of operation corresponding with described i-th priority, wherein the response priority of the i-th mode of operation is higher than the response priority of the i-th-1 mode of operation, and the response priority of described i-th mode of operation is lower than the response priority of the i-th+1 mode of operation, 1≤i≤N, i is positive integer, and N is mode of operation sum.
4. method according to claim 3, is characterized in that, the described electronic equipment of described control works under described duty, comprising: obtain the response speed under described i-th mode of operation;
Based on described response speed, determine the frequency of operation of processor in described electronic equipment;
Control under described processor operates in determined frequency of operation.
5. method according to claim 4, it is characterized in that, obtain the response speed under described i-th mode of operation, comprise: directly within the scope of the response speed described i-th mode of operation, obtain out maximum response speed, wherein within the scope of adjacent two response speeds, each response speed is different, or adjacent two response speed scopes comprise identical response speed.
6. method according to claim 5, it is characterized in that, described based on described response speed, determine the frequency of operation of processor in described electronic equipment, comprising: in the direct operating frequency range corresponding from described maximum response speed, determine maximum frequency of operation.
7. method according to claim 4, is characterized in that, the response speed under described i-th mode of operation of described acquisition, comprising:
Based on the maximum power dissipation under described i-th mode of operation, a response speed is selected within the scope of the response speed described i-th mode of operation, the power consumption that wherein selected response speed of taking out makes electronic equipment reach is no more than the maximum power dissipation under the i-th mode of operation, within the scope of adjacent two response speeds, each response speed is different, or adjacent two response speed scopes comprise identical response speed.
8. method according to claim 7, is characterized in that, described based on described response speed, determines the frequency of operation of processor in described electronic equipment, comprising:
Based on the maximum power dissipation under described i-th mode of operation, a frequency of operation is selected in the operating frequency range that described response speed is corresponding, each frequency of operation is different in operating frequency range wherein under adjacent two mode of operations, or comprises identical frequency of operation between operating frequency range under adjacent two mode of operations.
9. control a device for electronic equipment, it is characterized in that, described device comprises:
Acquiring unit, for obtaining the system triggers event in electronic equipment;
Judging unit, for judging the attribute of described system triggers event;
Determining unit, for the attribute based on described system triggers event, determines the duty of the electronic equipment corresponding with described system triggers event;
Control module, works under described duty for controlling described electronic equipment.
10. device according to claim 9, it is characterized in that, described judging unit is used for: the event identifier obtaining described system triggers event, based on the event identifier of described system triggers event, determine the event type of described system triggers event, described event type is an attribute of described system triggers event.
11. devices according to claim 10, it is characterized in that, described determining unit is used for: based on the event type of described system triggers event, the response priority that described system triggers event is corresponding is determined by the corresponding relation of described event type and response priority, when the response priority of described system triggers event is the i-th priority, determine i-th mode of operation corresponding with described i-th priority, wherein the response priority of the i-th mode of operation is higher than the response priority of the i-th-1 mode of operation, and the response priority of described i-th mode of operation is lower than the response priority of the i-th+1 mode of operation, 1≤i≤N, i is positive integer, N is mode of operation sum.
12. devices according to claim 11, is characterized in that, described control module comprises:
Obtain subelement, for obtaining the response speed under described i-th mode of operation;
Determine subelement, for based on described response speed, determine the frequency of operation of processor in described electronic equipment;
Control subelement, for controlling under described processor operates in determined frequency of operation.
13. devices according to claim 12, it is characterized in that, described acquisition subelement is used for: directly within the scope of the response speed described i-th mode of operation, obtain out maximum response speed, wherein within the scope of adjacent two response speeds, each response speed is different, or adjacent two response speed scopes comprise identical response speed.
14. devices according to claim 13, is characterized in that, described determine subelement for: directly in operating frequency range corresponding to described maximum response speed, determine maximum frequency of operation.
15. devices according to claim 12, it is characterized in that, described acquisition subelement is used for: based on the maximum power dissipation under described i-th mode of operation, a response speed is selected within the scope of the response speed described i-th mode of operation, the power consumption that wherein selected response speed of taking out makes electronic equipment reach is no more than the maximum power dissipation under the i-th mode of operation, within the scope of adjacent two response speeds, each response speed is different, or adjacent two response speed scopes comprise identical response speed.
16. devices according to claim 15, it is characterized in that, described determine subelement for: based on the maximum power dissipation under described i-th mode of operation, a frequency of operation is selected in the operating frequency range that described response speed is corresponding, each frequency of operation is different in operating frequency range wherein under adjacent two mode of operations, or comprises identical frequency of operation between operating frequency range under adjacent two mode of operations.
CN201510642380.3A 2015-09-30 2015-09-30 Method and device for controlling electronic equipment Pending CN105159437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510642380.3A CN105159437A (en) 2015-09-30 2015-09-30 Method and device for controlling electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510642380.3A CN105159437A (en) 2015-09-30 2015-09-30 Method and device for controlling electronic equipment

Publications (1)

Publication Number Publication Date
CN105159437A true CN105159437A (en) 2015-12-16

Family

ID=54800318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510642380.3A Pending CN105159437A (en) 2015-09-30 2015-09-30 Method and device for controlling electronic equipment

Country Status (1)

Country Link
CN (1) CN105159437A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060391A (en) * 2016-06-27 2016-10-26 联想(北京)有限公司 Method and device for processing working mode of camera, and electronic equipment
CN106095566A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of response control mehtod and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104690A (en) * 2009-12-22 2011-06-22 康佳集团股份有限公司 Method and device for saving electric energy as well as mobile terminal
US20120239955A1 (en) * 2009-09-18 2012-09-20 Sony Computer Entertainment Inc. Electronic device
CN104156054A (en) * 2014-08-08 2014-11-19 广东欧珀移动通信有限公司 Method for reducing power consumption of mobile terminal and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120239955A1 (en) * 2009-09-18 2012-09-20 Sony Computer Entertainment Inc. Electronic device
CN102104690A (en) * 2009-12-22 2011-06-22 康佳集团股份有限公司 Method and device for saving electric energy as well as mobile terminal
CN104156054A (en) * 2014-08-08 2014-11-19 广东欧珀移动通信有限公司 Method for reducing power consumption of mobile terminal and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095566A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of response control mehtod and mobile terminal
CN106095566B (en) * 2016-05-31 2020-03-03 Oppo广东移动通信有限公司 Response control method and mobile terminal
CN106060391A (en) * 2016-06-27 2016-10-26 联想(北京)有限公司 Method and device for processing working mode of camera, and electronic equipment
US10432860B2 (en) 2016-06-27 2019-10-01 Lenovo (Beijing) Co., Ltd. Camera operation mode control
CN106060391B (en) * 2016-06-27 2020-02-21 联想(北京)有限公司 Processing method and device for working mode of camera and electronic equipment

Similar Documents

Publication Publication Date Title
US10152129B2 (en) Electronic device, method and computer program product for providing vibratory feedback
US10496151B2 (en) Method and apparatus for controlling display of electronic device
US9696840B2 (en) Information processing method and electronic device
CN105371850B (en) A kind of route navigation method and mobile terminal
US10178212B2 (en) Mobile terminal and method for determining antenna
CN104182028A (en) Method and device for processing information and electronic device
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
KR20130007737A (en) Method and apparatus for resource allocation
CN111414057A (en) Fan rotating speed control method and system, electronic equipment and storage medium
US20140176430A1 (en) Intelligent switching system, electronic device thereof, and method thereof
CN105307252A (en) Positioning signal transmitting method and device
CN105607838A (en) Information processing method and device as well as electronic equipment
CN105159437A (en) Method and device for controlling electronic equipment
CN112533447A (en) Heat dissipation method and device and electronic equipment
CN104063142B (en) Information processing method, device and electronic equipment
CN103677995B (en) A kind of control method and electronic equipment
CN106302101B (en) Message reminding method, terminal and server
CN104468951A (en) Information processing method and electronic equipment
CN103822433A (en) Information processing method and refrigerator
CN105549822B (en) A kind of icon moving method and mobile terminal
CN103019968B (en) The control method that input equipment is registered in input processing example and device
CN106873881B (en) Electronic device and toy control method
US8959258B2 (en) Detection system for detecting button being pressed and method thereof
CN109167808B (en) Data processing method, device and system
US20160026277A1 (en) Information processing method and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination