CN105334939B - Terminal power consumption control method and device - Google Patents

Terminal power consumption control method and device Download PDF

Info

Publication number
CN105334939B
CN105334939B CN201410307741.4A CN201410307741A CN105334939B CN 105334939 B CN105334939 B CN 105334939B CN 201410307741 A CN201410307741 A CN 201410307741A CN 105334939 B CN105334939 B CN 105334939B
Authority
CN
China
Prior art keywords
cpu
terminal
grade
frequency
performance requirement
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
Application number
CN201410307741.4A
Other languages
Chinese (zh)
Other versions
CN105334939A (en
Inventor
蔡旋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING ANTUTU TECHNOLOGY Co Ltd
Original Assignee
BEIJING ANTUTU TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING ANTUTU TECHNOLOGY Co Ltd filed Critical BEIJING ANTUTU TECHNOLOGY Co Ltd
Priority to CN201410307741.4A priority Critical patent/CN105334939B/en
Publication of CN105334939A publication Critical patent/CN105334939A/en
Application granted granted Critical
Publication of CN105334939B publication Critical patent/CN105334939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of terminal power consumption control method and devices.This method comprises: determining the application program for operating in terminal foreground;Determine the performance requirement information of the application program tested out in advance;Wherein, performance requirement information is used to indicate: performance requirement when application program operates normally;Determine that being used to indicate terminal can be provided the parameter information of peak performance;According to performance requirement information and parameter information, the setting target value of CPU working frequency is determined;According to identified setting target value, the CPU working frequency of terminal is configured.Wherein, since use feeling of the user for foreground application is more sensitive, guarantee the normal operation of foreground application as far as possible according to the performance requirement setting CPU working frequency of foreground application, user's usage experience with higher can be made;Also, when performance requirement is lower, CPU working frequency be can be set to lower, achieve the purpose that effective economize on electricity with this.

Description

Terminal power consumption control method and device
Technical field
Terminal control field of the present invention, in particular to a kind of terminal power consumption control method and device.
Background technique
With the development that science and technology is at full speed, various terminals are constantly enriched and facilitate popular life.Due to using eventually End processing information has the advantages such as convenient and efficient, saving resource, so that terminal becomes indispensable in people's lives or work A part.
Wherein, for terminal portable for tablet computer, smart phone, laptop etc., in no external electricity In the case where source, it can use battery and work.But due to limited battery capacity, in order to extend the battery of terminal Working time, it usually needs carry out economize on electricity processing.Existing battery saving mode are as follows: when the current residual electricity for judging terminal is lower than It is automatic to reduce CPU working frequency when threshold value, and it is lower due to CPU working frequency when, terminal institute electricity demand can be lower, therefore, energy Enough purposes for realizing economize on electricity.
Although above-mentioned battery saving mode is able to extend the working time of battery, due to being mounted on the application program of terminal CPU working frequency needed for working normally is different, so that changing automatic adjustment CPU working frequency according to terminal power may influence To the operation of certain application programs, the usage experience of user is eventually affected.Certainly, likewise, being needed for desktop computer etc. For the terminal of external power supply, there is also the demands of economize on electricity.
To sum up, how guarantee user have higher usage experience under the premise of, for terminal effectively economize on electricity be one urgently It solves the problems, such as.
Summary of the invention
Based on the above issues, the embodiment of the invention discloses a kind of terminal power consumption control method and devices, are being protected with realizing User is demonstrate,proved with the purpose under the premise of higher usage experience, effectively economized on electricity for terminal.Technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of terminal power consumption control methods, and suitable for terminal, the method Include:
Determine the application program for operating in terminal foreground;
Determine the performance requirement information of the application program tested out in advance;Wherein, the performance requirement information is used for It indicates: the performance requirement when application program operates normally;
Determine that being used to indicate the terminal can be provided the parameter information of peak performance;
According to the performance requirement information and the parameter information, the setting target value of CPU working frequency is determined;
According to identified setting target value, the CPU working frequency of the terminal is configured.
Optionally, the performance requirement information for the application program that the determination tests out in advance, comprising:
Determine the performance requirement grade of the application program tested out in advance, wherein the performance requirement grade is institute State terminal capabilities grade required when application program operates normally;
The determination, which is used to indicate the terminal, can be provided the parameter information of peak performance, comprising:
Determine the actual performance grade of the terminal, wherein the actual performance grade are as follows: in the CPU work of the terminal Working frequency is arranged to the terminal capabilities grade tested out when the settable value of highest cpu frequency.
Optionally, according to the performance requirement information and the parameter information, the setting target of CPU working frequency is determined Value, comprising:
Judge whether the performance requirement grade is not less than the actual performance grade, if so, determining the terminal institute The settable value of highest cpu frequency that can be provided, and the highest settable value of cpu frequency is determined as CPU working frequency Setting target value;
Otherwise, it determines cpu frequency requirements corresponding to the preset performance requirement grade, and by the CPU Frequency needs value is determined as the setting target value of CPU working frequency.
Optionally, according to the performance requirement information and the parameter information, the setting target of CPU working frequency is determined Value, comprising:
Judge whether the performance requirement grade is not less than the performance actual grade, if so, determining the terminal institute The settable value of highest cpu frequency that can be provided, and the highest settable value of cpu frequency is determined as CPU working frequency Setting target value;
Otherwise, according to preset formula, the settable value of the first cpu frequency is determined, and by the settable value of the first cpu frequency It is determined as the setting target value of CPU working frequency;
Wherein, the preset formula are as follows:
M=N0,
Wherein, M is the settable value of the first cpu frequency, and Y is the performance requirement grade of application program, and Q is the practical property of terminal Energy grade, N are the settable value of highest cpu frequency that the terminal can be provided, N0For not less thanCpu frequency can set Set the settable value of minimum cpu frequency in value.
Optionally, the performance requirement information of the application program tested out in advance is determined, comprising:
Determine the cpu frequency requirements for testing out the application program in advance, wherein the cpu frequency requirements are institute State the CPU operating frequency value of terminal when application program operates normally;
The determination, which is used to indicate the terminal, can be provided the parameter information of peak performance, comprising:
Determine the settable value of highest cpu frequency that the terminal can be provided;
According to the performance requirement information and the parameter information, the setting target value of CPU working frequency is determined, comprising:
Judge whether the cpu frequency requirements are not less than the settable value of highest cpu frequency, if so, by institute State the setting target value that the settable value of highest cpu frequency is determined as CPU working frequency;
Otherwise, it determines the settable value of cpu frequency of the terminal not less than the cpu frequency requirements, and will determine The settable value of minimum cpu frequency in the settable value of cpu frequency out is determined as the setting target value of CPU working frequency.
Second aspect, the embodiment of the invention also provides a kind of power consumption of terminal control devices, suitable for terminal, the dress It sets and includes:
Application program determining module, for determining the application program for operating in terminal foreground;
Performance requirement information determination module, for determining the performance requirement information of the application program tested out in advance; Wherein, the performance requirement information is used to indicate: the performance requirement when application program operates normally;
Terminal parameter information determination module, for determining that being used to indicate the terminal can be provided the parameter letter of peak performance Breath;
Target value determining module, for determining CPU working frequency according to the performance requirement information and the parameter information Setting target value;
Working frequency setup module, for according to identified setting target value, to the CPU working frequency of the terminal into Row setting.
Optionally, the performance requirement information determination module, comprising:
Performance requirement level de-termination unit, for determining the performance requirement grade of the application program tested out in advance, Wherein, the performance requirement grade is terminal capabilities grade required when the application program operates normally;
The terminal parameter information determination module, comprising:
Actual performance level de-termination unit, for determining the actual performance grade of the terminal, wherein the actual performance Grade are as follows: the terminal tested out when the CPU working frequency of the terminal is arranged to the settable value of highest cpu frequency It can grade.
Optionally, the target value determining module, comprising:
The first estate judging unit, for judging whether the performance requirement grade is not less than the actual performance grade, If so, the first determination unit of triggering;Otherwise, the second determination unit is triggered;
First determination unit, the settable value of highest cpu frequency that can be provided for determining the terminal, and will The settable value of highest cpu frequency is determined as the setting target value of CPU working frequency;
Second determination unit, for determining that cpu frequency corresponding to the preset performance requirement grade needs Evaluation, and the cpu frequency requirements are determined as to the setting target value of CPU working frequency.
Optionally, the target value determining module, comprising:
Second grade judging unit, for judging whether the performance requirement grade is not less than the actual performance grade, If so, triggering third determination unit;Otherwise, the 4th determination unit is triggered;
The third determination unit, the settable value of highest cpu frequency that can be provided for determining the terminal, and will The settable value of highest cpu frequency is determined as the setting target value of CPU working frequency;
4th determination unit, for according to preset formula, determining the settable value of the first cpu frequency, and by described the The settable value of one cpu frequency is determined as the setting target value of CPU working frequency;
Wherein, the preset formula are as follows:
M=N0,
Wherein, M is the settable value of the first cpu frequency, and Y is the performance requirement grade of application program, and Q is the practical property of terminal Energy grade, N are the settable value of highest cpu frequency that the terminal can be provided, N0For not less thanCpu frequency can set Set the settable value of minimum cpu frequency in value.
Optionally, the performance requirement information determination module, comprising:
Cpu frequency requirements determination unit, for determining the cpu frequency requirements for testing out the application program in advance, Wherein, the cpu frequency requirements are the CPU operating frequency value of terminal when the application program operates normally;
The terminal parameter information determination module, comprising:
Highest frequency determination unit, the settable value of highest cpu frequency that can be provided for determining the terminal;
The target value determining module, comprising:
Frequency judging unit can be set for judging whether the cpu frequency requirements are not less than the highest cpu frequency Value is set, if so, the first determination unit of triggering;Otherwise, the second determination unit is triggered;
First determination unit, for the highest settable value of cpu frequency to be determined as setting for CPU working frequency Set target value;
Second determination unit, for determining that the cpu frequency of the terminal not less than the cpu frequency requirements can Setting value, and the settable value of minimum cpu frequency in the settable value of the cpu frequency determined is determined as CPU working frequency Setting target value.
In the embodiment of the present invention, the application program for operating in terminal foreground is determined;Determine that this tested out in advance applies journey The performance requirement information of sequence;Wherein, which is used to indicate: the performance requirement when application program operates normally; Determine that being used to indicate the terminal can be provided the parameter information of peak performance;According to the performance requirement information and the parameter information, Determine the setting target value of CPU working frequency;According to identified setting target value, the CPU working frequency of the terminal is carried out Setting.Wherein, since use feeling of the user for foreground application is more sensitive, according to foreground application CPU working frequency is arranged to guarantee the normal operation of foreground application as far as possible in performance requirement, user can be made to have higher Usage experience;Also, when performance requirement is lower, CPU working frequency be can be set to lower, reach effective economize on electricity with this Purpose.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of the first flow chart of terminal power consumption control method provided by the embodiment of the present invention;
Fig. 2 is a kind of second of flow chart of terminal power consumption control method provided by the embodiment of the present invention;
Fig. 3 is a kind of the third flow chart of terminal power consumption control method provided by the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of power consumption of terminal control device provided by the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to effectively economize on electricity for terminal, the embodiment of the present invention mentions under the premise of guaranteeing that user has higher usage experience A kind of terminal power consumption control method and device are supplied.
A kind of terminal power consumption control method is provided for the embodiments of the invention first below to be introduced.
It should be noted that a kind of terminal power consumption control method provided by the embodiment of the present invention is suitable for terminal, In, which can be with are as follows: the portable terminals such as mobile phone, tablet computer, laptop, certainly, which may be: desk-top The non-portable terminal such as computer.
As shown in Figure 1, a kind of terminal power consumption control method, may include:
S101 determines the application program for operating in terminal foreground;
Wherein, when needing for terminal power saving, terminal can be determined to operate in the application program on terminal foreground first, into And execute subsequent operation.It will be appreciated by persons skilled in the art that in practical applications, the application program being currently running Interface is visible user, which is considered operating in terminal foreground;And the interface for the application program being currently running Be to user it is sightless, which is considered operating in terminal backstage;Also, there is usually one application program operations On the foreground of terminal, wherein can determine to operate in the application program on terminal foreground using the prior art.
Optionally, user can click the button for being used to indicate economize on electricity to issue the instruction economized on electricity to terminal, and terminal exists After receiving the instruction, it can execute and determine the step of operating in the application program on terminal foreground;Certainly, it is not limited to this.
S102 determines the performance requirement information of the application program tested out in advance;
Wherein, which is used to indicate: the performance requirement when application program operates normally.Also, it is different Performance requirement information corresponding to application program can be identical or different.
Specifically, the test mode of the performance requirement information of the application program can be such that and operate in the application program In the different terminal of performance, then, the terminal that judgement enables to the application program to operate normally, and then determine this using journey Performance requirement when sequence can operate normally.
Wherein, which can be the demand to CPU working frequency;It is of course also possible to for the globality to terminal The demand of energy, and the overall performance can be tested out by running branch, and be indicated by grade;Wherein, in order to test Terminal can be arranged according to the settable value of highest cpu frequency of terminal in the highest overall performance that terminal can be provided out CPU working frequency, then test the overall performance of terminal by running branch.
S103 determines that being used to indicate the terminal can be provided the parameter information of peak performance;
Wherein, being used to indicate the terminal and can be provided the parameter information of peak performance can indicate that terminal can be provided The performance rate of highest overall performance, or the highest settable value of cpu frequency is not limited thereto certainly.
Wherein, being used to indicate the terminal can be provided the parameter information of peak performance and the performance requirement information of application program It may belong to same type, it is of course also possible to can be converted to due to specific corresponding relationship same to belong to different type One type, this is all reasonable.
S104 determines the setting target value of CPU working frequency according to the performance requirement information and the parameter information;
In the performance performance requirement information of determining application program and it is used to indicate the terminal and can be provided peak performance After parameter information, it can be determined according to the size relation of the performance requirement information and parameter information according to certain mode The setting target value of CPU working frequency.
Wherein, for different types of performance requirement information, according to the performance requirement information and the parameter information, really The mode for determining the setting target value of CPU working frequency can be different, wherein about specific mode, following specific embodiments In will be described.
S105 is configured the CPU working frequency of the terminal according to identified setting target value.
It, can be according to the setting target value, to the CPU of the terminal after determining the setting target value of CPU working frequency Working frequency is configured, to be terminal power saving under the premise of guaranteeing that foreground application can operate normally as far as possible.
In the embodiment of the present invention, the application program for operating in terminal foreground is determined;Determine that this tested out in advance applies journey The performance requirement information of sequence;Wherein, which is used to indicate: the performance requirement when application program operates normally; Determine that being used to indicate the terminal can be provided the parameter information of peak performance;According to the performance requirement information and the parameter information, Determine the setting target value of CPU working frequency;According to identified setting target value, the CPU working frequency of the terminal is carried out Setting.Wherein, since use feeling of the user for foreground application is more sensitive, according to foreground application CPU working frequency is arranged to guarantee the normal operation of foreground application as far as possible in performance requirement, user can be made to have higher Usage experience;Also, when performance requirement is lower, CPU working frequency be can be set to lower, reach effective economize on electricity with this Purpose.
Below with reference to specific application example, it is provided for the embodiments of the invention a kind of terminal power consumption control method progress It introduces.
As shown in Fig. 2, a kind of terminal power consumption control method, may include:
S201 determines the application program for operating in terminal foreground;
Wherein, when needing for terminal power saving, terminal can be determined to operate in the application program on terminal foreground first, into And execute subsequent operation.Wherein it is possible to determine to operate in the application program on terminal foreground using the prior art.
Optionally, user can click the button for being used to indicate economize on electricity to issue the instruction economized on electricity to terminal, and terminal exists After receiving the instruction, it can execute and determine the step of operating in the application program on terminal foreground;Certainly, it is not limited to this.
S202 determines the performance requirement grade of the application program tested out in advance;
Wherein, which is terminal capabilities grade required when the application program operates normally.Also, it is different Performance requirement information corresponding to application program can be identical or different.
Specifically, the test mode of the performance requirement grade of the application program can be with are as follows:
The application program is operated in the different terminal of terminal capabilities grade, then, judgement enables to this using journey The terminal that sequence operates normally, and then determine the performance requirement grade when application program can operate normally.
Wherein, terminal capabilities grade can be the information of the overall performance of expression terminal, and the overall performance of the terminal can To be tested out by running branch, and usually score more high-performance is higher.Wherein, in order to test out the highest that terminal can be provided Overall performance, the CPU working frequency of terminal can be set according to the settable value of highest cpu frequency of terminal, then led to Cross the overall performance for running branch to test terminal.
S203 determines the actual performance grade of the terminal;
Wherein, actual performance grade are as follows: being arranged to highest cpu frequency in the CPU working frequency of the terminal can set The terminal capabilities grade tested out when setting value.
It should be noted that actual performance grade corresponding to the terminal of same type is usually identical, it therefore, can be preparatory Test out and save the actual performance grade of a variety of common type terminals.Wherein it is determined that when the actual performance grade of the terminal, such as The type of the fruit terminal is one of the type pre-saved, at this point it is possible to be directly obtained the actual performance grade of the terminal;And If the type of the terminal is not one of the type pre-saved, divide at this point it is possible to be run to terminal, and then determine the terminal Actual performance grade.
S204, judges whether the performance requirement grade is not less than the actual performance grade, if so, executing S205;Otherwise, Execute S206;
After the actual performance grade of the performance requirement grade and the terminal of determining application program, can further it judge Whether the performance requirement grade is not less than the actual performance grade, and different steps is executed according to different judging results.Its In, when judging the performance requirement grade not less than the actual performance grade, in order to guarantee the normal fortune of application program as far as possible Row, can execute S205;And when judging that the performance requirement grade is less than the actual performance grade, it, can in order to realize economize on electricity To execute S206.
S205 determines the settable value of highest cpu frequency that the terminal can be provided, and can by the highest cpu frequency Setting value is determined as the setting target value of CPU working frequency;
Wherein, when judging the performance requirement grade not less than the actual performance grade, in order to guarantee as far as possible using journey The normal operation of sequence can determine the highest CPU that the terminal can be provided to guarantee user's usage experience with higher The settable value of frequency, and the highest settable value of cpu frequency is determined as to the setting target value of CPU working frequency, it is, The peak performance that the terminal can be provided is provided for the application program.
S206 determines the settable value of the first cpu frequency according to preset formula, and the settable value of first cpu frequency is true It is set to the setting target value of CPU working frequency;
It wherein,, can be according to default in order to economize on electricity when judging that the performance requirement grade is less than the actual performance grade Formula determines the settable value of the first cpu frequency, and the settable value of the first cpu frequency is determined as to the setting of CPU working frequency Target value, thus while guarantee user higher usage experience, the power consumption of Effective Regulation terminal.Wherein, the default public affairs Formula are as follows:
M=N0,
Wherein, M is the settable value of the first cpu frequency, and Y is the performance requirement grade of application program, and Q is the practical property of terminal Energy grade, N are the settable value of highest cpu frequency that the terminal can be provided, N0For not less thanCpu frequency can set Set the settable value of minimum cpu frequency in value.
It should be noted that above-mentioned formula is merely exemplary, the restriction to the embodiment of the present invention should not be constituted.
It in another embodiment of the invention, can when judging that the performance requirement grade is less than the actual performance grade With cpu frequency requirements corresponding to the preset performance requirement grade of determination, and the cpu frequency requirements are determined as The setting target value of CPU working frequency.Certainly, which is settable value.
S207 is configured the CPU working frequency of the terminal according to identified setting target value.
It, can be according to the setting target value, to the CPU of the terminal after determining the setting target value of CPU working frequency Working frequency is configured, to effectively economize on electricity under the premise of guaranteeing the normal operation of the application program as far as possible for terminal.
In the present solution, since use feeling of the user for foreground application is more sensitive, according to foreground application CPU working frequency is arranged to guarantee the normal operation of foreground application as far as possible in the performance requirement of program, can user be had There is higher usage experience;Also, when performance requirement is lower, CPU working frequency be can be set to lower, and having been reached with this has Imitate the purpose of economize on electricity.
Below with reference to another specific application example, it is provided for the embodiments of the invention a kind of terminal power consumption control method It is introduced.
As shown in figure 3, a kind of terminal power consumption control method, may include:
S301 determines the application program for operating in terminal foreground;
Wherein, when needing for terminal power saving, terminal can be determined to operate in the application program on terminal foreground first, into And execute subsequent operation.Wherein it is possible to determine to operate in the application program on terminal foreground using the prior art.
Optionally, user can click the button for being used to indicate economize on electricity to issue the instruction economized on electricity to terminal, and terminal exists After receiving the instruction, it can execute and determine the step of operating in the application program on terminal foreground;Certainly, it is not limited to this.
S302 determines the cpu frequency requirements for testing out the application program in advance;
Wherein, the cpu frequency requirements are the CPU operating frequency value of terminal when the application program operates normally.Also, Cpu frequency requirements corresponding to different application can be identical or different.
Wherein, the test mode of the cpu frequency requirements of the application program can be with are as follows:
The application program is operated in the different terminal of CPU operating frequency value, then, judgement enables to this using journey The terminal that sequence operates normally, and then determine the cpu frequency requirements when application program can operate normally.
S303 determines the settable value of highest cpu frequency that the terminal can be provided;
Wherein, in practical application, the settable value of the cpu frequency which can be provided is multiple discontinuous numerical value.
S304, judges whether the cpu frequency requirements are not less than the highest settable value of cpu frequency, if so, executing S305;Otherwise, S306 is executed;
It, can be with after the settable value of highest cpu frequency of the cpu frequency requirements of determining application program and the terminal Further judge whether the cpu frequency requirements are not less than the highest settable value of cpu frequency, and according to different judgement knots Fruit executes different steps.Wherein, when judging settable not less than the highest cpu frequency value of the cpu frequency requirements, In order to guarantee the normal operation of application program as far as possible, S305 can be executed;And works as and judge that the cpu frequency requirements are less than this most When the settable value of high cpu frequency, in order to economize on electricity, S306 can be executed.
The highest settable value of cpu frequency is determined as the setting target value of CPU working frequency by S305;
Wherein, when judging settable not less than the highest cpu frequency value of the cpu frequency requirements, in order to as far as possible The normal operation for guaranteeing application program can by the highest cpu frequency to guarantee user's usage experience with higher Setting value is determined as the setting target value of CPU working frequency, it is, providing the terminal for the application program can be provided most High-performance.
S306 determines the cpu frequency settable value of the terminal not less than the cpu frequency requirements, and will determine The settable value of minimum cpu frequency in the settable value of cpu frequency is determined as the setting target value of CPU working frequency;
It wherein,, can in order to economize on electricity when judging that the cpu frequency requirements are less than the settable value of the highest cpu frequency To determine the settable value of cpu frequency of the terminal not less than the cpu frequency requirements, and the cpu frequency determined can be set Set the setting target value that the settable value of minimum cpu frequency in value is determined as CPU working frequency.
S307 is configured the CPU working frequency of the terminal according to identified setting target value.
It, can be according to the setting target value, to the CPU of the terminal after determining the setting target value of CPU working frequency Working frequency is configured, to effectively economize on electricity under the premise of guaranteeing the normal operation of the application program as far as possible for terminal.
In the present solution, since use feeling of the user for foreground application is more sensitive, according to foreground application CPU working frequency is arranged to guarantee the normal operation of foreground application as far as possible in the performance requirement of program, can user be had There is higher usage experience;Also, when performance requirement is lower, CPU working frequency be can be set to lower, and having been reached with this has Imitate the purpose of economize on electricity.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of power consumption of terminal control devices, are suitable for In terminal, as shown in figure 4, the apparatus may include:
Application program determining module 410, for determining the application program for operating in terminal foreground;
Performance requirement information determination module 420, for determining the performance requirement letter of the application program tested out in advance Breath;Wherein, the performance requirement information is used to indicate: the performance requirement when application program operates normally;
Terminal parameter information determination module 430, for determining that being used to indicate the terminal can be provided the ginseng of peak performance Number information;
Target value determining module 440, for determining that CPU works according to the performance requirement information and the parameter information The setting target value of frequency;
Working frequency setup module 450, for working frequently the CPU of the terminal according to identified setting target value Rate is configured.
In the embodiment of the present invention, the application program for operating in terminal foreground is determined;Determine that this tested out in advance applies journey The performance requirement information of sequence;Wherein, which is used to indicate: the performance requirement when application program operates normally; Determine that being used to indicate the terminal can be provided the parameter information of peak performance;According to the performance requirement information and the parameter information, Determine the setting target value of CPU working frequency;According to identified setting target value, the CPU working frequency of the terminal is carried out Setting.Wherein, since use feeling of the user for foreground application is more sensitive, according to foreground application CPU working frequency is arranged to guarantee the normal operation of foreground application as far as possible in performance requirement, user can be made to have higher Usage experience;Also, when performance requirement is lower, CPU working frequency be can be set to lower, reach effective economize on electricity with this Purpose.
Wherein, the performance requirement information determination module 420 may include:
Performance requirement level de-termination unit, for determining the performance requirement grade of the application program tested out in advance, Wherein, the performance requirement grade is terminal capabilities grade required when the application program operates normally;
The terminal parameter information determination module 430 may include:
Actual performance level de-termination unit, for determining the actual performance grade of the terminal, wherein the actual performance Grade are as follows: the terminal tested out when the CPU working frequency of the terminal is arranged to the settable value of highest cpu frequency It can grade.
Wherein, the target value determining module 440 may include:
The first estate judging unit, for judging whether the performance requirement grade is not less than the actual performance grade, If so, the first determination unit of triggering;Otherwise, the second determination unit is triggered;
First determination unit, the settable value of highest cpu frequency that can be provided for determining the terminal, and will The settable value of highest cpu frequency is determined as the setting target value of CPU working frequency;
Second determination unit, for determining that cpu frequency corresponding to the preset performance requirement grade needs Evaluation, and the cpu frequency requirements are determined as to the setting target value of CPU working frequency.
Wherein, the target value determining module 440 may include:
Second grade judging unit, for judging whether the performance requirement grade is not less than the actual performance grade, If so, triggering third determination unit;Otherwise, the 4th determination unit is triggered;
The third determination unit, the settable value of highest cpu frequency that can be provided for determining the terminal, and will The settable value of highest cpu frequency is determined as the setting target value of CPU working frequency;
4th determination unit, for according to preset formula, determining the settable value of the first cpu frequency, and by described the The settable value of one cpu frequency is determined as the setting target value of CPU working frequency;
Wherein, the preset formula are as follows:
M=N0,
Wherein, M is the settable value of the first cpu frequency, and Y is the performance requirement grade of application program, and Q is the practical property of terminal Energy grade, N are the settable value of highest cpu frequency that the terminal can be provided, N0For not less thanCpu frequency can set Set the settable value of minimum cpu frequency in value.
Wherein, the performance requirement information determination module 420 may include:
Cpu frequency requirements determination unit, for determining the cpu frequency requirements for testing out the application program in advance, Wherein, the cpu frequency requirements are the CPU operating frequency value of terminal when the application program operates normally;
The terminal parameter information determination module 430 may include:
Highest frequency determination unit, the settable value of highest cpu frequency that can be provided for determining the terminal;
The target value determining module 440 may include:
Frequency judging unit can be set for judging whether the cpu frequency requirements are not less than the highest cpu frequency Value is set, if so, the first determination unit of triggering;Otherwise, the second determination unit is triggered;
First determination unit, for the highest settable value of cpu frequency to be determined as setting for CPU working frequency Set target value;
Second determination unit, for determining that the cpu frequency of the terminal not less than the cpu frequency requirements can Setting value, and the settable value of minimum cpu frequency in the settable value of the cpu frequency determined is determined as CPU working frequency Setting target value.
For system embodiments, since it is substantially similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium, The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (4)

1. a kind of terminal power consumption control method, which is characterized in that suitable for terminal, which comprises
Determine the application program for operating in terminal foreground;
Determine the performance requirement grade of the application program tested out in advance, wherein the performance requirement grade is described answers Required terminal capabilities grade when with normal program operation;
Determine the actual performance grade of the terminal, wherein the actual performance grade are as follows: work frequently in the CPU of the terminal Rate is arranged to the terminal capabilities grade tested out when the settable value of highest cpu frequency;
According to the performance requirement grade and the actual performance grade, the setting target value of CPU working frequency is determined;
According to identified setting target value, the CPU working frequency of the terminal is configured;
It is described to determine the setting target value of CPU working frequency according to the performance requirement grade and the actual performance grade, packet It includes:
Judge whether the performance requirement grade is not less than the actual performance grade, if so, determining that the terminal can mention The settable value of highest cpu frequency supplied, and the highest settable value of cpu frequency is determined as setting for CPU working frequency Set target value;
Otherwise, it according to preset formula, determines the settable value of the first cpu frequency, and the settable value of first cpu frequency is determined For the setting target value of CPU working frequency;
Wherein, the preset formula are as follows:
Wherein, M is the settable value of the first cpu frequency, and Y is the performance requirement grade of application program, and Q is the actual performance etc. of terminal Grade, N are the settable value of highest cpu frequency that the terminal can be provided, N0For not less thanThe settable value of cpu frequency In the settable value of minimum cpu frequency.
2. the method according to claim 1, wherein according to the performance requirement grade and described actual performance etc. Grade, determines the setting target value of CPU working frequency, comprising:
Judge whether the performance requirement grade is not less than the actual performance grade, if so, determining that the terminal can mention The settable value of highest cpu frequency supplied, and the highest settable value of cpu frequency is determined as setting for CPU working frequency Set target value;
Otherwise, it determines cpu frequency requirements corresponding to the preset performance requirement grade, and by the cpu frequency Requirements are determined as the setting target value of CPU working frequency.
3. a kind of power consumption of terminal control device, which is characterized in that suitable for terminal, described device includes:
Application program determining module, for determining the application program for operating in terminal foreground;
Performance requirement level de-termination unit, for determining the performance requirement grade of the application program tested out in advance, wherein The performance requirement grade is terminal capabilities grade required when the application program operates normally;
Actual performance level de-termination unit, for determining the actual performance grade of the terminal, wherein the actual performance grade Are as follows: the terminal capabilities etc. tested out when the CPU working frequency of the terminal is arranged to the settable value of highest cpu frequency Grade;
Target value determining module, for determining CPU working frequency according to the performance requirement grade and the actual performance grade Setting target value;
Working frequency setup module, for being set to the CPU working frequency of the terminal according to identified setting target value It sets;
The target value determining module, comprising:
Second grade judging unit, for judging whether the performance requirement grade is not less than the actual performance grade, if It is to trigger third determination unit;Otherwise, the 4th determination unit is triggered;
The third determination unit, the settable value of highest cpu frequency that can be provided for determining the terminal, and will be described The highest settable value of cpu frequency is determined as the setting target value of CPU working frequency;
4th determination unit, for according to preset formula, determining the settable value of the first cpu frequency, and by the first CPU The settable value of frequency is determined as the setting target value of CPU working frequency;
Wherein, the preset formula are as follows:
Wherein, M is the settable value of the first cpu frequency, and Y is the performance requirement grade of application program, and Q is the actual performance etc. of terminal Grade, N are the settable value of highest cpu frequency that the terminal can be provided, N0For not less thanThe settable value of cpu frequency In the settable value of minimum cpu frequency.
4. device according to claim 3, which is characterized in that the target value determining module, comprising:
The first estate judging unit, for judging whether the performance requirement grade is not less than the actual performance grade, if It is to trigger the first determination unit;Otherwise, the second determination unit is triggered;
First determination unit, the settable value of highest cpu frequency that can be provided for determining the terminal, and will be described The highest settable value of cpu frequency is determined as the setting target value of CPU working frequency;
Second determination unit, for determining cpu frequency requirements corresponding to the preset performance requirement grade, And the cpu frequency requirements are determined as to the setting target value of CPU working frequency.
CN201410307741.4A 2014-06-30 2014-06-30 Terminal power consumption control method and device Active CN105334939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410307741.4A CN105334939B (en) 2014-06-30 2014-06-30 Terminal power consumption control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410307741.4A CN105334939B (en) 2014-06-30 2014-06-30 Terminal power consumption control method and device

Publications (2)

Publication Number Publication Date
CN105334939A CN105334939A (en) 2016-02-17
CN105334939B true CN105334939B (en) 2019-03-01

Family

ID=55285541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410307741.4A Active CN105334939B (en) 2014-06-30 2014-06-30 Terminal power consumption control method and device

Country Status (1)

Country Link
CN (1) CN105334939B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020990B (en) * 2016-06-30 2020-01-10 宇龙计算机通信科技(深圳)有限公司 Control method of central processing unit and terminal equipment
CN106249844A (en) * 2016-07-29 2016-12-21 宇龙计算机通信科技(深圳)有限公司 Processor working frequency and/or the work method of adjustment of check figure, device and terminal
CN106293913A (en) * 2016-08-01 2017-01-04 宇龙计算机通信科技(深圳)有限公司 The control method of application program, control device and terminal
CN106569576A (en) * 2016-10-14 2017-04-19 捷开通讯(深圳)有限公司 CPU performance mode adjustment method and mobile device
WO2018112824A1 (en) * 2016-12-22 2018-06-28 Orange Method for operating a device comprising a processing unit having a switchable power saving mode
US11275424B2 (en) 2016-12-22 2022-03-15 Orange Method for operating a device having a switchable power saving mode for reducing its power consumption
CN108958449B (en) * 2017-05-26 2023-07-07 中兴通讯股份有限公司 CPU power consumption adjusting method and device
CN107357658A (en) * 2017-06-29 2017-11-17 上海斐讯数据通信技术有限公司 A kind of method and system for adjusting mobile terminal cpu frequency
CN110231962B (en) * 2019-06-10 2020-01-07 Oppo广东移动通信有限公司 Process performance configuration method, device, terminal and storage medium

Citations (4)

* 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
CN103500003A (en) * 2013-09-30 2014-01-08 北京奇虎科技有限公司 Method and device for regulating CPU frequency of portable terminal
CN103677210A (en) * 2012-09-10 2014-03-26 三星电子株式会社 Method of performing dynamic voltage and frequency, application processor and mobile device
CN103838353A (en) * 2014-01-02 2014-06-04 深圳市金立通信设备有限公司 Method and terminal for controlling processor operation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6889332B2 (en) * 2001-12-11 2005-05-03 Advanced Micro Devices, Inc. Variable maximum die temperature based on performance state

Patent Citations (4)

* 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
CN103677210A (en) * 2012-09-10 2014-03-26 三星电子株式会社 Method of performing dynamic voltage and frequency, application processor and mobile device
CN103500003A (en) * 2013-09-30 2014-01-08 北京奇虎科技有限公司 Method and device for regulating CPU frequency of portable terminal
CN103838353A (en) * 2014-01-02 2014-06-04 深圳市金立通信设备有限公司 Method and terminal for controlling processor operation

Also Published As

Publication number Publication date
CN105334939A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105334939B (en) Terminal power consumption control method and device
KR101477179B1 (en) Method And Mobile Terminal For Determining and Displaying Power Efficiency of Application
CN104216753A (en) Method for rapidly starting application program for terminal, and terminal
CN104765466B (en) The key control method and device of mobile terminal
CN104794045A (en) Prompt message displaying method and terminal
CN110908496A (en) System interaction method and wearable device
CN109660665A (en) A kind of screen control method, screen control device and terminal device
CN106648028A (en) Wearable intelligent terminal power source management method and device
EP3125101A1 (en) Screen controlling method and electronic device for supporting the same
CN103973885A (en) Data reporting method and mobile terminal
CN106055400B (en) Terminal accelerates awakening method and device
CN103106020A (en) Display method and electronic equipment
CN107885683A (en) A kind of current test method of terminal and terminal
CN104461717B (en) A kind of information processing method and electronic equipment
CN103246513A (en) Setting method for BIOS (basic input/output system) menus
CN106650409B (en) A kind of terminal control method and terminal
CN105549857B (en) A kind of control method and electric terminal of electric terminal
CN107680029A (en) Image processing method, electronic equipment and the device with store function
CN104375896B (en) A kind of information processing method and electronic equipment
CN103837835A (en) Method and device for detecting capacity decreasing degree of mobile device battery
CN111008090A (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN104063316A (en) Application testing method and device
CN109687922A (en) Signal monitoring method, device, storage medium and the mobile terminal of wireless network
CN104567845B (en) A kind of direction guidance method and mobile terminal
CN104063304B (en) Application software energy consumption ranking method oriented to mobile intelligent terminal application market

Legal Events

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