WO2017206918A1 - Terminal awakening accelerating method and related product - Google Patents

Terminal awakening accelerating method and related product Download PDF

Info

Publication number
WO2017206918A1
WO2017206918A1 PCT/CN2017/086677 CN2017086677W WO2017206918A1 WO 2017206918 A1 WO2017206918 A1 WO 2017206918A1 CN 2017086677 W CN2017086677 W CN 2017086677W WO 2017206918 A1 WO2017206918 A1 WO 2017206918A1
Authority
WO
WIPO (PCT)
Prior art keywords
processor
frequency
terminal
running
cores
Prior art date
Application number
PCT/CN2017/086677
Other languages
French (fr)
Chinese (zh)
Inventor
曾元清
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017206918A1 publication Critical patent/WO2017206918A1/en

Links

Images

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4893Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues taking into account power or heat criteria

Definitions

  • the present invention relates to the field of terminals, and in particular, to a terminal acceleration wake-up method and related products.
  • the terminal When the user does not use the terminal for a period of time, the terminal will go to sleep to save power.
  • the button event can be generated by the trigger button to wake the terminal from the sleep state.
  • an embodiment of the present invention provides a terminal acceleration wake-up method, including: detecting a button event generated by a user operating a button of a terminal to generate a button event; determining whether the button event is a terminal wake event, wherein the terminal wakes up The event is used to wake up the terminal from the sleep state; if the button event is a terminal wake event, the number of cores running in the processor and/or the frequency of the kernel running in the processor are increased within a preset time period to accelerate the wakeup terminal, The preset time period includes a time for waking up the terminal from the sleep state.
  • an embodiment of the present invention provides a terminal acceleration wake-up device, where the device includes a detection module, a determination module, and an improvement module, and the detection module is configured to detect a button event generated by a user operating a button of the terminal to generate a button event;
  • the determining module is configured to determine whether the button event is a terminal wake event, wherein the terminal wake event is used to wake the terminal from a sleep state;
  • the improvement module is configured to: when the button event is a terminal wake event, The number of cores running in the processor and/or the frequency of the kernel running in the processor is increased over a period of time to accelerate the wake-up terminal, wherein the preset time period includes a time to wake the terminal from the sleep state.
  • an embodiment of the present invention provides an electronic device, including a central processing unit and a memory, where the central processing unit is configured to: detect a key event generated by a user operating a button of the terminal to generate a button event; and determine whether the button event is A wake-up event for the terminal, wherein the terminal wake-up event is used for The terminal wakes up from the sleep state; if the button event is a terminal wake event, the number of cores running in the processor and/or the frequency of the kernel running in the processor is increased within a preset time period to accelerate the wakeup terminal, wherein The preset time period includes the time to wake up the terminal from the sleep state.
  • a fourth aspect a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program is executed to implement the method of any of the first aspects.
  • a program product is provided, the method of any of the first aspects being implemented in the case of the computer program being executed.
  • FIG. 1 is a flowchart of a terminal acceleration wake-up method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another terminal acceleration wake-up method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of still another terminal acceleration wake-up method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal acceleration wake-up device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the processor mentioned in the embodiment of the present invention may be one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a micro controller unit (MCU). Combination of species.
  • the processor in this embodiment may be a Symmetrical Multi-Processing (SMP) or an Asymmetric Multi-Processing (AMP).
  • the terminal mentioned in the embodiment of the present invention may be a smart phone, a tablet personal computer, a vehicle terminal, a computer, or the like.
  • the interrupt subsystem of the operating system kernel first responds to the button event and notifies the key event to the kernel space driver. After receiving the button event, the kernel space driver reports the button event to the user space to receive the button event processing module. After receiving the button event, the processing module notifies the application of the user space to open the screen, thereby completing the wake-up of the terminal.
  • the process of the user pressing the button to generate the button event to wake up the terminal is very long. If the system response is not timely enough, the user may obviously feel that the operation terminal wakes up with a delay, causing a feeling of stagnation and affecting the user experience.
  • FIG. 1 is a flowchart of a terminal acceleration wake-up method according to an embodiment of the present invention.
  • the terminal acceleration wake-up method of this embodiment includes:
  • the button of the terminal can be a switch button, a volume button or a "home" button, and the like.
  • the user's operation on the button of the terminal may be a long press, a short press or multiple presses.
  • the button event may be an identifier including at least one of a character, a number, and a symbol, and the button event may be the end
  • the wake-up event can also be other events and so on. Moreover, it can be set to trigger different button events when the different buttons of the terminal are operated, or can be set to generate different button events when different operations are performed on the same button of the terminal.
  • the terminal stores a plurality of key events including a terminal wake event in the memory. After detecting the generated key event, the terminal compares the generated key event with the terminal wake event stored in the memory to determine whether the key event is a terminal wake event. If the button event is a terminal wake event, proceed to step 130; if the button event is not a terminal wake event, the flow of the method is exited.
  • the preset time period comprises awakening the terminal from the sleep state time.
  • the terminal when it is determined that the button event is a terminal wake event, the terminal starts the timer and increases the number of cores running in the processor and/or the frequency of the kernel running in the processor to speed up the wake up terminal. Then, the terminal determines whether the timer time of the timer is greater than the preset time period, and if less than the preset time period, continues to increase the number of cores running in the processor and/or the frequency of the kernel running in the processor, if greater than the pre- Set the time period to end increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor.
  • increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor within a preset time period may be: running the number of cores running in the processor and/or running in the processor The frequency of the kernel is increased, and then, the number of cores running in the processor and/or the frequency of the kernel running in the processor remain unchanged for a preset period of time, or, within a predetermined period of time, in the processor The number of running kernels and/or the frequency of the kernel running in the processor has been increasing and so on.
  • increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor within a preset time period may be: increasing the core running in the processor within a preset time period Quantity, while the frequency of the kernel running in the processor remains the same; or, the number of cores running in the processor can be determined to remain unchanged while increasing the frequency of the kernel running in the processor; or To slightly reduce the number of cores running in the processor, and greatly increase the frequency of the kernel running in the processor; or, to greatly increase the number of cores running in the processor, and slightly reduce the frequency of the kernel running in the processor; or, at the same time; Increase the number of cores running in the processor and the frequency of the kernel running in the processor.
  • the processor when the processor is an asymmetric multi-core processor, the processor includes a large core and a small core, so the number of cores running in the processor is increased and/or run in the processor for a preset period of time.
  • the frequency of the kernel may be to increase the number of large cores running in the processor and/or the frequency of large cores running in the processor within a preset period of time, or to increase the operation of the processor within a preset period of time.
  • the number of small cores and/or the frequency of small cores running in the processor, or both the number of large and small cores running in the processor and/or the large and small cores running in the processor during a preset time period Frequency of.
  • the user may be alerted by a combination of one or more of sound, light and image within a preset time period. Moreover, after waking up the terminal, the time required to wake up the terminal before acceleration and the time required to wake up the terminal after acceleration can be simultaneously displayed, so that the user intuitively feels the effect of acceleration.
  • FIG. 2 is a flowchart of another terminal acceleration wake-up method according to an embodiment of the present invention.
  • the terminal acceleration wake-up method of this embodiment includes:
  • 210 Detect a button event that the user operates on the button of the terminal to generate.
  • the steps 210 and 220 of the embodiment are the same as the steps 110 and 120 in the embodiment shown in FIG. 1 .
  • steps 110 and 120 in the implementation shown in FIG. 1 , and details are not described herein.
  • the 230 Increase the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the state of the terminal within a preset time period.
  • the preset time period includes a time for waking up the terminal from the sleep state.
  • the number of cores running in the processor and/or the frequency of the kernel running in the processor are increased according to the state of the terminal within a preset time period, wherein the state of the terminal includes the terminal. At least one of the temperature and whether the terminal is charging.
  • the number of cores running in the processor and/or the frequency of the kernel running in the processor may be increased according to the temperature of the terminal within a preset time period: when the temperature of the terminal is the first temperature, the preset is Increasing the number of cores running in the processor to a first amount and/or increasing the frequency of the core running in the processor to a first frequency during a time period; when the temperature of the terminal is a second temperature, then at a preset time Increasing the number of cores running in the processor to a second number and/or increasing the frequency of the core running in the processor to a second frequency; wherein the first temperature is greater than the second temperature, the first number being less than the second The number, the first frequency is less than the second frequency.
  • the number of cores running in the processor and/or the frequency of the kernel running in the processor may be increased according to whether the terminal is charging or not during a preset time period: when the terminal is not charging, then in a preset time period Internally increasing the number of cores running in the processor to a first number and/or increasing the frequency of the core running in the processor to a first frequency; when the terminal is charging, then the processor is in a predetermined period of time
  • the number of running kernels is increased to a second amount and/or the frequency of the core running in the processor is increased to a second frequency; wherein the first number is less than the second number and the first frequency is less than the second frequency.
  • increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the state of the terminal within a preset time period may be: increasing the processor within a preset time period.
  • the number of cores running in the process, while the frequency of the kernel running in the processor remains the same; or, the number of cores running in the processor can be determined to remain unchanged, while increasing the frequency of the kernel running in the processor; or, can be slightly Reduce the number of cores running in the processor, and greatly increase the frequency of the kernel running in the processor; or, greatly increase the number of cores running in the processor, and slightly reduce the frequency of the kernel running in the processor; or, simultaneously improve processing The number of cores running in the controller and the frequency of the kernel running in the processor.
  • the processor when the processor is an asymmetric multi-core processor, the processor includes a large core and a small core, so the number of cores running in the processor is increased according to the state of the terminal and/or within a preset period of time.
  • the frequency of the kernel running in the processor may be: increasing the number of large cores running in the processor and/or the frequency of large cores running in the processor according to the state of the terminal within a preset time period, or at a preset time
  • the number of small cores running in the processor and/or the frequency of small cores running in the processor are increased according to the state of the terminal, or the processor is continuously operated according to the state of the terminal within a preset time period.
  • the number of large and small cores and/or the frequency of large and small cores running in the processor are examples of the processor.
  • FIG. 3 is a flowchart of still another terminal acceleration wake-up method according to an embodiment of the present invention.
  • the terminal acceleration wake-up method of this embodiment includes:
  • the steps 310, 320, and 330 of the embodiment are the same as the steps 110, 120, and 130 in the embodiment shown in FIG. 1.
  • steps 110, 120, and 130 in the embodiment shown in FIG. 1.
  • steps 110, 120, and 130 refer to step 110, step 120, and step in the implementation shown in FIG. 130, which will not be described in detail here.
  • the application scenario refers to the state of the running application of the terminal.
  • the application scenario of the terminal is also different.
  • the category of the application scenario can be defined in advance according to requirements.
  • the category of the application scenario can be defined according to the load condition of the application scenario.
  • the application scenario of the application scenario can be defined as if the terminal does not run any application, or if the terminal runs some application scenarios of a very small application (such as an applet such as a calendar).
  • the category of the application scenes may be considered as a music scene, and when the terminal is running a photographing program, such as a smart camera or a Mito camera, etc.
  • a photographing program such as a smart camera or a Mito camera, etc.
  • the category of these application scenarios can be considered as lightweight.
  • Level game scene when the terminal runs a heavyweight game scene, such as the application scene of Warcraft and other games, the category of these application scenes can be considered as a heavyweight game scene and so on.
  • the definition method of the category of the current application scenario may be multiple, and may be defined as needed.
  • the definition method of the category of the application scenario is only an example, not a limitation.
  • redetermining the number of cores running in the processor according to the category of the current application scenario and/or the frequency of the kernel running in the processor is specifically: when determining the current application scenario When the category is a light load application scenario category, the number of cores running in the processor can be determined to be a small number, and the frequency of the kernel running in the processor remains unchanged; or the number of cores running in the processor can be Determined to remain unchanged, and the frequency of the kernel running in the processor is determined to be a lower frequency; or, the number of cores running in the processor can be determined to be a slightly larger number, and the frequency of the core running in the processor Determined to be a very low frequency, or the number of cores running in the processor can be determined by a small number, the frequency of the core running in the processor is determined to be a lower frequency, in short, only need to ensure that the processor is reduced The overall processing power is sufficient.
  • the number of cores running in the processor may be determined to be a larger number, and the frequency of the kernel running in the processor remains unchanged; or The number of cores running in the processor can be determined to remain unchanged, and the frequency of the kernel running in the processor is determined to be a higher frequency; or, the number of cores running in the processor can be determined to be a slightly smaller number, and The frequency of the kernel running in the processor is determined to be a very high frequency; or, the number of cores running in the processor can determine a greater number, and the frequency of the core running in the processor is determined to be a higher frequency, in summary Only need to ensure that the overall processing power of the processor can be improved.
  • the categories of the application scene include a common scene, a music scene, a photographing scene, a lightweight game scene, and a heavyweight game scene as an example.
  • the category of the current application scenario is a normal scenario, it is determined that the number of cores running in the processor is the third number and/or the frequency of the kernel running in the processor is the third frequency;
  • the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency;
  • the category of the current application scenario is a photographing scene, it is determined that the number of cores running in the processor is the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency;
  • the category of the current application scenario is a lightweight game scenario
  • it is determined that the number of cores running in the processor is the sixth number and/or the frequency of the kernel running in the processor is the sixth frequency
  • the frequency of the kernel running in the seventh number and/or processor is the seventh frequency
  • FIG. 4 is a schematic structural diagram of a terminal acceleration wake-up device according to an embodiment of the present invention.
  • the terminal acceleration wake-up device 400 of the embodiment of the present invention includes: a detection module 410, a determination module 420, and an improvement module 430.
  • the detecting module 410 is configured to detect a button event generated by the user operating the button of the terminal to generate a button event
  • the determining module 420 is configured to determine whether the button event is a terminal wake event, where the terminal wake event is used to wake the terminal from a sleep state;
  • the augmenting module 430 is configured to: when the button event is a terminal wake event, increase the number of cores running in the processor and/or the frequency of the kernel running in the processor to accelerate the wakeup terminal, where the preset is The set time period includes the time to wake up the terminal from the sleep state.
  • the improvement module 430 is specifically configured to increase the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the state of the terminal within a preset time period, where the status of the terminal includes the terminal. At least one of the temperature and whether the terminal is charging.
  • the improvement module 430 is specifically configured to: when the temperature of the terminal is the first temperature, increase the number of cores running in the processor to a first quantity and/or in the processor within a preset time period.
  • the frequency of the running kernel is increased to a first frequency; when the temperature of the terminal is a second temperature, the number of cores running in the processor is increased to a second amount and/or the processor is replaced within a preset time period
  • the frequency of the running core is increased to a second frequency; wherein the first temperature is greater than the second temperature, the first amount is less than the second amount, and the first frequency is less than the second frequency.
  • the improvement module 430 is specifically configured to: when the terminal is not charging, increase the number of cores running in the processor to a first quantity and/or a kernel running in the processor within a preset time period. The frequency is increased to a first frequency; when the terminal is charging, the number of cores running in the processor is increased to a second amount and/or the frequency of the kernel running in the processor is increased for a preset period of time And to a second frequency; wherein the first quantity is less than the second quantity, and the first frequency is less than the second frequency.
  • the terminal acceleration wake-up device shown in FIG. 4 may further include a display module 440, a reminder module 450, and a re-determination module 460.
  • the display module 440 is configured to simultaneously display the time required to wake up the terminal before acceleration and the time required to wake up the terminal after acceleration.
  • the reminding module 450 is configured to remind the user that the user is accelerating to wake up the terminal by the combination of one or more of sound, light, and image within the preset time period.
  • the re-determination module 460 is configured to re-determine the number of cores running in the processor and/or the frequency of the kernel running in the processor according to a category of the current application scenario, where the categories of the application scenarios include a common scene, a music scene, a photographing scene, Lightweight game scenes and heavyweight game scenes.
  • the re-determination module 460 is specifically configured to: when the category of the current application scenario is a normal scenario, determine that the number of cores running in the processor is a third number and/or the frequency of the kernel running in the processor is a third frequency; When the category of the application scenario is a music scene, it is determined that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency; when the category of the current application scenario is a photographing scene, determining the processor The number of cores running in the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency; when the category of the current application scenario is a lightweight game scenario, it is determined that the number of cores running in the processor is the sixth number And/or the frequency of the kernel running in the processor is the sixth frequency; when the category of the current application scenario is a heavyweight game scenario, it is determined that the number of cores running in the processor is the seventh number and/or the kernel running in the processor The frequency is the seventh frequency and/
  • the number of cores includes at least one of a large number of cores and a small number of cores.
  • FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal of this embodiment includes: an RF (Radio Frequency) circuit 510, a memory 520 including one or more computer readable storage media, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, and a WiFi (wireless) A fidelity module 570, a processor 580 including one or more processing cores, and a power supply 590 and the like.
  • RF Radio Frequency
  • the RF circuit 510 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it by one or more processors 580; in addition, transmitting data related to the uplink to the base station.
  • the RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • SIM Subscriber Identity Module
  • RF circuitry 510 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing by running software programs and modules stored in the memory 520.
  • the memory 520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the terminal (such as audio data, phone book, etc.).
  • memory 520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 520 may also include a memory controller to provide access to memory 520 by processor 580 and input unit 530.
  • Input unit 530 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 530 can include touch-sensitive surface 531 as well as other input devices 532.
  • a touch-sensitive surface 531 also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., any suitable object or accessory on the touch-sensitive surface 531 or The operation near the touch-sensitive surface 531) and driving the corresponding connecting device according to a preset program.
  • touch sensitive meter The face 531 can include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 580 is provided and can receive commands from the processor 580 and execute them.
  • the touch sensitive surface 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 530 can also include other input devices 532. Specifically, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Display unit 540 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 540 can include a display panel 541.
  • the display panel 541 can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 531 can cover the display panel 541, and when the touch-sensitive surface 531 detects a touch operation thereon or nearby, it is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 according to the touch event The type provides a corresponding visual output on display panel 541.
  • touch-sensitive surface 531 and display panel 541 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 531 can be integrated with display panel 541 for input. And output function.
  • the terminal may also include at least one type of sensor 550, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may close the display panel 541 and/or when the terminal moves to the ear. Or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the terminal can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the audio circuit 560, the speaker 561, and the microphone 562 can provide audio connection between the user and the terminal. mouth.
  • the audio circuit 560 can transmit the converted electrical data of the received audio data to the speaker 561, and convert it into a sound signal output by the speaker 561.
  • the microphone 562 converts the collected sound signal into an electrical signal, and the audio circuit 560 is used by the audio circuit 560. After receiving, it is converted into audio data, and then processed by the audio data output processor 580, transmitted to the terminal, for example, via the RF circuit 510, or outputted to the memory 520 for further processing.
  • the audio circuit 560 may also include an earbud jack to provide communication between the peripheral earphone and the terminal.
  • WiFi is a short-range wireless transmission technology.
  • the terminal can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 570. It provides wireless broadband Internet access for users.
  • FIG. 5 shows the WiFi module 570, it can be understood that it does not belong to the necessary configuration of the terminal, and may be omitted as needed within the scope of not changing the essence of the invention.
  • Processor 580 is the control center of the terminal, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in memory 520, and invoking data stored in memory 520, The various functions of the terminal and processing data to monitor the mobile phone as a whole.
  • the processor 580 may include one or more processing cores; preferably, the processor 580 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 580.
  • the terminal also includes a power source 590 (such as a battery) that supplies power to the various components.
  • a power source 590 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 580 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 590 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the display unit of the terminal is a touch screen display
  • the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more
  • the execution of one or more programs includes instructions for performing the following operations:
  • buttons event are a terminal wake event, increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor to accelerate the wakeup terminal within a preset time period, wherein the preset time period includes The time the terminal wakes up from sleep.
  • the number of cores running in the processor and/or the frequency of the kernel running in the processor are increased according to the state of the terminal within a preset time period, wherein the state of the terminal includes the temperature of the terminal and whether the terminal is At least one of charging.
  • the number of cores running in the processor is increased to a first quantity and/or the frequency of a kernel running in the processor is increased within a preset time period. Up to a first frequency; when the temperature of the terminal is a second temperature, increasing the number of cores running in the processor to a second number and/or frequency of a core running in the processor within a preset time period Raising to a second frequency; wherein the first temperature is greater than the second temperature, the first amount is less than the second amount, and the first frequency is less than the second frequency.
  • the number of cores running in the processor is increased to a first number and/or the frequency of a kernel running in the processor is increased to a first time in a preset period of time. frequency;
  • the terminal When the terminal is charging, increasing the number of cores running in the processor to a second number and/or increasing the frequency of the kernel running in the processor to a second frequency for a preset period of time;
  • the first number is less than the second number, and the first frequency is less than the second frequency.
  • the number of cores includes at least one of a large number of cores and a small number of cores.
  • the time required to wake up the terminal before acceleration and the time required to wake up the terminal after acceleration are simultaneously displayed.
  • the user is prompted to accelerate the wake-up terminal by a combination of one or more of sound, light, and image during the preset time period.
  • the number of cores running in the processor and/or the frequency of the kernel running in the processor are re-determined according to a category of the current application scenario, where the categories of the application scenarios include a common scene, a music scene, a photographing scene, and a lightweight Level game scenes and heavyweight game scenes.
  • the category of the current application scenario is a normal scenario, determining that the number of cores running in the processor is a third number and/or the frequency of the kernel running in the processor is a third frequency; the category of the current application scenario is a music scenario.
  • the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency; when the category of the current application scenario is a photographing scene, determining the number of cores running in the processor is The number of cores running in five quantities and/or processors is the fifth frequency; when the category of the current application scenario is a lightweight game scenario, it is determined that the number of cores running in the processor is the sixth number and/or running in the processor The frequency of the kernel is the sixth frequency; when the category of the current application scenario is a heavyweight game scenario, it is determined that the number of cores running in the processor is the seventh number and/or the frequency of the kernel running in the processor is the seventh frequency; , the third number ⁇ fourth number ⁇ the fifth number ⁇ the sixth number ⁇ the seventh number, the third frequency ⁇ the fourth frequency ⁇ the fifth frequency ⁇ the sixth frequency ⁇ the seventh frequency.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)

Abstract

The present invention discloses a terminal awakening accelerating method and a related product. The method comprises: detecting a button pressing event that occurs when a user operates a button of a terminal; determining whether the button pressing event is a terminal awakening event, wherein the terminal awakening event is used for awakening the terminal from a sleep state; if the button pressing event is a terminal awakening event, increasing the number of kernels running in a processor and/or the frequency of kernels running in the processor within a preset period of time, so as to awaken the terminal, wherein the preset period of time comprises the time it takes to awaken the terminal from the sleep state. The method can accelerate terminal awakening, reduce waiting duration of a user, and improve user experience.

Description

终端加速唤醒方法以及相关产品Terminal acceleration wake-up method and related products 技术领域Technical field
本发明涉及终端领域,尤其涉及一种终端加速唤醒方法以及相关产品。The present invention relates to the field of terminals, and in particular, to a terminal acceleration wake-up method and related products.
背景技术Background technique
当用户在一段时间没有使用终端时,终端将会进入休眠状态以节省功耗。当用户希望使用终端时,可以通过触发按键产生按键事件从而将终端从休眠状态中唤醒。When the user does not use the terminal for a period of time, the terminal will go to sleep to save power. When the user wishes to use the terminal, the button event can be generated by the trigger button to wake the terminal from the sleep state.
发明内容Summary of the invention
第一方面,本发明实施例提供了一种终端加速唤醒方法,包括:检测用户对终端的按键进行操作以产生的按键事件;判断所述按键事件是否为终端唤醒事件,其中,所述终端唤醒事件用于将终端从休眠状态唤醒;如果按键事件为终端唤醒事件,则在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端,其中,所述预设时间段包括将终端从休眠状态中唤醒的时间。In a first aspect, an embodiment of the present invention provides a terminal acceleration wake-up method, including: detecting a button event generated by a user operating a button of a terminal to generate a button event; determining whether the button event is a terminal wake event, wherein the terminal wakes up The event is used to wake up the terminal from the sleep state; if the button event is a terminal wake event, the number of cores running in the processor and/or the frequency of the kernel running in the processor are increased within a preset time period to accelerate the wakeup terminal, The preset time period includes a time for waking up the terminal from the sleep state.
第二方面,本发明实施例提供了一种终端加速唤醒装置,所述装置包括检测模块、判断模块以及提高模块,所述检测模块用于检测用户对终端的按键进行操作以产生的按键事件;所述判断模块用于判断所述按键事件是否为终端唤醒事件,其中,所述终端唤醒事件用于将终端从休眠状态唤醒;所述提高模块用于在按键事件为终端唤醒事件时,在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端,其中,所述预设时间段包括将终端从休眠状态中唤醒的时间。In a second aspect, an embodiment of the present invention provides a terminal acceleration wake-up device, where the device includes a detection module, a determination module, and an improvement module, and the detection module is configured to detect a button event generated by a user operating a button of the terminal to generate a button event; The determining module is configured to determine whether the button event is a terminal wake event, wherein the terminal wake event is used to wake the terminal from a sleep state; and the improvement module is configured to: when the button event is a terminal wake event, The number of cores running in the processor and/or the frequency of the kernel running in the processor is increased over a period of time to accelerate the wake-up terminal, wherein the preset time period includes a time to wake the terminal from the sleep state.
第三方面,本发明实施例提供了一种电子设备,包括中央处理器和存储器,所述中央处理器用于执行:检测用户对终端的按键进行操作以产生的按键事件;判断所述按键事件是否为终端唤醒事件,其中,所述终端唤醒事件用于将 终端从休眠状态唤醒;如果按键事件为终端唤醒事件,则在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端,其中,所述预设时间段包括将终端从休眠状态中唤醒的时间。In a third aspect, an embodiment of the present invention provides an electronic device, including a central processing unit and a memory, where the central processing unit is configured to: detect a key event generated by a user operating a button of the terminal to generate a button event; and determine whether the button event is A wake-up event for the terminal, wherein the terminal wake-up event is used for The terminal wakes up from the sleep state; if the button event is a terminal wake event, the number of cores running in the processor and/or the frequency of the kernel running in the processor is increased within a preset time period to accelerate the wakeup terminal, wherein The preset time period includes the time to wake up the terminal from the sleep state.
第四方面,提供了一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序被执行的情况下实现如第一方面任一项所述的方法。A fourth aspect, a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program is executed to implement the method of any of the first aspects.
第五方面,提供了一种程序产品,所述计算机程序被执行的情况下实现如第一方面任一项所述的方法。In a fifth aspect, a program product is provided, the method of any of the first aspects being implemented in the case of the computer program being executed.
通过实施本发明实施例,能够在产生的按键事件时,提高处理器中运行的内核的数量和/或处理器中运行的内核的频率,从而减少用户按下按键产生按键事件到唤醒终端的时间,加速唤醒终端,提高用户的体验。By implementing the embodiments of the present invention, it is possible to increase the number of cores running in the processor and/or the frequency of the kernel running in the processor during the generated key event, thereby reducing the time for the user to press a button to generate a button event to wake up the terminal. Accelerate the wake-up of the terminal and improve the user experience.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例提供的一种终端加速唤醒方法的流程图;FIG. 1 is a flowchart of a terminal acceleration wake-up method according to an embodiment of the present invention;
图2是本发明实施例提供的另一种终端加速唤醒方法的流程图;2 is a flowchart of another terminal acceleration wake-up method according to an embodiment of the present invention;
图3是本发明实施例提供的又一种终端加速唤醒方法的流程图;FIG. 3 is a flowchart of still another terminal acceleration wake-up method according to an embodiment of the present invention; FIG.
图4是本发明实施例提供的一种终端加速唤醒装置的结构示意图;4 is a schematic structural diagram of a terminal acceleration wake-up device according to an embodiment of the present invention;
图5是本发明实施例提供的一种终端的结构示意图。FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。It is to be understood that the terminology used in the embodiments of the present invention is for the purpose of describing the particular embodiments, and is not intended to limit the invention. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
本发明实施例中提及的处理器可以是中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、微控制单元(Micro Controller Unit,MCU)中的一种或者多种的组合。而且,本实施例中的处理器可以是对称多核处理器(Symmetrical Multi-Processing,SMP),也可以是非对称多核处理器(Asymmetric Multi-Processing,AMP)。另外,本发明实施例中提及的终端可以是智能手机(smart phone)、平板电脑(Tablet Personal Computer)、车载终端、台式电脑(computer)等等。The processor mentioned in the embodiment of the present invention may be one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a micro controller unit (MCU). Combination of species. Moreover, the processor in this embodiment may be a Symmetrical Multi-Processing (SMP) or an Asymmetric Multi-Processing (AMP). In addition, the terminal mentioned in the embodiment of the present invention may be a smart phone, a tablet personal computer, a vehicle terminal, a computer, or the like.
本领域的技术人员在实践中发现,当用户触发按键产生按键事件后,操作***内核的中断子***首先响应按键事件并将按键事件通知内核空间的驱动程序。内核空间的驱动程序接收到将按键事件后,将按键事件上报给用户空间负责接收按键事件的处理模块。处理模块接收到按键事件后,再通知用户空间的应用程序打开屏幕,从而完成对终端的唤醒。Those skilled in the art have found in practice that when the user triggers a button to generate a button event, the interrupt subsystem of the operating system kernel first responds to the button event and notifies the key event to the kernel space driver. After receiving the button event, the kernel space driver reports the button event to the user space to receive the button event processing module. After receiving the button event, the processing module notifies the application of the user space to open the screen, thereby completing the wake-up of the terminal.
从上面可以看出,用户按下按键产生按键事件到唤醒终端的流程很长,如果***响应不够及时,用户可能明显感到操作终端唤醒有延迟,产生卡顿的感觉,影响用户体验。As can be seen from the above, the process of the user pressing the button to generate the button event to wake up the terminal is very long. If the system response is not timely enough, the user may obviously feel that the operation terminal wakes up with a delay, causing a feeling of stagnation and affecting the user experience.
请参阅图1,图1是本发明实施例提供的一种终端加速唤醒方法的流程图。本实施例的终端加速唤醒方法包括:Please refer to FIG. 1. FIG. 1 is a flowchart of a terminal acceleration wake-up method according to an embodiment of the present invention. The terminal acceleration wake-up method of this embodiment includes:
110:检测用户对终端的按键进行操作以产生的按键事件。110: Detect a button event that the user operates on the button of the terminal to generate.
终端的按键可以是开关按键、音量按键或者“home”键等等。用户对终端的按键进行的操作可以是长按、短按或者多次按压。按键事件可以是一个标识,所述标识包括文字、数字和符号中的至少一种,而且,按键事件可以是终 端唤醒事件也可以是其他的事件等等。而且,可以设置为对终端的不同按键进行操作时,触发产生不同的按键事件,也可以设置为对终端的同一个按键进行不同的操作时,触发产生不同的按键事件。The button of the terminal can be a switch button, a volume button or a "home" button, and the like. The user's operation on the button of the terminal may be a long press, a short press or multiple presses. The button event may be an identifier including at least one of a character, a number, and a symbol, and the button event may be the end The wake-up event can also be other events and so on. Moreover, it can be set to trigger different button events when the different buttons of the terminal are operated, or can be set to generate different button events when different operations are performed on the same button of the terminal.
120:判断按键事件是否为终端唤醒事件,其中,终端唤醒事件用于将终端从休眠状态唤醒。120: Determine whether the button event is a terminal wake event, wherein the terminal wake event is used to wake the terminal from the sleep state.
终端在存储器中存储了包括终端唤醒事件在内的多个按键事件。在检测到产生的按键事件之后,终端将产生的按键事件与存储在存储器中的终端唤醒事件进行比较,从而确定按键事件是否为终端唤醒事件。如果按键事件是终端唤醒事件,则进入步骤130;如果按键事件不是终端唤醒事件,则退出本方法的流程。The terminal stores a plurality of key events including a terminal wake event in the memory. After detecting the generated key event, the terminal compares the generated key event with the terminal wake event stored in the memory to determine whether the key event is a terminal wake event. If the button event is a terminal wake event, proceed to step 130; if the button event is not a terminal wake event, the flow of the method is exited.
130:在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端,其中,所述预设时间段包括将终端从休眠状态中唤醒的时间。130: Increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor to accelerate the wake-up terminal within a preset time period, wherein the preset time period comprises awakening the terminal from the sleep state time.
在一具体的实施方式中,当确定按键事件是终端唤醒事件时,终端启动计时器,并提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端。然后,终端判断计时器的计时时间是否大于预设时间段,如果小于预设时间段,则继续保持提高处理器中运行的内核的数量和/或处理器中运行的内核的频率,如果大于预设时间段,则结束提高处理器中运行的内核的数量和/或处理器中运行的内核的频率。In a specific embodiment, when it is determined that the button event is a terminal wake event, the terminal starts the timer and increases the number of cores running in the processor and/or the frequency of the kernel running in the processor to speed up the wake up terminal. Then, the terminal determines whether the timer time of the timer is greater than the preset time period, and if less than the preset time period, continues to increase the number of cores running in the processor and/or the frequency of the kernel running in the processor, if greater than the pre- Set the time period to end increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor.
可以理解的是,在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率可以是:将处理器中运行的内核的数量和/或处理器中运行的内核的频率提高,然后,在预设时间段内,处理器中运行的内核的数量和/或处理器中运行的内核的频率保持不变,或者,在预设时间段内,处理器中运行的内核的数量和/或处理器中运行的内核的频率一直在不停提高等等。It can be understood that increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor within a preset time period may be: running the number of cores running in the processor and/or running in the processor The frequency of the kernel is increased, and then, the number of cores running in the processor and/or the frequency of the kernel running in the processor remain unchanged for a preset period of time, or, within a predetermined period of time, in the processor The number of running kernels and/or the frequency of the kernel running in the processor has been increasing and so on.
在一具体的实施方式中,在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率可以是:在预设时间段内提高处理器中运行的内核数量,而处理器中运行的内核的频率保持不变;或者,处理器中运行的内核数量可以确定为保持不变,而提高处理器中运行的内核的频率;或者,可 以略为降低处理器中运行的内核数量,而大大提高处理器中运行的内核的频率;或者,大大提高处理器中运行的内核数量,而略为降低处理器中运行的内核的频率;或者,同时提高处理器中运行的内核的数量和处理器中运行的内核的频率。In a specific implementation, increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor within a preset time period may be: increasing the core running in the processor within a preset time period Quantity, while the frequency of the kernel running in the processor remains the same; or, the number of cores running in the processor can be determined to remain unchanged while increasing the frequency of the kernel running in the processor; or To slightly reduce the number of cores running in the processor, and greatly increase the frequency of the kernel running in the processor; or, to greatly increase the number of cores running in the processor, and slightly reduce the frequency of the kernel running in the processor; or, at the same time; Increase the number of cores running in the processor and the frequency of the kernel running in the processor.
可以理解的是,当处理器为非对称多核处理器时,处理器中包括大核和小核,所以,在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率,可以是在预设时间段内提高处理器中运行的大核的数量和/或处理器中运行的大核的频率,或者,在预设时间段内提高处理器中运行的小核的数量和/或处理器中运行的小核的频率,或者,在预设时间段内同时提高处理器中运行的大、小核的数量和/或处理器中运行的大、小核的频率。It can be understood that when the processor is an asymmetric multi-core processor, the processor includes a large core and a small core, so the number of cores running in the processor is increased and/or run in the processor for a preset period of time. The frequency of the kernel may be to increase the number of large cores running in the processor and/or the frequency of large cores running in the processor within a preset period of time, or to increase the operation of the processor within a preset period of time. The number of small cores and/or the frequency of small cores running in the processor, or both the number of large and small cores running in the processor and/or the large and small cores running in the processor during a preset time period Frequency of.
为了提醒用户正在加速唤醒终端,可以在预设时间段内通过声音、光线和图像中的一种或者多种的组合提醒用户。而且,在唤醒终端之后,可以同时显示在加速前唤醒终端所需要的时间以及在加速后唤醒终端所需要的时间,让用户直观地感受到加速的效果。In order to remind the user that the terminal is being accelerated, the user may be alerted by a combination of one or more of sound, light and image within a preset time period. Moreover, after waking up the terminal, the time required to wake up the terminal before acceleration and the time required to wake up the terminal after acceleration can be simultaneously displayed, so that the user intuitively feels the effect of acceleration.
请参阅图2,图2是本发明实施例提供的另一种终端加速唤醒方法的流程图。本实施例的终端加速唤醒方法包括:Referring to FIG. 2, FIG. 2 is a flowchart of another terminal acceleration wake-up method according to an embodiment of the present invention. The terminal acceleration wake-up method of this embodiment includes:
210:检测用户对终端的按键进行操作以产生的按键事件。210: Detect a button event that the user operates on the button of the terminal to generate.
220:判断按键事件是否为终端唤醒事件,其中,终端唤醒事件用于将终端从休眠状态唤醒。220: Determine whether the button event is a terminal wake event, wherein the terminal wake event is used to wake the terminal from the sleep state.
本实施的步骤210以及220分别与图1所示的实施例中的步骤110以及步骤120相同,具体请参阅图1所示的实施中的步骤110以及步骤120,此处不再具体描述。The steps 210 and 220 of the embodiment are the same as the steps 110 and 120 in the embodiment shown in FIG. 1 . For details, refer to step 110 and step 120 in the implementation shown in FIG. 1 , and details are not described herein.
230:在预设时间段内根据终端的状态提高处理器中运行的内核的数量和/或处理器中运行的内核的频率。其中,预设时间段包括将终端从休眠状态中唤醒的时间。230: Increase the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the state of the terminal within a preset time period. The preset time period includes a time for waking up the terminal from the sleep state.
在一具体的实施例中,在预设时间段内根据终端的状态提高处理器中运行的内核的数量和/或处理器中运行的内核的频率,其中,终端的状态包括终端 的温度以及终端是否正在充电中的至少一种。In a specific embodiment, the number of cores running in the processor and/or the frequency of the kernel running in the processor are increased according to the state of the terminal within a preset time period, wherein the state of the terminal includes the terminal. At least one of the temperature and whether the terminal is charging.
具体地,在预设时间段内根据终端的温度提高处理器中运行的内核的数量和/或处理器中运行的内核的频率可以是:当终端的温度为第一温度时,则在预设时间段内将处理器中运行的内核的数量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;当终端的温度为第二温度时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率;其中,第一温度大于第二温度,第一数量小于第二数量,第一频率小于第二频率。Specifically, the number of cores running in the processor and/or the frequency of the kernel running in the processor may be increased according to the temperature of the terminal within a preset time period: when the temperature of the terminal is the first temperature, the preset is Increasing the number of cores running in the processor to a first amount and/or increasing the frequency of the core running in the processor to a first frequency during a time period; when the temperature of the terminal is a second temperature, then at a preset time Increasing the number of cores running in the processor to a second number and/or increasing the frequency of the core running in the processor to a second frequency; wherein the first temperature is greater than the second temperature, the first number being less than the second The number, the first frequency is less than the second frequency.
具体地,在预设时间段内根据终端是否正在充电提高处理器中运行的内核的数量和/或处理器中运行的内核的频率可以是:当终端没有在充电时,则在预设时间段内将处理器中运行的内核的数量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;当终端正在充电时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率;其中,第一数量小于第二数量,第一频率小于第二频率。Specifically, the number of cores running in the processor and/or the frequency of the kernel running in the processor may be increased according to whether the terminal is charging or not during a preset time period: when the terminal is not charging, then in a preset time period Internally increasing the number of cores running in the processor to a first number and/or increasing the frequency of the core running in the processor to a first frequency; when the terminal is charging, then the processor is in a predetermined period of time The number of running kernels is increased to a second amount and/or the frequency of the core running in the processor is increased to a second frequency; wherein the first number is less than the second number and the first frequency is less than the second frequency.
在一具体的实施方式中,在预设时间段内根据终端的状态提高处理器中运行的内核的数量和/或处理器中运行的内核的频率可以是:在预设时间段内提高处理器中运行的内核数量,而处理器中运行的内核的频率保持不变;或者,处理器中运行的内核数量可以确定为保持不变,而提高处理器中运行的内核的频率;或者,可以略为降低处理器中运行的内核数量,而大大提高处理器中运行的内核的频率;或者,大大提高处理器中运行的内核数量,而略为降低处理器中运行的内核的频率;或者,同时提高处理器中运行的内核的数量和处理器中运行的内核的频率。In a specific implementation, increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the state of the terminal within a preset time period may be: increasing the processor within a preset time period. The number of cores running in the process, while the frequency of the kernel running in the processor remains the same; or, the number of cores running in the processor can be determined to remain unchanged, while increasing the frequency of the kernel running in the processor; or, can be slightly Reduce the number of cores running in the processor, and greatly increase the frequency of the kernel running in the processor; or, greatly increase the number of cores running in the processor, and slightly reduce the frequency of the kernel running in the processor; or, simultaneously improve processing The number of cores running in the controller and the frequency of the kernel running in the processor.
可以理解的是,当处理器为非对称多核处理器时,处理器中包括大核和小核,所以,在预设时间段内根据终端的状态提高处理器中运行的内核的数量和/或处理器中运行的内核的频率可以是:在预设时间段内根据终端的状态提高处理器中运行的大核的数量和/或处理器中运行的大核的频率,或者,在预设时间段内根据终端的状态提高处理器中运行的小核的数量和/或处理器中运行的小核的频率,或者,在预设时间段内根据终端的状态同时提高处理器中运行 的大、小核的数量和/或处理器中运行的大、小核的频率。It can be understood that when the processor is an asymmetric multi-core processor, the processor includes a large core and a small core, so the number of cores running in the processor is increased according to the state of the terminal and/or within a preset period of time. The frequency of the kernel running in the processor may be: increasing the number of large cores running in the processor and/or the frequency of large cores running in the processor according to the state of the terminal within a preset time period, or at a preset time The number of small cores running in the processor and/or the frequency of small cores running in the processor are increased according to the state of the terminal, or the processor is continuously operated according to the state of the terminal within a preset time period. The number of large and small cores and/or the frequency of large and small cores running in the processor.
请参阅图3,图3是本发明实施例提供的又一种终端加速唤醒方法的流程图。本实施例的终端加速唤醒方法包括:Referring to FIG. 3, FIG. 3 is a flowchart of still another terminal acceleration wake-up method according to an embodiment of the present invention. The terminal acceleration wake-up method of this embodiment includes:
310:检测用户对终端的按键进行操作以产生的按键事件。310: Detect a button event that the user operates on the button of the terminal to generate.
320:判断按键事件是否为终端唤醒事件,其中,终端唤醒事件用于将终端从休眠状态唤醒。320: Determine whether the button event is a terminal wake event, wherein the terminal wake event is used to wake the terminal from the sleep state.
330:在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端,其中,所述预设时间段包括将终端从休眠状态中唤醒的时间。330: Increase the number of cores running in the processor and/or the frequency of the kernel running in the processor to accelerate the wake-up terminal during a preset time period, wherein the preset time period includes awakening the terminal from the sleep state. time.
本实施的步骤310、步骤320以及步骤330分别与图1所示的实施例中的步骤110、步骤120以及步骤130相同,具体请参阅图1所示的实施中的步骤110、步骤120以及步骤130,此处不再具体描述。The steps 310, 320, and 330 of the embodiment are the same as the steps 110, 120, and 130 in the embodiment shown in FIG. 1. For details, refer to step 110, step 120, and step in the implementation shown in FIG. 130, which will not be described in detail here.
340:根据当前应用场景的类别重新确定处理器中运行的内核的数量和/或处理器中运行的内核的频率。340: Re-determine the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the category of the current application scenario.
应用场景是指终端的运行应用程序的状态,当终端运行的应用程序不同时,终端的应用场景也不相同。应用场景的类别可以根据需要预先进行定义,例如,可以根据应用场景的负载情况对应用场景的类别进行定义。根据应用场景的负载从小到大进行说明,如果终端没有运行任何应用程序,或者,终端运行一些极小的应用程序(例如日历等小程序时)的应用场景,则可以定义这些应用场景的类别为普通场景,当终端正在运行音乐程序,例如kugoo、QQ音乐等等的应用场景时,可以认为这些应用场景的类别为音乐场景,当终端正在运行拍照程序,例如智能相机或者美图相机等等的应用场景时,可以认为这些应用场景的类别为拍照场景,当终端正在运行轻量级游戏程序,例如黄金矿工、切西瓜等等小游戏的应用场景时,可以认为这些应用场景的类别为轻量级游戏场景;当终端运行重量级游戏场景,例如魔兽争霸等等游戏的应用场景时,可以认为这些应用场景的类别为重量级游戏场景等等。可以理解的是,当前应用场景的类别的定义方法可以有多种,具体可以根据需要进行定义,上述的应用场景的类别的定义方法只是一种举例,而非限定。 The application scenario refers to the state of the running application of the terminal. When the application running on the terminal is different, the application scenario of the terminal is also different. The category of the application scenario can be defined in advance according to requirements. For example, the category of the application scenario can be defined according to the load condition of the application scenario. According to the load of the application scenario, the application scenario of the application scenario can be defined as if the terminal does not run any application, or if the terminal runs some application scenarios of a very small application (such as an applet such as a calendar). Ordinary scenes, when the terminal is running a music program, such as an application scene of kugoo, QQ music, etc., the category of the application scenes may be considered as a music scene, and when the terminal is running a photographing program, such as a smart camera or a Mito camera, etc. When applying a scenario, you can think that the category of these application scenarios is a photo scene. When the terminal is running a lightweight game program, such as a gold miner, a cut watermelon, and other small game applications, the category of these application scenarios can be considered as lightweight. Level game scene; when the terminal runs a heavyweight game scene, such as the application scene of Warcraft and other games, the category of these application scenes can be considered as a heavyweight game scene and so on. It can be understood that the definition method of the category of the current application scenario may be multiple, and may be defined as needed. The definition method of the category of the application scenario is only an example, not a limitation.
在一具体的实施例中,在加速唤醒终端之后,根据当前应用场景的类别重新确定处理器中运行的内核的数量和/或处理器中运行的内核的频率具体为:当确定当前应用场景的类别为负载较轻的应用场景类别时,处理器中运行的内核数量可以确定为一个较少的数量,而处理器中运行的内核的频率保持不变;或者,处理器中运行的内核数量可以确定为保持不变,而处理器中运行的内核的频率确定为一个较低的频率;或者,处理器中运行的内核数量可以确定为一个稍大的数量,而处理器中运行的内核的频率确定为一个十分低的频率,或者,处理器中运行的内核数量可以确定一个较少的数量,处理器中运行的内核的频率确定为一个较低的频率,总而言之,只需要保证降低处理器的总体处理能力即可。反之,当确定当前应用场景的类别为负载较重的应用场景类别时,处理器中运行的内核数量可以确定为一个较多的数量,而处理器中运行的内核的频率保持不变;或者,处理器中运行的内核数量可以确定为保持不变,而处理器中运行的内核的频率确定为一个较高的频率;或者,处理器中运行的内核数量可以确定为一个稍少的数量,而处理器中运行的内核的频率确定为一个十分高的频率;或者,处理器中运行的内核数量可以确定一个较多的数量,处理器中运行的内核的频率确定为一个较高的频率,总而言之,只需要保证提高处理器的总体处理能力即可。In a specific embodiment, after speeding up the wakeup terminal, redetermining the number of cores running in the processor according to the category of the current application scenario and/or the frequency of the kernel running in the processor is specifically: when determining the current application scenario When the category is a light load application scenario category, the number of cores running in the processor can be determined to be a small number, and the frequency of the kernel running in the processor remains unchanged; or the number of cores running in the processor can be Determined to remain unchanged, and the frequency of the kernel running in the processor is determined to be a lower frequency; or, the number of cores running in the processor can be determined to be a slightly larger number, and the frequency of the core running in the processor Determined to be a very low frequency, or the number of cores running in the processor can be determined by a small number, the frequency of the core running in the processor is determined to be a lower frequency, in short, only need to ensure that the processor is reduced The overall processing power is sufficient. Conversely, when it is determined that the category of the current application scenario is a heavily loaded application scenario category, the number of cores running in the processor may be determined to be a larger number, and the frequency of the kernel running in the processor remains unchanged; or The number of cores running in the processor can be determined to remain unchanged, and the frequency of the kernel running in the processor is determined to be a higher frequency; or, the number of cores running in the processor can be determined to be a slightly smaller number, and The frequency of the kernel running in the processor is determined to be a very high frequency; or, the number of cores running in the processor can determine a greater number, and the frequency of the core running in the processor is determined to be a higher frequency, in summary Only need to ensure that the overall processing power of the processor can be improved.
更具体地,以应用场景的类别包括普通场景、音乐场景、拍照场景、轻量级游戏场景以及重量级游戏场景为例进行说明。More specifically, the categories of the application scene include a common scene, a music scene, a photographing scene, a lightweight game scene, and a heavyweight game scene as an example.
当前应用场景的类别为普通场景时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;When the category of the current application scenario is a normal scenario, it is determined that the number of cores running in the processor is the third number and/or the frequency of the kernel running in the processor is the third frequency;
当前应用场景的类别为音乐场景时,确定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;When the category of the current application scenario is a music scene, it is determined that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency;
当前应用场景的类别为拍照场景时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;When the category of the current application scenario is a photographing scene, it is determined that the number of cores running in the processor is the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency;
当前应用场景的类别为轻量级游戏场景时,确定处理器中运行的内核数量为第六数量和/或处理器中运行的内核的频率为第六频率;When the category of the current application scenario is a lightweight game scenario, it is determined that the number of cores running in the processor is the sixth number and/or the frequency of the kernel running in the processor is the sixth frequency;
当前应用场景的类别为重量级游戏场景时,确定处理器中运行的内核数量 为第七数量和/或处理器中运行的内核的频率为第七频率;Determine the number of cores running in the processor when the current application scenario is a heavyweight game scenario The frequency of the kernel running in the seventh number and/or processor is the seventh frequency;
其中,第三数量<第四数量<第五数量<第六数量<第七数量,第三频率<第四频率<第五频率<第六频率<第七频率。Wherein, the third number <fourth number <the fifth number <the sixth number <the seventh number, the third frequency <the fourth frequency <the fifth frequency <the sixth frequency <the seventh frequency.
请参阅图4,图4是本发明实施例提供的一种终端加速唤醒装置的结构示意图。本发明实施例的终端加速唤醒装置400包括:检测模块410、判断模块420以及提高模块430。Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a terminal acceleration wake-up device according to an embodiment of the present invention. The terminal acceleration wake-up device 400 of the embodiment of the present invention includes: a detection module 410, a determination module 420, and an improvement module 430.
检测模块410用于检测用户对终端的按键进行操作以产生的按键事件;The detecting module 410 is configured to detect a button event generated by the user operating the button of the terminal to generate a button event;
判断模块420用于判断所述按键事件是否为终端唤醒事件,其中,所述终端唤醒事件用于将终端从休眠状态唤醒;The determining module 420 is configured to determine whether the button event is a terminal wake event, where the terminal wake event is used to wake the terminal from a sleep state;
提高模块430用于在按键事件为终端唤醒事件时,在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端,其中,所述预设时间段包括将终端从休眠状态中唤醒的时间。The augmenting module 430 is configured to: when the button event is a terminal wake event, increase the number of cores running in the processor and/or the frequency of the kernel running in the processor to accelerate the wakeup terminal, where the preset is The set time period includes the time to wake up the terminal from the sleep state.
可选地,提高模块430具体用于在预设时间段内根据终端的状态提高处理器中运行的内核的数量和/或处理器中运行的内核的频率,其中,所述终端的状态包括终端的温度以及终端是否正在充电中的至少一种。Optionally, the improvement module 430 is specifically configured to increase the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the state of the terminal within a preset time period, where the status of the terminal includes the terminal. At least one of the temperature and whether the terminal is charging.
可选地,提高模块430具体用于当所述终端的温度为第一温度时,则在预设时间段内将处理器中运行的内核的数量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;当所述终端的温度为第二温度时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率;其中,所述第一温度大于第二温度,所述第一数量小于第二数量,所述第一频率小于第二频率。Optionally, the improvement module 430 is specifically configured to: when the temperature of the terminal is the first temperature, increase the number of cores running in the processor to a first quantity and/or in the processor within a preset time period. The frequency of the running kernel is increased to a first frequency; when the temperature of the terminal is a second temperature, the number of cores running in the processor is increased to a second amount and/or the processor is replaced within a preset time period The frequency of the running core is increased to a second frequency; wherein the first temperature is greater than the second temperature, the first amount is less than the second amount, and the first frequency is less than the second frequency.
可选地,提高模块430具体用于当所述终端没有在充电时,则在预设时间段内将处理器中运行的内核的数量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;当所述终端正在充电时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率;其中,所述第一数量小于第二数量,所述第一频率小于第二频率。 Optionally, the improvement module 430 is specifically configured to: when the terminal is not charging, increase the number of cores running in the processor to a first quantity and/or a kernel running in the processor within a preset time period. The frequency is increased to a first frequency; when the terminal is charging, the number of cores running in the processor is increased to a second amount and/or the frequency of the kernel running in the processor is increased for a preset period of time And to a second frequency; wherein the first quantity is less than the second quantity, and the first frequency is less than the second frequency.
本发明实施例中,图4所示的终端加速唤醒装置还可以包括显示模块440、提醒模块450以及重确定模块460。In the embodiment of the present invention, the terminal acceleration wake-up device shown in FIG. 4 may further include a display module 440, a reminder module 450, and a re-determination module 460.
显示模块440用于同时显示在加速前唤醒终端所需要的时间以及在加速后唤醒终端所需要的时间。The display module 440 is configured to simultaneously display the time required to wake up the terminal before acceleration and the time required to wake up the terminal after acceleration.
提醒模块450用于在所述预设时间段内通过声音、光线和图像中的一种或者多种的组合提醒所述用户正在加速唤醒终端。The reminding module 450 is configured to remind the user that the user is accelerating to wake up the terminal by the combination of one or more of sound, light, and image within the preset time period.
重确定模块460用于根据当前应用场景的类别重新确定处理器中运行的内核的数量和/或处理器中运行的内核的频率,所述应用场景的类别包括普通场景、音乐场景、拍照场景、轻量级游戏场景和重量级游戏场景。The re-determination module 460 is configured to re-determine the number of cores running in the processor and/or the frequency of the kernel running in the processor according to a category of the current application scenario, where the categories of the application scenarios include a common scene, a music scene, a photographing scene, Lightweight game scenes and heavyweight game scenes.
可选地,重确定模块460具体用于当前应用场景的类别为普通场景时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;当前应用场景的类别为音乐场景时,确定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;当前应用场景的类别为拍照场景时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;当前应用场景的类别为轻量级游戏场景时,确定处理器中运行的内核数量为第六数量和/或处理器中运行的内核的频率为第六频率;当前应用场景的类别为重量级游戏场景时,确定处理器中运行的内核数量为第七数量和/或处理器中运行的内核的频率为第七频率;其中,第三数量<第四数量<第五数量<第六数量<第七数量,第三频率<第四频率<第五频率<第六频率<第七频率。Optionally, the re-determination module 460 is specifically configured to: when the category of the current application scenario is a normal scenario, determine that the number of cores running in the processor is a third number and/or the frequency of the kernel running in the processor is a third frequency; When the category of the application scenario is a music scene, it is determined that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency; when the category of the current application scenario is a photographing scene, determining the processor The number of cores running in the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency; when the category of the current application scenario is a lightweight game scenario, it is determined that the number of cores running in the processor is the sixth number And/or the frequency of the kernel running in the processor is the sixth frequency; when the category of the current application scenario is a heavyweight game scenario, it is determined that the number of cores running in the processor is the seventh number and/or the kernel running in the processor The frequency is the seventh frequency; wherein, the third number <the fourth number <the fifth number <the sixth number <the seventh number, the third frequency <the fourth frequency <the fifth frequency <the sixth frequency <Seventh frequency.
可选地,所述内核数量包括大核数量和小核数量中的至少一种。Optionally, the number of cores includes at least one of a large number of cores and a small number of cores.
请参阅图5,图5是本发明实施例提供的一种终端的结构示意图。本实施例的终端包括:RF(Radio Frequency,射频)电路510、包括有一个或一个以上计算机可读存储介质的存储器520、输入单元530、显示单元540、传感器550、音频电路560、WiFi(wireless fidelity,无线保真)模块570、包括有一个或者一个以上处理核心的处理器580、以及电源590等部件。本领域技术人员可以理解,图5中示出的终端结构并不构成对终端的限定,可以包括比图示更多 或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal of this embodiment includes: an RF (Radio Frequency) circuit 510, a memory 520 including one or more computer readable storage media, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, and a WiFi (wireless) A fidelity module 570, a processor 580 including one or more processing cores, and a power supply 590 and the like. Those skilled in the art can understand that the terminal structure shown in FIG. 5 does not constitute a limitation on the terminal, and may include more than the illustration. Or fewer parts, or combine some parts, or different parts. among them:
RF电路510可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器580处理;另外,将涉及上行的数据发送给基站。通常,RF电路510包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM)卡、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,RF电路510还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯***)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。The RF circuit 510 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it by one or more processors 580; in addition, transmitting data related to the uplink to the base station. . Generally, the RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc. In addition, RF circuitry 510 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
存储器520可用于存储软件程序以及模块,处理器580通过运行存储在存储器520的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器520可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器520还可以包括存储器控制器,以提供处理器580和输入单元530对存储器520的访问。The memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing by running software programs and modules stored in the memory 520. The memory 520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the terminal (such as audio data, phone book, etc.). Moreover, memory 520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 520 may also include a memory controller to provide access to memory 520 by processor 580 and input unit 530.
输入单元530可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元530可包括触敏表面531以及其他输入设备532。触敏表面531,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面531上或在触敏表面531附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表 面531可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器580,并能接收处理器580发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面531。除了触敏表面531,输入单元530还可以包括其他输入设备532。具体地,其他输入设备532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。 Input unit 530 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 530 can include touch-sensitive surface 531 as well as other input devices 532. A touch-sensitive surface 531, also referred to as a touch display or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., any suitable object or accessory on the touch-sensitive surface 531 or The operation near the touch-sensitive surface 531) and driving the corresponding connecting device according to a preset program. Optional, touch sensitive meter The face 531 can include two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 580 is provided and can receive commands from the processor 580 and execute them. In addition, the touch sensitive surface 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 531, the input unit 530 can also include other input devices 532. Specifically, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元540可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元540可包括显示面板541,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板541。进一步的,触敏表面531可覆盖显示面板541,当触敏表面531检测到在其上或附近的触摸操作后,传送给处理器580以确定触摸事件的类型,随后处理器580根据触摸事件的类型在显示面板541上提供相应的视觉输出。虽然在图5中,触敏表面531与显示面板541是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面531与显示面板541集成而实现输入和输出功能。 Display unit 540 can be used to display information entered by the user or information provided to the user, as well as various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 540 can include a display panel 541. Alternatively, the display panel 541 can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 531 can cover the display panel 541, and when the touch-sensitive surface 531 detects a touch operation thereon or nearby, it is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 according to the touch event The type provides a corresponding visual output on display panel 541. Although in FIG. 5, touch-sensitive surface 531 and display panel 541 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 531 can be integrated with display panel 541 for input. And output function.
终端还可包括至少一种传感器550,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板541的亮度,接近传感器可在终端移动到耳边时,关闭显示面板541和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The terminal may also include at least one type of sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may close the display panel 541 and/or when the terminal moves to the ear. Or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
音频电路560、扬声器561,传声器562可提供用户与终端之间的音频接 口。音频电路560可将接收到的音频数据转换后的电信号,传输到扬声器561,由扬声器561转换为声音信号输出;另一方面,传声器562将收集的声音信号转换为电信号,由音频电路560接收后转换为音频数据,再将音频数据输出处理器580处理后,经RF电路510以发送给比如另一终端,或者将音频数据输出至存储器520以便进一步处理。音频电路560还可能包括耳塞插孔,以提供外设耳机与终端的通信。The audio circuit 560, the speaker 561, and the microphone 562 can provide audio connection between the user and the terminal. mouth. The audio circuit 560 can transmit the converted electrical data of the received audio data to the speaker 561, and convert it into a sound signal output by the speaker 561. On the other hand, the microphone 562 converts the collected sound signal into an electrical signal, and the audio circuit 560 is used by the audio circuit 560. After receiving, it is converted into audio data, and then processed by the audio data output processor 580, transmitted to the terminal, for example, via the RF circuit 510, or outputted to the memory 520 for further processing. The audio circuit 560 may also include an earbud jack to provide communication between the peripheral earphone and the terminal.
WiFi属于短距离无线传输技术,终端通过WiFi模块570可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块570,但是可以理解的是,其并不属于终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-range wireless transmission technology. The terminal can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 570. It provides wireless broadband Internet access for users. Although FIG. 5 shows the WiFi module 570, it can be understood that it does not belong to the necessary configuration of the terminal, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器580是终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器520内的软件程序和/或模块,以及调用存储在存储器520内的数据,执行终端的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器580可包括一个或多个处理核心;优选的,处理器580可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器580中。Processor 580 is the control center of the terminal, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in memory 520, and invoking data stored in memory 520, The various functions of the terminal and processing data to monitor the mobile phone as a whole. Optionally, the processor 580 may include one or more processing cores; preferably, the processor 580 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 580.
终端还包括给各个部件供电的电源590(比如电池),优选的,电源可以通过电源管理***与处理器580逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。电源590还可以包括一个或一个以上的直流或交流电源、再充电***、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal also includes a power source 590 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 580 through a power management system to manage functions such as charging, discharging, and power management through the power management system. Power supply 590 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,终端还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,终端的显示单元是触摸屏显示器,终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be processed by one or more The execution of one or more programs includes instructions for performing the following operations:
检测用户对终端的按键进行操作以产生的按键事件; Detecting a button event that the user operates on the button of the terminal to generate;
判断所述按键事件是否为终端唤醒事件,其中,所述终端唤醒事件用于将终端从休眠状态唤醒;Determining whether the button event is a terminal wake event, wherein the terminal wake event is used to wake the terminal from a sleep state;
如果按键事件为终端唤醒事件,则在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端,其中,所述预设时间段包括将终端从休眠状态中唤醒的时间。If the button event is a terminal wake event, increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor to accelerate the wakeup terminal within a preset time period, wherein the preset time period includes The time the terminal wakes up from sleep.
可选地,在预设时间段内根据终端的状态提高处理器中运行的内核的数量和/或处理器中运行的内核的频率,其中,所述终端的状态包括终端的温度以及终端是否正在充电中的至少一种。Optionally, the number of cores running in the processor and/or the frequency of the kernel running in the processor are increased according to the state of the terminal within a preset time period, wherein the state of the terminal includes the temperature of the terminal and whether the terminal is At least one of charging.
可选地,当所述终端的温度为第一温度时,则在预设时间段内将处理器中运行的内核的数量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;当所述终端的温度为第二温度时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率;其中,所述第一温度大于第二温度,所述第一数量小于第二数量,所述第一频率小于第二频率。Optionally, when the temperature of the terminal is the first temperature, the number of cores running in the processor is increased to a first quantity and/or the frequency of a kernel running in the processor is increased within a preset time period. Up to a first frequency; when the temperature of the terminal is a second temperature, increasing the number of cores running in the processor to a second number and/or frequency of a core running in the processor within a preset time period Raising to a second frequency; wherein the first temperature is greater than the second temperature, the first amount is less than the second amount, and the first frequency is less than the second frequency.
可选地,当所述终端没有在充电时,则在预设时间段内将处理器中运行的内核的数量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;Optionally, when the terminal is not charging, the number of cores running in the processor is increased to a first number and/or the frequency of a kernel running in the processor is increased to a first time in a preset period of time. frequency;
当所述终端正在充电时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率;其中,所述第一数量小于第二数量,所述第一频率小于第二频率。When the terminal is charging, increasing the number of cores running in the processor to a second number and/or increasing the frequency of the kernel running in the processor to a second frequency for a preset period of time; The first number is less than the second number, and the first frequency is less than the second frequency.
可选地,所述内核数量包括大核数量和小核数量中的至少一种。Optionally, the number of cores includes at least one of a large number of cores and a small number of cores.
可选地,同时显示在加速前唤醒终端所需要的时间以及在加速后唤醒终端所需要的时间。Optionally, the time required to wake up the terminal before acceleration and the time required to wake up the terminal after acceleration are simultaneously displayed.
可选地,在所述预设时间段内通过声音、光线和图像中的一种或者多种的组合提醒所述用户正在加速唤醒终端。Optionally, the user is prompted to accelerate the wake-up terminal by a combination of one or more of sound, light, and image during the preset time period.
可选地,根据当前应用场景的类别重新确定处理器中运行的内核的数量和/或处理器中运行的内核的频率,所述应用场景的类别包括普通场景、音乐场景、拍照场景、轻量级游戏场景和重量级游戏场景。 Optionally, the number of cores running in the processor and/or the frequency of the kernel running in the processor are re-determined according to a category of the current application scenario, where the categories of the application scenarios include a common scene, a music scene, a photographing scene, and a lightweight Level game scenes and heavyweight game scenes.
可选地,当前应用场景的类别为普通场景时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;当前应用场景的类别为音乐场景时,确定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;当前应用场景的类别为拍照场景时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;当前应用场景的类别为轻量级游戏场景时,确定处理器中运行的内核数量为第六数量和/或处理器中运行的内核的频率为第六频率;当前应用场景的类别为重量级游戏场景时,确定处理器中运行的内核数量为第七数量和/或处理器中运行的内核的频率为第七频率;其中,第三数量<第四数量<第五数量<第六数量<第七数量,第三频率<第四频率<第五频率<第六频率<第七频率。Optionally, when the category of the current application scenario is a normal scenario, determining that the number of cores running in the processor is a third number and/or the frequency of the kernel running in the processor is a third frequency; the category of the current application scenario is a music scenario. When it is determined that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency; when the category of the current application scenario is a photographing scene, determining the number of cores running in the processor is The number of cores running in five quantities and/or processors is the fifth frequency; when the category of the current application scenario is a lightweight game scenario, it is determined that the number of cores running in the processor is the sixth number and/or running in the processor The frequency of the kernel is the sixth frequency; when the category of the current application scenario is a heavyweight game scenario, it is determined that the number of cores running in the processor is the seventh number and/or the frequency of the kernel running in the processor is the seventh frequency; , the third number <fourth number <the fifth number <the sixth number <the seventh number, the third frequency <the fourth frequency <the fifth frequency <the sixth frequency <the seventh frequency.
通过实施本发明实施例,能够在产生的按键事件时,提高处理器中运行的内核的数量和/或处理器中运行的内核的频率,从而减少用户按下按键产生按键事件到唤醒终端的时间,加速唤醒终端,提高用户的体验。By implementing the embodiments of the present invention, it is possible to increase the number of cores running in the processor and/or the frequency of the kernel running in the processor during the generated key event, thereby reducing the time for the user to press a button to generate a button event to wake up the terminal. Accelerate the wake-up of the terminal and improve the user experience.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。 The above disclosure is only a preferred embodiment of the present invention, and of course, the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the present invention. The equivalent changes required are still within the scope of the invention.

Claims (20)

  1. 一种终端加速唤醒方法,其特征在于,包括:A terminal acceleration wake-up method, comprising:
    检测用户对终端的按键进行操作以产生的按键事件;Detecting a button event that the user operates on the button of the terminal to generate;
    判断所述按键事件是否为终端唤醒事件,其中,所述终端唤醒事件用于将终端从休眠状态唤醒;Determining whether the button event is a terminal wake event, wherein the terminal wake event is used to wake the terminal from a sleep state;
    如果按键事件为终端唤醒事件,则在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端,其中,所述预设时间段包括将终端从休眠状态中唤醒的时间。If the button event is a terminal wake event, increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor to accelerate the wakeup terminal within a preset time period, wherein the preset time period includes The time the terminal wakes up from sleep.
  2. 根据权利要求1所述的方法,其特征在于,在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率还包括:The method of claim 1 wherein increasing the number of cores running in the processor and/or the frequency of cores running in the processor during a predetermined period of time further comprises:
    在预设时间段内根据终端的状态提高处理器中运行的内核的数量和/或处理器中运行的内核的频率,其中,所述终端的状态包括终端的温度以及终端是否正在充电中的至少一种。Increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the state of the terminal within a preset time period, wherein the state of the terminal includes at least a temperature of the terminal and whether the terminal is charging One.
  3. 根据权利要求2所述的方法,其特征在于,The method of claim 2 wherein:
    当所述终端的温度为第一温度时,则在预设时间段内将处理器中运行的内核的数量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;When the temperature of the terminal is the first temperature, the number of cores running in the processor is increased to a first quantity and/or the frequency of the core running in the processor is increased to a first frequency within a preset time period ;
    当所述终端的温度为第二温度时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率;When the temperature of the terminal is the second temperature, the number of cores running in the processor is increased to a second number and/or the frequency of the core running in the processor is raised to the second frequency within a preset time period ;
    其中,所述第一温度大于第二温度,所述第一数量小于第二数量,所述第一频率小于第二频率。Wherein the first temperature is greater than the second temperature, the first quantity is less than the second quantity, and the first frequency is less than the second frequency.
  4. 根据权利要求2所述的方法,其特征在于,The method of claim 2 wherein:
    当所述终端没有在充电时,则在预设时间段内将处理器中运行的内核的数量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;When the terminal is not charging, increasing the number of cores running in the processor to a first number and/or increasing the frequency of a core running in the processor to a first frequency for a preset period of time;
    当所述终端正在充电时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率; When the terminal is charging, increasing the number of cores running in the processor to a second number and/or increasing the frequency of the kernel running in the processor to a second frequency for a preset period of time;
    其中,所述第一数量小于第二数量,所述第一频率小于第二频率。Wherein the first quantity is less than the second quantity, and the first frequency is less than the second frequency.
  5. 根据权利要求1所述的方法,其特征在于,所述内核数量包括大核数量和小核数量中的至少一种。The method of claim 1 wherein the number of cores comprises at least one of a large number of cores and a small number of cores.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    同时显示在加速前唤醒终端所需要的时间以及在加速后唤醒终端所需要的时间。It also shows the time required to wake up the terminal before acceleration and the time required to wake up the terminal after acceleration.
  7. 根据权利要求1所述的方法,其特征在于,在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端具体包括:The method according to claim 1, wherein the step of increasing the number of cores running in the processor and/or the frequency of the kernel running in the processor to accelerate the wake-up terminal during the preset time period comprises:
    启动计时器,并提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端;Initiating a timer and increasing the number of cores running in the processor and/or the frequency of the core running in the processor to speed up the wake-up terminal;
    判断所述计时器的计时时间是否大于预设时间段;Determining whether the time counted by the timer is greater than a preset time period;
    如果大于预设时间段,则结束提高处理器中运行的内核的数量和/或处理器中运行的内核的频率。If greater than the preset time period, the end increases the number of cores running in the processor and/or the frequency of the kernel running in the processor.
  8. 根据权利要求1所述的方法,其特征在于,在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端之后,所述方法还包括:The method of claim 1 wherein after increasing the number of cores running in the processor and/or the frequency of cores running in the processor to accelerate the wake-up of the terminal for a predetermined period of time, the method further comprises :
    根据当前应用场景的类别重新确定处理器中运行的内核的数量和/或处理器中运行的内核的频率,所述应用场景的类别包括普通场景、音乐场景、拍照场景、轻量级游戏场景和重量级游戏场景。Redetermining the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the category of the current application scenario, the categories of the application scenario include a normal scene, a music scene, a photographing scene, a lightweight game scene, and Heavyweight game scene.
  9. 根据权利要求8所述的方法,其特征在于,The method of claim 8 wherein:
    当前应用场景的类别为普通场景时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;When the category of the current application scenario is a normal scenario, it is determined that the number of cores running in the processor is the third number and/or the frequency of the kernel running in the processor is the third frequency;
    当前应用场景的类别为音乐场景时,确定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;When the category of the current application scenario is a music scene, it is determined that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency;
    当前应用场景的类别为拍照场景时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;When the category of the current application scenario is a photographing scene, it is determined that the number of cores running in the processor is the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency;
    当前应用场景的类别为轻量级游戏场景时,确定处理器中运行的内核数量 为第六数量和/或处理器中运行的内核的频率为第六频率;Determine the number of cores running in the processor when the current application scenario is a lightweight game scenario The frequency of the kernel running in the sixth number and/or processor is the sixth frequency;
    当前应用场景的类别为重量级游戏场景时,确定处理器中运行的内核数量为第七数量和/或处理器中运行的内核的频率为第七频率;When the category of the current application scenario is a heavyweight game scenario, it is determined that the number of cores running in the processor is the seventh number and/or the frequency of the kernel running in the processor is the seventh frequency;
    其中,第三数量<第四数量<第五数量<第六数量<第七数量,第三频率<第四频率<第五频率<第六频率<第七频率。Wherein, the third number <fourth number <the fifth number <the sixth number <the seventh number, the third frequency <the fourth frequency <the fifth frequency <the sixth frequency <the seventh frequency.
  10. 一种终端加速唤醒装置,其特征在于,所述装置包括检测模块、判断模块以及提高模块,A terminal acceleration wake-up device, characterized in that the device comprises a detection module, a judgment module and an improvement module,
    所述检测模块用于检测用户对终端的按键进行操作以产生的按键事件;The detecting module is configured to detect a button event generated by a user operating a button of the terminal to generate a button event;
    所述判断模块用于判断所述按键事件是否为终端唤醒事件,其中,所述终端唤醒事件用于将终端从休眠状态唤醒;The determining module is configured to determine whether the button event is a terminal wake event, where the terminal wake event is used to wake the terminal from a sleep state;
    所述提高模块用于在按键事件为终端唤醒事件时,在预设时间段内提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端,其中,所述预设时间段包括将终端从休眠状态中唤醒的时间。The improvement module is configured to increase the number of cores running in the processor and/or the frequency of a kernel running in the processor to accelerate the wake-up terminal during a preset time period when the button event is a terminal wake-up event, wherein the The preset time period includes the time to wake up the terminal from the sleep state.
  11. 根据权利要求10所述的装置,其特征在于,所述提高模块用于在预设时间段内根据终端的状态提高处理器中运行的内核的数量和/或处理器中运行的内核的频率,其中,所述终端的状态包括终端的温度以及终端是否正在充电中的至少一种。The apparatus according to claim 10, wherein the improvement module is configured to increase the number of cores running in the processor and/or the frequency of the kernel running in the processor according to the state of the terminal within a preset period of time, The state of the terminal includes at least one of a temperature of the terminal and whether the terminal is charging.
  12. 根据权利要求11所述的装置,其特征在于,所述提高模块用于:The apparatus according to claim 11, wherein said improvement module is configured to:
    当所述终端的温度为第一温度时,则在预设时间段内将处理器中运行的内核的数量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;When the temperature of the terminal is the first temperature, the number of cores running in the processor is increased to a first quantity and/or the frequency of the core running in the processor is increased to a first frequency within a preset time period ;
    当所述终端的温度为第二温度时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率;When the temperature of the terminal is the second temperature, the number of cores running in the processor is increased to a second number and/or the frequency of the core running in the processor is raised to the second frequency within a preset time period ;
    其中,所述第一温度大于第二温度,所述第一数量小于第二数量,所述第一频率小于第二频率。Wherein the first temperature is greater than the second temperature, the first quantity is less than the second quantity, and the first frequency is less than the second frequency.
  13. 根据权利要求11所述的装置,其特征在于,所述提高模块用于:The apparatus according to claim 11, wherein said improvement module is configured to:
    当所述终端没有在充电时,则在预设时间段内将处理器中运行的内核的数 量提高至第一数量和/或将处理器中运行的内核的频率提高至第一频率;When the terminal is not charging, the number of cores running in the processor is within a preset time period Increase the amount to a first amount and/or increase the frequency of the core running in the processor to a first frequency;
    当所述终端正在充电时,则在预设时间段内将处理器中运行的内核的数量提高至第二数量和/或将处理器中运行的内核的频率提高至第二频率;When the terminal is charging, increasing the number of cores running in the processor to a second number and/or increasing the frequency of the kernel running in the processor to a second frequency for a preset period of time;
    其中,所述第一数量小于第二数量,所述第一频率小于第二频率。Wherein the first quantity is less than the second quantity, and the first frequency is less than the second frequency.
  14. 根据权利要求10所述的装置,其特征在于,所述装置还包括显示模块,The device according to claim 10, wherein said device further comprises a display module,
    所述显示模块用于同时显示在加速前唤醒终端所需要的时间以及在加速后唤醒终端所需要的时间。The display module is configured to simultaneously display the time required to wake up the terminal before acceleration and the time required to wake up the terminal after acceleration.
  15. 根据权利要求10所述的装置,其特征在于,所述提高模块用于:The apparatus according to claim 10, wherein said improvement module is configured to:
    启动计时器,并提高处理器中运行的内核的数量和/或处理器中运行的内核的频率以加速唤醒终端;Initiating a timer and increasing the number of cores running in the processor and/or the frequency of the core running in the processor to speed up the wake-up terminal;
    判断所述计时器的计时时间是否大于预设时间段;Determining whether the time counted by the timer is greater than a preset time period;
    如果大于预设时间段,则结束提高处理器中运行的内核的数量和/或处理器中运行的内核的频率。If greater than the preset time period, the end increases the number of cores running in the processor and/or the frequency of the kernel running in the processor.
  16. 根据权利要求10所述的装置,其特征在于,所述装置还包括重确定模块,The device according to claim 10, wherein said device further comprises a re-determination module,
    所述重确定模块用于根据当前应用场景的类别重新确定处理器中运行的内核的数量和/或处理器中运行的内核的频率,所述应用场景的类别包括普通场景、音乐场景、拍照场景、轻量级游戏场景和重量级游戏场景。The re-determination module is configured to re-determine the number of cores running in the processor and/or the frequency of the kernel running in the processor according to a category of the current application scenario, where the categories of the application scenarios include a common scene, a music scene, and a photographing scene. , lightweight game scenes and heavyweight game scenes.
  17. 根据权利要求16所述的装置,其特征在于,所述提高模块用于:The apparatus of claim 16 wherein said improvement module is for:
    当前应用场景的类别为普通场景时,确定处理器中运行的内核数量为第三数量和/或处理器中运行的内核的频率为第三频率;When the category of the current application scenario is a normal scenario, it is determined that the number of cores running in the processor is the third number and/or the frequency of the kernel running in the processor is the third frequency;
    当前应用场景的类别为音乐场景时,确定处理器中运行的内核数量为第四数量和/或处理器中运行的内核的频率为第四频率;When the category of the current application scenario is a music scene, it is determined that the number of cores running in the processor is the fourth number and/or the frequency of the kernel running in the processor is the fourth frequency;
    当前应用场景的类别为拍照场景时,确定处理器中运行的内核数量为第五数量和/或处理器中运行的内核的频率为第五频率;When the category of the current application scenario is a photographing scene, it is determined that the number of cores running in the processor is the fifth number and/or the frequency of the kernel running in the processor is the fifth frequency;
    当前应用场景的类别为轻量级游戏场景时,确定处理器中运行的内核数量为第六数量和/或处理器中运行的内核的频率为第六频率; When the category of the current application scenario is a lightweight game scenario, it is determined that the number of cores running in the processor is the sixth number and/or the frequency of the kernel running in the processor is the sixth frequency;
    当前应用场景的类别为重量级游戏场景时,确定处理器中运行的内核数量为第七数量和/或处理器中运行的内核的频率为第七频率;When the category of the current application scenario is a heavyweight game scenario, it is determined that the number of cores running in the processor is the seventh number and/or the frequency of the kernel running in the processor is the seventh frequency;
    其中,第三数量<第四数量<第五数量<第六数量<第七数量,第三频率<第四频率<第五频率<第六频率<第七频率。Wherein, the third number <fourth number <the fifth number <the sixth number <the seventh number, the third frequency <the fourth frequency <the fifth frequency <the sixth frequency <the seventh frequency.
  18. 一种电子设备,包括中央处理器和存储器,其特征在于,所述中央处理器用于执行如权利要求1至9任一权利要求所述的方法。An electronic device comprising a central processing unit and a memory, wherein the central processing unit is operative to perform the method of any of claims 1-9.
  19. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序被执行的情况下实现如权利要求1-9任一项所述的方法。A computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program is executed to implement the method of any one of claims 1-9.
  20. 一种程序产品,其特征在于,所述计算机程序被执行的情况下实现如权利要求1-9任一项所述的方法。 A program product, characterized in that the method according to any one of claims 1 to 9 is carried out in the case where the computer program is executed.
PCT/CN2017/086677 2016-05-31 2017-05-31 Terminal awakening accelerating method and related product WO2017206918A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610380685.6 2016-05-31
CN201610380685.6A CN106055400B (en) 2016-05-31 2016-05-31 Terminal accelerates awakening method and device

Publications (1)

Publication Number Publication Date
WO2017206918A1 true WO2017206918A1 (en) 2017-12-07

Family

ID=57172511

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/086677 WO2017206918A1 (en) 2016-05-31 2017-05-31 Terminal awakening accelerating method and related product

Country Status (2)

Country Link
CN (1) CN106055400B (en)
WO (1) WO2017206918A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590205A (en) * 2021-07-22 2021-11-02 北京经纬恒润科技股份有限公司 SOC (System on chip) sleep control method and device
CN113835985A (en) * 2021-09-27 2021-12-24 北京基调网络股份有限公司 Method, device and equipment for monitoring and analyzing cause of stuck

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055400B (en) * 2016-05-31 2019-05-14 Oppo广东移动通信有限公司 Terminal accelerates awakening method and device
CN107729133A (en) * 2017-10-26 2018-02-23 努比亚技术有限公司 A kind of method, terminal and computer-readable recording medium for running application program
CN114690883A (en) * 2020-12-28 2022-07-01 Oppo广东移动通信有限公司 Wearable device control method and device, wearable device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789301A (en) * 2012-05-17 2012-11-21 江苏中科梦兰电子科技有限公司 Power management method of computer
US20140013141A1 (en) * 2012-07-03 2014-01-09 Samsung Electronics Co. Ltd. Method and apparatus for controlling sleep mode in portable terminal
CN104461358A (en) * 2014-11-28 2015-03-25 小米科技有限责任公司 Method and device for lightening screen
CN104657057A (en) * 2015-01-06 2015-05-27 小米科技有限责任公司 Terminal waking method and device
CN104951035A (en) * 2014-03-26 2015-09-30 腾讯科技(深圳)有限公司 CPU frequency control method and device
CN106055400A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Method and device for accelerated awakening of terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999291A (en) * 2012-09-25 2013-03-27 广东欧珀移动通信有限公司 Method for waking up mobile terminal in standby state
US20140237475A1 (en) * 2013-02-15 2014-08-21 Apple Inc. Sleep/wake with suppression and donated importance
CN105573372B (en) * 2015-12-22 2017-09-15 广东欧珀移动通信有限公司 A kind of control method and device of intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789301A (en) * 2012-05-17 2012-11-21 江苏中科梦兰电子科技有限公司 Power management method of computer
US20140013141A1 (en) * 2012-07-03 2014-01-09 Samsung Electronics Co. Ltd. Method and apparatus for controlling sleep mode in portable terminal
CN104951035A (en) * 2014-03-26 2015-09-30 腾讯科技(深圳)有限公司 CPU frequency control method and device
CN104461358A (en) * 2014-11-28 2015-03-25 小米科技有限责任公司 Method and device for lightening screen
CN104657057A (en) * 2015-01-06 2015-05-27 小米科技有限责任公司 Terminal waking method and device
CN106055400A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Method and device for accelerated awakening of terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590205A (en) * 2021-07-22 2021-11-02 北京经纬恒润科技股份有限公司 SOC (System on chip) sleep control method and device
CN113590205B (en) * 2021-07-22 2024-01-19 北京经纬恒润科技股份有限公司 Dormancy control method and device of SOC
CN113835985A (en) * 2021-09-27 2021-12-24 北京基调网络股份有限公司 Method, device and equipment for monitoring and analyzing cause of stuck
CN113835985B (en) * 2021-09-27 2023-09-29 北京基调网络股份有限公司 Method, device and equipment for monitoring and analyzing jamming reason

