CN103677995B - A kind of control method and electronic equipment - Google Patents
A kind of control method and electronic equipment Download PDFInfo
- Publication number
- CN103677995B CN103677995B CN201210358690.9A CN201210358690A CN103677995B CN 103677995 B CN103677995 B CN 103677995B CN 201210358690 A CN201210358690 A CN 201210358690A CN 103677995 B CN103677995 B CN 103677995B
- Authority
- CN
- China
- Prior art keywords
- state
- electronic equipment
- cpu
- maximum
- frequency
- 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.)
- Active
Links
Landscapes
- Power Sources (AREA)
Abstract
The invention discloses a kind of control method and electronic equipment, applied in an electronic equipment comprising CPU, method includes:Obtain the current state of electronic equipment;Whether judge current state is first state or the second state;If current state is first state, the first control instruction is generated, if current state is the second state, the second control instruction is generated;Perform the first control instruction, CPU working frequency is controlled within the first maximum operation frequency, or perform the second control instruction, CPU working frequency is controlled within the second maximum operation frequency, can be according to electronic equipment current state, accommodation CPU maximum operation frequencies, the process resource of reduction is wasted, cpu busy percentage is improved, and then can solve the problem that the problem of caloric value is high, is increased the service life.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of control method and electronic equipment.
Background technology
With continuing to develop for computer technology, computer product also shows variation, such as:Notebook computer, separation
Formula desktop computer, the integral desktop computer that display screen and main frame are combined together, and tablet personal computer.
The electronic equipment for being combined together tablet personal computer and notebook computer is have also appeared in recent years, i.e. the electronic equipment
Possess two kinds of use states, one kind is notebook computer state, another is tablet personal computer state.
In the prior art, specifically, the electronic equipment includes a display screen, an attachment structure, and one include CPU
Main body, wherein, the display screen and the main body can by attachment structure motion for the relative rotation, wherein, it is described
CPU maximum operation frequency includes the first peak frequency and the second peak frequency, wherein, first peak frequency is more than described
Second peak frequency.When the display screen and the intersubjective angle are in the range of the first predetermined angle, such as:180 degree, electricity
Sub- equipment is in notebook computer state;When the display screen and the intersubjective angle are in the second predetermined angle scope
When, such as:360 degree, electronic equipment is in tablet personal computer state.
But in the prior art, no matter electronic equipment is to be in notebook computer state or tablet personal computer state, its CPU
Maximum operation frequency be all in first peak frequency.
Present inventor is during the embodiment of the present application technical scheme is realized, hair at least exists such as in the prior art
Lower technical problem:
Due in the prior art, no matter electronic equipment is to be in notebook computer state computer or tablet personal computer shape
State, its CPU working frequency be all in first peak frequency, so, when electronic equipment is in tablet personal computer state,
The process resource that will have CPU is wasted and the not high technical problem of utilization rate.
Further, because when electronic equipment is in tablet personal computer state, CPU working frequency is still in described first
Highest frequency, so, the power consumption that there is CPU is big, the high technical problem of caloric value.Due to there is CPU power consumption greatly, caloric value
High technical problem, so cause the component in electronic equipment, particularly CPU to be in the high-frequency condition of high temperature, and when this
When state retention time is longer, it may result in CPU and accelerate aging, or even break down.
Due in the prior art, no matter electronic equipment is to be in notebook computer state or tablet personal computer state, institute
So that electronic equipment of the prior art, which exists, to be adapted to according to the use state of electronic equipment CPU working frequency
Property adjustment technical problem.
The content of the invention
The embodiment of the present application solves electronics present in prior art by providing a kind of control method and electronic equipment
Equipment can not carry out the technical problem of accommodation according to the use state of electronic equipment to CPU working frequency.
On the one hand the embodiment of the present application provides a kind of control method, applied to an electronic equipment for including CPU, wherein,
The electronic equipment has first state and second state different from the first state, and the working frequency of the CPU is set
There are the first maximum operation frequency matched with the first state and the second maximum operation frequency matched with second state,
First maximum operation frequency is more than second maximum operation frequency, and methods described includes:Obtain the electronic equipment
Current state, whether be the first state or second state, if current state is described the if judging the current state
During one state, the first control instruction is generated, if current state is second state, the second control instruction is generated, and perform
First control instruction, the working frequency of the CPU is controlled within first maximum operation frequency, or is performed described
Second control instruction, the working frequency of the CPU is controlled within second maximum operation frequency.
Preferably, the electronic equipment has first state and second state different from the first state is specially:
The electronic equipment has Part I and Part II, when the relative position of the Part I and the Part II is in
During first position, the electronic equipment correspondence first state;When the relative position of the Part I and the Part II
When putting in the second place different from the first position, the electronic equipment correspondence second state;Or when described
When electronic equipment is adjusted to the second place by the first position, the first electronic equipment correspondence first state;
When the electronic equipment is adjusted to the first position by the second place, the first electronic equipment correspondence described second
State.
Preferably, the electronic equipment has first state and second state different from the first state is specially:
The electronic equipment has multiple application programs, when the quantity of the application program meets the first preparatory condition, the electronics
The equipment correspondence first state;When the quantity of the application program is unsatisfactory for first preparatory condition, the electronics is set
Standby correspondence second state.
Preferably, the electronic equipment has first state and second state different from the first state is specially:
When the electronic equipment receives the first operation, the electronic equipment correspondence first state;When the electronic equipment connects
When receiving the second operation different from the described first operation, the electronic equipment correspondence second state.
Preferably, described perform first control instruction, the working frequency control of the CPU is maximum described first
Within working frequency, or second control instruction is performed, the working frequency of the CPU is controlled in second maximum functional
Within frequency, it is specially:First control instruction is performed, the first maximum functional clock is exported, so that the work of the CPU
Working frequency is controlled within first maximum operation frequency, wherein the first maximum functional clock and the described first maximum work
Working frequency correspondence;Or second control instruction is performed, the second maximum functional clock is exported, so that the work of the CPU
FREQUENCY CONTROL is within second maximum operation frequency, wherein the second maximum functional clock and second maximum functional
Frequency correspondence.
On the other hand, a kind of electronic equipment is also provided in the embodiment of the present application, the electronic equipment includes a CPU, described
Electronic equipment has first state and second state different from the first state, the working frequency of the CPU be provided with
First maximum operation frequency of the first state matching and the second maximum operation frequency matched with second state, it is described
First maximum operation frequency is more than second maximum operation frequency, and the electronic equipment also includes:Obtaining unit, for obtaining
The current state of the electronic equipment;Judging unit, for judging whether the current state is the first state or described
Second state;Generation unit, if be the first state for current state, generates the first control instruction, if current state
During for second state, the second control instruction is generated;Control unit, for performing first control instruction, by the CPU
Working frequency control within first maximum operation frequency, or second control instruction is performed, by the work of the CPU
Working frequency is controlled within second maximum operation frequency.
Preferably, the electronic equipment also includes:Part I, attachment structure and Part II, wherein described first
Divide and the Part II can pass through attachment structure motion for the relative rotation;When the Part I and described second
When the relative position divided is in first position, the electronic equipment correspondence first state;When the Part I and described
When the relative position of Part II is in the second place different from the first position, the electronic equipment correspondence described second
State;Or when the electronic equipment is adjusted to the second place by the first position, first electronic equipment pair
Answer the first state;When the electronic equipment is adjusted to the first position by the second place, first electronics
Equipment correspondence second state.
Preferably, when the quantity for running on the application program on the electronic equipment meets the first preparatory condition, it is described
The electronic equipment correspondence first state;When the quantity of the application program is unsatisfactory for first preparatory condition, the electricity
Sub- equipment correspondence second state.
Preferably, the electronic equipment also includes:Receiving unit, is operated for receiving first;When the receiving unit connects
When receiving first operation, the electronic equipment correspondence first state;When the receiving unit is received different from institute
When stating the second operation of the first operation, the electronic equipment correspondence second state.
Preferably, the electronic equipment also includes:Control module, for performing first control instruction, output first
Maximum functional clock, so that the working frequency of the CPU is controlled within first maximum operation frequency, wherein described
First maximum functional clock is corresponding with first maximum operation frequency;Or the control module, it is additionally operable to perform described second
Control instruction, exports the second maximum functional clock, so that the working frequency of the CPU is controlled in second maximum functional
Within frequency, wherein the second maximum functional clock is corresponding with second maximum operation frequency.
The one or more technical schemes provided in the embodiment of the present application, have at least the following technical effects or advantages:
In the embodiment of the present application, because electronic equipment can judge current shape by the current state of the electronic equipment obtained
Whether state is first state or the second state, if current state is first state, generates the first control instruction, performs first and controls
System instruction, CPU working frequency is controlled within the first maximum operation frequency;If current state is the second state, generation
Second control instruction, performs the second control instruction, and CPU working frequency is controlled within the second maximum operation frequency, makes electricity
Sub- equipment in a particular state, reduces maximum operation frequency, can not basis so efficiently solving electronic equipment in the prior art
The use state of electronic equipment carries out the technical problem of accommodation to CPU working frequency, can be worked as according to electronic equipment
Preceding state, accommodation CPU maximum operation frequencies reduce the waste of process resource, improve cpu busy percentage.
Further, because electronic equipment can in the second condition, CPU maximum operation frequencies are adjusted in adaptively reduction, are entered
And the problem of caloric value is high is can solve the problem that, increase the service life.
Further, in embodiments of the present invention, because first state can be the Part I and second of electronic equipment
Partial relative position is in first position, or electronic equipment is adjusted to different from the first position by first position
The second place, can also be operate in electronic equipment application program meet the first preparatory condition, can also be electronic equipment
Receive the first operation, due to the second state can for electronic equipment Part I and Part II relative position be in
The different second place in the first position, or electronic equipment is adjusted to the first position by the second place,
It can also be that the application program for operating in electronic equipment is unsatisfactory for first preparatory condition, can also be received for electronic equipment
Second operation different from the described first operation, so under the various states of electronic equipment, can further reduce CPU place
The wasting of resources is managed, cpu busy percentage is further improved, and then can solve the problem that the high technical problem of caloric value, further extension CPU makes
Use the life-span.
Brief description of the drawings
Fig. 1 is the flow chart of control method in the embodiment of the application one;
Fig. 2 a are the schematic diagram of electronic equipment first state in the embodiment of the application one;
Fig. 2 b are the schematic diagram of the state of electronic equipment second in the embodiment of the application one;
Fig. 3 is the framework map of electronic equipment in the embodiment of the application one.
Embodiment
The embodiment of the present invention solves electronics present in prior art by providing a kind of control method and electronic equipment
Equipment can not carry out the technical problem of accommodation according to the use state of electronic equipment to CPU working frequency.
The problem of technical scheme of the embodiment of the present invention is solves above-mentioned, general thought is as follows:
The current state of electronic equipment is obtained, whether be first state or second state, if current shape if judging current state
When state is first state, the first control instruction is generated, if current state is the second state, the second control instruction is generated, performs
First control instruction, CPU working frequency is controlled within the first maximum operation frequency, or performs the second control instruction, will
CPU working frequency is controlled within the second maximum operation frequency, can not so efficiently solving electronic equipment in the prior art
The technical problem of accommodation is carried out to CPU working frequency according to the use state of electronic equipment, can be set according to electronics
Standby current state, accommodation CPU maximum operation frequencies, the process resource of reduction is wasted, and improves cpu busy percentage..
In order to be better understood from above-mentioned technical proposal, below in conjunction with Figure of description and specific embodiment to upper
Technical scheme is stated to be described in detail.
The present embodiment provides a kind of control method, applied to an electronic equipment for include CPU, and wherein electronic equipment is with the
One state and second state different from first state, it is maximum that CPU working frequency is provided with first matched with first state
Working frequency and the second maximum operation frequency matched with the second state, the first maximum operation frequency are more than the second maximum functional frequency
Rate.
The method that refer in Fig. 1, the embodiment of the present invention includes:
Step 101:Obtain the current state of electronic equipment.
After step 101 is performed, the method in the embodiment of the present application enters step 102, i.e.,:Whether judge current state
For first state or the second state.Wherein, electronic equipment has first state and second state different from first state, can be with
For:Electronic equipment has Part I and Part II, when the relative position of Part I and Part II is in first position
When, electronic equipment correspondence first state;When the relative position of Part I and Part II is in different from first position the
During two positions, electronic equipment the second state of correspondence;Or when electronic equipment is adjusted to the second place by first position, the first electricity
Sub- equipment correspondence first state;When electronic equipment is adjusted to first position by the second place, the first electronic equipment correspondence second
State.
Wherein, electronic equipment has first state and second state different from first state, or:Electronic equipment
With multiple application programs, when the quantity of application program meets the first preparatory condition, electronic equipment correspondence first state;When should
When being unsatisfactory for the first preparatory condition with the quantity of program, electronic equipment the second state of correspondence.
Wherein, electronic equipment has first state and second state different from first state, can also be:When electronics is set
For when receiving the first operation, electronic equipment corresponds to first state;When electronic equipment receives second different from the first operation
During operation, electronic equipment the second state of correspondence.
After step 102 is performed, the method in the embodiment of the present application enters step 103:If current state is the first shape
During state, the first control instruction is generated, if current state is the second state, the second control instruction is generated.
After step 103 is performed, the method in the embodiment of the present application enters step 104, i.e.,:The first control is performed to refer to
Order, CPU working frequency is controlled within the first maximum operation frequency, or performs the second control instruction, by CPU work frequency
Rate is controlled within the second maximum operation frequency, is specially:The first control instruction is performed, the first maximum functional clock is exported, with
CPU working frequency is set to control within the first maximum operation frequency, wherein the first maximum functional clock and the first maximum functional
Frequency correspondence;Or the second control instruction is performed, the second maximum functional clock is exported, so that CPU working frequency is controlled second
Within maximum operation frequency, wherein the second maximum functional clock is corresponding with the second maximum operation frequency.
In order to become apparent from the first state and second state different from first state that illustrate electronic equipment, such as Fig. 2 a and figure
Shown in 2b, electronic equipment includes display screen 201, attachment structure 202 and the main body 203 comprising CPU, display screen 201 and main body 203
Can be by the motion for the relative rotation of attachment structure 202, as shown in Figure 2 a, when display screen 201 and the angle of main body 203 are first
In the range of predetermined angle, such as 180 degree, electronic equipment is in notebook computer state, as shown in Figure 2 b, when display screen 201 and master
The angle of body 203 is in the second predetermined angle scope, such as 360 degree, and electronic equipment is in tablet personal computer state, or works as display screen
201 and main body 203 when being adjusted by the first predetermined angle to the second predetermined angle, electronic equipment is in first state, works as display screen
201 and main body 203 when being adjusted by the second predetermined angle to the first predetermined angle, electronic equipment is in the second state.
Electronic equipment is to be in first state, or second state different from first state, can also with run on electricity
The quantity of application program in sub- equipment is related, such as:When the data satisfaction first for running on the application program on electronic equipment is pre-
If condition, when being greater than being equal to 10, electronic equipment correspondence first state, when the number for running on the application program on electronic equipment
When amount is unsatisfactory for the first preparatory condition, when being, for example, less than equal to 10, electronic equipment the second state of correspondence.
Electronic equipment is to be in first state, or second state different from first state, can also be by electronic equipment
Whether first operation is received related, for example, when detecting the first button operation, electronic equipment correspondence first state works as electricity
Sub- equipment receives the second operation different from the first button operation, such as during button operation, electronic equipment the second state of correspondence.
Certainly, in actual applications, the type of the first operation and the second operation can also be acoustic control operation or contact action
Deng the embodiment of the present application is not specifically limited, and is also no longer illustrated one by one.
Below will be by taking the electronic equipment as an example, the implementation process to the method in the embodiment of the present application is explained in detail:
Wherein, step 101, can be the current state for obtaining electronic equipment, for example in specific implementation process:Electronics
Equipment obtains the display screen 201 of electronic equipment and the relative position of main body 203 by angular transducer, and then obtains electronic equipment
Current state.
In certain another embodiment of the present invention, it can also be realized by position sensor, mechanical switch etc., such as:
It is placed in it is possible, firstly, to which a part for position sensor is placed in into the display screen 201 of electronic equipment, another part of position sensor
The main body 203 of electronic equipment;A part for mechanical switch can also be placed in the display screen 201 of electronic equipment, it is mechanical to open
Another part of pass is placed in the main body 203 of electronic equipment;Then, by obtaining the relative position of position sensor or mechanical switch
Put, to obtain the display screen 201 of electronic equipment and the relative position of main body 203.
The number of applications that electronic equipment can also be currently operating on electronic equipment by detection obtains electronic equipment
Current state.When it is 10 that the application program run on electronic equipment, which pre-sets quantity, if operating in answering for electronic equipment
With program quantity more than 10, electronic equipment is in first state;If operating in the number of applications of electronic equipment less than 10
Individual, electronic equipment is in the second state.
Certainly, pre-setting quantity for application program in the present embodiment can also be set by user, such as 8, or 12, this hair
It is bright not to be restricted.
Electronic equipment according to the operation received, can also obtain the current state of electronic equipment.Such as:Electronic equipment is received
To the first operation for entering first state, such as during CTRL++, just determine that electronic equipment is in first state;Electronic equipment is received
To the second operation such as CTRL for entering the second state --- when, just determine that electronic equipment is in the second state.
In step 102:Whether judge current state is first state or the second state.
Continue along using an example, for example, can by judge electronic equipment display screen 201 and main body 203 it is relative
Whether position is in the first predetermined angle or the second predetermined angle scope judges whether current state is first state or second
State, specifically, by judging the angle between the display screen 201 of electronic equipment and main body 203 whether in the first predetermined angle
In the range of when, to determine that electronic equipment is for first state or the second state, such as:When corresponding first preset angle of first state
When degree scope is spent for 0-180, and in the angle corresponding with the relative position of main body 203 of display screen 201 for detecting electronic equipment
During for 180 degree, it is possible to determine that electronic equipment is in first state, in the embodiment of the present application, first state is specially pen
Remember this computer state;When the corresponding second predetermined angle scope of the second state is spent for 181-360, and detecting electronic equipment
Display screen 201 and main body 203 between angle be 360 degree, it is possible to determine electronic equipment be in the second state, in the application
In embodiment, the second state can be tablet personal computer state.
Can also be by judging whether the display screen 201 of electronic equipment and the relative position of main body 203 are preset by first
Angle adjustment judges that electronics is set to the second predetermined angle or by the second predetermined angle scope is adjusted to the first predetermined angle scope
Whether standby current state is first state or the second state, specifically, by the display screen 201 and main body that judge electronic equipment
Whether the angle between 203 is adjusted to the second predetermined angle by the first predetermined angle, such as when being adjusted by 0 degree to 90 degree, electricity
Sub- equipment is in notebook computer state;When the angle between display screen 201 and main body 203 by the second predetermined angle adjust to
In first predetermined angle, such as when being adjusted by 180 degree to 360 degree, electronic equipment is in tablet personal computer state.
Electronic equipment area is in first state, or second state different from first state, and can also run on electricity
Number of applications in sub- equipment is related.For example:The first preset value, example are met when running on the application program on electronic equipment
Such as whether judge whether electronic equipment is first state or the second state more than or equal to 10, when run on electronic equipment should
When being more than or equal to 10 with program quantity, electronic equipment is in first state, when running on the number of applications on electronic equipment
During less than 10, electronic equipment is in the second state.
Electronic equipment is to be in first state, or second state different from first state, can also be by electronic equipment
Whether first operation is received related, for example, when detecting the first button operation, electronic equipment correspondence first state works as inspection
When measuring the second button operation different from the first button operation, electronic equipment the second state of correspondence, such as user can basis
Need to input the first operation, such as CTRL++ in the electronic device, it is determined that electronic equipment is in notebook computer state, user
The second operation, such as CTRL can also be inputted in the electronic device as needed ---, it is determined that electronic equipment is in flat board pen
Remember this computer state.
Step 103:If current state is first state, the first control instruction is generated, if current state is the second state
When, generate the second control instruction.
Continue along an embodiment is used, if electronic equipment current state is first state, generation the first control instruction example
Such as high level signal, if electronic equipment current state is the second state, the second control instruction such as low level signal is generated.
Step 104:The first control instruction is performed, CPU working frequency is controlled within the first maximum operation frequency, or
The second control instruction is performed, CPU working frequency is controlled within the second maximum operation frequency, specifically, first is performed and controls
System instruction, exports the first maximum functional clock, so that CPU working frequency is controlled within the first maximum operation frequency, wherein
First maximum functional clock is corresponding with the first maximum operation frequency;Or the second control instruction is performed, during the second maximum functional of output
Clock, so that CPU working frequency is controlled within the second maximum operation frequency, wherein the second maximum functional clock and the second maximum
Working frequency correspondence.
Continue along an embodiment is used, electronic equipment performs high level signal, exports the first maximum functional clock t1, so that
CPU working frequency is controlled within the first maximum operation frequency f1, wherein the maximum works of the first maximum functional clock t1 and first
Working frequency f1 relational expression is f1=c/t1, and wherein c is constant.Electronic equipment performs low level signal, exports the second maximum functional
Clock t2 so that CPU working frequency control within the second maximum operation frequency f2, wherein the second maximum functional clock t2 with
Second maximum operation frequency f2 relational expression is f2=c/t2.
If electronic equipment current state is first state, due to electronic equipment in first state it is corresponding first maximum
Working frequency is big, so electronic equipment power consumption in first state is big, heat dissipation capacity is high, and electronic equipment works long hours first most
Big working frequency may result in CPU failures.
If electronic equipment current state is the second state, due to electronic equipment in the second state it is corresponding second maximum
Working frequency is small, so electronic equipment can reduce process resource waste in the second state, cpu busy percentage is improved, due to CPU
Working frequency is small, small power consumption, and then heat dissipation capacity is low, can solve the problem that the problem of caloric value is high, increases the service life.
Another embodiment of the present invention also provides a kind of electronic equipment, for realizing the method in Fig. 1 and its specific embodiment,
It refer to the Organization Chart of Fig. 2 a, Fig. 2 b and Fig. 3, Fig. 3 for the present embodiment electronic equipment.
As shown in Fig. 2 a, Fig. 2 b and Fig. 3, the electronic equipment that the present embodiment is provided includes a CPU301, and electronic equipment has
First state and second state different from first state, CPU301 working frequency are provided with matched with first state first
Maximum operation frequency and the second maximum operation frequency matched with the second state, the first maximum operation frequency are more than the second maximum work
Working frequency, electronic equipment also includes:Obtaining unit 302, the current state for obtaining electronic equipment;Judging unit 303, is used for
Whether judge current state is first state or the second state;Generation unit 304, if be first state for current state,
The first control instruction is generated, if current state is the second state, the second control instruction is generated;Control unit 305, for performing
First control instruction, CPU working frequency is controlled within the first maximum operation frequency, or performs the second control instruction, will
CPU working frequency is controlled within the second maximum operation frequency.
Further, electronic equipment also includes:Part I 201;Attachment structure 202;The wherein Part I of Part II 203
201 and Part II 203 can pass through the motion for the relative rotation of attachment structure 202;When Part I 201 and Part II 203
Relative position be in first position when, electronic equipment correspondence first state;When the phase of Part I 201 and Part II 203
When being in the second place different from first position to position, electronic equipment the second state of correspondence;Or when electronic equipment is by
During one position adjustment to the second place, the first electronic equipment correspondence first state;When electronic equipment is adjusted to by the second place
During one position, the first electronic equipment the second state of correspondence.
Further, when the quantity for running on the application program on electronic equipment meets the first preparatory condition, electronic equipment
Correspondence first state;When the quantity of application program is unsatisfactory for the first preparatory condition, electronic equipment the second state of correspondence.
Further, electronic equipment also includes:Receiving unit 309, is operated for receiving first;When receiving unit receives
During one operation, electronic equipment correspondence first state;When receiving unit receives the second operation different from the first operation, electronics
Equipment the second state of correspondence.
Further, the control unit 305 in the present embodiment, specifically for performing the first control instruction, output first is maximum
Work clock, so that CPU working frequency is controlled within the first maximum operation frequency, wherein the first maximum functional clock and the
One maximum operation frequency correspondence;And/or for performing the second control instruction, the second maximum functional clock is exported, so that CPU work
Working frequency is controlled within the second maximum operation frequency, wherein the second maximum functional clock is corresponding with the second maximum operation frequency.
Various change mode and instantiation in method in previous embodiment are equally applicable to the electronics of the present embodiment
Equipment, by the detailed description of foregoing pair of method, those skilled in the art are clear that in the present embodiment that electronics is set
Standby implementation, thus it is succinct for specification, it will not be described in detail herein.
The one or more technical schemes provided in the embodiment of the present application, have at least the following technical effects or advantages:
In the embodiment of the present application, because electronic equipment can judge current shape by the current state of the electronic equipment obtained
Whether state is first state or the second state, if current state is first state, generates the first control instruction, performs first and controls
System instruction, CPU working frequency is controlled within the first maximum operation frequency;If current state is the second state, generation
Second control instruction, performs the second control instruction, and CPU working frequency is controlled within the second maximum operation frequency, makes electricity
Sub- equipment in a particular state, reduces maximum operation frequency, can not basis so efficiently solving electronic equipment in the prior art
The use state of electronic equipment carries out the technical problem of accommodation to CPU working frequency, can be worked as according to electronic equipment
Preceding state, accommodation CPU maximum operation frequencies, the process resource of reduction is wasted, and improves cpu busy percentage.
Further, because electronic equipment can in the second condition, CPU maximum operation frequencies are adjusted in adaptively reduction, are entered
And the problem of caloric value is high is can solve the problem that, increase the service life.
Further, because first state can be that the Part I of electronic equipment and the relative position of Part II are in
First position, or electronic equipment is adjusted to the second place different from the first position by first position, can be with
To operate in application program the first preparatory condition of satisfaction of electronic equipment, the first operation can also be received for electronic equipment, by
In the second state can for electronic equipment Part I and Part II relative position be in it is different from the first position
The second place, or electronic equipment is adjusted to the first position by the second place, can also be to operate in electricity
The application program of sub- equipment is unsatisfactory for first preparatory condition, can also be received for electronic equipment with the described first operation not
The second same operation, so the process resource that under the various states of electronic equipment, can further reduce CPU is wasted, enters one
Step improves cpu busy percentage, and then can solve the problem that the high technical problem of caloric value, further extension CPU service lifes.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (8)
1. a kind of control method, applied to an electronic equipment for including CPU, wherein, the electronic equipment have first state and
Second state different from the first state, it is characterised in that the working frequency of the CPU is provided with and the first state
First maximum operation frequency of matching and the second maximum operation frequency matched with second state, first maximum functional
Frequency is more than second maximum operation frequency, and methods described includes:
Obtain the current state of the electronic equipment;
Whether judge the current state is the first state or second state;
If current state is the first state, the first control instruction is generated, it is raw if current state is second state
Into the second control instruction;
First control instruction is performed, the working frequency of the CPU is controlled within first maximum operation frequency, or
Second control instruction is performed, the working frequency of the CPU is controlled within second maximum operation frequency;
Wherein, the electronic equipment has first state and second state different from the first state is specially:
The electronic equipment has multiple application programs, described when the quantity of the application program meets the first preparatory condition
The electronic equipment correspondence first state;
When the quantity of the application program is unsatisfactory for first preparatory condition, the electronic equipment correspondence second shape
State.
2. the method as described in claim 1, it is characterised in that the electronic equipment have first state and with first shape
The second different state of state is specially:
The electronic equipment has Part I and Part II, when the relative position of the Part I and the Part II
During in first position, the electronic equipment correspondence first state;
When the relative position of the Part I and the Part II is in the second place different from the first position,
The electronic equipment correspondence second state;Or
When the electronic equipment is adjusted to the second place by the first position, the electronic equipment correspondence described first
State;
When the electronic equipment is adjusted to the first position by the second place, the electronic equipment correspondence described second
State.
3. the method as described in claim 1, it is characterised in that the electronic equipment have first state and with first shape
The second different state of state is specially:
When the electronic equipment receives the first operation, the electronic equipment correspondence first state;
When the electronic equipment receives the second operation different from the described first operation, electronic equipment correspondence described the
Two-state.
4. the method as described in claim 1, it is characterised in that execution first control instruction, by the work of the CPU
Working frequency is controlled within first maximum operation frequency, or performs second control instruction, by the work frequency of the CPU
Rate is controlled within second maximum operation frequency, is specially:
First control instruction is performed, the first maximum functional clock is exported, so that the working frequency control of the CPU exists
Within first maximum operation frequency, wherein the first maximum functional clock is corresponding with first maximum operation frequency;
Or
Second control instruction is performed, the second maximum functional clock is exported, so that the working frequency control of the CPU exists
Within second maximum operation frequency, wherein the second maximum functional clock is corresponding with second maximum operation frequency.
5. a kind of electronic equipment, the electronic equipment includes a CPU, and the electronic equipment has first state and with described first
The second different state of state, it is characterised in that the working frequency of the CPU is provided with first matched with the first state
Maximum operation frequency and the second maximum operation frequency matched with second state, first maximum operation frequency are more than institute
The second maximum operation frequency is stated, the electronic equipment also includes:
Obtaining unit, the current state for obtaining the electronic equipment;
Judging unit, for judging whether the current state is the first state or second state;
Generation unit, if be the first state for current state, generates the first control instruction, if current state is described
During the second state, the second control instruction is generated;
Control unit, for performing first control instruction, by the working frequency control of the CPU in the described first maximum work
Within working frequency, or second control instruction is performed, by the working frequency control of the CPU in second maximum functional frequency
Within rate;
Wherein, when the quantity for running on the application program on the electronic equipment meets the first preparatory condition, the electronics is set
The standby correspondence first state;
When the quantity of the application program is unsatisfactory for first preparatory condition, the electronic equipment correspondence second shape
State.
6. electronic equipment as claimed in claim 5, it is characterised in that the electronic equipment also includes:
Part I;
Attachment structure;
Part II, wherein the Part I and the Part II can pass through attachment structure fortune for the relative rotation
It is dynamic;
When the relative position of the Part I and the Part II is in first position, the electronic equipment correspondence is described
First state;
When the relative position of the Part I and the Part II is in the second place different from the first position,
The electronic equipment correspondence second state;Or
When the electronic equipment is adjusted to the second place by the first position, the electronic equipment correspondence described first
State;
When the electronic equipment is adjusted to the first position by the second place, the electronic equipment correspondence described second
State.
7. electronic equipment as claimed in claim 5, it is characterised in that the electronic equipment also includes:
Receiving unit, is operated for receiving first;
When the receiving unit receives first operation, the electronic equipment correspondence first state;
When the receiving unit receives the second operation different from the described first operation, electronic equipment correspondence described the
Two-state.
8. electronic equipment as claimed in claim 5, it is characterised in that the electronic equipment also includes:
Control module, for performing first control instruction, exports the first maximum functional clock, so that the CPU's is described
Working frequency is controlled within first maximum operation frequency, wherein the first maximum functional clock is maximum with described first
Working frequency correspondence;Or
The control module, is additionally operable to perform second control instruction, the second maximum functional clock is exported, so that the CPU
The working frequency control within second maximum operation frequency, wherein the second maximum functional clock and described the
Two maximum operation frequencies correspondence.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210358690.9A CN103677995B (en) | 2012-09-24 | 2012-09-24 | A kind of control method and electronic equipment |
US13/949,802 US9354903B2 (en) | 2012-07-24 | 2013-07-24 | Control method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210358690.9A CN103677995B (en) | 2012-09-24 | 2012-09-24 | A kind of control method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103677995A CN103677995A (en) | 2014-03-26 |
CN103677995B true CN103677995B (en) | 2017-09-01 |
Family
ID=50315650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210358690.9A Active CN103677995B (en) | 2012-07-24 | 2012-09-24 | A kind of control method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103677995B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105867563B (en) * | 2015-01-22 | 2019-09-24 | 联想(北京)有限公司 | Control method of electronic device and electronic equipment |
CN105867580A (en) * | 2015-12-14 | 2016-08-17 | 乐视移动智能信息技术(北京)有限公司 | Power consumption control method and apparatus for terminal device |
CN107315635A (en) * | 2016-04-26 | 2017-11-03 | 华为技术有限公司 | The method of adjustment of the stock number of handheld device and the handheld device |
CN106879056A (en) * | 2017-02-23 | 2017-06-20 | 上海与德信息技术有限公司 | The electricity saving method and device of a kind of terminal |
CN109962984A (en) * | 2019-03-31 | 2019-07-02 | 联想(北京)有限公司 | A kind of control method and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1404280A (en) * | 2001-09-04 | 2003-03-19 | 英业达集团(上海)电子技术有限公司 | Automatic shift device and method for mobile phone |
CN1668130A (en) * | 2004-03-12 | 2005-09-14 | 日本电气株式会社 | Mobile data terminal and communication method therefor |
CN1770059A (en) * | 2004-11-04 | 2006-05-10 | 仁宝电脑工业股份有限公司 | Power Saving Method by Switching Operation Mode |
CN101807109A (en) * | 2009-03-06 | 2010-08-18 | 威盛电子股份有限公司 | Microprocessor power regulation method and microprocessor |
CN101873385A (en) * | 2010-06-04 | 2010-10-27 | 北京播思软件技术有限公司 | Device and method for entering power-saving mode of hand-held terminal rapidly |
-
2012
- 2012-09-24 CN CN201210358690.9A patent/CN103677995B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1404280A (en) * | 2001-09-04 | 2003-03-19 | 英业达集团(上海)电子技术有限公司 | Automatic shift device and method for mobile phone |
CN1668130A (en) * | 2004-03-12 | 2005-09-14 | 日本电气株式会社 | Mobile data terminal and communication method therefor |
CN1770059A (en) * | 2004-11-04 | 2006-05-10 | 仁宝电脑工业股份有限公司 | Power Saving Method by Switching Operation Mode |
CN101807109A (en) * | 2009-03-06 | 2010-08-18 | 威盛电子股份有限公司 | Microprocessor power regulation method and microprocessor |
CN101873385A (en) * | 2010-06-04 | 2010-10-27 | 北京播思软件技术有限公司 | Device and method for entering power-saving mode of hand-held terminal rapidly |
Also Published As
Publication number | Publication date |
---|---|
CN103677995A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103677995B (en) | A kind of control method and electronic equipment | |
CN106786958A (en) | Charging method, device and terminal | |
CN108268366B (en) | Test case execution method and device | |
US7549075B2 (en) | System and method for adjusting execution frequency of a central processing unit | |
EP2713239A2 (en) | Method for controlling voltage based on temperature and terminal supporting the same | |
US9384708B2 (en) | Display screen management method and device | |
CN103019367B (en) | Embedded type GPU (Graphic Processing Unit) dynamic frequency modulating method and device based on Android system | |
EP2728442B1 (en) | Method and device for controlling central processing unit | |
JP5871075B2 (en) | Method and apparatus for controlling a central processing unit | |
US20150156143A1 (en) | System and method for side display on a multi-display mobile device | |
CN103927096A (en) | Mobile terminal touch screen responding method based on levels and system thereof | |
CN104932811A (en) | Portable electronic device and method for waking up display screen by portable electronic device | |
US8788851B2 (en) | Electric device power control optimized to device operational load state | |
CN103853314B (en) | A kind of method and device automatically controlled | |
US20130221999A1 (en) | Testing system and method | |
CN102646080A (en) | System and method for configuring USB (universal serial bus) equipment in virtual environment | |
CN106448578A (en) | Display backlight control method, device and computer equipment | |
CN103605539B (en) | single-chip microcomputer system clock frequency control method and system | |
WO2017206860A1 (en) | Processing method of mobile terminal and mobile terminal | |
CN107357654A (en) | A kind of CPU overclockings working state control method and device | |
CN104468951A (en) | Information processing method and electronic equipment | |
KR20180076631A (en) | Method and system for performance boosting for semiconductor device | |
CN113433984B (en) | Temperature control method and device, readable storage medium and mobile terminal | |
CN101794161B (en) | Computer System and Its Overclocking Method | |
CN105094295B (en) | A kind of information processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |