CN105468466B - Processing method, the device and system of processor running frequency - Google Patents

Processing method, the device and system of processor running frequency Download PDF

Info

Publication number
CN105468466B
CN105468466B CN201410466162.4A CN201410466162A CN105468466B CN 105468466 B CN105468466 B CN 105468466B CN 201410466162 A CN201410466162 A CN 201410466162A CN 105468466 B CN105468466 B CN 105468466B
Authority
CN
China
Prior art keywords
terminal
frequency
application program
identifier information
running
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
CN201410466162.4A
Other languages
Chinese (zh)
Other versions
CN105468466A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410466162.4A priority Critical patent/CN105468466B/en
Publication of CN105468466A publication Critical patent/CN105468466A/en
Application granted granted Critical
Publication of CN105468466B publication Critical patent/CN105468466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses processing method, the device and system of a kind of processor running frequency.Wherein, this method comprises: the application program of the operation in detection terminal with the presence or absence of display on a terminal screen;If there is the application program of the operation of display on a terminal screen in terminal, then obtain the second identifier information of the model for identifying the first identifier information of currently running application program in terminal and for identifying terminal, wherein, currently running application program includes the application program of the application program in the running background of terminal and the front stage operation in terminal;Obtain the attribute information with first identifier information and second identifier information matches, wherein attribute information is used to indicate the target operating frequency of the processor of terminal;The current operation frequency of processor is revised as target operating frequency.It using the present invention, solves the problems, such as that intelligent terminal power consumption is big in the prior art, realizes while guaranteeing the processing speed of terminal, reduce the effect of power consumption.

Description

Processing method, the device and system of processor running frequency
Technical field
The present invention relates to processor control fields, processing method, dress in particular to a kind of processor running frequency It sets and system.
Background technique
Intelligent terminal accounts for very big share in mobile terminal in the prior art, but has on intelligent terminal many normal It is rested in memory in process, such as mobile phone, input method, alarm clock, the mobile phone safe software of smart phone etc..In addition to these reside permanently Except process, smart phone is in order to meet user to the visual demand of amusement, video and interaction, by the way that large screen can be designed, and And in the prior art regardless of reply can be using identical mobile phone operation frequency in which type of application and portable telephone mode of operation It is very big to will lead to intelligent terminal power consumption in this way for rate.
In order to cope with a large amount of power consumption, be proposed mobile power source in the prior art, but mobile terminal have it is very big Feature be it is portable, mobile power source is always carried when using mobile terminal, it is very inconvenient;It also proposed in the prior art a kind of general Thought is exactly the capacity for increasing battery of mobile phone, however the battery of large capacity will increase the weight bearing of mobile phone, in addition, the battery of large capacity has The danger of explosion, safety are very poor.
For the big problem of above-mentioned intelligent terminal power consumption, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides processing method, the device and system of a kind of processor running frequency, at least to solve The big problem of intelligent terminal power consumption.
According to an aspect of an embodiment of the present invention, a kind of processing method of processor running frequency, this method are provided It include: the application program for detecting the operation in terminal with the presence or absence of display on a terminal screen;If existing in terminal and being shown in end The application program for holding the operation on screen, then obtain the first identifier information for identifying currently running application program in terminal With the second identifier information of the model for identifying terminal, wherein currently running application program includes transporting on the backstage of terminal The application program of capable application program and the front stage operation in terminal;It obtains and first identifier information and second identifier information matches Attribute information, wherein attribute information is used to indicate the target operating frequency of the processor of terminal;By the current operation of processor Frequency modification is target operating frequency.
According to another aspect of an embodiment of the present invention, a kind of processing unit of processor running frequency, the dress are additionally provided Setting includes: detection module, for detecting the application program of the operation in terminal with the presence or absence of display on a terminal screen;First obtains Modulus block obtains if there is the application program of the operation of display on a terminal screen in terminal for identifying terminal The second identifier information of the first identifier information of currently running application program and the model for identifying terminal, wherein current The application program of operation includes the application program of the application program in the running background of terminal and the front stage operation in terminal;Second Module is obtained, for obtaining and the attribute information of first identifier information and second identifier information matches, wherein attribute information is used for The target operating frequency of the processor of instruction terminal;Modified module, for the current operation frequency of processor to be revised as target Running frequency.
According to an aspect of an embodiment of the present invention, a kind of processing system of processor running frequency, the system are provided It include: terminal, for detecting with the presence or absence of currently running application program in terminal, if there are currently running applications in terminal Program then obtains the model for identifying the first identifier information of currently running application program in terminal and for identifying terminal Second identifier information, and first identifier information and second identifier information are sent to server-side;Server-side is connect with terminal, For obtaining and first identifier information and second identifier information after receiving first identifier information and second identifier information The attribute information matched, wherein attribute information is used to indicate the target operating frequency of the processor of terminal, and attribute information is sent To terminal;Terminal is also used to the current operation frequency of processor being revised as target operating frequency, wherein currently running application Program includes the application program of the application program in the running background of terminal and the front stage operation in terminal.
Using the embodiment of the present invention, there is the application program of the operation of display on a terminal screen at the terminal, then obtain For identifying the first identifier information of currently running application program in terminal and the second identifier of the model for identifying terminal Then information obtains the target operating frequency of first identifier information and second identifier information matches, and by the processor of terminal Running frequency is revised as target operating frequency.Through the foregoing embodiment, it can be obtained in the case where terminal is in different application states Different target operating frequencies, and the running frequency of the processor according to target operating frequency adjustment terminal, hence for difference Application scenarios use different CPU running frequencies, can not need in very high-frequency application scenarios some using lower CPU running frequency, power consumption in terminal operating can be reduced while guaranteeing the processing speed of terminal, is solved existing The big problem of intelligent terminal power consumption in technology realizes while guaranteeing the processing speed of terminal, reduces the effect of power consumption Fruit.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the environment schematic of the processing method of processor running frequency according to an embodiment of the present invention;
Fig. 2 is the flow chart of the processing method of processor running frequency according to an embodiment of the present invention;
Fig. 3 is a kind of flow chart of the processing method of optional processor running frequency according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of the processing unit of processor running frequency according to an embodiment of the present invention;And
Fig. 5 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
Firstly, the part noun or term that occur during the embodiment of the present invention is described are suitable for following solution It releases:
Android: a kind of operating system of freedom and open source code based on Linux is mainly used for mobile device, Such as smart phone and tablet computer, by Google company and open mobile phone alliance leader and develop.
ROM: cell phone system firmware, firmware refer to that cured software, English are firmware, it is some system program The flashROM being written in specific hardware system.The system that mobile phone firmware is equivalent to mobile phone refreshes firmware and is equivalent to brush System.The advantages of different mobile phones corresponds to different firmwares, and current firmware and institute's brush firmware should be fully understood before brush firmware Disadvantage and compatibility, and carry out sufficient preparation.All kinds of mobile devices, such as Andorid mobile phone, Windows Mobile mobile phone, The ios of iPhone, BlackBerry have the system firmware of oneself, and user with self-changeable or can determine after unlocking to mobile phone The firmware of adopted equipment then has the saying of " brush machine "." brush machine " is that new ROM is written to equipment in fact, i.e., new firmware. ROM in ROM (packet) intelligence mobile phone configuration refers to that EEProm (the writeable read-only memory of electrically erasable) is similar to the hard of computer Disk can deposit the capacity how many thing just see him in mobile phone.Bottom packet+update packet is referred to as a ROM packet.It is big to be generally divided into two Class, one is the master ROM for coming from mobile-phone manufacturers official, feature be it is stable, functionally with manufacturer customize and have nothing in common with each other;Separately One is the primary ROM that exploitation fan is independently compiled using the source code of official's publication, and feature is according to user's specific requirements It is adjusted, ROM is made more to meet the use habit of different regions user.
Cpu frequency: cpu frequency is exactly the clock frequency of CPU, and the frequency of work when being briefly CPU operation is (in 1 second The lock-out pulse number of generation) abbreviation.Unit is Hz.It determines the speed of service of computer, with the development of computer, dominant frequency Current GHZ (1GHZ=10^3MHZ=10^6KHZ=10^9HZ) has been developed to by past MHZ.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the processing method of processor running frequency is provided, needs to illustrate , step shown in the flowchart of the accompanying drawings can hold in a computer system such as a set of computer executable instructions Row, although also, logical order is shown in flow charts, and it in some cases, can be to be different from sequence herein Execute shown or described step.
Optionally, in the present embodiment, the processing method of above-mentioned processor running frequency can be applied to as shown in Figure 1 In the system constituted in the hardware environment that terminal 101 is constituted or applied to terminal 101 and server 102.Above-mentioned terminal 101 can establish connection by network and server 102.
Above-mentioned network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local area network.In embodiments of the present invention, above-mentioned end End can be on mobile terminal, PC, specifically, terminal can be smart phone, tablet computer, PDA etc..
According to embodiments of the present invention, a kind of processing method of processor running frequency is provided, as shown in Fig. 2, this method Include the following steps:
Step S202: the application program of the operation in detection terminal with the presence or absence of display on a terminal screen.
Step S204: it if there is the application program of the operation of display on a terminal screen in terminal, obtains for identifying The second identifier information of the first identifier information of currently running application program and the model for identifying terminal in terminal, In, currently running application program includes the application journey of the application program in the running background of terminal and the front stage operation in terminal Sequence.
Step S206: the attribute information with first identifier information and second identifier information matches is obtained, wherein attribute information It is used to indicate the target operating frequency of the processor of terminal.
Step S208: the current operation frequency of processor is revised as target operating frequency.
Using the embodiment of the present invention, there is the application program of the operation of display on a terminal screen at the terminal, then obtain For identifying the first identifier information of currently running application program in terminal and the second identifier of the model for identifying terminal Then information obtains the target operating frequency of first identifier information and second identifier information matches, and by the processor of terminal Running frequency is revised as target operating frequency.Through the foregoing embodiment, it can be obtained in the case where terminal is in different application states Different target operating frequencies, and the running frequency of the processor according to target operating frequency adjustment terminal, hence for difference Application scenarios use different CPU running frequencies, can not need in very high-frequency application scenarios some using lower CPU running frequency, power consumption in terminal operating can be reduced while guaranteeing the processing speed of terminal, is solved existing The big problem of intelligent terminal power consumption in technology realizes while guaranteeing the processing speed of terminal, reduces the effect of power consumption Fruit.
In the above embodiment of the present invention, believed by the first identifier for identifying currently running application program in terminal The second identifier information of breath and the model for identifying terminal determines target operating frequency, the object run frequency that can make Rate has better adaptability to terminal, so as to guarantee the processing speed of terminal well and save electricity.
Processing method in the above-mentioned implementation of the present invention can be using at the terminal, can be applied in terminal and server-side In environment.
The step S208 of embodiment illustrated in fig. 2 can be realized by the following method: by target operating frequency write-in terminal The configuration file of the running frequency of processor.
Specifically, under system/path sys/devices/system/cpu/cpu0/cpufreq/ by modifying terminal Corresponding configuration file modifies the working frequency (running frequency i.e. in above-described embodiment) of CPU."cpuinfo_min_freq File is minimum cpu frequency, and " cpuinfo_max_freq " file is maximum cpu frequency, " scaling_cur_freq " file For the current operation frequency of the CPU of cpufreq module (i.e. cpu frequency module) caching, " cpuinfo_cur_freq " file is Current cpu frequency.In the above-described embodiments, " cpuinfo_cur_freq " can be written into target operating frequency, Lai Xiugai CPU Frequency.
In the above embodiment of the invention, the answering with the presence or absence of the operation shown on a terminal screen in detection terminal After program, processing method can also include the following steps:
Step S210: if the application program of the operation in terminal there is no display on a terminal screen, reading terminals The corresponding preset operating frequency of processor, using preset operating frequency as target operating frequency.
As judge whether the terminal is in standby with the presence or absence of currently running application program in above-mentioned detection terminal State.That is, judging whether terminal is in standby, if the terminal is in standby, the place of the terminal is directly read Manage the standby running frequency (preset operating frequency i.e. in above-described embodiment) of device;If the terminal is not on standby mode, Read first identifier information and second identifier information.
Wherein, first identifier information can be the title or mark of currently running application program.Such as, currently running to answer It is QQ with program, then the first identifier information got can be with are as follows: QQ.
Below by taking above-mentioned processing method is applied in the environment of terminal and server-side as an example, the present invention, such as Fig. 3 is discussed in detail Shown, which can be achieved by the steps of.
Step S302: the current application scenarios of terminal report of user to server-side.
In this step, terminal can detecte the application journey of the operation in terminal with the presence or absence of display on a terminal screen Sequence;If there is no the application programs of display operation on a terminal screen in terminal, it is determined that the current usage scenario of user is Standby scene;If there is the application program of the operation of display on a terminal screen in terminal, obtains and be taken in for identifying terminal Then the first identifier information of the application program of preceding operation reads the corresponding applied field of first identifier information from tables of data Scape.
In this embodiment, the second identifier information and first identifier information that will be used to identify that the model of terminal report together To server-side.
Wherein, currently running application program may include in the application program of the running background of terminal and before terminal The application program of platform operation.Currently running application program can be to be multiple, then available one or more application scene.
For example, first identifier information is QQ or wechat, then the application scenarios got are instant messaging scene;If first Identification information is QQ and wechat, then the application scenarios read from tables of data may be instant messaging scene;If the first mark Knowing information is fighting landlord and QQ, then the application scenarios read from tables of data can be scene of game and instant messaging scene.
Step S304: server-side issues and the matched cpu frequency of current application scenarios.
The cpu frequency of the matched suitable power saving of the application scenarios above-mentioned from server side searches is (i.e. in above-described embodiment Target operating frequency), which can obtain by a large amount of tests, such as: family ideal case issues minimum cpu frequency; When user plays game, maximum cpu frequency is issued.
Step S306: terminal adjusts the running frequency of processor after receiving the cpu frequency that server-side issues.
Specifically, under system/path sys/devices/system/cpu/cpu0/cpufreq/ by modifying terminal Corresponding configuration file modifies the working frequency (running frequency i.e. in above-described embodiment) of CPU.
For example, the standby scene of user, ROM is reported to backstage, and user is in standby scene, and backstage storing data waits for for user Under the scape of airport, suitable cpu frequency is 200MHZ, just issues 200MHZ from the background to ROM, after ROM is received, by the current CPU of system It is adjusted to 200MHZ.
Through the embodiment of the present invention, the current usage scenario of user is reported to background server by ROM, and server-side judgement is used The current usage scenario in family (i.e. above-mentioned application scenarios) issues suitable cpu frequency to the ROM of terminal, ROM by server-side CPU working frequency is adjusted according to the cpu frequency that server-side issues, reaches the purpose of intelligent power saving.
In the above embodiment of the invention, the attribute information with first identifier information and second identifier information matches is obtained It may include: to detect whether the quantity of currently running application program in terminal is one;In currently running application program In the case that quantity is one, the program running frequency to match with first identifier information and second identifier information is read, by journey Sort run frequency is as target operating frequency;In the case where the quantity of currently running application program is not one, read respectively Take the program running frequency with first identifier information and second identifier information matches, by obtained multiple program running frequencies most Big program running frequency is as target operating frequency.
When above-mentioned currently running application program is one, then an application scenarios can be determined, such as scene of game, i.e. When traffic scene, scene of taking pictures etc.;If above-mentioned currently running application program is multiple, one or more can be determined Application scenarios.
For example, first identifier information is QQ or wechat, then the application scenarios got are instant messaging scene;If first Identification information is QQ and wechat, then the application scenarios read from tables of data may be instant messaging scene;If the first mark Knowing information is fighting landlord and QQ, then the application scenarios read from tables of data can be scene of game and instant messaging scene.
In the case where a currently running application program, the available and currently running application program and second The program running frequency is target operating frequency by the program running frequency of identification information match;If currently running apply journey Sequence be it is multiple, then obtain respectively with the program running frequency of each currently running application program and second identifier information matches, That maximum frequency is as target operating frequency in the multiple program running frequencies that will acquire.
For example, currently running application program be QQ, it is determined that application scenarios be instant messaging scene, matched target Running frequency can be 350MHZ;Currently running application program be QQ and camera, it is determined that application scenarios be instant messaging Scene and scene of taking pictures, matched program running frequency is respectively 350MHZ and 800MHZ, then using 800MHZ as object run Frequency.
According to the abovementioned embodiments of the present invention, it reads and is run with the program of first identifier information and second identifier information matches The running frequency set and match with second identifier information pre- that frequency, which may include: reading, to match with first identifier information If frequency range, wherein include one or more predeterminated frequency values in running frequency set;Symbol is extracted from running frequency set The predeterminated frequency value for closing predeterminated frequency range is run predeterminated frequency value the smallest in the predeterminated frequency value extracted as program Frequency.
Specifically, before reading the running frequency set to match with first identifier information, processing method can also be wrapped It includes: reading the predeterminated frequency range with second identifier information matches;Multiple test frequencies are extracted from predeterminated frequency range;It obtains The each application program installed in terminal operates in the occupancy process number and power consumption when each test frequency;To occupancy process number It is weighted to obtain weighting parameters with power consumption;Weighting based on the top n that sorts in the multiple weighting parameters being calculated The corresponding test frequency of parameter generates running frequency set, wherein N > 0, N are natural number.
The embodiment of the present invention is discussed in detail below with reference to table 1.As shown in table 1, each application program can correspond to one and answer With scene, the corresponding one or more program running frequencies (being a program running frequency in table 1) of each application scenarios.
Table 1
As shown in table 1, under each user's scene of server-side storage, (data can for the CPU working frequency of suitable power saving To show that, because the CPU model of each mobile phone is inconsistent, which may be not appropriate for all mobile phones by a large amount of tests), tool Body,
1) the standby scene of user, ROM are reported to backstage, and user is in standby scene, and backstage storing data is that user is standby Under scene, suitable cpu frequency is 200MHZ, just issues 200MHZ from the background to ROM, after ROM is received, by the current CPU tune of system Whole is 200MHZ.
2) user plays the scene of game, and ROM is reported to backstage, and user is in the scene for playing game, and backstage storing data is Under user's scene of game, suitable cpu frequency is 1600MHZ, just issues 1600MHZ from the background to ROM, after ROM is received, by system Current CPU is adjusted to 1600MHZ.
3) scene that user takes pictures, ROM are reported to backstage, and user is in the scene taken pictures, and backstage storing data is user It takes pictures under scene, suitable cpu frequency is 800MHZ, just issues 800MHZ from the background to ROM, after ROM is received, system is current CPU is adjusted to 800MHZ
In an optional embodiment of the present invention, detecting be can wrap in terminal with the presence or absence of currently running application program It includes: obtaining the operation information for application program of terminal, wherein operation information may include installing in one terminal of starting The application program installed in one terminal of application program and/or closing;After receiving operation information, detect terminal on whether There are currently running application programs.
Specifically, it can be installed in a terminal with the operation information for application program of real-time monitoring terminal as started Application program and/or close the application program installed in a terminal, can be known by the operation information current in terminal Variation (or increase or reduce or change) has occurred in the application program of operation, can be according to terminal need by these operation informations Start the processing method of adjustment running frequency.
In another of the invention optional embodiment, detecting can be with the presence or absence of currently running application program in terminal It include: the adjustment time section for obtaining the processor running frequency of pre-set adjustment terminal;In adjustment time section, every pre- If the time generates a trigger signal;After receiving the trigger signal, detecting whether there is currently running application in terminal Program.
Adjustment time section can be arranged by terminal in user, if working time 8:00-12:00 is not to the running frequency of CPU It is adjusted, the processing method of non-working time 18:00-22:00 starting adjustment CPU running frequency.Time segment to CPU's Running frequency is adjusted, and can further save electric energy.
It is possible to further generate a trigger signal every preset time (such as 1 minute) in adjustment time section;It can also be with Operation information is obtained in adjustment time section, trigger signal is generated by operation information, is detected in terminal with the presence or absence of current operation Application program.
Through the foregoing embodiment, processing method can be started when user needs, further save electric energy.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) method that executes each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, additionally provide it is a kind of for implementing the processing unit of above-mentioned processor running frequency, such as Shown in Fig. 4, the apparatus may include: detection module 10, first obtains module 30, second and obtains module 50 and modified module 70。
Wherein, detection module 10 is used to detect the application journey of the operation in terminal with the presence or absence of display on a terminal screen Sequence;It is used for if first obtains module 30 for there is the application program of the operation of display on a terminal screen, acquisition in terminal The first identifier information of currently running application program and the second identifier information of the model for identifying terminal in terminal are identified, Wherein, currently running application program includes the application of the application program in the running background of terminal and the front stage operation in terminal Program;Second acquisition module 50 is for obtaining and the attribute information of first identifier information and second identifier information matches, wherein eventually The modified module 70 of the processor at end is used for by the modified module of processor, for the current operation frequency of processor to be revised as Target operating frequency.
Using the embodiment of the present invention, there is the application program of the operation of display on a terminal screen at the terminal, then obtain For identifying the first identifier information of currently running application program in terminal and the second identifier of the model for identifying terminal Then information obtains the target operating frequency of first identifier information and second identifier information matches, and by the processor of terminal Running frequency is revised as target operating frequency.Through the foregoing embodiment, it can be obtained in the case where terminal is in different application states Different target operating frequencies, and the running frequency of the processor according to target operating frequency adjustment terminal, hence for difference Application scenarios use different CPU running frequencies, can not need in very high-frequency application scenarios some using lower CPU running frequency, power consumption in terminal operating can be reduced while guaranteeing the processing speed of terminal, is solved existing The big problem of intelligent terminal power consumption in technology realizes while guaranteeing the processing speed of terminal, reduces the effect of power consumption Fruit.
In the above embodiment of the present invention, believed by the first identifier for identifying currently running application program in terminal The second identifier information of breath and the model for identifying terminal determines target operating frequency, the object run frequency that can make Rate has better adaptability to terminal, so as to guarantee the processing speed of terminal well and save electricity.
Processing unit in the above-mentioned implementation of the present invention can be using at the terminal, can be applied in terminal and server-side In environment.
Above-mentioned modified module can be realized by the following method: by the fortune of the processor of target operating frequency write-in terminal The configuration file of line frequency.
Specifically, under system/path sys/devices/system/cpu/cpu0/cpufreq/ by modifying terminal Corresponding configuration file modifies the working frequency (running frequency i.e. in above-described embodiment) of CPU."cpuinfo_min_freq File is minimum cpu frequency, and " cpuinfo_max_freq " file is maximum cpu frequency, " scaling_cur_freq " file For the current operation frequency of the CPU of cpufreq module (i.e. cpu frequency module) caching, " cpuinfo_cur_freq " file is Current cpu frequency.In the above-described embodiments, " cpuinfo_cur_freq " can be written into target operating frequency, Lai Xiugai CPU Frequency.
In the above embodiment of the invention, processing unit can also include: the first read module, in detection terminal After the application program of the upper operation with the presence or absence of display on a terminal screen, if there is no show on a terminal screen in terminal Operation application program, then the corresponding preset operating frequency of the processor of reading terminals;First determining module is used for target Running frequency.Target operating frequency.
As judge whether the terminal is in standby with the presence or absence of currently running application program in above-mentioned detection terminal State.That is, judging whether terminal is in standby, if the terminal is in standby, the place of the terminal is directly read Manage the standby running frequency (preset operating frequency i.e. in above-described embodiment) of device;If the terminal is not on standby mode, Read first identifier information and second identifier information.
Wherein, first identifier information can be the title or mark of currently running application program.Such as, currently running to answer It is QQ with program, then the first identifier information got can be with are as follows: QQ.
In the above-described embodiments, terminal can detecte the application of the operation in terminal with the presence or absence of display on a terminal screen Program;If the application program of the operation in terminal there is no display on a terminal screen, it is determined that the current usage scenario of user For standby scene;If there is the application program of the operation of display on a terminal screen in terminal, obtain for identifying terminal Then the first identifier information of currently running application program reads the corresponding applied field of first identifier information from tables of data Scape.
In this embodiment, the second identifier information and first identifier information that will be used to identify that the model of terminal report together To server-side.
Wherein, currently running application program may include in the application program of the running background of terminal and before terminal The application program of platform operation.Currently running application program can be to be multiple, then available one or more application scene.
For example, first identifier information is QQ or wechat, then the application scenarios got are instant messaging scene;If first Identification information is QQ and wechat, then the application scenarios read from tables of data may be instant messaging scene;If the first mark Knowing information is fighting landlord and QQ, then the application scenarios read from tables of data can be scene of game and instant messaging scene.
After receiving first identifier information and second identifier information, server-side determines the current application scenarios of user, and Issue with the matched cpu frequency of current application scenarios institute, then terminal adjusts after receiving the cpu frequency that server-side issues The running frequency of processor.
Specifically, under system/path sys/devices/system/cpu/cpu0/cpufreq/ by modifying terminal Corresponding configuration file modifies the working frequency (running frequency i.e. in above-described embodiment) of CPU.
Through the embodiment of the present invention, the current usage scenario of user is reported to background server by ROM, and server-side judgement is used The current usage scenario in family (i.e. above-mentioned application scenarios) issues suitable cpu frequency to the ROM of terminal, ROM by server-side CPU working frequency is adjusted according to the cpu frequency that server-side issues, reaches the purpose of intelligent power saving.
In the above embodiment of the invention, the second acquisition module may include: the first detection sub-module, for detecting end Whether the quantity of currently running application program is one on end;First acquisition submodule, for applying journey currently running In the case that the quantity of sequence is one, the program running frequency to match with first identifier information and second identifier information is read, Using program running frequency as target operating frequency;First acquisition submodule is also used to the quantity in currently running application program In the case where not being one, the program running frequency with first identifier information and second identifier information matches is read respectively, will To multiple program running frequencies in maximum program running frequency as target operating frequency.
When above-mentioned currently running application program is one, then an application scenarios can be determined, such as scene of game, i.e. When traffic scene, scene of taking pictures etc.;If above-mentioned currently running application program is multiple, one or more can be determined Application scenarios.
For example, first identifier information is QQ or wechat, then the application scenarios got are instant messaging scene;If first Identification information is QQ and wechat, then the application scenarios read from tables of data may be instant messaging scene;If the first mark Knowing information is fighting landlord and QQ, then the application scenarios read from tables of data can be scene of game and instant messaging scene.
In the case where a currently running application program, the available and currently running application program and second The program running frequency is target operating frequency by the program running frequency of identification information match;If currently running apply journey Sequence be it is multiple, then obtain respectively with the program running frequency of each currently running application program and second identifier information matches, That maximum frequency is as target operating frequency in the multiple program running frequencies that will acquire.
According to the abovementioned embodiments of the present invention, the first acquisition submodule may include: the first reading submodule, for reading The predeterminated frequency range for taking the running frequency set to match with first identifier information and matching with second identifier information, In, it include one or more predeterminated frequency values in running frequency set;First extracting sub-module, for from running frequency set The predeterminated frequency value for meeting predeterminated frequency range is extracted, using predeterminated frequency value the smallest in the predeterminated frequency value extracted as journey Sort run frequency.
Specifically, processing unit can also include: the second read module, pre- with second identifier information matches for reading If frequency range;First extraction module, for extracting multiple test frequencies from predeterminated frequency range;Third obtains module, uses Occupancy process number and power consumption when obtaining each application program installed in terminal and operating in each test frequency;Calculate mould Block, for being weighted to obtain weighting parameters to occupancy process number and power consumption;Gather generation module, for based on calculating The corresponding test frequency of weighting parameters for the top n that sorts in obtained multiple weighting parameters generates running frequency set, wherein and N > 0, N is natural number.
In the above-described embodiments, when can also obtain each application program installed in terminal and operating in each test frequency CPU usage and EMS memory occupation amount.Then CPU usage, EMS memory occupation amount, occupancy process number and power consumption are weighted Weighting parameters are calculated.
As shown in table 1, each application program can correspond to an application scenarios, and each application scenarios are corresponding one or more Program running frequency (being a program running frequency in table 1).
In an embodiment of the invention, detection module may include: third acquisition submodule, for obtaining answering for terminal With the operation information of program, wherein operation information includes starting the application program installed in a terminal and/or closing an end The application program installed on end;Second detection sub-module, for after receiving operation information, detecting to whether there is in terminal Currently running application program.
Specifically, it can be installed in a terminal with the operation information for application program of real-time monitoring terminal as started Application program and/or close the application program installed in a terminal, can be known by the operation information current in terminal Variation (or increase or reduce or change) has occurred in the application program of operation, can be according to terminal need by these operation informations Start the processing method of adjustment running frequency.
In another embodiment, detection module may include: the 4th acquisition submodule, set in advance for obtaining The adjustment time section of the processor running frequency for the adjustment terminal set;Signal generation module is used in adjustment time section, every Preset time generates a trigger signal;Third detection sub-module, for after receiving the trigger signal, being in detection terminal It is no that there are currently running application programs.
Adjustment time section can be arranged by terminal in user, if working time 8:00-12:00 is not to the running frequency of CPU It is adjusted, the processing method of non-working time 18:00-22:00 starting adjustment CPU running frequency.Time segment to CPU's Running frequency is adjusted, and can further save electric energy.
It is possible to further generate a trigger signal every preset time (such as 1 minute) in adjustment time section;It can also be with Operation information is obtained in adjustment time section, trigger signal is generated by operation information, is detected in terminal with the presence or absence of current operation Application program.
Through the foregoing embodiment, processing method can be started when user needs, further save electric energy.
Application method is identical, answers with provided by the corresponding step of embodiment of the method for modules provided in the present embodiment It can also be identical with scene.It is noted, of course, that the scheme that above-mentioned module is related to can be not limited to the above embodiments in one Content and scene, and above-mentioned module may operate in terminal or mobile terminal, can pass through software or hardware realization.
Embodiment 3
The embodiments of the present invention also provide a kind of processing systems of processor running frequency.Optionally, in the present embodiment In, above system can execute the processing method of processor running frequency, which can be located in network shown in FIG. 1.
It may refer to shown in FIG. 1, which may include: terminal 101, for detecting in terminal with the presence or absence of current fortune Capable application program obtains if there are currently running application programs in terminal for identifying currently running in terminal answer With the second identifier information of the first identifier information of program and the model for identifying terminal, and by first identifier information and second Identification information is sent to server-side;Server-side 102, connect with terminal, for receiving first identifier information and second identifier After information, the attribute information with first identifier information and second identifier information matches is obtained, wherein attribute information is used to indicate The target operating frequency of the processor of terminal, and attribute information is sent to terminal;Terminal is also used to the current fortune of processor Line frequency is revised as target operating frequency, wherein currently running application program includes the application journey in the running background of terminal The application program of sequence and the front stage operation in terminal.
Using the embodiment of the present invention, there is the application program of the operation of display on a terminal screen at the terminal, then obtain For identifying the first identifier information of currently running application program in terminal and the second identifier of the model for identifying terminal Then information obtains the target operating frequency of first identifier information and second identifier information matches, and by the processor of terminal Running frequency is revised as target operating frequency.Through the foregoing embodiment, it can be obtained in the case where terminal is in different application states Different target operating frequencies, and the running frequency of the processor according to target operating frequency adjustment terminal, hence for difference Application scenarios use different CPU running frequencies, can not need in very high-frequency application scenarios some using lower CPU running frequency, power consumption in terminal operating can be reduced while guaranteeing the processing speed of terminal, is solved existing The big problem of intelligent terminal power consumption in technology realizes while guaranteeing the processing speed of terminal, reduces the effect of power consumption Fruit.
In the above embodiment of the present invention, believed by the first identifier for identifying currently running application program in terminal The second identifier information of breath and the model for identifying terminal determines target operating frequency, the object run frequency that can make Rate has better adaptability to terminal, so as to guarantee the processing speed of terminal well and save electricity.
Processing method in the above-mentioned implementation of the present invention can be using at the terminal, can be applied in terminal and server-side In environment.
Modification running frequency in above-described embodiment can be achieved by the steps of: terminal is written in target operating frequency Processor running frequency configuration file.
Specifically, under system/path sys/devices/system/cpu/cpu0/cpufreq/ by modifying terminal Corresponding configuration file modifies the working frequency (running frequency i.e. in above-described embodiment) of CPU."cpuinfo_min_freq File is minimum cpu frequency, and " cpuinfo_max_freq " file is maximum cpu frequency, " scaling_cur_freq " file For the current operation frequency of the CPU of cpufreq module (i.e. cpu frequency module) caching, " cpuinfo_cur_freq " file is Current cpu frequency.In the above-described embodiments, " cpuinfo_cur_freq " can be written into target operating frequency, Lai Xiugai CPU Frequency.
In the above embodiment of the invention, operation of the terminal in detection terminal with the presence or absence of display on a terminal screen Application program after, if being also used in terminal, there is no the application programs of display operation on a terminal screen, it is determined that eventually End is in standby, and the first identifier information of the standby mode can be sent to server-side, from server-side reading terminals The corresponding preset operating frequency of processor, using preset operating frequency as target operating frequency.
As judge whether the terminal is in standby with the presence or absence of currently running application program in above-mentioned detection terminal State.That is, judging whether terminal is in standby, if the terminal is in standby, the place of the terminal is directly read Manage the standby running frequency (preset operating frequency i.e. in above-described embodiment) of device;If the terminal is not on standby mode, Read first identifier information and second identifier information.
Wherein, first identifier information can be the title or mark of currently running application program.Such as, currently running to answer It is QQ with program, then the first identifier information got can be with are as follows: QQ.
Above-described embodiment is described in detail below, after starting processing method, the current applied field of the terminal report of user Scape is to server-side.
In this embodiment, terminal can detecte the application journey of the operation in terminal with the presence or absence of display on a terminal screen Sequence;If there is no the application programs of display operation on a terminal screen in terminal, it is determined that the current usage scenario of user is Standby scene;If there is the application program of the operation of display on a terminal screen in terminal, obtains and be taken in for identifying terminal Then the first identifier information of the application program of preceding operation reads the corresponding applied field of first identifier information from tables of data Scape.
In this embodiment, the second identifier information and first identifier information that will be used to identify that the model of terminal report together To server-side.
Wherein, currently running application program may include in the application program of the running background of terminal and before terminal The application program of platform operation.Currently running application program can be to be multiple, then available one or more application scene.
For example, first identifier information is QQ or wechat, then the application scenarios got are instant messaging scene;If first Identification information is QQ and wechat, then the application scenarios read from tables of data may be instant messaging scene;If the first mark Knowing information is fighting landlord and QQ, then the application scenarios read from tables of data can be scene of game and instant messaging scene.
After server determines application scenarios, server-side is issued and the matched cpu frequency of current application scenarios.
Specifically, from cpu frequency (the i.e. above-mentioned implementation of the matched suitable power saving of the above-mentioned application scenarios of server side searches Target operating frequency in example), which can obtain by a large amount of tests, such as: family ideal case issues minimum CPU Frequency;When user plays game, maximum cpu frequency is issued.
The running frequency of processor is adjusted after receiving the cpu frequency that server-side issues in terminal.
Specifically, under system/path sys/devices/system/cpu/cpu0/cpufreq/ by modifying terminal Corresponding configuration file modifies the working frequency (running frequency i.e. in above-described embodiment) of CPU.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment Details are not described herein.
Embodiment 4
The embodiments of the present invention also provide a kind of terminal or servers.Optionally, in the present embodiment, above-mentioned terminal can To execute the processing method of processor running frequency, the processing unit of the processor running frequency in above-described embodiment be can be set In the terminal or server.
Fig. 5 is a kind of structural block diagram of terminal according to an embodiment of the present invention.As shown in figure 5, the terminal may include: one A or multiple (one is only shown in figure) processor 201, memory 203 and transmitting device 205, as shown in figure 5, the terminal It can also include input-output equipment 207 and antenna 209.
Wherein, memory 203 can be used for storing software program and module, such as the processor operation in the embodiment of the present invention Corresponding program instruction/the module of processing method, the device and system of frequency, processor 201 are stored in storage 203 by operation Software program and module realize above-mentioned processor operation frequency thereby executing various function application and data processing The processing method of rate.Memory 203 may include high speed random access memory, can also include nonvolatile memory, such as one or The multiple magnetic storage devices of person, flash memory or other non-volatile solid state memories.In some instances, memory 203 can be into One step includes the memory remotely located relative to processor 201, these remote memories can pass through network connection to terminal. The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 205 is used to that data to be received or sent via network, can be also used for processor with Data transmission between memory.Above-mentioned network specific example may include cable network and wireless network.In an example, Transmitting device 205 includes a network adapter (Network Interface Controller, NIC), can pass through cable It is connected with other network equipments with router so as to be communicated with internet or local area network.In an example, transmission dress 205 are set as radio frequency (Radio Frequency, RF) module, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 203 is for storing application program.
The application program that processor 201 can call memory 203 to store by transmitting device 205, to execute following steps It is rapid: the application program of the operation in detection terminal with the presence or absence of display on a terminal screen;If existing in terminal and being shown in terminal The application program of operation on screen, then obtain for identify currently running application program in terminal first identifier information and For identifying the second identifier information of the model of terminal, wherein currently running application program includes the running background in terminal Application program and the front stage operation in terminal application program;It obtains and first identifier information and second identifier information matches Attribute information, wherein attribute information is used to indicate the target operating frequency of the processor of terminal;By the current operation frequency of processor Rate is revised as target operating frequency.
Using the embodiment of the present invention, there is the application program of the operation of display on a terminal screen at the terminal, then obtain For identifying the first identifier information of currently running application program in terminal and the second identifier of the model for identifying terminal Then information obtains the target operating frequency of first identifier information and second identifier information matches, and by the processor of terminal Running frequency is revised as target operating frequency.Through the foregoing embodiment, it can be obtained in the case where terminal is in different application states Different target operating frequencies, and the running frequency of the processor according to target operating frequency adjustment terminal, hence for difference Application scenarios use different CPU running frequencies, can not need in very high-frequency application scenarios some using lower CPU running frequency, power consumption in terminal operating can be reduced while guaranteeing the processing speed of terminal, is solved existing The big problem of intelligent terminal power consumption in technology realizes while guaranteeing the processing speed of terminal, reduces the effect of power consumption Fruit.
In the above embodiment of the present invention, believed by the first identifier for identifying currently running application program in terminal The second identifier information of breath and the model for identifying terminal determines target operating frequency, the object run frequency that can make Rate has better adaptability to terminal, so as to guarantee the processing speed of terminal well and save electricity.
Processing method in the above-mentioned implementation of the present invention can be using at the terminal, can be applied in terminal and server-side In environment.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment Details are not described herein.
It should be further noted that deposit region is the register in the memory and system processor of system.
It will appreciated by the skilled person that structure shown in fig. 5 is only to illustrate, terminal can be smart phone (such as Android phone, iOS mobile phone), tablet computer, applause computer and mobile internet device (Mobile Internet Devices, MID), the terminal devices such as PAD.Fig. 5 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal 200 It may also include the more perhaps less component (such as network interface, display device) than shown in Fig. 5 or have and Fig. 5 institute Show different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment Details are not described herein.
Embodiment 5
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium Store the program code for executing the processing method of processor running frequency.
Optionally, in the present embodiment, above-mentioned storage medium can be located in terminal shown in embodiment.
Optionally, in the present embodiment, above-mentioned storage medium can be located in multiple network equipments in network at least One network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
Step S1: the application program of the operation in detection terminal with the presence or absence of display on a terminal screen.
Step S2: it if there is the application program of the operation of display on a terminal screen in terminal, obtains for identifying end The second identifier information of the first identifier information of currently running application program and the model for identifying terminal on end, wherein Currently running application program includes the application program of the application program in the running background of terminal and the front stage operation in terminal.
Step S3: the attribute information with first identifier information and second identifier information matches is obtained, wherein attribute information is used In the target operating frequency of the processor of instruction terminal.
Step S4: the current operation frequency of processor is revised as target operating frequency.
Using the embodiment of the present invention, there is the application program of the operation of display on a terminal screen at the terminal, then obtain For identifying the first identifier information of currently running application program in terminal and the second identifier of the model for identifying terminal Then information obtains the target operating frequency of first identifier information and second identifier information matches, and by the processor of terminal Running frequency is revised as target operating frequency.Through the foregoing embodiment, it can be obtained in the case where terminal is in different application states Different target operating frequencies, and the running frequency of the processor according to target operating frequency adjustment terminal, hence for difference Application scenarios use different CPU running frequencies, can not need in very high-frequency application scenarios some using lower CPU running frequency, power consumption in terminal operating can be reduced while guaranteeing the processing speed of terminal, is solved existing The big problem of intelligent terminal power consumption in technology realizes while guaranteeing the processing speed of terminal, reduces the effect of power consumption Fruit.
In the above embodiment of the present invention, believed by the first identifier for identifying currently running application program in terminal The second identifier information of breath and the model for identifying terminal determines target operating frequency, the object run frequency that can make Rate has better adaptability to terminal, so as to guarantee the processing speed of terminal well and save electricity.
Processing method in the above-mentioned implementation of the present invention can be using at the terminal, can be applied in terminal and server-side In environment.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
Optionally, the specific example in the present embodiment can be with reference to example described in above-described embodiment, the present embodiment Details are not described herein.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment side of the present invention The all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of unit, and only one kind is patrolled Volume function division, there may be another division manner in actual implementation, such as multiple units or components can combine or can be with It is integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of unit or module, can To be electrically or in the form of others.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only the preferred embodiment of the present invention, it is noted that those skilled in the art are come It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should be regarded as Protection scope of the present invention.

Claims (11)

1. a kind of processing method of processor running frequency characterized by comprising
Detect the application program of the operation in terminal with the presence or absence of display on a terminal screen;
If there is the application program of the operation of display on a terminal screen in the terminal, obtain current in terminal for identifying The second identifier information of the first identifier information of the application program of operation and the model for identifying the terminal, wherein described Currently running application program includes the application program in the running background of the terminal and the front stage operation in the terminal Application program;
Obtain the attribute information with the first identifier information and the second identifier information matches, wherein the attribute information It is used to indicate the target operating frequency of the processor of the terminal;
The current operation frequency of the processor is revised as the target operating frequency;
Wherein, obtaining with the attribute information of the first identifier information and the second identifier information matches includes: to work as described In the case that the quantity of the application program of preceding operation is one, read and the first identifier information and the second identifier information The program running frequency to match, using described program running frequency as the target operating frequency;Described currently running In the case that the quantity of application program is not one, read and the first identifier information and the second identifier information respectively The program running frequency matched, using maximum program running frequency in obtained multiple described program running frequencies as the target Running frequency;
Before reading the program running frequency to match with the first identifier information and the second identifier information, the place Reason method further include: read the predeterminated frequency range with the second identifier information matches;It is mentioned from the predeterminated frequency range Take multiple test frequencies;Obtain occupancy when each application program installed in the terminal operates in each test frequency Process number and power consumption;The occupancy process number and the power consumption are weighted to obtain weighting parameters;Based on calculating The corresponding test frequency of the weighting parameters for the top n that sorts in obtained multiple weighting parameters generates the running frequency Set, wherein N > 0, N are natural number.
2. processing method according to claim 1, which is characterized in that whether there is in detection terminal and be shown in end panel After the application program of operation on curtain, the processing method further include:
If the application program of the operation in the terminal there is no display on a terminal screen, reads the processor of the terminal Corresponding preset operating frequency;
Using the preset operating frequency as the target operating frequency.
3. processing method according to claim 1, which is characterized in that read and the first identifier information and described second The program running frequency of identification information match includes:
It reads the running frequency set to match with the first identifier information and matches with the second identifier information pre- If frequency range, wherein include one or more predeterminated frequency values in the running frequency set;
The predeterminated frequency value for meeting the predeterminated frequency range, the institute that will be extracted are extracted from the running frequency set The smallest predeterminated frequency value is stated in predeterminated frequency value as described program running frequency.
4. processing method as claimed in any of claims 1 to 3, which is characterized in that whether there is in detection terminal Currently running application program includes:
Obtain the operation information for application program of the terminal, wherein the operation information includes one end of starting The application program installed in one terminal of application program and/or closing installed on end;
After receiving the operation information, detects and whether there is currently running application program in terminal.
5. processing method as claimed in any of claims 1 to 3, which is characterized in that whether there is in detection terminal Currently running application program includes:
Obtain the adjustment time section of the processor running frequency of the pre-set adjustment terminal;
In the adjustment time section, a trigger signal is generated every preset time;
After receiving the trigger signal, detects and whether there is currently running application program in terminal.
6. a kind of processing unit of processor running frequency characterized by comprising
Detection module, for detecting the application program of the operation in terminal with the presence or absence of display on a terminal screen;
First obtains module, if there is the application program of the operation of display on a terminal screen in the terminal, obtains For identify currently running application program in terminal first identifier information and the model for identifying the terminal second Identification information, wherein the currently running application program includes in the application program of the running background of the terminal and in institute State the application program of the front stage operation of terminal;
Second obtains module, for obtaining and the attribute information of the first identifier information and the second identifier information matches, Wherein, the attribute information is used to indicate the target operating frequency of the processor of the terminal;
Modified module, for the current operation frequency of the processor to be revised as the target operating frequency;
Wherein, the second acquisition module includes: the first acquisition submodule, for the number in the currently running application program In the case that amount is one, the program operation frequency to match with the first identifier information and the second identifier information is read Rate, using described program running frequency as the target operating frequency;First acquisition submodule is also used to described current In the case that the quantity of the application program of operation is not one, read and the first identifier information and the second identifier respectively The program running frequency of information matches, using maximum program running frequency in obtained multiple described program running frequencies as institute State target operating frequency;
The processing unit further include: the second read module, for reading and the first identifier information and second mark Before knowing the program running frequency that information matches, the predeterminated frequency range with the second identifier information matches is read;First Extraction module, for extracting multiple test frequencies from the predeterminated frequency range;Third obtains module, for obtaining the end The each application program installed on end operates in the occupancy process number and power consumption when each test frequency;Computing module, For being weighted to obtain weighting parameters to the occupancy process number and the power consumption;Gather generation module, is used for base The corresponding test frequency of the weighting parameters for the top n that sorts in the multiple weighting parameters being calculated generates the fortune Line frequency set, wherein N > 0, N are natural number.
7. processing unit according to claim 6, which is characterized in that the processing unit further include:
First read module, in detection terminal with the presence or absence of the application program of display operation on a terminal screen it Afterwards, if the application program of the operation in the terminal there is no display on a terminal screen, reads the processor of the terminal Corresponding preset operating frequency;
First determining module, for using the preset operating frequency as the target operating frequency.
8. processing unit according to claim 6, which is characterized in that first acquisition submodule includes:
First reading submodule, for reading the running frequency set to match with the first identifier information and with described second The predeterminated frequency range that identification information matches, wherein include one or more predeterminated frequency values in the running frequency set;
First extracting sub-module meets the described default of the predeterminated frequency range for extracting from the running frequency set Frequency values, using the smallest predeterminated frequency value in the predeterminated frequency value extracted as described program running frequency.
9. the processing unit according to any one of claim 6 to 8, which is characterized in that the detection module includes:
Third acquisition submodule, the operation information of the application program for obtaining the terminal, wherein the operation information includes The application program installed in one terminal of application program and/or closing installed in one terminal of starting;
Second detection sub-module, for after receiving the operation information, detecting in terminal with the presence or absence of currently running Application program.
10. the processing unit according to any one of claim 6 to 8, which is characterized in that the detection module includes:
4th acquisition submodule, the adjustment time of the processor running frequency for obtaining the pre-set adjustment terminal Section;
Signal generation module, for generating a trigger signal every preset time in the adjustment time section;
Third detection sub-module, for after receiving the trigger signal, detecting in terminal with the presence or absence of currently running Application program.
11. a kind of processing system of processor running frequency characterized by comprising
Terminal, for detecting with the presence or absence of currently running application program in the terminal, if there is described work as in the terminal The application program of preceding operation then obtains first identifier information and use for identifying the currently running application program in terminal It is sent in the second identifier information for the model for identifying the terminal, and by the first identifier information and the second identifier information To server-side;
The server-side is connect with the terminal, for receiving the first identifier information and the second identifier information Later, the predeterminated frequency range with the second identifier information matches is read;Multiple surveys are extracted from the predeterminated frequency range Try frequency;Obtain occupancy process number when each application program installed in the terminal operates in each test frequency and Power consumption;The occupancy process number and the power consumption are weighted to obtain weighting parameters;It is more based on what is be calculated The corresponding test frequency of the weighting parameters for the top n that sorts in a weighting parameters generates the running frequency set, In, N > 0, N are natural number;Extraction meets described pre- from the running frequency set to match with the first identifier information If the predeterminated frequency value of frequency range, using the smallest predeterminated frequency value in the predeterminated frequency value extracted as described program Running frequency;The quantity of the currently running application program be one in the case where, using described program running frequency as Target operating frequency;It is multiple described by what is obtained in the case where the quantity of the currently running application program is not one Maximum program running frequency is sent as the target operating frequency and by the target operating frequency in program running frequency To the terminal;
The terminal is also used to the current operation frequency of the processor being revised as the target operating frequency,
Wherein, the currently running application program includes in the application program of the running background of the terminal and in the terminal Front stage operation application program.
CN201410466162.4A 2014-09-12 2014-09-12 Processing method, the device and system of processor running frequency Active CN105468466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410466162.4A CN105468466B (en) 2014-09-12 2014-09-12 Processing method, the device and system of processor running frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410466162.4A CN105468466B (en) 2014-09-12 2014-09-12 Processing method, the device and system of processor running frequency