Also Published As

Publication number Publication date
CN106055400B (en) 2019-05-14
CN106055400A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
CN106686396B (en) Method and system for switching live broadcast room
WO2017008569A1 (en) Message updating method, apparatus, and terminal
WO2017206918A1 (en) Terminal awakening accelerating method and related product
WO2018032581A1 (en) Method and apparatus for application program control
WO2017125027A1 (en) Method and device for displaying information, and computer storage medium
WO2017129031A1 (en) Information acquisition method and device
WO2017206915A1 (en) Method for determining kernel running configuration in processor and related product
WO2015043194A1 (en) Virtual keyboard display method and apparatus, and terminal
WO2017206902A1 (en) Application control method and related device
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
WO2018161539A1 (en) Control method and apparatus for turning on screen
CN106406924B (en) Control method and device for starting and quitting picture of application program and mobile terminal
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
WO2016119165A1 (en) Chat history display method and apparatus
EP3418871B1 (en) Swiping response acceleration method and related products
WO2019007371A1 (en) Method for preventing information from being stolen, storage device, and mobile terminal
WO2018040844A1 (en) Method, device, and apparatus for voice control based on vehicle multimedia apparatus
WO2014146612A1 (en) Startup item consumed time acquisition method and device
WO2017206860A1 (en) Processing method of mobile terminal and mobile terminal
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
WO2018045874A1 (en) Method for information processing and related product
CN107193551B (en) Method and device for generating image frame
CN108200635B (en) Operation control method of application program and mobile terminal
WO2015078349A1 (en) Microphone sound-reception status switching method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17805863

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17805863

Country of ref document: EP

Kind code of ref document: A1