CN109271208A - Parameter setting method, device, terminal and storage medium - Google Patents

Parameter setting method, device, terminal and storage medium Download PDF

Info

Publication number
CN109271208A
CN109271208A CN201811124727.5A CN201811124727A CN109271208A CN 109271208 A CN109271208 A CN 109271208A CN 201811124727 A CN201811124727 A CN 201811124727A CN 109271208 A CN109271208 A CN 109271208A
Authority
CN
China
Prior art keywords
parameter setting
target
interface
application
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811124727.5A
Other languages
Chinese (zh)
Inventor
程杰
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811124727.5A priority Critical patent/CN109271208A/en
Publication of CN109271208A publication Critical patent/CN109271208A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4405Initialisation of multiprocessor systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of parameter setting method, device, terminal and storage mediums, belong to electronic technology field.This method comprises: display parameters set interface, comprising the corresponding operating parameter setting control of at least one hardware in parameter setting interface, at least one hardware includes CPU, and/or, GPU;When receiving to the operation signal of target operating parameters setting control in parameter setting interface, the corresponding target hardware of target operating parameters setting control and target operating parameters are determined;Parameter setting is carried out to target hardware according to target operating parameters, the target hardware after setting is run under target operating parameters.In the embodiment of the present application, terminal display parameters runnable interface, then parameter setting is carried out to CPU/GPU to the operation of operating parameter operation control in parameter runnable interface according to user, solves the problems, such as that user can not customized setting CPU/GPU operating parameter in the related technology.

Description

Parameter setting method, device, terminal and storage medium
Technical field
The invention relates to electronic technology field, in particular to a kind of parameter setting method, device, terminal and storage Medium.
Background technique
Central processing unit (Central Processing Unit, CPU) is the arithmetic core and control core of terminal, figure Shape processor (Graphics Processing Unit, GPU) is the microprocessor for carrying out graphic operation work, is both influenced The power consumption of terminal, the speed of service and fluency.Also, under different usage scenarios, performance of the user for CPU and GPU It is required that different.
In present terminal system, it is contemplated that the acceptance and operability of most users, user usually can be by terminals Setting are as follows: battery saving mode, normal mode and high performance mode.Wherein, under different mode the running parameter of CPU and GPU by developing Personnel preset.
Summary of the invention
The embodiment of the present application provides a kind of parameter setting method, device, terminal and storage medium, can solve related skill User is merely able to simple selection terminal work mode in art, can not customized setting CPU/GPU operating parameter the problem of.The skill Art scheme is as follows:
On the one hand, a kind of parameter setting method is provided, which comprises
Display parameters set interface includes the corresponding operating parameter setting of at least one hardware in the parameter setting interface Control, at least one hardware includes CPU, and/or, GPU;
When receiving to the operation signal of target operating parameters setting control in the parameter setting interface, described in determination The corresponding target hardware of target operating parameters setting control and target operating parameters;
Parameter setting is carried out to the target hardware according to the target operating parameters, the target hardware after setting exists It is run under the target operating parameters.
On the other hand, a kind of parameter setting apparatus is provided, described device includes:
First display module is used for display parameters set interface, includes at least one hardware in the parameter setting interface Corresponding operating parameter setting control, at least one hardware includes CPU, and/or, GPU;
First determining module, for working as the behaviour received to target operating parameters setting control in the parameter setting interface When making signal, the corresponding target hardware of the target operating parameters setting control and target operating parameters are determined;
Setup module, for carrying out parameter setting to the target hardware according to the target operating parameters, after setting The target hardware is run under the target operating parameters.
On the other hand, a kind of terminal is provided, the terminal includes processor and memory;The memory be stored with to A few instruction, at least one instruction is for being executed by the processor to realize parameter setting as described in relation to the first aspect Method.
On the other hand, a kind of computer readable storage medium is provided, the storage medium is stored at least one instruction, At least one instruction is for being executed by processor the parameter setting method to realize as described in relation to the first aspect.
When carrying out parameter setting using parameter setting method provided by the embodiments of the present application, user is in parameter setting interface Operating parameter setting control operated, then terminal carries out parameter to CPU/GPU according to the operating parameter of user setting and sets It sets, so that CPU/GPU be made to run under the operating parameter of user setting;Terminal can only be arranged compared to user in the related technology For battery saving mode, normal mode or high performance mode, and the operating parameter of CPU and GPU can only be by exploit person under different mode Member presets, and every operating parameter of the customized setting CPU/GPU in family can be used in this method, has reached hardware operating parameter Customized effect.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the structural schematic diagram for the terminal that one exemplary embodiment of the application provides;
Fig. 2 is the structural schematic diagram for the terminal that one exemplary embodiment of the application provides;
The schematic diagram of application layer and Linux inner core interactive process in Fig. 3 terminal;
Fig. 4 is the structural schematic diagram for the terminal that another exemplary embodiment of the application provides;
Fig. 5 shows the method flow diagram of the parameter setting method shown in one exemplary embodiment of the application;
Fig. 6 is the parameter setting interface figure that the application one embodiment provides;
Fig. 7 is the method flow diagram of the parameter setting method shown in another exemplary embodiment of the application;
Fig. 8 is the schematic illustration of parameter setting method shown in Fig. 7;
Fig. 9 is the method flow diagram of the parameter setting method shown in another exemplary embodiment of the application;
Figure 10 is the method flow diagram of the parameter setting method shown in another exemplary embodiment of the application;
Figure 11 is the method flow diagram of the parameter setting method shown in another exemplary embodiment of the application;
Figure 12 is the parameter setting interface figure that one exemplary embodiment of the application provides;
Figure 13 is the method flow diagram of the parameter setting method shown in another exemplary embodiment of the application;
Figure 14 shows the block diagram of the parameter setting apparatus of the application one embodiment offer.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Referenced herein " multiple " refer to two or more."and/or", the association for describing affiliated partner are closed System indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, individualism These three situations of B.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Referring to FIG. 1, the structural block diagram of the terminal provided it illustrates the application one embodiment.The terminal can be The electronic equipments such as smart phone, tablet computer.Terminal in the application may include one or more such as lower component: processor 110, memory 120 and input/output unit 130.
Processor 110 may include one or more processing core.Processor 110 utilizes various interfaces and connection Various pieces in entire terminal, by running or executing the instruction being stored in memory 120, program, code set or instruction Collection, and the data being stored in memory 120 are called, execute the various functions and processing data of terminal.Optionally, processor 110 can use Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 110 can integrating central processor (Central Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem It can not be integrated into processor 110, be realized separately through one piece of communication chip.
Memory 120 may include random access memory (Random Access Memory, RAM), also may include read-only Memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non- transitory computer-readable storage medium).Memory 120 can be used for store instruction, program, generation Code, code set or instruction set.Memory 120 may include storing program area and storage data area, wherein storing program area can store Instruction for realizing operating system, the instruction for realizing at least one function (such as touch function, sound-playing function, Image player function etc.), for realizing instruction of following each embodiments of the method etc., which can be Android (Android) system (including the system based on android system deep development), Apple Inc.'s exploitation IOS system (including base In the system of IOS system depth exploitation) or other systems.Storage data area can also store the number that terminal is created in use According to (such as phone directory, audio, video data, chat record data) etc..
By taking operating system is android system as an example, the program and data stored in memory 120 is as shown in Fig. 2, storage Linux inner core 220, system Runtime Library layer 240, application framework layer 260 and application layer 280 can be stored in device 120, wherein Linux inner core 220, system Runtime Library layer 240 and application framework layer 260 belong to operating system space, and application layer 280 belongs to use Family space.Linux inner core 220 provides the driving of bottom for the various hardware of terminal 100, such as show driving, audio driven, Webcam driver, bluetooth driving, Wi-Fi driving, power management etc..System Runtime Library layer 240 by some libraries C/C++ come for Android system provides main characteristic and supports.If the library SQLite provides the support of database, the library OpenGL/ES is provided The support that 3D draws, the library Webkit provides the support etc. of browser kernel.Peace is also provided in system Runtime Library layer 240 Tall and erect run-time library (Android Runtime), it mainly provides some core libraries, and developer can allow for use Java language To write Android application.Application framework layer 260 provides the various API that may be used when building application program, developer The application program of oneself, such as activity management, window management, view management, notice pipe can be constructed by using these API Reason, assures reason, call management, resource management, orientation management at content provider.Operation has at least one application in application layer 280 Program, these application programs can be the included native applications program of operating system, for example, contact person's program, short message program, when Clock program, camera applications etc.;It is also possible to the third party application that third party developer is developed, such as game class application journey Sequence, instant messaging program, photograph pretty program, shopping program etc..
In order to interact application program and the Linux inner core of application layer, as shown in figure 3, Linux inner core 220 A series of kernel functions for having predetermined function are provided, and are presented to application layer 280 by way of interface, application layer 280 Application program can by the interface call kernel function with access hardware devices and other operating-system resources.Optionally, Application program is adjusted by the application programming interfaces (Application Programming Interface, API) of application framework layer It is set to complete the request of application program to access Linux inner core with above-mentioned interface.
By taking operating system IOS system as an example, the program and data stored in memory 120 is as shown in figure 4, IOS system packet It includes: kernel operating system layer 320 (Core OS layer), kernel service layer 340 (Core Services layer), Media layer 360 (Media layer), tangible layer 380 (Cocoa Touch Layer).Kernel operating system layer 320 includes operation system System kernel, driver and underlying programs frame, these underlying programs frames provide the function closer to hardware, for being located at The program frame of kernel service layer 340 is used.Kernel service layer 340 be supplied to system service required for application program and/ Or program frame, such as basic (Foundation) frame, account frame, advertising framework, data frame memory frame, network connection frame Frame, geographical location frame, moving frame etc..Media layer 360 provide for application program in relation to audiovisual in terms of interface, such as figure The relevant interface of image, the relevant interface of Audiotechnica, the relevant interface of video technique, audio video transmission technology radio play (AirPlay) interface etc..Tangible layer 380 provides the relevant frame in various common interfaces for application development, can touch It touches layer 380 and is responsible for the touch interactive operation of user at the terminal.Such as local notice service, long-range Push Service, advertising framework, Game tool frame, message user interface interface (User Interface, UI) frame, user interface UIKit frame, picture frame Frame etc..
Wherein, the mode of application program access hardware devices and principle can refer to android system in IOS system, Details are not described herein by the application.
Input/output unit 130 may include touch display screen, which uses finger, touching for receiving user Touch the touch operation of any suitable object such as pen on it or nearby, and the user interface of each application program of display.Touching Touch the front panel that display screen is generally arranged at terminal.Touch display screen is designed to shield comprehensively, Curved screen or abnormal shape shield.Touching It touches display screen to be also designed to shield and the combination of Curved screen comprehensively, the combination of abnormal shape screen and Curved screen, the embodiment of the present application This is not limited.
In addition to this, it will be understood by those skilled in the art that the structure of terminal shown by above-mentioned attached drawing is not constituted pair The restriction of terminal, terminal may include perhaps combining certain components or different components than illustrating more or fewer components Arrangement.For example, further including radio circuit, input unit, sensor, voicefrequency circuit, Wireless Fidelity (Wireless in terminal Fidelity, WiFi) components such as module, power supply, bluetooth module, details are not described herein.
Referring to FIG. 5, it illustrates the method flows of the parameter setting method shown in one exemplary embodiment of the application Figure.The present embodiment is applied to above-mentioned terminal in this way to illustrate.This method comprises:
Step 501, display parameters set interface.
Comprising the corresponding operating parameter setting control of at least one hardware in parameter setting interface, at least one hardware includes CPU, and/or, GPU.Wherein, CPU is the arithmetic core of terminal and calculates core, generally may include multiple big core (high-performance Core) and multiple small nuts (low performance core), GPU is the microprocessor for carrying out graphics process, may include multiple cores. The operating parameter of CPU and GPU mainly includes opening core number and running frequency, it is generally the case that core number is bigger, running frequency Higher, the speed of service of terminal is higher, but the power consumption of mobile phone simultaneously is bigger, and standby time is also shorter.Therefore, optionally, transport It include opening at least one of core number setting control and running frequency setting control in row parameter setting control.
In a kind of possible embodiment, in order to enable the terminals to run CPU/GPU in specified parameter area, run It include core running frequency minimum setting control and core running frequency peak setting control, user in set of frequency control The peak and minimum of CPU/GPU running frequency can be set by the control, so that terminal CPU and GPU is in the peak It is run within the scope of the running frequency of the minimum, the customized setting operating parameter of user can be thus achieved as a result, can also protect Card terminal runs CPU/GPU within the scope of restriction operating parameter.
Optionally, operating parameter setting control includes at least following one kind: CPU high-performance core maximum opens number setting Control, CPU low performance core maximum open number setting control, GPU core maximum opens number setting control, CPU low performance core Low-limit frequency setting control, CPU low performance core highest frequency setting control, CPU high-performance core low-limit frequency setting control, CPU high-performance core highest frequency setting control, GPU core low-limit frequency setting control, the setting control of GPU core highest frequency Part.Wherein, the performance of CPU high-performance core is higher than the performance of CPU low performance core.
Schematically, as shown in fig. 6, it illustrates the parameter setting interface 601 of smart phone, the parameter setting interface 601 include that CPU small nut opens the big core unlatching number setting control 603 of number setting control 602, CPU, the setting of CPU small nut low-limit frequency Control 604, CPU small nut highest frequency setting control 605, the big core low-limit frequency setting control 606 of CPU, the big core highest frequency of CPU Setting control 607, GPU low-limit frequency setting control 608 and GPU highest frequency setting control 609.
In a kind of possible embodiment, there is parameter setting function icon, when the user clicks on end-user interface When the parameter setting function icon, terminal display parameters set interface.
In the mode of alternatively possible implementation, when there is no parameter setting function icon on end-user interface, terminal The display parameters set interface when detecting input specific private mark.For example, when user inputs #999# in dialing interface, eventually Hold display parameters set interface.
Optionally, it opens the parameter setting interface at any time in order to facilitate user, includes shrinking to press in the parameter setting interface Button, when the user clicks when the retraction button, which is punctured into suspension button, when the user clicks the suspension button When, terminal shows the parameter setting interface;Meanwhile including close button in the parameter interface, the closing is pressed when the user clicks When button, parameter setting interface is packed up, and user, which need to re-enter specific private mark, could open parameter setting interface.
Schematically, as shown in fig. 6, when the user clicks retraction button 613 when, parameter setting interface 601 is converted to suspension The state of button, when the user clicks when suspension button, terminal, that is, display parameters set interface 601;Close button when the user clicks When 614, terminal packs up parameter setting interface 614.
Step 502, it when receiving to the operation signal of target operating parameters setting control in parameter setting interface, determines The corresponding target hardware of target operating parameters setting control and target operating parameters.
In a kind of possible embodiment, in order to facilitate user's operation, running frequency parameter setting control is input frame, User can input target operating parameters in the input frame;It is slider bar that core, which opens number parameter setting control, and user can be with Target core is set by the sliding block on dragging slider bar and opens number.
Schematically, as shown in fig. 6, when user inputs object run ginseng in CPU small nut low-limit frequency setting control 604 After number 7500, terminal determines that the corresponding target hardware of CPU small nut low-limit frequency setting control 604 is CPU (in small nut), and Target operating parameters are 7500;When user drags the sliding block 610 on slider bar 602 to the position of number 4, terminal, which determines, is opened 4 CPU small nuts.
Step 503, parameter setting is carried out to target hardware according to target operating parameters.
When user is after parameter setting interface is provided with, terminal according to the parameters of user setting to CPU/GPU into Row parameter setting, the CPU/GPU after setting are run under the operating parameter of user setting, it is thus achieved that the customized setting of user Terminal CPU/GPU operating parameter.
Schematically, as shown in fig. 6, after the completion of user setting, after clicking confirming button 611, terminal is i.e. according to parameter Operating parameter in set interface 601 is configured CPU/GPU;When the user clicks when reset button 612, parameter setting interface 601 restore not set state, and user can re-start setting.
In conclusion user is to parameter when carrying out parameter setting using parameter setting method provided by the embodiments of the present application Operating parameter setting control in set interface is operated, and then terminal is according to the operating parameter of user setting to CPU/GPU Parameter setting is carried out, so that CPU/GPU be made to run under the operating parameter of user setting;It can only compared to user in the related technology Set battery saving mode, normal mode or high performance mode for terminal, and under different mode CPU and GPU operating parameter only It can be preset by developer, every operating parameter of the customized setting CPU/GPU in family can be used in this method, has reached hard The customized effect of part operating parameter.
In a kind of possible embodiment, by taking android system as an example, terminal operating system includes application layer, frame Layer, system Runtime Library layer and Linux inner core.In order to realize the customized setting of hardware operating parameter, developer exists in advance One group of preset interface is arranged in Linux inner core, and application program can request Linux inner core that hardware is arranged by the predetermined interface Operating parameter.On the basis of Fig. 5, as shown in fig. 7, step 503 may comprise steps of:
Step 701, application layer sends service invocation request to ccf layer.
Since the application program of application layer cannot call directly the interface of Linux inner core, ccf layer, which is provided with, is System service, the system service are used to provide the service of setting CPU and GPU operating parameter.
When user is after parameter setting interface is provided with, operating system application layer sends service call to ccf layer and asks It asks, the system service of hardware operating parameter is set in request call ccf layer, and in the service invocation request include object run Parameter and the corresponding hardware identifier of target hardware.
For example, application layer sends service invocation request to ccf layer after user sets 4 for the small nut unlatching number of CPU, It include the hardware identifier " BFEBFBFF0001067A " that CPU small nut opens number 4 and CPU in the service invocation request.
Step 702, ccf layer calls the predetermined interface of inner nuclear layer according to service invocation request, and predetermined interface is hard for being arranged The operating parameter of part.
Optionally, ccf layer determines in inner nuclear layer according to service invocation request for the pre- of CPU and GPU operating parameter to be arranged If interface, and by calling the predetermined interface, CPU and GPU operating parameter is arranged in request Linux inner core.
Optionally, the interface that CPU operating parameter is arranged is different from the setting interface of GPU operating parameter.
Wherein, when calling predetermined interface, the system service of ccf layer is corresponding by target operating parameters and target hardware Hardware identifier carries out parameter setting to target hardware according to target operating parameters with Linux inner core, instruction inner nuclear layer is handed down to
Step 703, inner nuclear layer is configured target hardware according to target operating parameters.
Optionally, target operating parameters and hardware identifier that Linux inner core is issued according to ccf layer call preset interface Corresponding kernel function is configured the operating parameter of CPU/GPU, and processing result is fed back to application program.
Schematically, as shown in figure 8, the operating parameter of CPU 804 and GPU 805 is arranged in user in parameter setting interface Afterwards, terminal be determine CPU 804 and GPU 805 target operating parameters and both hardware identifier, and by application layer 801 to Ccf layer 802 sends service invocation request, the system service 802A of request call ccf layer 802;Ccf layer 802 is according to the service Call request is determined and is called in Linux inner core 803 for being arranged in the predetermined interface 803A, Linux of hardware operating parameter Stratum nucleare 803 calls situation according to interface, is configured by corresponding kernel function to CPU 804 and 805 operating parameter of CPU.
In a kind of possible embodiment, third-party application abuses linux kernel layer interface in order to prevent, in ccf layer Before the preset interface for calling Linux inner core, whether the application program that ccf layer prejudges request call is third-party application Program, therefore, on the basis of Fig. 7, as shown in figure 9, further comprising the steps of after above-mentioned steps 701:
Step 901, ccf layer get parms set interface owning application apply packet name.
Refer to that the unique identification of application program, different application programs have different packet names using packet name.For example, frame Entitled " com.android.settings " is wrapped in the application that layer gets middle parameter setting interface owning application.
Step 902, it if entitled system application packet name is wrapped in application, executes and the pre- of inner nuclear layer is called according to service invocation request The step of stationary interface.
System application is a kind of special application program, refers to the built-in application program of system itself, is usually opened by system Built in originator in systems.When ccf layer determines that entitled system application packet name is wrapped in application, rather than when third-party application packet name, then after It is continuous to execute step 702.
For example, when the application program of request call is setting function (system application), application is wrapped entitled When " com.android.settings ", ccf layer determines that entitled system application packet name is wrapped in the application, i.e. the application is answered for system With preset interface that is rear, and calling Linux inner core.
Step 903, if being third-party application packet name using packet name, stop the predetermined interface for calling inner nuclear layer.
Third party application refers to built in nonsystematic, the application program independently installed by user.Due to forbidding third party The preset interface of application call inner nuclear layer can prevent third party application from abusing the preset interface, guarantee system Therefore stability and security when ccf layer determines that the application program of request call is third party application, then stops calling The preset interface of Linux inner core.
For example, application is wrapped entitled when the application program of request call is input method " com.sohu.inputmethod.sogou ", ccf layer determine that the application program is third-party application using packet name by this Afterwards, then it does not continue to execute step 702.
In alternatively possible embodiment, the forced symmetric centralization system that terminal can also be provided by inner nuclear layer is pacified It is complete to enhance Linux (Security-Enhanced Linux, SELinux) to determine whether the application program of request call has Call permission.The present embodiment does not limit this.
In the present embodiment, permission judgement is carried out by the application program to request call, it is therefore prevented that third party application Linux kernel layer interface is abused, ensure that the stabilization and safety of system.
Under certain application scenarios, user needs to be arranged for foreground application the operating parameter of hardware device, makes foreground Application program reaches better operational effect.For example, when game class application program is used in user, user wish CPU and The running frequency of GPU is higher, game class application program is run more smooth.
Therefore, in order to make the hardware operating parameter for facilitating user setting to meet foreground application, setting range mistake is avoided Cause user to be difficult to be arranged greatly, terminal determines the parameter setting range of operating parameter according to user's foreground application, so as to Operating parameter is arranged within the scope of the parameter setting in family.On the basis of Fig. 5, as shown in Figure 10, step 501 can be by following step Suddenly it is replaced.
Step 1001, the application type of foreground application is obtained.
In a kind of possible embodiment, when receiving the operation of triggering display parameters set interface, terminal is obtained The application identities of foreground application are taken, to determine the application type of foreground application, according to the application identities with after an action of the bowels It is continuous to determine parameter setting range.
Optionally, it is divided according to the performance requirement of application program, the application type of application program includes that low performance is answered With type and performance application type, wherein demand of the application program of performance application type to hardware performance is higher than low property Demand of the application program of energy application type to hardware performance.For example, when foreground application is game class application program, really Determining application type is performance application type.
In other possible division modes, application program can also be divided into difference according to the purposes of application program Application type, for example, application program is divided into, news category application, game class application, video class application, instant messaging class answered With.The application is defined not to this.
Step 1002, the corresponding parameter setting range of operating parameter setting control is determined according to application type, wherein target Operating parameter is within the scope of parameter setting.
Optionally, different application types corresponds to different operating parameter setting ranges, and terminal is determined according to application type The corresponding parameter setting range of operating parameter setting control, and user then carries out selection setting within the scope of the parameter setting.
For example, for GPU minimum operating frequency setting control, when application type is low performance application type, the control Corresponding parameter setting range is 1800 to 2500, when application type is performance application type, the corresponding parameter of the control It is 2500 to 3550 that range, which is arranged,.
Optionally, terminal is previously stored with the corresponding relationship of application type Yu parameter setting range, when terminal determines foreground After the application type of application program, it can determine corresponding parameter setting range based on the corresponding relationship.
Step 1003, operating parameter setting control is shown in parameter setting interface according to parameter setting range.
Range is arranged in terminal display parameters in the operating parameter setting control of parameter setting interface, and user can be in parameter Operating parameter is configured in setting range, both may be implemented the customized setting of CPU/GPU operating parameter, while can also be with The operating parameter for guaranteeing user setting is to meet the service requirement of foreground application, before avoiding operating parameter setting is too low from causing The problem of platform application program is unable to run.
In the present embodiment, terminal determines parameter setting range according to the application type of foreground application, and according to parameter Setting range shows each operating parameter setting control, allows users to carry out parameter setting within the scope of parameter setting, avoid Unreasonable the problem of causing foreground application to be unable to run is arranged in operating parameter.
Due to the operating status of CPU/GPU and the standby time close relation of terminal, it is generally the case that CPU/GPU Unlatching core number is more, and running frequency is higher, and the standby time of terminal is shorter, and under certain application scenarios, user wishes eventually It end can be standby for a long time.It therefore, include duration setting control in parameter setting interface, user sets in the duration setting control After setting target standby time, terminal, which determines, recommends operating parameter and is shown.Such as Figure 11, after step 501, this method may be used also To include the following steps.
Step 1101, the target standby time inputted in duration setting control is obtained.
In a kind of possible embodiment, duration setting control is input frame, when user inputs target standby time After input frame, terminal determines target standby time, and determines therefrom that recommendation operating parameter, alternatively, duration setting control is Choice box, when the user clicks when the choice box, terminal shows standby time option, after user selects and determines standby time, Terminal determines target standby time.The application is not defined the mode for obtaining target standby time.
It schematically, as shown in figure 12, include duration setting control 1202 in parameter setting interface 1201, when the user clicks When duration setting control 1202, target standby time can be inputted by terminal keyboard.
Step 1102, according to target standby time, the corresponding recommendation operation of each operating parameter setting control is determined Parameter.
Wherein, standby time and recommendation operating parameter negative correlation, the target standby time of user setting is longer, then Recommending the CPU of operating parameter instruction to open, core number is fewer, and the running frequency of CPU and GPU are lower.
In a kind of possible embodiment, terminal is previously stored with the corresponding relationship of standby time and operating parameter, eventually End can determine recommendation operating parameter after obtaining target standby time according to the corresponding relationship.
Step 1103, it is shown in operating parameter setting control and recommends operating parameter.
Optionally, recommending operating parameter is only recommendation, is shown after recommending operating parameter in operating parameter setting control, is used Still operating parameter can be arranged on the basis of recommending operating parameter in family within the scope of parameter setting.
As shown in figure 12, the recommendation operating parameter 1203 in running frequency setting control is only recommendation, and the number at both ends Word is operating parameter range, and user can re-start setting within the scope of the operating parameter.
In the present embodiment, terminal is determined according to the standby time of user setting recommends operating parameter, and will recommend operation ginseng Number be shown in operating parameter setting control, so as to user on the basis of recommending operating parameter customized setting operating parameter.
Understand terminal in order to facilitate user to expect to come according to their needs using duration with this under current operating parameter Operating parameter is adjusted, as shown in figure 13, after step 502, this method is further comprising the steps of.
Step 1301, it obtains application program and uses data.
Application program includes the average using duration of each application program using data, and optionally, this averagely uses duration Duration is averagely used for the application program in unit duration.For example, this when averagely using a length of each application program it is intraday Averagely use duration.
In a kind of possible embodiment, terminal obtains the previous week of current time according to the packet name of application program Interior each application program uses duration, determines therefrom that daily average of each application program uses duration.For example, 2018.09.01 To 2018.09.08, when use of application program A, is 14 hours a length of, then a length of 2 small when the average use of application program A When.
Step 1302, data and target operating parameters are used according to application program, calculates and expects to use duration.
In a kind of possible embodiment, terminal is joined according to the average of each application program using duration and object run Number, calculates under the target operating parameters, the electricity that each application program consumes when long running in average use, then will The electricity addition of each application program consumption, which is applied, runs consumption total electricity;Further, according to current electric quantity and application Remaining capacity is calculated in operation consumption total electricity, so that standby time be calculated according to remaining capacity;Finally, terminal will be each A application program is corresponding to be averagely added using duration with standby time, obtains expecting to use duration.
For example, terminal gets application program using in data, 2 hours a length of, application when the average use of application program A A length of 0.5 hour when the average use of program B, when average use of application program C, is 1 hour a length of.Terminal is calculated transports in target The use of A2 hours power consumption of application program is 10% under row parameter, the use of 0.5 hour power consumption of application program B is 15%, makes It is 5% with 1 hour power consumption of application program C, then application operation consumption total electricity is 30%.Further, terminal is according to current Remaining capacity 40% is calculated in electricity 70% and application operation consumption total electricity 30%, to be calculated according to remaining capacity Standby time is 6 hours, is finally calculated 2+0.5+1+6=9.5 hours a length of when estimated use.
Step 1303, it is shown in parameter setting interface and expects to use duration.
Terminal determine it is estimated using duration after, show that this is estimated using duration in parameter setting interface, user can be with Expect determine whether current parameter setting is reasonable using duration according to this, and can be preset according to this using duration to operation ginseng Number is adjusted correspondingly, and is best suitable for desired operating parameter with setting.
In the present embodiment, terminal determines estimated make using the target operating parameters of data and user setting according to application program With duration, and shown in parameter setting interface, so that user is on the estimation adjusted operating parameter using duration, So that the standby time of terminal meets the use demand of user.
Figure 14 is please referred to, it illustrates the structural block diagrams for the parameter setting apparatus that the application one embodiment provides.The dress Set includes: the first display module 1410, the first determining module 1420 and setup module 1430.
First display module 1410 is used for display parameters set interface, includes at least one in the parameter setting interface The corresponding operating parameter setting control of hardware, at least one hardware includes CPU, and/or, GPU;
First determining module 1420 is received for working as to target operating parameters setting control in the parameter setting interface Operation signal when, determine the corresponding target hardware of the target operating parameters setting control and target operating parameters;
Setup module 1430, for carrying out parameter setting, setting to the target hardware according to the target operating parameters The target hardware afterwards is run under the target operating parameters.
Optionally, the terminal includes application layer, ccf layer and inner nuclear layer;
The setup module 1430, comprising:
Transmission unit sends service invocation request, the service invocation request to the ccf layer for the application layer It include the target operating parameters and the mesh in the service invocation request for calling the service of setting hardware operating parameter Mark the corresponding hardware identifier of hardware;
Call unit calls the predetermined interface of the inner nuclear layer for the ccf layer according to the service invocation request, The predetermined interface is used to be arranged the operating parameter of hardware;
Setting unit is configured the target hardware according to the target operating parameters for the inner nuclear layer.
The setup module 1430, further includes:
First acquisition unit obtains the application packet of the parameter setting interface owning application for the ccf layer Name;
Execution unit, for when the entitled system application packet name of the application packet, then executing and being asked according to the service call The step of seeking the predetermined interface for calling the inner nuclear layer;
Stop unit, for when the application packet name is third-party application packet name, then stopping calling the inner nuclear layer The predetermined interface.
First display module 1410, comprising:
Second acquisition unit, for obtaining the application type of foreground application;
Determination unit, for determining the corresponding parameter setting model of the operating parameter setting control according to the application type It encloses, wherein the target operating parameters are within the scope of the parameter setting;
Display unit, for showing the operating parameter in the parameter setting interface according to the parameter setting range Setting control.
It include duration setting control in the display parameters set interface;Described device, further includes:
Module is obtained, for obtaining the target standby time inputted in the duration setting control;
Second determining module, for determining that each operating parameter setting control is respectively right according to the target standby time The recommendation operating parameter answered, wherein the standby time and the recommendation operating parameter negative correlation;
Second display module, for showing the recommendation operating parameter in the operating parameter setting control.
Described device, further includes:
Second obtains module, and for obtaining application program using data, the application program includes each answer using data Average with program uses duration;
Computing module calculates for using data and the target operating parameters according to the history and expects to use duration;
Third display module, for being shown in the parameter setting interface described it is expected that using duration.
The operating parameter setting control includes following at least one: CPU high-performance core maximum unlatching number setting control, CPU low performance core maximum opens number setting control, GPU core maximum opens number setting control, CPU low performance core lowest frequency Rate setting control, CPU low performance core highest frequency setting control, CPU high-performance core low-limit frequency setting control, CPU high Performance core highest frequency setting control, GPU core low-limit frequency setting control, GPU core highest frequency setting control;Its In, the performance of CPU high-performance core is higher than the performance of CPU low performance core.
In conclusion user is to parameter when carrying out parameter setting using parameter setting apparatus provided by the embodiments of the present application Operating parameter setting control is operated in set interface, then terminal according to the operating parameter of user setting to CPU/GPU into Row parameter setting, so that CPU/GPU be made to run under the operating parameter of user setting;It can only be incited somebody to action compared to user in the related technology Terminal is set as battery saving mode, normal mode or high performance mode, and the operating parameter of CPU and GPU can only under different mode It is preset by developer, every operating parameter of the customized setting CPU/GPU in family can be used in this method, has reached hardware The customized effect of operating parameter.
The embodiment of the present application also provides a kind of computer-readable medium, which has at least one Instruction, at least one instruction are loaded as the processor and are executed to realize parameter setting described in as above each embodiment Method.
The embodiment of the present application also provides a kind of computer program product, which is stored at least one Instruction, at least one instruction are loaded as the processor and are executed to realize parameter setting described in as above each embodiment Method.
Those skilled in the art it will be appreciated that in said one or multiple examples, retouched by the embodiment of the present application The function of stating can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by this A little functions storages in computer-readable medium or as on computer-readable medium one or more instructions or code into Row transmission.Computer-readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from one Any medium of the place to another place transmission computer program.Storage medium can be general or specialized computer and can deposit Any usable medium taken.
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (10)

1. a kind of parameter setting method, which is characterized in that the method is used for terminal, which comprises
Display parameters set interface includes the corresponding operating parameter setting control of at least one hardware in the parameter setting interface Part, at least one hardware includes central processor CPU, and/or, graphics processor GPU;
When receiving to the operation signal of target operating parameters setting control in the parameter setting interface, the target is determined The corresponding target hardware of operating parameter setting control and target operating parameters;
Parameter setting is carried out to the target hardware according to the target operating parameters, the target hardware after setting is described It is run under target operating parameters.
2. the method according to claim 1, wherein the terminal includes application layer, ccf layer and inner nuclear layer;
It is described that parameter setting is carried out to the target hardware according to the target operating parameters, comprising:
The application layer sends service invocation request to the ccf layer, and the service invocation request is for calling setting hardware to transport The service of row parameter includes the target operating parameters and the corresponding hardware mark of the target hardware in the service invocation request Know;
The ccf layer calls the predetermined interface of the inner nuclear layer according to the service invocation request, and the predetermined interface is for setting Set the operating parameter of hardware;
The inner nuclear layer is configured the target hardware according to the target operating parameters.
3. according to the method described in claim 2, it is characterized in that, the ccf layer calls institute according to the service invocation request Before the predetermined interface for stating inner nuclear layer, the method also includes:
The ccf layer obtains the application packet name of the parameter setting interface owning application;
If the entitled system application packet name of application packet, executes and the pre- of the inner nuclear layer is called according to the service invocation request The step of stationary interface;
If the application packet name is third-party application packet name, stop the predetermined interface for calling the inner nuclear layer.
4. method according to any one of claims 1 to 3, which is characterized in that the display parameters set interface, comprising:
Obtain the application type of foreground application;
The corresponding parameter setting range of the operating parameter setting control is determined according to the application type, wherein the target Operating parameter is within the scope of the parameter setting;
The operating parameter setting control is shown in the parameter setting interface according to the parameter setting range.
5. method according to any one of claims 1 to 3, which is characterized in that when including in the display parameters set interface Long setting control;
After the display parameters set interface, the method also includes:
Obtain the target standby time inputted in the duration setting control;
According to the target standby time, the corresponding recommendation operating parameter of each operating parameter setting control is determined, wherein The standby time and the recommendation operating parameter negative correlation;
The recommendation operating parameter is shown in the operating parameter setting control.
6. method according to any one of claims 1 to 3, which is characterized in that when receiving in the parameter setting interface When the operation signal of target operating parameters setting control, determine the corresponding target hardware of the target operating parameters setting control with And after target operating parameters, the method also includes:
It obtains application program and uses data, the application program includes that the average of each application program uses duration using data;
Data and the target operating parameters are used according to the application program, calculates and expects to use duration;
Shown in the parameter setting interface described it is expected that using duration.
7. method according to any one of claims 1 to 3, which is characterized in that the operating parameter setting control includes as follows At least one: CPU high-performance core maximum opens number setting control, CPU low performance core maximum opens number setting control, GPU Core maximum is opened number setting control, CPU low performance core low-limit frequency setting control, CPU low performance core highest frequency and is set Set control, CPU high-performance core low-limit frequency setting control, CPU high-performance core highest frequency setting control, GPU core most Low frequency setting control, GPU core highest frequency setting control;Wherein, the performance of CPU high-performance core is higher than CPU low performance The performance of core.
8. a kind of parameter setting apparatus, which is characterized in that described device is used for terminal, and described device includes:
First display module is used for display parameters set interface, corresponds in the parameter setting interface comprising at least one hardware Operating parameter setting control, it is described at least one hardware include central processor CPU, and/or, graphics processor GPU;
First determining module, for working as the operation letter received to target operating parameters setting control in the parameter setting interface Number when, determine the corresponding target hardware of the target operating parameters setting control and target operating parameters;
Setup module, it is described after setting for carrying out parameter setting to the target hardware according to the target operating parameters Target hardware is run under the target operating parameters.
9. a kind of terminal, which is characterized in that the terminal includes processor and memory;The memory is stored at least one Instruction, at least one instruction is for being executed by the processor to realize that the parameter as described in claim 1 to 7 is any is set Set method.
10. a kind of computer readable storage medium, which is characterized in that the storage medium is stored at least one instruction, described At least one instruction is for being executed by processor the parameter setting method to realize as described in claim 1 to 7 is any.
CN201811124727.5A 2018-09-26 2018-09-26 Parameter setting method, device, terminal and storage medium Pending CN109271208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811124727.5A CN109271208A (en) 2018-09-26 2018-09-26 Parameter setting method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811124727.5A CN109271208A (en) 2018-09-26 2018-09-26 Parameter setting method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN109271208A true CN109271208A (en) 2019-01-25

Family

ID=65197716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811124727.5A Pending CN109271208A (en) 2018-09-26 2018-09-26 Parameter setting method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109271208A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377330A (en) * 2019-07-22 2019-10-25 国美视界(北京)科技有限公司 The operating system configuration method and equipment of electronic equipment
CN111273769A (en) * 2020-01-15 2020-06-12 Oppo广东移动通信有限公司 Equipment control method and device, electronic equipment and storage medium
CN112925572A (en) * 2021-03-01 2021-06-08 联想(北京)有限公司 Control method and device and electronic equipment
CN113204473A (en) * 2021-06-08 2021-08-03 宁畅信息产业(北京)有限公司 Heat dissipation test method and device, user terminal and storage medium
CN114924811A (en) * 2022-07-20 2022-08-19 南方电网数字电网研究院有限公司 Firmware deployment and execution method of multi-core chip
CN115185442A (en) * 2022-07-07 2022-10-14 广东明创软件科技有限公司 Operation parameter control method, processor, terminal and storage medium
CN115185442B (en) * 2022-07-07 2024-06-04 广东明创软件科技有限公司 Operation parameter control method, processor, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219383A (en) * 2014-08-20 2014-12-17 小米科技有限责任公司 Terminal power information prompting method and device
CN105511585A (en) * 2014-09-26 2016-04-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting terminal standby duration and terminal
CN106293913A (en) * 2016-08-01 2017-01-04 宇龙计算机通信科技(深圳)有限公司 The control method of application program, control device and terminal
CN106775866A (en) * 2016-12-14 2017-05-31 奇酷互联网络科技(深圳)有限公司 Mobile terminal and mobile terminal performance adjusting method and device
US20170351534A1 (en) * 2009-03-30 2017-12-07 Intel Corporation Methods And Apparatuses For Controlling Thread Contention

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170351534A1 (en) * 2009-03-30 2017-12-07 Intel Corporation Methods And Apparatuses For Controlling Thread Contention
CN104219383A (en) * 2014-08-20 2014-12-17 小米科技有限责任公司 Terminal power information prompting method and device
CN105511585A (en) * 2014-09-26 2016-04-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting terminal standby duration and terminal
CN106293913A (en) * 2016-08-01 2017-01-04 宇龙计算机通信科技(深圳)有限公司 The control method of application program, control device and terminal
CN106775866A (en) * 2016-12-14 2017-05-31 奇酷互联网络科技(深圳)有限公司 Mobile terminal and mobile terminal performance adjusting method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
不详: "一款可以修改手机硬件参数的app 高级工具箱体验", 《HTTP://WWW.PC6.COM/EDU/114425.HTML》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377330A (en) * 2019-07-22 2019-10-25 国美视界(北京)科技有限公司 The operating system configuration method and equipment of electronic equipment
CN111273769A (en) * 2020-01-15 2020-06-12 Oppo广东移动通信有限公司 Equipment control method and device, electronic equipment and storage medium
CN111273769B (en) * 2020-01-15 2022-06-17 Oppo广东移动通信有限公司 Equipment control method and device, electronic equipment and storage medium
CN112925572A (en) * 2021-03-01 2021-06-08 联想(北京)有限公司 Control method and device and electronic equipment
CN113204473A (en) * 2021-06-08 2021-08-03 宁畅信息产业(北京)有限公司 Heat dissipation test method and device, user terminal and storage medium
CN113204473B (en) * 2021-06-08 2024-05-24 宁畅信息产业(北京)有限公司 Heat dissipation test method and device, user terminal and storage medium
CN115185442A (en) * 2022-07-07 2022-10-14 广东明创软件科技有限公司 Operation parameter control method, processor, terminal and storage medium
CN115185442B (en) * 2022-07-07 2024-06-04 广东明创软件科技有限公司 Operation parameter control method, processor, terminal and storage medium
CN114924811A (en) * 2022-07-20 2022-08-19 南方电网数字电网研究院有限公司 Firmware deployment and execution method of multi-core chip

Similar Documents

Publication Publication Date Title
CN109271208A (en) Parameter setting method, device, terminal and storage medium
CN108763012B (en) Card pause information acquisition method and device and terminal
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN109862187B (en) Message processing method, device, terminal and storage medium
CN110312985A (en) Electronic equipment and method for showing its screen
CN106445292B (en) Method and system for managing application programs in different body modes
US20180302231A1 (en) Method for processing job information and electronic device supporting same
WO2020156199A1 (en) Application login method and device, terminal and storage medium
CN109343902A (en) Operation method, device, terminal and the storage medium of audio processing components
CN107193598A (en) One kind application startup method, mobile terminal and computer-readable recording medium
CN108958828A (en) Application program preloads method, apparatus, storage medium and terminal
CN112702261B (en) Information display method and device and electronic equipment
CN103064782A (en) Method and device for obtaining control
CN110413347A (en) The processing method of advertisement, device, storage medium and terminal in application program
WO2018086454A1 (en) Page data processing method and device
CN108089970A (en) Predict method, terminal and the storage medium of remaining capacity up time
CN109683760B (en) Recent content display method, device, terminal and storage medium
CN107704187B (en) Notification message processing method and device and terminal
CN111104281B (en) Game performance monitoring method, device, system and storage medium
CN106055688B (en) Search result display method and device and mobile terminal
CN105468480B (en) Startup management method and device
CN113010078A (en) Touch method and device, storage medium and electronic equipment
CN107145286B (en) Browsing interaction processing method and device
CN110913384A (en) Dial card switching method and device, storage medium and terminal
CN111144833A (en) Terminal browsing timeout processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125

RJ01 Rejection of invention patent application after publication