Publications (2)

Publication Number Publication Date
CN105468466A CN105468466A (en) 2016-04-06
CN105468466B true CN105468466B (en) 2019-09-20

Family

ID=55606201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410466162.4A Active CN105468466B (en) 2014-09-12 2014-09-12 Processing method, the device and system of processor running frequency

Country Status (1)

Country Link
CN (1) CN105468466B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020893B (en) * 2016-05-26 2019-03-15 北京小米移动软件有限公司 Using the method and device of installation
CN106210895A (en) * 2016-07-08 2016-12-07 乐视控股(北京)有限公司 Processor frequencies control method, device and terminal
CN106775866A (en) * 2016-12-14 2017-05-31 奇酷互联网络科技(深圳)有限公司 Mobile terminal and mobile terminal performance adjusting method and device
CN106951320B (en) * 2017-01-23 2022-03-08 斑马信息科技有限公司 System and method for dynamically adjusting CPU frequency of vehicle machine of internet vehicle
CN109426558A (en) * 2017-08-21 2019-03-05 深圳市中兴微电子技术有限公司 A kind of parameter adjusting method, terminal and storage medium
CN108494866A (en) * 2018-03-30 2018-09-04 北京小米移动软件有限公司 Information processing method and server, terminal device
CN108961724A (en) * 2018-10-15 2018-12-07 上海新蔺智能科技有限公司 A kind of data processing equipment and system
CN111221855B (en) * 2020-01-08 2023-08-22 中国建设银行股份有限公司 Data processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246340A (en) * 2012-02-06 2013-08-14 索尼公司 Device and method for dynamically adjusting frequency of central processing unit
CN103500003A (en) * 2013-09-30 2014-01-08 北京奇虎科技有限公司 Method and device for regulating CPU frequency of portable terminal
KR101427526B1 (en) * 2013-05-31 2014-08-07 고려대학교 산학협력단 Method for managing power in mobile terminal
CN104007806A (en) * 2014-06-20 2014-08-27 中科创达软件股份有限公司 Method and device for controlling CPU frequency in Android system and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370663B2 (en) * 2008-02-11 2013-02-05 Nvidia Corporation Power management with dynamic frequency adjustments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246340A (en) * 2012-02-06 2013-08-14 索尼公司 Device and method for dynamically adjusting frequency of central processing unit
KR101427526B1 (en) * 2013-05-31 2014-08-07 고려대학교 산학협력단 Method for managing power in mobile terminal
CN103500003A (en) * 2013-09-30 2014-01-08 北京奇虎科技有限公司 Method and device for regulating CPU frequency of portable terminal
CN104007806A (en) * 2014-06-20 2014-08-27 中科创达软件股份有限公司 Method and device for controlling CPU frequency in Android system and equipment

