CN106055070A - Terminal power consumption control method and apparatus - Google Patents

Terminal power consumption control method and apparatus Download PDF

Info

Publication number
CN106055070A
CN106055070A CN201610353096.9A CN201610353096A CN106055070A CN 106055070 A CN106055070 A CN 106055070A CN 201610353096 A CN201610353096 A CN 201610353096A CN 106055070 A CN106055070 A CN 106055070A
Authority
CN
China
Prior art keywords
frequency
cpu
application
target
intended application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610353096.9A
Other languages
Chinese (zh)
Other versions
CN106055070B (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201610353096.9A priority Critical patent/CN106055070B/en
Publication of CN106055070A publication Critical patent/CN106055070A/en
Application granted granted Critical
Publication of CN106055070B publication Critical patent/CN106055070B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 – G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/324Power saving characterised by the action undertaken by lowering clock frequency

Abstract

The present invention discloses a terminal power consumption control method and apparatus, and belongs to the technical field of computers. The method comprises obtaining target identification of a target application when the target application is started, the target application being any one application of specified third-party applications; obtaining CPU target frequency corresponding to the target identification from a preset first corresponding relationship, the first corresponding relationship being used for recording a corresponding relationship between the identification and the CPU frequency; generating an indicating message, the indicating message comprising the CPU target frequency; and transmitting the indicating message to the CPU, the indicating message being used for indicating the CPU to control the CPU frequency to accord with the target frequency according to the indicating message during the target application operation process. The problem that in the prior art, the power consumption control effect is relatively poor is solved, the power consumption control effect is increased, and the method and apparatus are used for controlling terminal power consumption.

Description

Terminal power consumption control method and device
Technical field
The present invention relates to field of computer technology, particularly to a kind of terminal power consumption control method and device.
Background technology
Along with computer, handheld terminal universal, increasing user can select smart mobile phone, Intelligent flat computer, Should be used in the terminals such as personal computer is surfed the Net, entertains or works.Along with developing rapidly of terminal unit technology, at multinuclear The application of reason device, the hardware performance of terminal is become better and better, but the power consumption of terminal increases the most therewith, causes the battery durable of terminal Time shortens.
Having a kind of terminal power consumption control method in prior art, the method is optimized by applying the system of terminal, The power consumption of terminal is reduced on the premise of the hardware performance ensureing terminal.
But due in terminal in addition to system is applied, be also equipped with third-party application, and third-party application be in the mistake of exploitation Journey does not design for specific terminal, so the power consumption compatibility after terminal is combined with third-party application is poor, terminal When running third-party application, power consumption of terminal is relatively big, and therefore, the effect of power consumption control is poor.
Summary of the invention
In order to solve the problem that in prior art, the effect of power consumption control is poor, the invention provides a kind of power consumption of terminal control Method and device processed.Described technical scheme is as follows:
First aspect, it is provided that a kind of terminal power consumption control method, described method includes:
When intended application starts, obtaining the target identification of described intended application, described intended application is the 3 specified Any one application in Fang Yingyong;
Central processing unit corresponding to described target identification is obtained (English: Central from the first default corresponding relation Processing Unit;Being called for short: target frequency CPU), described first corresponding relation is used for record identification and the frequency of described CPU The corresponding relation of rate;
Generating instruction message, described instruction message includes the target frequency of described CPU;
Sending described instruction message to described CPU, described instruction message is used for indicating described CPU to transport in described intended application During row, the frequency controlling described CPU according to described instruction message meets described target frequency.
Optionally, described obtain, from the first default corresponding relation, the central processor CPU that described target identification is corresponding Target frequency, including:
The peak frequency of described CPU corresponding to described target identification and described CPU is obtained from described first corresponding relation Minimum frequency, the peak frequency of described CPU and the minimum frequency of described CPU are according to described in during described intended application off-duty CPU is the initial number of run under the frequency of each frequency instruction in n frequency, and when described intended application runs preset duration Described CPU end number of run under the frequency that described each frequency indicates determines, described n is more than or equal to 1;
Frequency in the frequency range constitute described peak frequency and described minimum frequency is as described target frequency.
Optionally, described target identification is the title of described intended application.
Optionally, described terminal is provided with at least one class third-party application,
The described third-party application specified is: in every class application of described at least one class third-party application, access times are The third-party application of front m name, described m is more than 1.
Optionally, described m is equal to 10.
Second aspect, it is provided that a kind of power consumption of terminal controls device, and described device includes:
First acquisition module, for when intended application starts, obtains the target identification of described intended application, described target Application is any one application in the third-party application specified;
Second acquisition module, for obtaining central authorities' process that described target identification is corresponding from the first default corresponding relation The target frequency of device CPU, described first corresponding relation is for record identification and the corresponding relation of the frequency of described CPU;
Generation module, is used for generating instruction message, and described instruction message includes the target frequency of described CPU;
Sending module, for sending described instruction message to described CPU, described instruction message is used for indicating described CPU to exist In described intended application running, the frequency controlling described CPU according to described instruction message meets described target frequency.
Optionally, described second acquisition module, it is additionally operable to:
The peak frequency of described CPU corresponding to described target identification and described CPU is obtained from described first corresponding relation Minimum frequency, the peak frequency of described CPU and the minimum frequency of described CPU are according to described in during described intended application off-duty CPU is the initial number of run under the frequency of each frequency instruction in n frequency, and when described intended application runs preset duration Described CPU end number of run under the frequency that described each frequency indicates determines, described n is more than or equal to 1;
Frequency in the frequency range constitute described peak frequency and described minimum frequency is as described target frequency.
Optionally, described target identification is the title of described intended application.
Optionally, described terminal is provided with at least one class third-party application,
The described third-party application specified is: in every class application of described at least one class third-party application, access times are The third-party application of front m name, described m is more than 1.
Optionally, described m is equal to 10.
The invention provides a kind of terminal power consumption control method and device, the method can be from the first default corresponding relation The target frequency of the CPU that the target identification of middle acquisition intended application is corresponding, and the target frequency instruction including CPU is sent to CPU Message, it is achieved thereby that CPU is in intended application running, the frequency controlling CPU according to instruction message meets target frequency, Compared to prior art, reduce power consumption of terminal, this improves the effect of power consumption control.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe The present invention can be limited.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings Accompanying drawing.
Fig. 1 is the flow chart of a kind of terminal power consumption control method that the embodiment of the present invention provides;
Fig. 2-1 is the flow chart of the another kind of terminal power consumption control method that the embodiment of the present invention provides;
Fig. 2-2 is a kind of peak frequency determining CPU of providing of the embodiment of the present invention and the flow process of minimum frequency of CPU Figure;
Fig. 3 is the structural representation that a kind of power consumption of terminal that the embodiment of the present invention provides controls device.
By above-mentioned accompanying drawing, it has been shown that the embodiment that the present invention is clear and definite, hereinafter will be described in more detail.These accompanying drawings Describe with word and be not intended to be limited by any mode the scope of present inventive concept, but by with reference to specific embodiment being Those skilled in the art illustrate idea of the invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiments provide a kind of terminal power consumption control method, as it is shown in figure 1, the method includes:
Step 101, when intended application starts, obtain the target identification of intended application, this intended application is the specified Any one application in tripartite's application.
Step 102, obtaining the target frequency of CPU corresponding to target identification from the first default corresponding relation, this is first years old Corresponding relation is for record identification and the corresponding relation of the frequency of CPU.
Step 103, generation instruction message, this instruction message includes the target frequency of CPU.
Step 104, send instruction message to CPU, this instruction message be used for indicating CPU in intended application running, The frequency controlling CPU according to instruction message meets target frequency.
In sum, the terminal power consumption control method that the embodiment of the present invention provides, owing to the method can be from default the One corresponding relation obtains the target frequency of CPU corresponding to the target identification of intended application, and sends the mesh including CPU to CPU Mark frequency instruction message, it is achieved thereby that CPU is in intended application running, controls the frequency symbol of CPU according to instruction message Close target frequency, compared to prior art, reduce power consumption of terminal, this improves the effect of power consumption control.
Embodiments providing another kind of terminal power consumption control method, as shown in Fig. 2-1, the method includes:
Step 201, when intended application starts, obtain intended application target identification.
This intended application is any one application in the third-party application specified.Terminal in the embodiment of the present invention is installed Having at least one class third-party application, this third-party application specified is: in every class application of at least one class third-party application, use Number of times is the third-party application of front m name, and this m is more than 1.Example, m can be equal to 10.Wherein, third-party application is typically basis Functional attributes carries out classifying, for example, it is possible to be divided into chat class application, music class is applied, study class application and game class application Deng.The third-party application specified can be that in types of applications, access times are the third-party application of top 10.
Optionally, target identification can be the title of intended application.Additionally, target identification can also be the body of intended application Part identification number is (English: IDentity;It is called for short: ID), the concrete form of target identification is not construed as limiting by the embodiment of the present invention.
The minimum frequency of step 202, the peak frequency obtaining CPU corresponding to target identification from the first corresponding relation and CPU Rate.
First corresponding relation is for record identification and the corresponding relation of the frequency of CPU, the CPU recorded in the first corresponding relation Frequency can include the peak frequency of CPU and the minimum frequency of CPU.This first corresponding relation can come real by static list Existing, as shown in table 1.In table 1, the title being designated application of application, the peak frequency of the CPU that application A is corresponding is 960MHz (million Hertz), the minimum frequency of the CPU that application A is corresponding is also 960MHz, and the peak frequency of the CPU that application A is corresponding is corresponding with application A The minimum frequency of CPU equal, be 960MHz.The peak frequency of the CPU that application B is corresponding is 960MHz, and B is corresponding in application The minimum frequency of CPU is 500MHz.Additionally, due to the minimum of the peak frequency of application CPU corresponding to the A CPU corresponding with applying A Frequency is equal, it is possible to record a frequency at the frequency of CPU corresponding for application A in Table 1.
Additionally, each application can write in this static list according to the mode of round-robin queue, so, answer a certain With run time, the method can this static list of quick search, obtain the frequency of CPU corresponding to this application.
Table 1
Optionally, the peak frequency of CPU and the minimum frequency of CPU are at n frequency according to CPU during intended application off-duty In each frequency instruction frequency under initial number of run, and intended application run preset duration time CPU refer at each frequency End number of run under the frequency shown determines, n is more than or equal to 1.Example, as shown in Fig. 2-2, determine the maximum of CPU The process of the minimum frequency of frequency and CPU can be:
Step 221, the initial number of run obtained under the CPU frequency that each frequency indicates in n frequency.Perform step 222。
Frequency refers to the numbering of frequency.Table 2 shows the frequency of the instruction of each frequency in 5 frequencies, as shown in table 2, The frequency of frequency C0 instruction is 500MHz, and the frequency of frequency C2 instruction is 960MHz, and the frequency of frequency C5 instruction is 1400MHz.
Table 2
Frequency C0 C1 C2 C3 C4 C5
Frequency 500MHz 800MHz 960MHz 1120MHz 1300MHz 1400MHz
The method obtains the CPU initial number of run in n frequency under the frequency of each frequency instruction in advance.Specifically , node/sys/devices/system/cpu/cpu0/cpufreq/stats/ can be read under terminal i dle interface The value of time_in_state, obtains the CPU initial number of run in n frequency under the frequency of each frequency instruction.Wherein, Idle interface be one can edit, run, to browse graphic user interface with debugging routine (English: Graphical User Interface;It is called for short: GUI).As a example by table 2, it is assumed that rising under the frequency (i.e. 500MHz) that the CPU of acquisition indicates at frequency C0 Beginning number of run C0s is 20, and the initial number of run C1s under the frequency (i.e. 800MHz) that CPU indicates at frequency C1 is 30, CPU Initial number of run C2s under the frequency (i.e. 960MHz) of frequency C2 instruction is 24, and the frequency that CPU indicates at frequency C3 is (i.e. Initial number of run C3s under 1120MHz) is 35, the initial operation under the frequency (i.e. 1300MHz) that CPU indicates at frequency C4 Number of times C4s is 15, and the initial number of run C5s under the frequency (i.e. 1400MHz) that CPU indicates at frequency C5 is 40.
Step 222, intended application run preset duration time, obtain CPU end under the frequency that each frequency indicates Number of run.Perform step 223.
Optionally, preset duration is 30 minutes.
After obtaining the CPU initial number of run in n frequency under the frequency of each frequency instruction, operational objective application is pre- If duration, such as 30 minutes, then when intended application is run 30 minutes, add up CPU knot under the frequency that each frequency indicates Bundle number of run.
As a example by table 2, it is assumed that when this intended application is run 30 minutes, the frequency that the CPU of acquisition indicates at frequency C0 is (i.e. End number of run C0e under 500MHz) is 25, and the end under the frequency (i.e. 800MHz) that CPU indicates at frequency C1 runs secondary Number C1e is 40, and the end number of run C2e under the frequency (i.e. 960MHz) that CPU indicates at frequency C2 is 30, and CPU is at frequency C3 End number of run C3e under the frequency (i.e. 1120MHz) of instruction is 48, the frequency (i.e. 1300MHz) that CPU indicates at frequency C4 Under end number of run C4e be 23, the end number of run C5e under the frequency (i.e. 1400MHz) that CPU indicates at frequency C5 is 55。
Step 223, n the number of run difference that n frequency of acquisition is corresponding.Perform step 224.
The number of run difference that each frequency is corresponding be CPU end number of run under the frequency that each frequency indicates with The difference of the CPU initial number of run under the frequency of corresponding frequency instruction.
As a example by table 2, the frequency that number of run difference C0x corresponding for frequency C0 of acquisition is CPU to be indicated at frequency C0 is (i.e. The difference of the initial number of run C0s under the frequency that frequency C0 indicates of end number of run C0e Yu CPU under 500MHz), by Being 25 in C0e, C0s is 20, so C0x is 5.Same, number of run difference C1x corresponding for frequency C1 is 10, frequency C2 pair Number of run difference C2x answered is 6, and number of run difference C3x corresponding for frequency C3 is 13, and number of run corresponding for frequency C4 is poor Value C4x is 8, and number of run difference C5x corresponding for frequency C5 is 15.
Step 224, the maximum obtained in n number of run difference.Perform step 225.
As a example by table 2, the maximum in 5 number of run differences of acquisition is number of run difference corresponding for frequency C5 C5x (C5x is 15).
Step 225, judge that maximum accounts for the proportion of n number of run difference whether more than preset value.When maximum accounts for n When the proportion of number of run difference is more than preset value, perform step 226, when maximum accounts for the proportion of n number of run difference not During more than preset value, perform step 227.
Example, preset value can be 0.7.As a example by table 2, it is judged that number of run difference C5x corresponding for frequency C5 accounts for 5 Whether the proportion of number of run difference is more than 0.7.Concrete, according to number of run difference C5x corresponding for frequency C5 and 5 fortune Places number difference, C5x can be obtained account for the proportion of 5 number of run differences be0.26 is little In 0.7, so performing step 227.Assume to be calculated C5x accounting for the proportion of 5 number of run differences is 0.8, then perform step 226。
Step 226, using the frequency corresponding for the maximum minimum frequency as CPU and the peak frequency of CPU.
If the proportion that the maximum in n number of run difference accounts for n number of run difference is more than preset value, then will be It is worth greatly the corresponding frequency minimum frequency simultaneously as CPU and the peak frequency of CPU.Now, the minimum frequency of CPU and CPU Peak frequency is equal, and the minimum frequency of CPU and the peak frequency of CPU are used for the CPU frequency to CPU in intended application running Rate is controlled.When maximum accounts for the proportion of n number of run difference more than preset value, it is believed that corresponding frequency is mesh Mark applies optimal operation frequency, and the frequency that maximum is corresponding is in intended application running, and CPU is optimal runs frequency Rate.
Step 227, the second largest value obtained in n number of run difference.Perform step 228.
If the proportion that the maximum in n number of run difference accounts for n number of run difference is not more than preset value, then obtain Take the second largest value in n number of run difference.
The proportion of 5 number of run differences is accounted for equal to 0.26 with number of run difference C5x that step 225 intermediate-frequeney point C5 is corresponding As a example by, owing to 0.26 less than preset value (such as 0.7), so the second largest value that can obtain in 5 number of run differences, i.e. frequency C3 pair Number of run difference C3x (C3x is 13) answered.
Example, divide and conquer can be used to obtain in the maximum in n number of run difference and n number of run difference Second largest value.Wherein, the design philosophy of divide and conquer is, is difficult to the big problem directly solved by one, is divided into some scales relatively Little same problem solves.Divide and conquer includes sort algorithm, such as quick sorting algorithm and MERGING/SORTING ALGORITHM etc..Employing is divided and ruled Method obtains the process of maximum and second largest value and is referred to prior art, does not repeats them here.
Step 228, using the bigger frequency in frequency corresponding with second largest value for frequency corresponding for maximum as the maximum of CPU Frequency, and using the relatively small frequency in frequency corresponding with second largest value for frequency corresponding for maximum as the minimum frequency of CPU.
After maximum in obtaining n number of run difference and the second largest value in n number of run difference, can be by Bigger frequency in the frequency that frequency that maximum is corresponding is corresponding with second largest value is as the peak frequency of CPU, and by maximum pair Relatively small frequency in the frequency that the frequency answered is corresponding with second largest value is as the minimum frequency of CPU, in order to obtain the target frequency of CPU Rate.The maximum C5x obtained with step 224, as a example by the second largest value C3x obtained in step 227, owing to second largest value C3x is corresponding Frequency is 1120MHz, and frequency corresponding for maximum C5x is 1400MHz, then can using 1400MHz as the peak frequency of CPU, 1120MHz is as the minimum frequency of CPU.When the proportion that maximum accounts for n number of run difference is not more than preset value, in target In application running, peak frequency and the minimum frequency of CPU are unequal.
Frequency in step 203, frequency range peak frequency and minimum frequency constituted is as target frequency.
The peak frequency assuming the CPU that step 202 determines is 1400MHz, and minimum frequency is 1120MHz, then can be by Frequency in 1120MHz~1400MHz is as the target frequency of CPU.The peak frequency assuming the CPU that step 202 determines is 960MHz, minimum frequency is 500MHz, then can be using the frequency in 500MHz~960MHz as the target frequency of CPU.False If the peak frequency of the CPU that step 202 determines is 960MHz, minimum frequency is also 960MHz, then can using 960MHz as The target frequency of CPU.
Step 204, generation instruction message.
This instruction message includes the target frequency of CPU.The method, after determining the target frequency of CPU, can generate and refer to Showing message, this instruction message includes the target frequency of CPU, such as 960MHz.
Step 205, to CPU send instruction message.
This instruction message is used for indicating CPU in intended application running, controls the frequency symbol of CPU according to instruction message Close target frequency.
When intended application is run, the method issues the target frequency of CPU so that CPU enters specific performance and power consumption Balanced mode, and then effectively reduce power consumption of terminal, improve the effect of power consumption control.
It should be noted that the terminal power consumption control method that the embodiment of the present invention provides can apply to the operation system of terminal System, example, this operating system can be Android operation system, it is also possible to for other operating system, the embodiment of the present invention is to this Do not limit.This terminal power consumption control method can apply to smart machine field, and smart machine includes but not limited to intelligence hands Machine.
It should be added that, in prior art, along with developing rapidly of terminal unit technology, built-in terminal hard Part performance is become better and better, but the problem brought therewith is, the power consumption of terminal sharply increases, and the time that terminal is used is increasingly Short, the embodiment of the present invention, for terminal operating third-party application, causes power consumption of terminal to consume more serious problem, it is provided that a kind of Terminal power consumption control method, the method determines the use load of application according to the running status of application, and this use load is with CPU's Frequency, load one_to_one corresponding, the method, by multiple application write chained list (i.e. static list), makes the corresponding CPU of each application Target frequency.Application is combined by the method with the chirping strategies of CPU, for different application, the frequency of CPU is carried out reality Time adjust, it is ensured that applying the smooth operation in terminal, the method is not on the basis of increasing terminal hardware cost, by more Change software to solve the problem that power consumption of terminal is bigger, while ensureing the hardware performance of terminal, reduce power consumption of terminal, extend The time that terminal is used, and can allow terminal maximum power saving.
Also, it should be noted the sequencing of the step of the terminal power consumption control method of embodiment of the present invention offer is permissible Suitably adjusting, step can also increase and decrease the most accordingly.Any those familiar with the art is at this In the technical scope that invention discloses, the method that can readily occur in change, all should contain within protection scope of the present invention, therefore Repeat no more.
In sum, the terminal power consumption control method that the embodiment of the present invention provides, owing to the method can be from default the One corresponding relation obtains the target frequency of CPU corresponding to the target identification of intended application, and sends the mesh including CPU to CPU Mark frequency instruction message, it is achieved thereby that CPU is in intended application running, controls the frequency symbol of CPU according to instruction message Close target frequency, compared to prior art, while ensureing the hardware performance of terminal, reduce power consumption of terminal, extend terminal The time used, and can allow the maximum power saving of terminal, this improves the effect of power consumption control.
Embodiments provide a kind of power consumption of terminal and control device 300, as it is shown on figure 3, this device 300 includes:
First acquisition module 301, for when intended application starts, obtains the target identification of intended application, and this target should With any one application in the third-party application for specifying.
Second acquisition module 302, for obtaining central authorities' process that target identification is corresponding from the first default corresponding relation The target frequency of device CPU, this first corresponding relation is for record identification and the corresponding relation of the frequency of CPU.
Generation module 303, is used for generating instruction message, and this instruction message includes the target frequency of CPU.
Sending module 304, for sending instruction message to CPU, this instruction message is used for indicating CPU to run in intended application During, the frequency controlling CPU according to instruction message meets target frequency.
In sum, the power consumption of terminal that the embodiment of the present invention provides controls device, owing to this device can be from default the One corresponding relation obtains the target frequency of CPU corresponding to the target identification of intended application, and sends the mesh including CPU to CPU Mark frequency instruction message, it is achieved thereby that CPU is in intended application running, controls the frequency symbol of CPU according to instruction message Close target frequency, compared to prior art, reduce power consumption of terminal, this improves the effect of power consumption control.
Optionally, the second acquisition module 302, it is additionally operable to:
Peak frequency and the minimum frequency of CPU of CPU corresponding to target identification is obtained from the first corresponding relation, CPU's The minimum frequency of peak frequency and CPU is according to the frequency of each frequency instruction in n frequency of CPU during intended application off-duty Under initial number of run, and when intended application runs preset duration, CPU end under the frequency that each frequency indicates runs Number of times determines, n is more than or equal to 1;
Frequency in the frequency range constitute peak frequency and minimum frequency is as target frequency.
Optionally, target identification is the title of intended application.
Optionally, terminal is provided with at least one class third-party application, it is intended that third-party application be: at least one class the 3rd In every class application of Fang Yingyong, access times are the third-party application of front m name, and m is more than 1.Example, m is equal to 10.
Optionally, the preset duration that intended application is run can be 30 minutes.
In sum, the power consumption of terminal that the embodiment of the present invention provides controls device, owing to this device can be from default the One corresponding relation obtains the target frequency of CPU corresponding to the target identification of intended application, and sends the mesh including CPU to CPU Mark frequency instruction message, it is achieved thereby that CPU is in intended application running, controls the frequency symbol of CPU according to instruction message Close target frequency, compared to prior art, while ensureing the hardware performance of terminal, reduce power consumption of terminal, extend terminal The time used, and can allow the maximum power saving of terminal, this improves the effect of power consumption control.
The embodiment of the present invention additionally provides a kind of terminal, controls device including the power consumption of terminal shown in Fig. 3.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the device of foregoing description With the specific works process of module, it is referred to the corresponding process in preceding method embodiment, does not repeats them here.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (10)

1. a terminal power consumption control method, it is characterised in that described method includes:
When intended application starts, obtaining the target identification of described intended application, described intended application is that the third party specified should Any one application in;
The target frequency of central processor CPU corresponding to described target identification is obtained from the first default corresponding relation, described First corresponding relation is for record identification and the corresponding relation of the frequency of described CPU;
Generating instruction message, described instruction message includes the target frequency of described CPU;
Sending described instruction message to described CPU, described instruction message is used for indicating described CPU to run in described intended application Cheng Zhong, the frequency controlling described CPU according to described instruction message meets described target frequency.
Method the most according to claim 1, it is characterised in that described obtain described mesh from the first default corresponding relation The target frequency of the central processor CPU that mark mark is corresponding, including:
The peak frequency of described CPU corresponding to described target identification and described CPU is obtained from described first corresponding relation Small frequency, the peak frequency of described CPU and the minimum frequency of described CPU are according to described CPU during described intended application off-duty In n frequency each frequency instruction frequency under initial number of run, and described intended application run preset duration time institute Stating what CPU end number of run under the frequency that described each frequency indicates determined, described n is more than or equal to 1;
Frequency in the frequency range constitute described peak frequency and described minimum frequency is as described target frequency.
Method the most according to claim 1, it is characterised in that
Described target identification is the title of described intended application.
Method the most according to claim 1, it is characterised in that be provided with at least one class third-party application in described terminal,
The described third-party application specified is: in every class application of described at least one class third-party application, access times are front m name Third-party application, described m be more than 1.
Method the most according to claim 4, it is characterised in that
Described m is equal to 10.
6. a power consumption of terminal controls device, it is characterised in that described device includes:
First acquisition module, for when intended application starts, obtains the target identification of described intended application, described intended application For any one application in the third-party application specified;
Second acquisition module, for obtaining, from the first default corresponding relation, the central processing unit that described target identification is corresponding The target frequency of CPU, described first corresponding relation is for record identification and the corresponding relation of the frequency of described CPU;
Generation module, is used for generating instruction message, and described instruction message includes the target frequency of described CPU;
Sending module, for sending described instruction message to described CPU, described instruction message is used for indicating described CPU described In intended application running, the frequency controlling described CPU according to described instruction message meets described target frequency.
Device the most according to claim 6, it is characterised in that described second acquisition module, is additionally operable to:
The peak frequency of described CPU corresponding to described target identification and described CPU is obtained from described first corresponding relation Small frequency, the peak frequency of described CPU and the minimum frequency of described CPU are according to described CPU during described intended application off-duty In n frequency each frequency instruction frequency under initial number of run, and described intended application run preset duration time institute Stating what CPU end number of run under the frequency that described each frequency indicates determined, described n is more than or equal to 1;
Frequency in the frequency range constitute described peak frequency and described minimum frequency is as described target frequency.
Device the most according to claim 6, it is characterised in that
Described target identification is the title of described intended application.
Device the most according to claim 6, it is characterised in that be provided with at least one class third-party application in described terminal,
The described third-party application specified is: in every class application of described at least one class third-party application, access times are front m name Third-party application, described m be more than 1.
Device the most according to claim 9, it is characterised in that
Described m is equal to 10.
CN201610353096.9A 2016-05-24 2016-05-24 Terminal power consumption control method and device Active CN106055070B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610353096.9A CN106055070B (en) 2016-05-24 2016-05-24 Terminal power consumption control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610353096.9A CN106055070B (en) 2016-05-24 2016-05-24 Terminal power consumption control method and device

Publications (2)

Publication Number Publication Date
CN106055070A true CN106055070A (en) 2016-10-26
CN106055070B CN106055070B (en) 2019-08-09

Family

ID=57174477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610353096.9A Active CN106055070B (en) 2016-05-24 2016-05-24 Terminal power consumption control method and device

Country Status (1)

Country Link
CN (1) CN106055070B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708575A (en) * 2016-12-20 2017-05-24 北京奇虎科技有限公司 Mobile terminal and method and device for loading and operating applications by mobile terminal
CN107729145A (en) * 2017-10-11 2018-02-23 广东欧珀移动通信有限公司 Application program progress control method and device
CN107831887A (en) * 2017-12-21 2018-03-23 青岛海信移动通信技术股份有限公司 One kind application starts method and device
CN107832141A (en) * 2017-10-11 2018-03-23 广东欧珀移动通信有限公司 Application program progress control method and equipment
CN109085911A (en) * 2018-07-11 2018-12-25 深圳超多维科技有限公司 A kind of dynamic frequency method, apparatus, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6278421B1 (en) * 1996-11-06 2001-08-21 Fujitsu Limited Method and apparatus for controlling power consumption of display unit, display system equipped with the same, and storage medium with program stored therein for implementing the same
CN103475790A (en) * 2013-09-06 2013-12-25 中国科学院计算技术研究所 Intelligent mobile terminal power consumption management method
CN104007806A (en) * 2014-06-20 2014-08-27 中科创达软件股份有限公司 Method and device for controlling CPU frequency in Android system and equipment
CN104239153A (en) * 2014-09-29 2014-12-24 三星电子(中国)研发中心 Method and device for balancing multi-core CPU load
CN104424031A (en) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 Working frequency control method and device for processor
CN104794005A (en) * 2015-03-23 2015-07-22 北京畅游天下网络技术有限公司 Method and device for optimizing CPU running frequencies

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6278421B1 (en) * 1996-11-06 2001-08-21 Fujitsu Limited Method and apparatus for controlling power consumption of display unit, display system equipped with the same, and storage medium with program stored therein for implementing the same
CN104424031A (en) * 2013-08-23 2015-03-18 中兴通讯股份有限公司 Working frequency control method and device for processor
CN103475790A (en) * 2013-09-06 2013-12-25 中国科学院计算技术研究所 Intelligent mobile terminal power consumption management method
CN104007806A (en) * 2014-06-20 2014-08-27 中科创达软件股份有限公司 Method and device for controlling CPU frequency in Android system and equipment
CN104239153A (en) * 2014-09-29 2014-12-24 三星电子(中国)研发中心 Method and device for balancing multi-core CPU load
CN104794005A (en) * 2015-03-23 2015-07-22 北京畅游天下网络技术有限公司 Method and device for optimizing CPU running frequencies

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网页教学网: "FreeBSD为powerd设置cpu最小工作频率", 《网页教学网》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708575A (en) * 2016-12-20 2017-05-24 北京奇虎科技有限公司 Mobile terminal and method and device for loading and operating applications by mobile terminal
CN106708575B (en) * 2016-12-20 2021-05-04 北京安云世纪科技有限公司 Mobile terminal and method and device for loading and running application thereof
CN107729145A (en) * 2017-10-11 2018-02-23 广东欧珀移动通信有限公司 Application program progress control method and device
CN107832141A (en) * 2017-10-11 2018-03-23 广东欧珀移动通信有限公司 Application program progress control method and equipment
CN107831887A (en) * 2017-12-21 2018-03-23 青岛海信移动通信技术股份有限公司 One kind application starts method and device
CN107831887B (en) * 2017-12-21 2021-03-23 青岛海信移动通信技术股份有限公司 Application starting method and device
CN109085911A (en) * 2018-07-11 2018-12-25 深圳超多维科技有限公司 A kind of dynamic frequency method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
CN106055070B (en) 2019-08-09

Similar Documents

Publication Publication Date Title
CN106055070A (en) Terminal power consumption control method and apparatus
CN104899103B (en) A kind of mobile cloud computing terminal energy-saving scheduling method and device
CN104734996B (en) A kind of internet wide band distribution and terminal
US20160117046A1 (en) Data Reporting Method and Apparatus, and Terminal Device
CN105975050A (en) Terminal power consumption control method and device
WO2017091201A1 (en) Docking station
CN108989238A (en) A kind of method and relevant device for distributing service bandwidth
US20070168399A1 (en) Exposed sequestered partition apparatus, systems, and methods
US20110196916A1 (en) Client terminal, server, cloud computing system, and cloud computing method
CN106406917A (en) Icon arrangement method and apparatus
CN104298602A (en) Method and device for debugging application program
CN106161524A (en) A kind of resource downloading method based on distributed resource node and device
CN106534281A (en) Data request responding method, apparatus and system
CN105335192B (en) A kind of information processing method and electronic equipment
CN102750211A (en) Pressure test method and system
CN103870331B (en) A kind of method and electronic equipment of dynamically distributes processor cores
CN105786839A (en) Application data acquisition method and apparatus
CN109243425A (en) Speech recognition test method, device, system, computer equipment and storage medium
WO2019037527A1 (en) Usb interface request scheduling method and apparatus, and device
US20140139533A1 (en) Graphic processing unit virtual apparatus, graphic processing unit host apparatus, and graphic processing unit program processing methods thereof
CN102685924B (en) A kind of communication unit method to set up of terminal, setting device and terminal
CN106879056A (en) The electricity saving method and device of a kind of terminal
TW201909077A (en) Method and device for transmitting electronic ticket
CN108874521A (en) A kind of photographing program application method, device, terminal and computer storage medium
CN106789316A (en) A kind of mobile terminal virtualization system

Legal Events

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