CN108762813A - screen awakening method and device - Google Patents

screen awakening method and device Download PDF

Info

Publication number
CN108762813A
CN108762813A CN201810496224.4A CN201810496224A CN108762813A CN 108762813 A CN108762813 A CN 108762813A CN 201810496224 A CN201810496224 A CN 201810496224A CN 108762813 A CN108762813 A CN 108762813A
Authority
CN
China
Prior art keywords
acceleration
mobile terminal
screen
detection interval
preset quantity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810496224.4A
Other languages
Chinese (zh)
Other versions
CN108762813B (en
Inventor
汤镇辉
林春德
孙孝文
仵小勇
邱文挺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meitu Mobile Technology Co Ltd
Original Assignee
Xiamen Meitu Mobile Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201810496224.4A priority Critical patent/CN108762813B/en
Publication of CN108762813A publication Critical patent/CN108762813A/en
Application granted granted Critical
Publication of CN108762813B publication Critical patent/CN108762813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

A kind of screen awakening method of the application offer and device, are applied to mobile terminal, the method includes:Mobile terminal screen suspend mode in a dormant state when, periodically obtain the acceleration at least two direction of mobile terminal, and using the acceleration information at least two direction got as one group of one buffer queue of deposit, wherein, the direction vertical with plane where the screen of the mobile terminal is Z-direction, and the direction that the longer sides of the screen of the mobile terminal extend is Y direction;Detect the first preset quantity group obtained recently in the buffer queue plus degree speed variation tendency;If detecting in the first preset quantity group degree of adding speed, Z-direction acceleration is reduced while Y direction acceleration increases, then wakes up the screen of the mobile terminal.In this way, when mobile terminal is lifted, screen can automatically be waken up by not needing complicated operational motion, convenient for users, improve user experience.

Description

Screen awakening method and device
Technical field
This application involves technical field of mobile terminals, in particular to a kind of screen awakening method and device.
Background technology
Mobile terminal in order to usually save electric energy ensure continuation of the journey or screen is accidentally touched in order to prevent, screen state is general All include bright screen state and screen lock state, under bright screen state, the screen of mobile terminal can show content, and can respond use The operation at family;Under screen lock state, the screen of mobile terminal do not show in be perhaps not responding to user's operation.In the prior art, it uses It when family needs from screen lock state to wake up mobile terminal needs to bright screen state, or needs to press specific physical button, or needs Complicated click or slide are carried out on touching screen, but in some scenes, user inconvenient may carry out such It is complicated to wake up screen to operate.
Invention content
In order to overcome at least one deficiency in the prior art, the application's is designed to provide a kind of screen wake-up side Method is applied to mobile terminal, the method includes:
Mobile terminal screen suspend mode in a dormant state when, periodically obtain mobile terminal at least two direction Acceleration, and using the acceleration information at least two direction got as one group of one buffer queue of deposit, wherein with The vertical direction of plane where the screen of the mobile terminal is Z-direction, and the longer sides of the screen of the mobile terminal extend Direction be Y direction;
Detect the first preset quantity group obtained recently in the buffer queue plus degree speed variation tendency;
If detecting in the first preset quantity group degree of adding speed, Z-direction adds while Y direction acceleration increases Speed is reduced, then wakes up the screen of the mobile terminal.
Optionally, if described detect in the first preset quantity group degree of adding speed, Y direction acceleration is increased same When Z-direction acceleration reduce, then the step of waking up the screen of the mobile terminal, including:
If detecting in the first preset quantity group degree of adding speed, Z-direction adds while Y direction acceleration increases Speed is reduced, then whether using the preset quantity group acceleration as the first detection interval, detecting in first detection interval has Y-axis The acceleration in direction is more than default first acceleration rate threshold;
If it is more than first acceleration rate threshold to detect first detection interval not having the acceleration of Y direction, Wake up the screen of the mobile terminal.
Optionally, it is more than predetermined acceleration whether to have the acceleration of Y direction in described detection first detection interval After the step of threshold value, the method further includes:
If it is more than first acceleration rate threshold to detect first detection interval to have the acceleration of Y direction, obtain Take the second preset quantity group acceleration stored earlier than first detection interval in the buffer queue as the second detection zone Between, and the third preset quantity group acceleration for being later than the first detection interval storage in the buffer queue is obtained as third Detection interval;
Detect the variation tendency of acceleration in second detection interval and third detection interval;
It is more than the second acceleration in the acceleration of second detection interval and any axis of third detection interval if detecting The acceleration quantity of threshold value is more than the 4th predetermined threshold value, then does not execute the action for the screen for waking up the mobile terminal;
It is more than the second acceleration in the acceleration of second detection interval and any axis of third detection interval if detecting The acceleration quantity of threshold value is no more than the 4th predetermined threshold value, then wakes up the screen of the mobile terminal.
Optionally, first acceleration rate threshold is 1.5 times of acceleration of gravity.
Optionally, the first preset quantity group obtained recently in the detection buffer queue plus degree speed variation The step of trend, including:
The disposal of gentle filter is carried out to each axial acceleration in the buffer queue, to filter subtle shake and add Then the data noise of the formation of velocity sensor itself detects the first preset quantity group obtained recently in the buffer queue Plus degree speed variation tendency.
The another object of the application is a kind of screen Rouser, is applied to mobile terminal, and described device includes:
Acceleration acquisition module, the acceleration for periodically obtaining at least two direction of mobile terminal, and will obtain The acceleration information at least two direction arrived is as one group of one buffer queue of deposit, wherein with the mobile terminal The vertical direction of plane where screen is Z-direction, and the direction that the longer sides of the screen of the mobile terminal extend is Y-axis side To;
Detection module, for detecting the first preset quantity group obtained recently in the buffer queue plus degree speed change Change trend;
Execution module, if for detecting in the first preset quantity group degree of adding speed, Y direction acceleration is increased Z-direction acceleration is reduced simultaneously, then wakes up the screen of the mobile terminal.
Optionally, if the execution module is specifically used for detecting in the first preset quantity group degree of adding speed, Y-axis side Z-direction acceleration is reduced while increase to acceleration, then using the preset quantity group acceleration as the first detection interval, inspection Whether survey has the acceleration of Y direction in first detection interval be more than default first acceleration rate threshold;If detecting described It is more than first acceleration rate threshold that one detection interval, which does not have the acceleration of Y direction, then wakes up the screen of the mobile terminal.
Optionally, the execution module is additionally operable to whether have adding for Y direction in described detection first detection interval Speed is more than after predetermined acceleration threshold value, if detecting, first detection interval has the acceleration of Y direction more than institute The first acceleration rate threshold is stated, then obtains the second preset quantity group stored earlier than first detection interval in the buffer queue Acceleration as the second detection interval, and obtain be later than in the buffer queue first detection interval storage third it is default Sets of numbers acceleration is as third detection interval;Detect the variation of acceleration in second detection interval and third detection interval Trend;It is more than the second acceleration rate threshold in the acceleration of second detection interval and any axis of third detection interval if detecting Acceleration quantity be more than the 4th predetermined threshold value, then do not execute the action for the screen for waking up the mobile terminal;If detecting institute It states in the acceleration of the second detection interval and any axis of third detection interval and is more than the acceleration quantity of the second acceleration rate threshold not More than the 4th predetermined threshold value, then the screen of the mobile terminal is waken up.
Optionally, first acceleration rate threshold is 1.5 times of acceleration of gravity.
Optionally, the detection module is specifically used for smoothly filtering each axial acceleration in the buffer queue Then wave processing detects the caching team to filter the data noise of subtle shake and the formation of acceleration transducer itself The the first preset quantity group obtained recently in row plus degree speed variation tendency.
In terms of existing technologies, the embodiment of the present application has the advantages that:
Screen awakening method and device provided by the embodiments of the present application, by detecting mobile terminal Y direction and Z-direction The variation tendency of acceleration identifies the lift action of mobile terminal, and then automatically carries out and wake up the dynamic of mobile terminal screen Make.In this way, when mobile terminal is lifted, screen can automatically be waken up by not needing complicated operational motion, facilitate user It uses, improves user experience.
Description of the drawings
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present application Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the block diagram of mobile terminal provided by the embodiments of the present application;
Fig. 2 is the flow diagram of screen awakening method provided by the embodiments of the present application;
Fig. 3 is acceleration direction schematic diagram provided by the embodiments of the present application;
Fig. 4 is mobile terminal lift action schematic diagram provided by the embodiments of the present application
Fig. 5 is that mobile terminal provided by the embodiments of the present application shakes brief acceleration variation tendency schematic diagram;
Fig. 6 is that mobile terminal provided by the embodiments of the present application quickly lifts brief acceleration variation tendency schematic diagram;
Fig. 7 is the high-level schematic functional block diagram of screen Rouser provided by the embodiments of the present application.
Icon:100- mobile terminals;110- screen Rousers;111- acceleration acquisition modules;112- detection modules; 113- execution modules;120- memories;130- processing units;140- acceleration transducers.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
Therefore, below the detailed description of the embodiments herein to providing in the accompanying drawings be not intended to limit it is claimed Scope of the present application, but be merely representative of the selected embodiment of the application.Based on the embodiment in the application, this field is common The every other embodiment that technical staff is obtained without creative efforts belongs to the model of the application protection It encloses.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.
In the description of the present application, it should be noted that term " first ", " second ", " third " etc. are only used for distinguishing and retouch It states, is not understood to indicate or imply relative importance.
In addition, the terms such as term "horizontal", "vertical", " pendency " are not offered as requiring component abswolute level or pendency, and It is that can be slightly tilted.It is not to indicate the structure if "horizontal" refers to only that its direction is more horizontal with respect to for "vertical" It has to fully horizontally, but can be slightly tilted.
In the description of the present application, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting ", " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one Connect to body;It can be mechanical connection, can also be electrical connection;It can be directly connected, it can also be indirect by intermediary It is connected, can is the connection inside two elements.For the ordinary skill in the art, on being understood with concrete condition State the concrete meaning of term in this application.
Fig. 1 is please referred to, Fig. 1 is the block diagram for the mobile terminal 100 that the application preferred embodiment provides.The movement Terminal 100 includes screen Rouser 110, memory 120, processing unit 130 and acceleration transducer 140.
The memory 120, processing unit 130 are directly or indirectly electrically connected between each other, to realize the biography of data Defeated or interaction.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.Institute The memory can be stored in including at least one in the form of software or firmware (firmware) by stating screen Rouser 110 In 120 or the software function module that is solidificated in the operating system (operating system, OS) of the mobile terminal 100. The processing unit 130 is for executing the executable module stored in the memory 120, such as the screen Rouser Software function module and computer program included by 110 etc..
The acceleration transducer 140 is connect with the processing unit 130, for acquiring adding for the mobile terminal 100 Speed data is simultaneously sent to the processor unit 130, and in the present embodiment, the acceleration transducer 140 can be three axis Acceleration transducer.
In one example, the processing unit 130 may include for collected to the acceleration transducer 140 The MCU or ADSP that data are handled, and the CPU for running android system.
The memory 120 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memory 120 is for storing program, and the processing unit 130 executes described program after receiving and executing instruction.
Fig. 2 is please referred to, Fig. 2 is a kind of flow chart of screen awakening method applied to mobile terminal 100 shown in FIG. 1, It below will be to the method includes each steps to be described in detail.
Step S110, mobile terminal screen suspend mode in a dormant state when, periodically obtain mobile terminal 100 to The acceleration of few both direction, and cached the acceleration information at least two direction got as one group of deposit one Queue, wherein the direction vertical with plane where the screen of the mobile terminal 100 is Z-direction, the mobile terminal 100 Screen longer sides extend direction be Y direction.
In the present embodiment, the acceleration transducer 140 can be multi-shaft acceleration transducer 140, described mobile whole At least two axis that end 100 periodically obtains the multi-shaft acceleration transducer 140 currently acquire acceleration.Wherein, please join According to Fig. 3, in the present embodiment, though with the mobile terminal 100 the direction of screen vertical be Z-direction;Described mobile whole It holds 100 screens institute in the plane, is Y direction along the direction that 100 longer sides of the mobile terminal extend, along the mobile terminal The direction that 100 shorter edges extend is X-direction.
The mobile terminal 100 is pre-configured with there are one buffer queue, which is first in, first out (firstin- Firstout, abbreviation FIFO) queue, for example, the fifo queue can be the fifo queue in MCU or ADSP.The movement Collected one group of acceleration information is stored the top of the buffer queue by terminal 100 every time, and abandons the buffer queue bottom One group of acceleration information.In the present embodiment, the period of acceleration sampling could be provided as 5ms.
Step S120 detects the first preset quantity group obtained recently in the buffer queue plus degree speed variation and becomes Gesture.
In the present embodiment, after having new acceleration information to be stored in the buffer queue, the mobile terminal 100 is right Each axial acceleration deposited in the buffer queue carries out the disposal of gentle filter, is passed with filtering subtle shake and acceleration The data noise of the formation of itself of sensor 140.
Then the first preset quantity group obtained recently plus degree speed variation tendency, for example, the mobile terminal 100 After carrying out the disposal of gentle filter, the 50 groups of acceleration informations acquired recently, the variation tendency that wherein each axis of detection accelerates are obtained.
Step S130, if detecting in the first preset quantity group degree of adding speed, while Y direction acceleration increases Z-direction acceleration is reduced, then wakes up the screen of the mobile terminal 100.
It is found through inventor's numerous studies, the mistake that user facilitates the position of viewing is raised up in the mobile terminal 100 Cheng Zhong, usual Y-axis and Z axis have certain changing rule, please refer to Fig. 4, when mobile terminal 100 is static to be placed on, Acceleration on usual Z axis is current acceleration of gravity, and Y-axis and X-axis acceleration are essentially 0.100 quilt of the mobile terminal It can be generally lifted up when user lifts viewing, and the screen of final mobile terminal 100 can be at an angle to the horizontal surface.It is mobile Y-axis acceleration during being elevated of terminal 100 would generally increase since 0, final to stablize in acceleration of gravity On component.And the acceleration of Z axis script is current acceleration of gravity, can finally be stablized in a small acceleration of gravity after lifting On component.That is, Y-axis acceleration can rise during lifting, Z axis acceleration can decline.
Therefore in the present embodiment, the mobile terminal 100 exists in detecting the first preset quantity group acceleration The trend of Z-direction acceleration reduction while Y direction acceleration increases, then it is assumed that mobile terminal 100 is lifted viewing, needs Wake up the screen of the mobile terminal 100.
Optionally, it is judged by accident caused by being shaken for mobile phone, in the present embodiment, the mobile terminal 100 is detecting It states in the first preset quantity group acceleration, the trend of Z-direction acceleration reduction while increase there are Y direction acceleration, And X-direction acceleration fluctuation range it is little when, wake up the screen of the mobile terminal 100.
Based on above-mentioned design, scheme provided in this embodiment can be by identifying Y direction and Z-direction acceleration change Trend, relatively accurately determine the lift action of mobile terminal 100 automatically.Some in compared with the prior art pass through starting Inclination angle and termination point inclination angle judge that the scheme that mobile terminal 100 lifts, scheme provided in this embodiment without waiting for moving 100 lift action of terminal completely stablize after could judge to lift, scheme provided in this embodiment can energy basis lift process Variation identify lift action, recognition speed is rapider, reduces period of reservation of number, improves user experience.
Further, in some cases, it is possible to which some occur for mobile terminal 100 rock to be that will appear Y direction to add The case where Z-direction acceleration is reduced while speed increases, may cause the screen of mobile terminal 100 by false wake-up.
In order to be found through inventor, during usually normally lifting, the acceleration of Y-axis will not be very big, and shakes suddenly In dynamic, Y-axis instantaneous acceleration may be very big.Therefore in the present embodiment, if the mobile terminal 100 detects described first In preset quantity group degree of adding speed, Z-direction acceleration is reduced while Y direction acceleration increases, then by the preset quantity For group acceleration as the first detection interval, whether detect has the acceleration of Y direction in first detection interval be more than default the One acceleration rate threshold.Wherein, first acceleration rate threshold can be 1.5 times of acceleration of gravity.
If it is more than first acceleration rate threshold to detect first detection interval not having the acceleration of Y direction, recognize It is normally lifted for the mobile terminal 100, then wakes up the screen of the mobile terminal 100.
Situation is write another, user quickly lifts mobile terminal 100 very much may also lead to the acceleration of Y circumferential directions It is excessive, therefore in the present embodiment, it is also necessary to the action recognition quickly lifted is come out.
Specifically, if it is more than institute that the mobile terminal 100, which detects that first detection interval has the acceleration of Y direction, The first acceleration rate threshold is stated, then obtains the second preset quantity group stored earlier than first detection interval in the buffer queue Acceleration as the second detection interval, and obtain be later than in the buffer queue first detection interval storage third it is default Sets of numbers acceleration is as third detection interval.
In the present embodiment, if detecting in the first preset quantity group degree of adding speed, Y direction acceleration is increased Z-direction acceleration is reduced simultaneously, then (is denoted as in the present embodiment using the preset quantity group acceleration as the first detection interval D1), after recording D1, mobile terminal 100 is still in the action for continuing to execute acquisition acceleration and is stored in the buffer queue Action.
If detecting in the first preset quantity group degree of adding speed, Z-direction adds while Y direction acceleration increases Speed is reduced, and it is more than first acceleration rate threshold to detect that first detection interval has the acceleration of Y direction, then needs The identification of quick lift action is carried out, the mobile terminal 100 obtains in the buffer queue earlier than first detection zone Between the second preset quantity group acceleration for storing as the second detection interval (being denoted as D2 in the present embodiment), and obtain the caching It is later than the third preset quantity group acceleration of the first detection interval storage in queue as third detection interval (the present embodiment In be denoted as D2).
Then, the mobile terminal 100 detects the variation of acceleration in second detection interval and third detection interval Trend.
Through inventor the study found that when mobile terminal 100 is vigorously dynamic, the acceleration of multiple axis of mobile terminal 100 is general It can fluctuate repeatedly.For example, please referring to Fig. 5, series 1 indicates that X-axis acceleration, series 2 indicate Y-axis acceleration, series in Fig. 5 Z identifies axle acceleration.
Therefore if the mobile terminal 100 detects the acceleration of second detection interval and any axis of third detection interval Acceleration quantity in degree more than the second acceleration rate threshold is more than the 4th predetermined threshold value, then does not execute and wake up the mobile terminal The action of 100 screen.
Wherein, the 4th predetermined threshold value could be provided as 2 that is, such as may determine that D0 D2 acceleration informations In, if the acceleration of any one axis has 2 or more big wave crests to be considered the data all shaken.In this case, it does not execute and calls out The action of 100 screen of the awake mobile terminal.
And during mobile terminal 100 quickly lifts, each axle acceleration is the process that one-shot change rear region is stablized.Example Such as, Fig. 6 is please referred to, series 1 indicates that X-axis acceleration, series 2 indicate that Y-axis acceleration, serial Z identify axle acceleration in Fig. 6.
Therefore if the mobile terminal 100 detects the acceleration of second detection interval and any axis of third detection interval It is no more than the 4th predetermined threshold value more than the acceleration quantity of the second acceleration rate threshold in degree, then wakes up the mobile terminal 100 Screen.
Further, in the present embodiment, after the screen of the mobile terminal 100 being waken up by step S130, stop Continue to execute step S110.In other words, after the screen for waking up the mobile terminal 100, stop obtaining described mobile whole End acceleration is used to wake up the action of screen.
Based on above-mentioned design, scheme provided in this embodiment can be lifted with the general lift action of automatic identification and quickly dynamic Make, and eliminates probably due to data interference caused by shaking, keeps the identification of lift action more accurate.
Fig. 7 is please referred to, the present embodiment also provides a kind of screen Rouser applied to mobile terminal 100 shown in Fig. 1 110, described device includes acceleration acquisition module 111, detection module 112 and execution module 113.
Acceleration acquisition module 111, for mobile terminal screen suspend mode in a dormant state when, periodically obtain The acceleration in 100 at least two direction of mobile terminal, and using the acceleration information at least two direction got as One group of one buffer queue of deposit, wherein the direction vertical with plane where the screen of the mobile terminal 100 is Z-direction, institute The direction for stating the longer sides extension of the screen of mobile terminal 100 is Y direction.
In the present embodiment, the acceleration acquisition module 111 can be used for executing step S110 shown in Fig. 2, about described The specific descriptions of acceleration acquisition module 111 can join the description to the step S110.
Optionally, the detection module 112 is specifically used for putting down each axial acceleration in the buffer queue Cunning is filtered, to filter the data noise of subtle shake and acceleration transducer 140 formation of itself, then described in detection The the first preset quantity group obtained recently in buffer queue plus degree speed variation tendency.
Detection module 112 spends speed for detecting adding for the first preset quantity group obtained recently in the buffer queue Variation tendency.
In the present embodiment, the detection module 112 can be used for executing step S120 shown in Fig. 2, about the detection mould The specific descriptions of block 112 can join the description to the step S120.
Execution module 113, if for detecting in the first preset quantity group degree of adding speed, Y direction acceleration increases Z-direction acceleration is reduced while big, then wakes up the screen of the mobile terminal 100.
In the present embodiment, the execution module 113 can be used for executing step S130 shown in Fig. 2, about the execution mould The specific descriptions of block 113 can join the description to the step S130.
Optionally, if the execution module 113 is specifically used for detecting in the first preset quantity group degree of adding speed, Y Z-direction acceleration is reduced while axis direction acceleration increases, then using the preset quantity group acceleration as the first detection zone Between, whether detect has the acceleration of Y direction in first detection interval be more than default first acceleration rate threshold;If detecting institute It is more than first acceleration rate threshold to state the first detection interval not having the acceleration of Y direction, then wakes up the mobile terminal 100 Screen.
Optionally, first acceleration rate threshold is 1.5 times of acceleration of gravity.
Optionally, the execution module 113 is additionally operable to whether have Y direction in described detection first detection interval After acceleration is more than predetermined acceleration threshold value, if detecting, first detection interval has the acceleration of Y direction to be more than First acceleration rate threshold then obtains the second preset quantity stored earlier than first detection interval in the buffer queue Group acceleration as the second detection interval, and obtain be later than in the buffer queue first detection interval storage third it is pre- If sets of numbers acceleration is as third detection interval;Detect the change of acceleration in second detection interval and third detection interval Change trend;It is more than the second acceleration threshold in the acceleration of second detection interval and any axis of third detection interval if detecting The acceleration quantity of value is more than the 4th predetermined threshold value, then does not execute the action for the screen for waking up the mobile terminal 100;If detection To the acceleration number of degrees for being more than the second acceleration rate threshold in the acceleration of second detection interval and any axis of third detection interval Amount is no more than the 4th predetermined threshold value, then wakes up the screen of the mobile terminal 100.
In conclusion screen awakening method provided by the embodiments of the present application and device, by detecting mobile terminal Y direction The lift action of mobile terminal is identified with the variation tendency of Z-direction acceleration, and then automatically carries out wake-up mobile terminal The action of screen.In this way, when mobile terminal is lifted, screen can automatically be waken up by not needing complicated operational motion, side User use, improve user experience.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown According to the device, the architectural framework in the cards of method and computer program product, function of multiple embodiments of the application And operation.In this regard, each box in flowchart or block diagram can represent one of a module, section or code Point, a part for the module, section or code includes one or more for implementing the specified logical function executable Instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be attached to be different from The sequence marked in figure occurs.For example, two continuous boxes can essentially be basically executed in parallel, they also may be used sometimes To execute in the opposite order, this is depended on the functions involved.It is also noted that each of block diagram and or flow chart The combination of box in box and block diagram and or flow chart, function or the dedicated of action are based on as defined in execution The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each function module in each embodiment of the application can integrate to form an independent portion Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of step. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The above, the only specific implementation mode of the application, but the protection domain of the application is not limited thereto, it is any Those familiar with the art can easily think of the change or the replacement in the technical scope that the application discloses, and should all contain It covers within the protection domain of the application.Therefore, the protection domain of the application shall be subject to the protection scope of the claim.

Claims (10)

1. a kind of screen awakening method, which is characterized in that it is applied to mobile terminal, the method includes:
Mobile terminal screen suspend mode in a dormant state when, periodically obtain at least two direction of mobile terminal plus Speed, and using the acceleration information at least two direction got as one group of one buffer queue of deposit, wherein with institute The vertical direction of plane where stating the screen of mobile terminal is Z-direction, the longer sides extension of the screen of the mobile terminal Direction is Y direction;
Detect the first preset quantity group obtained recently in the buffer queue plus degree speed variation tendency;
If detecting in the first preset quantity group degree of adding speed, Z-direction acceleration while Y direction acceleration increases It reduces, then wakes up the screen of the mobile terminal.
2. according to the method described in claim 1, it is characterized in that, if described detect the first preset quantity group degree of adding speed In degree, Z-direction acceleration is reduced while Y direction acceleration increases, then the step of waking up the screen of the mobile terminal, packet It includes:
If detecting in the first preset quantity group degree of adding speed, Z-direction acceleration while Y direction acceleration increases It reduces, then whether using the preset quantity group acceleration as the first detection interval, detecting in first detection interval has Y direction Acceleration be more than default first acceleration rate threshold;
If it is more than first acceleration rate threshold to detect first detection interval not having the acceleration of Y direction, wake up The screen of the mobile terminal.
3. according to the method described in claim 2, it is characterized in that, whether having Y-axis in described detection first detection interval After the step of acceleration in direction is more than predetermined acceleration threshold value, the method further includes:
If it is more than first acceleration rate threshold to detect first detection interval to have the acceleration of Y direction, institute is obtained The the second preset quantity group acceleration stored earlier than first detection interval in buffer queue is stated as the second detection interval, and The third preset quantity group acceleration for being later than the first detection interval storage in the buffer queue is obtained as third detection Section;
Detect the variation tendency of acceleration in second detection interval and third detection interval;
It is more than the second acceleration rate threshold in the acceleration of second detection interval and any axis of third detection interval if detecting Acceleration quantity be more than the 4th predetermined threshold value, then do not execute the action for the screen for waking up the mobile terminal;
It is more than the second acceleration rate threshold in the acceleration of second detection interval and any axis of third detection interval if detecting Acceleration quantity be no more than the 4th predetermined threshold value, then wake up the screen of the mobile terminal.
4. according to the method described in claim 2, it is characterized in that, first acceleration rate threshold is 1.5 times of acceleration of gravity.
5. according to the method described in claim 1, it is characterized in that, obtained recently in the detection buffer queue first The step of preset quantity group plus degree speed variation tendency, including:
The disposal of gentle filter is carried out to each axial acceleration in the buffer queue, to filter subtle shake and acceleration Then the data noise of the formation of sensor itself detects adding for the first preset quantity group obtained recently in the buffer queue Spend the variation tendency of speed.
6. a kind of screen Rouser, which is characterized in that be applied to mobile terminal, described device includes:
Acceleration acquisition module, acceleration for periodically obtaining mobile terminal at least two direction, and will get The acceleration information at least two direction is as one group of one buffer queue of deposit, wherein the screen with the mobile terminal Plane vertical direction in place is Z-direction, and the direction that the longer sides of the screen of the mobile terminal extend is Y direction;
Detection module becomes for detecting the first preset quantity group obtained recently in the buffer queue plus degree speed variation Gesture;
Execution module, if for detecting in the first preset quantity group degree of adding speed, while Y direction acceleration increases Z-direction acceleration is reduced, then wakes up the screen of the mobile terminal.
7. device according to claim 6, which is characterized in that if the execution module is specifically used for detecting described first In preset quantity group degree of adding speed, Z-direction acceleration is reduced while Y direction acceleration increases, then by the preset quantity For group acceleration as the first detection interval, whether detect has the acceleration of Y direction in first detection interval be more than default the One acceleration rate threshold;If it is more than the first acceleration threshold to detect first detection interval not having the acceleration of Y direction Value, then wake up the screen of the mobile terminal.
8. device according to claim 7, which is characterized in that the execution module is additionally operable in the detection first inspection Survey section in whether have Y direction acceleration be more than predetermined acceleration threshold value after, if detecting first detection zone Between have Y direction acceleration be more than first acceleration rate threshold, then obtain in the buffer queue earlier than it is described first inspection The second preset quantity group acceleration of section storage is surveyed as the second detection interval, and obtain be later than in the buffer queue it is described The third preset quantity group acceleration of first detection interval storage is as third detection interval;Detect second detection interval and The variation tendency of acceleration in third detection interval;If detecting second detection interval and any axis of third detection interval Acceleration quantity in acceleration more than the second acceleration rate threshold is more than the 4th predetermined threshold value, then does not execute and wake up the movement eventually The action of the screen at end;It is more than second in the acceleration of second detection interval and any axis of third detection interval if detecting The acceleration quantity of acceleration rate threshold is no more than the 4th predetermined threshold value, then wakes up the screen of the mobile terminal.
9. device according to claim 7, which is characterized in that first acceleration rate threshold is 1.5 times of acceleration of gravity.
10. device according to claim 6, which is characterized in that the detection module is specifically used for the buffer queue In each axial acceleration carry out the disposal of gentle filter, to filter subtle shake and the formation of acceleration transducer itself Then data noise detects the first preset quantity group obtained recently in the buffer queue plus degree speed variation tendency.
CN201810496224.4A 2018-05-22 2018-05-22 Screen awakening method and device Active CN108762813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810496224.4A CN108762813B (en) 2018-05-22 2018-05-22 Screen awakening method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810496224.4A CN108762813B (en) 2018-05-22 2018-05-22 Screen awakening method and device

Publications (2)

Publication Number Publication Date
CN108762813A true CN108762813A (en) 2018-11-06
CN108762813B CN108762813B (en) 2020-03-10

Family

ID=64008616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810496224.4A Active CN108762813B (en) 2018-05-22 2018-05-22 Screen awakening method and device

Country Status (1)

Country Link
CN (1) CN108762813B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163213A (en) * 2019-11-20 2020-05-15 华为技术有限公司 Terminal control method and device and terminal equipment
CN112114883A (en) * 2020-09-11 2020-12-22 青岛海信移动通信技术股份有限公司 Terminal awakening method, terminal and computer storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103135908A (en) * 2013-03-15 2013-06-05 广东睿江科技有限公司 Screen unlocking method and system
CN103401961A (en) * 2013-07-23 2013-11-20 广东欧珀移动通信有限公司 Method and system for automatically lightening screen of mobile phone
US20140092039A1 (en) * 2012-09-28 2014-04-03 Kabushiki Kaisha Toshiba Electronic Device, Program and Lock Control Method
CN106020670A (en) * 2016-05-24 2016-10-12 北京搜狗科技发展有限公司 Screen lightening control method, device and electronic equipment
CN106227355A (en) * 2016-09-09 2016-12-14 广东乐源数字技术有限公司 A kind of Intelligent bracelet of the bright screen that realizes raising one's hand
US20170083695A1 (en) * 2015-09-21 2017-03-23 The Eye Tribe Method for using eye tracking and eye biometrics for authentication
CN108021224A (en) * 2016-10-31 2018-05-11 腾讯科技(深圳)有限公司 Screen lights method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140092039A1 (en) * 2012-09-28 2014-04-03 Kabushiki Kaisha Toshiba Electronic Device, Program and Lock Control Method
CN103135908A (en) * 2013-03-15 2013-06-05 广东睿江科技有限公司 Screen unlocking method and system
CN103401961A (en) * 2013-07-23 2013-11-20 广东欧珀移动通信有限公司 Method and system for automatically lightening screen of mobile phone
US20170083695A1 (en) * 2015-09-21 2017-03-23 The Eye Tribe Method for using eye tracking and eye biometrics for authentication
CN106020670A (en) * 2016-05-24 2016-10-12 北京搜狗科技发展有限公司 Screen lightening control method, device and electronic equipment
CN106227355A (en) * 2016-09-09 2016-12-14 广东乐源数字技术有限公司 A kind of Intelligent bracelet of the bright screen that realizes raising one's hand
CN108021224A (en) * 2016-10-31 2018-05-11 腾讯科技(深圳)有限公司 Screen lights method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163213A (en) * 2019-11-20 2020-05-15 华为技术有限公司 Terminal control method and device and terminal equipment
CN112114883A (en) * 2020-09-11 2020-12-22 青岛海信移动通信技术股份有限公司 Terminal awakening method, terminal and computer storage medium

Also Published As

Publication number Publication date
CN108762813B (en) 2020-03-10

Similar Documents

Publication Publication Date Title
EP3575962B1 (en) Method and device for preloading application, storage medium and intelligent terminal
US11164285B2 (en) Electronic device and method for displaying image on a display to prevent burn-in of the display
CN107273130B (en) Method, device and terminal for accelerating interface drawing
KR102311817B1 (en) Electronic device and method for managung power in electronic device
JP6046808B2 (en) Adaptive threshold processing for image recognition.
EP3016451B1 (en) Electronic device and method of controlling power of electronic device background
KR102278945B1 (en) Image processing method and electronic device supporting the same
CN107003820B (en) Multi-display based device
KR102390647B1 (en) Electronic device and method for controlling object in electronic device
CN103221899B (en) Tactile input device, microprocessor system and the method for control tactile input device
CN106648512B (en) Vehicle-mounted virtual image display method and device and vehicle-mounted host
KR20170008854A (en) Finger tracking
EP2904471A1 (en) Data and user interaction based on device proximity
KR102294359B1 (en) Electronic device and method for controlling of notification in electronic device
CN103324575A (en) Memory clearing method and mobile terminal
KR20170071960A (en) Apparatus and method for providing user interface of electronic device
CN109947322A (en) Inventory management method and electronic equipment
CN105760094A (en) Frame rate controlling method and device and terminal
CN108762813A (en) screen awakening method and device
CN109656406A (en) A kind of anti-interference method, device and the computer readable storage medium of display screen touch key-press
KR20160123200A (en) Touch input processing method and electronic device supporting the same
KR20180083764A (en) Electronic device and method for providing user interface according to usage environment of electronic device
JP6636132B2 (en) Information processing apparatus, electronic device, control method for information processing apparatus, and control program
CN111651041A (en) Lifting wake-up method and system for mobile equipment
CN111479016B (en) Terminal use duration reminding method and device, terminal and storage medium

Legal Events

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