Also Published As

Publication number Publication date
CN105468466A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN105468466B (en) Processing method, the device and system of processor running frequency
CN107886952B (en) Method, device and system for controlling intelligent household electrical appliance through voice and electronic equipment
CN105116783B (en) control interface switching method and device
CN104506397B (en) The method and system of smart machine access to LAN
CN103941871B (en) The method and apparatus for controlling the hardware running status of intelligent terminal
CN105357403B (en) Method for switching network, device and communication terminal in a kind of communication terminal
CN108242837A (en) The method of the charging of electronic equipment and control electronics
CN105657656B (en) A kind of transmission power adjustment method and user equipment
CN109460361B (en) Performance test method and device, storage medium and electronic device
CN109600315A (en) The flow control method and method of adjustment of data channel
CN105517126B (en) Frequency range processing method, device and communication terminal in a kind of communication terminal
CN109168327A (en) Method and apparatus for interconnection detection and mitigation in wireless power transmission network
CN105183464B (en) Information display method and device and electronic equipment
CN105404578B (en) Method and apparatus for showing the occupied memory of application program
CN109644465A (en) A kind of resource allocation method and device, computer storage medium
CN110768382A (en) Wireless charging method and device, storage medium and electronic equipment
CN103678125A (en) Method and system for debugging codes
CN109525697A (en) Contact person shares and the method, apparatus and terminal of display
CN107205210A (en) Collocation method, device, system and the computer program of wireless network node
CN105407445B (en) A kind of connection method and the first electronic equipment
CN106126320A (en) Method, device and the terminal that a kind of terminal capabilities optimizes
CN108055690A (en) Wi-Fi hotspot recommends method, application server and computer readable storage medium
CN107808106A (en) A kind of session content methods of exhibiting and device with scene handoff functionality
CN110087225A (en) Message treatment method and relevant apparatus
CN105978970A (en) method and device for selecting control mode

Legal Events

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