CN108762813B - Screen awakening method and device - Google Patents

Screen awakening method and device Download PDF

Info

Publication number
CN108762813B
CN108762813B CN201810496224.4A CN201810496224A CN108762813B CN 108762813 B CN108762813 B CN 108762813B CN 201810496224 A CN201810496224 A CN 201810496224A CN 108762813 B CN108762813 B CN 108762813B
Authority
CN
China
Prior art keywords
acceleration
mobile terminal
detection interval
screen
axis direction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810496224.4A
Other languages
Chinese (zh)
Other versions
CN108762813A (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

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/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

The application provides a screen awakening method and a screen awakening device, which are applied to a mobile terminal, wherein the method comprises the following steps: when the screen of the mobile terminal is in a dormant state, periodically acquiring the acceleration of the mobile terminal in at least two directions, and storing the acquired acceleration data in the at least two directions as a group into a cache queue, wherein the direction perpendicular to the plane where the screen of the mobile terminal is located is the Z-axis direction, and the direction in which the longer side of the screen of the mobile terminal extends is the Y-axis direction; detecting the variation trend of the acceleration speed of a first preset number group which is acquired recently in the cache queue; if the fact that the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is decreased in the first preset number of acceleration groups is detected, awakening the screen of the mobile terminal. Therefore, when the mobile terminal is lifted up, the screen can be automatically awakened without complex operation actions, the use by a user is facilitated, and the user experience is improved.

Description

Screen awakening method and device
Technical Field
The application relates to the technical field of mobile terminals, in particular to a screen awakening method and device.
Background
In order to generally save electric energy and guarantee cruising or prevent a screen from being touched by mistake, the screen state of the mobile terminal generally comprises a screen-on state and a screen-locking state, and in the screen-on state, the screen of the mobile terminal can display contents and can respond to the operation of a user; in the lock screen state, the screen of the mobile terminal does not display content or does not respond to user operations. In the prior art, when a user needs to wake up a mobile terminal from a screen-locked state to a screen-bright state, or needs to press a specific physical key, or needs to perform a complicated click or sliding operation on a touch screen, in some scenarios, the user may not perform such a complicated operation to wake up the screen.
Disclosure of Invention
In order to overcome at least one of the deficiencies in the prior art, the present application is directed to a screen wakeup method applied to a mobile terminal, the method including:
when the screen of the mobile terminal is in a dormant state, periodically acquiring the acceleration of the mobile terminal in at least two directions, and storing the acquired acceleration data in the at least two directions as a group into a cache queue, wherein the direction perpendicular to the plane where the screen of the mobile terminal is located is the Z-axis direction, and the direction in which the longer side of the screen of the mobile terminal extends is the Y-axis direction;
detecting the variation trend of the acceleration speed of a first preset number group which is acquired recently in the cache queue;
if the fact that the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is decreased in the first preset number of acceleration groups is detected, awakening the screen of the mobile terminal.
Optionally, if it is detected that the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is decreased in the first preset number of groups of acceleration speeds, the step of waking up the screen of the mobile terminal includes:
if the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is reduced in the first preset number of groups of acceleration speeds, taking the preset number of groups of acceleration speeds as a first detection interval, and detecting whether the acceleration in the Y-axis direction exceeds a preset first acceleration threshold value in the first detection interval;
and if the fact that the acceleration in the Y-axis direction does not exceed the first acceleration threshold value in the first detection interval is detected, awakening the screen of the mobile terminal.
Optionally, after the step of detecting whether the acceleration in the Y-axis direction in the first detection interval exceeds a preset acceleration threshold, the method further includes:
if the acceleration in the Y-axis direction in the first detection interval is detected to exceed the first acceleration threshold, acquiring a second preset number group acceleration stored earlier than the first detection interval in the cache queue as a second detection interval, and acquiring a third preset number group acceleration stored later than the first detection interval in the cache queue as a third detection interval;
detecting the variation trend of the acceleration in the second detection interval and the third detection interval;
if the fact that the number of the accelerated speeds larger than the second accelerated speed threshold value in the accelerated speeds of any axis of the second detection interval and the third detection interval exceeds a fourth preset threshold value is detected, the action of awakening the screen of the mobile terminal is not executed;
if the fact that the number of the accelerated speeds larger than the second accelerated speed threshold value in the accelerated speeds of any axis of the second detection interval and the third detection interval does not exceed a fourth preset threshold value is detected, the screen of the mobile terminal is awakened.
Optionally, the first acceleration threshold is 1.5 times the acceleration due to gravity.
Optionally, the step of detecting a variation trend of the acceleration rates of the first preset number of groups that are obtained recently in the cache queue includes:
and carrying out smooth filtering processing on the acceleration in each axial direction in the buffer queue to filter fine jitter and data noise formed by the acceleration sensor, and then detecting the variation trend of the acceleration speed of a first preset number group which is acquired recently in the buffer queue.
Another object of the present application is to provide a screen wake-up apparatus applied to a mobile terminal, the apparatus including:
the acceleration acquisition module is used for periodically acquiring accelerations of the mobile terminal in at least two directions and storing the acquired acceleration data in the at least two directions as a group into a cache queue, wherein the direction perpendicular to the plane where the screen of the mobile terminal is located is the Z-axis direction, and the direction in which the longer side of the screen of the mobile terminal extends is the Y-axis direction;
the detection module is used for detecting the variation trend of the acceleration speed of a first preset number group which is acquired recently in the cache queue;
and the execution module is used for awakening the screen of the mobile terminal if the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is reduced in the first preset number of groups of acceleration speeds.
Optionally, the execution module is specifically configured to, if it is detected that the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is decreased in the first preset number of groups of acceleration speeds, use the preset number of groups of acceleration as a first detection interval, and detect whether there is an acceleration in the Y-axis direction in the first detection interval that exceeds a preset first acceleration threshold; and if the fact that the acceleration in the Y-axis direction does not exceed the first acceleration threshold value in the first detection interval is detected, awakening the screen of the mobile terminal.
Optionally, after detecting whether the acceleration in the Y-axis direction in the first detection interval exceeds a preset acceleration threshold, if detecting that the acceleration in the Y-axis direction in the first detection interval exceeds the first acceleration threshold, the execution module is further configured to acquire a second preset number group acceleration stored earlier than the first detection interval in the cache queue as a second detection interval, and acquire a third preset number group acceleration stored later than the first detection interval in the cache queue as a third detection interval; detecting the variation trend of the acceleration in the second detection interval and the third detection interval; if the fact that the number of the accelerated speeds larger than the second accelerated speed threshold value in the accelerated speeds of any axis of the second detection interval and the third detection interval exceeds a fourth preset threshold value is detected, the action of awakening the screen of the mobile terminal is not executed; if the fact that the number of the accelerated speeds larger than the second accelerated speed threshold value in the accelerated speeds of any axis of the second detection interval and the third detection interval does not exceed a fourth preset threshold value is detected, the screen of the mobile terminal is awakened.
Optionally, the first acceleration threshold is 1.5 times the acceleration due to gravity.
Optionally, the detection module is specifically configured to perform smoothing filtering processing on the accelerations in the buffer queue in the axial direction to filter fine jitter and data noise formed by the acceleration sensor itself, and then detect a variation trend of the acceleration speed of a first preset number of groups that is obtained recently in the buffer queue.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
according to the screen awakening method and device, the uplifting action of the mobile terminal is identified by detecting the variation trend of the acceleration of the mobile terminal in the Y-axis direction and the Z-axis direction, and then the action of awakening the screen of the mobile terminal is automatically executed. Therefore, when the mobile terminal is lifted up, the screen can be automatically awakened without complex operation actions, the use by a user is facilitated, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a block diagram of a mobile terminal according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a screen wake-up method according to an embodiment of the present application;
FIG. 3 is a schematic view of acceleration directions provided by an embodiment of the present application;
fig. 4 is a schematic diagram of a lifting action of a mobile terminal according to an embodiment of the present application
Fig. 5 is a schematic diagram illustrating an acceleration variation trend of a mobile terminal during shaking according to an embodiment of the present application;
fig. 6 is a schematic view illustrating an acceleration variation trend when the mobile terminal is rapidly lifted according to an embodiment of the present disclosure;
fig. 7 is a functional module schematic diagram of a screen wakeup device according to an embodiment of the present application.
Icon: 100-a mobile terminal; 110-a screen wake-up device; 111-an acceleration acquisition module; 112-a detection module; 113-an execution module; 120-a memory; 130-a processing unit; 140-acceleration sensor.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is noted that the terms "first", "second", "third", and the like are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance.
Furthermore, the terms "horizontal", "vertical", "overhang" and the like do not imply that the components are required to be absolutely horizontal or overhang, but may be slightly inclined. For example, "horizontal" merely means that the direction is more horizontal than "vertical" and does not mean that the structure must be perfectly horizontal, but may be slightly inclined.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Referring to fig. 1, fig. 1 is a block diagram of a mobile terminal 100 according to a preferred embodiment of the present application. The mobile terminal 100 includes a screen wakeup device 110, a memory 120, a processing unit 130, and an acceleration sensor 140.
The memory 120 and the processing unit 130 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The screen wakeup apparatus 110 includes at least one software function module which may be stored in the memory 120 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the mobile terminal 100. The processing unit 130 is used for executing executable modules stored in the memory 120, such as software functional modules and computer programs included in the screen wake-up device 110.
The acceleration sensor 140 is connected to the processing unit 130, and is configured to collect acceleration data of the mobile terminal 100 and send the acceleration data to the processing unit 130, in this embodiment, the acceleration sensor 140 may be a three-axis acceleration sensor.
In one example, the processing unit 130 may include an MCU or an ADSP for processing the data collected by the acceleration sensor 140, and a CPU for running an Android system.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is configured to store a program, and the processing unit 130 executes the program after receiving the execution instruction.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for waking up a screen of the mobile terminal 100 shown in fig. 1, and the method includes various steps that will be described in detail below.
Step S110, when the screen of the mobile terminal is in a dormant state, periodically acquiring accelerations in at least two directions of the mobile terminal 100, and storing the acquired acceleration data in the at least two directions as a group into a buffer queue, wherein a direction perpendicular to a plane where the screen of the mobile terminal 100 is located is a Z-axis direction, and a direction in which a longer side of the screen of the mobile terminal 100 extends is a Y-axis direction.
In this embodiment, the acceleration sensor 140 may be a multi-axis acceleration sensor 140, and the mobile terminal 100 periodically acquires the current acceleration collected by at least two axes of the multi-axis acceleration sensor 140. Referring to fig. 3, in the present embodiment, a direction perpendicular to the screen of the mobile terminal 100 is a Z-axis direction; on the plane where the screen of the mobile terminal 100 is located, the direction extending along the longer side of the mobile terminal 100 is the Y-axis direction, and the direction extending along the shorter side of the mobile terminal 100 is the X-axis direction.
The mobile terminal 100 is configured with a buffer queue in advance, where the buffer queue is a first-in-first-out (FIFO) queue, for example, the FIFO queue may be a FIFO queue in MCU or ADSP. The mobile terminal 100 stores a set of acceleration data collected at each time to the top of the buffer queue, and discards a set of acceleration data at the bottom of the buffer queue. In the present embodiment, the period of the acceleration sampling may be set to 5 ms.
Step S120, detecting a variation trend of the acceleration rates of the first preset number groups recently acquired from the buffer queue.
In this embodiment, each time new acceleration data is stored in the buffer queue, the mobile terminal 100 performs a smoothing filtering process on the acceleration in each axial direction stored in the buffer queue to filter fine jitter and data noise generated by the acceleration sensor 140 itself.
Then, the variation trend of the acceleration of the first preset number of sets that is obtained recently, for example, after the mobile terminal 100 performs the smoothing filtering process, 50 sets of acceleration data that are collected recently are obtained, and the variation trend of the acceleration of each axis is detected.
In step S130, if it is detected that the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is decreased in the first preset number of acceleration groups, the screen of the mobile terminal 100 is woken up.
After a great deal of research by the inventor, it is found that, in the process of lifting the mobile terminal 100 to a position where the mobile terminal is convenient for the user to view, generally, the Y axis and the Z axis have a certain change rule, referring to fig. 4, when the mobile terminal 100 is placed on a desktop at rest, generally, the acceleration on the Z axis is the current gravitational acceleration, and the accelerations on the Y axis and the X axis are substantially 0. The mobile terminal 100 is generally lifted upward when being lifted and viewed by a user, and finally, a screen of the mobile terminal 100 is at an angle with respect to a horizontal plane. The Y-axis acceleration of the mobile terminal 100 generally increases from 0 during the process of being lifted, and finally stabilizes on a component of the gravitational acceleration. The original acceleration of the Z axis is the current gravitational acceleration, and the original acceleration can be finally stabilized on a component of small gravitational acceleration after being lifted. That is, the Y-axis acceleration increases and the Z-axis acceleration decreases during the lift.
Therefore, in this embodiment, when the mobile terminal 100 detects that there is a trend that the acceleration in the Y-axis direction increases and the acceleration in the Z-axis direction decreases in the first preset number of acceleration groups, it is determined that the mobile terminal 100 is lifted up for viewing, and the screen of the mobile terminal 100 needs to be woken up.
Optionally, in order to make a false determination caused by the shaking of the mobile phone, in this embodiment, the mobile terminal 100 wakes up the screen of the mobile terminal 100 when the mobile terminal detects that the acceleration in the Y-axis direction increases and the acceleration in the Z-axis direction decreases while detecting that the acceleration in the first preset number group does not fluctuate in a large range.
Based on the above design, the solution provided in this embodiment can more accurately and automatically determine the lifting action of the mobile terminal 100 by identifying the trend of the acceleration change in the Y-axis direction and the Z-axis direction. Compared with the scheme that the lifting of the mobile terminal 100 is judged through the initial inclination angle and the termination angle inclination angle in the prior art, the scheme provided by the embodiment can judge the lifting without waiting for the completeness and stability of the lifting action of the mobile terminal 100, the scheme provided by the embodiment can identify the lifting action according to the change of the lifting process, the identification speed is quicker, the user waiting time is shortened, and the user experience is improved.
Further, in some cases, it may be that some shaking of the mobile terminal 100 may cause the acceleration in the Y-axis direction to increase while the acceleration in the Z-axis direction to decrease, which may cause the screen of the mobile terminal 100 to be awoken by mistake.
The inventor finds that the acceleration of the Y axis is not very large during normal lifting, and the instantaneous acceleration of the Y axis may be very large during sudden shaking. Therefore, in this embodiment, if the mobile terminal 100 detects that the acceleration in the Y-axis direction increases and the acceleration in the Z-axis direction decreases in the first preset number of sets of acceleration rates, the preset number of sets of acceleration rates is used as a first detection interval, and it is detected whether the acceleration in the Y-axis direction exceeds a preset first acceleration threshold value in the first detection interval. Wherein the first acceleration threshold may be 1.5 times the acceleration due to gravity.
If it is detected that no acceleration in the Y-axis direction exceeds the first acceleration threshold in the first detection interval, the mobile terminal 100 is considered to be normally lifted, and then the screen of the mobile terminal 100 is woken up.
In another writing case, the user lifting the mobile terminal 100 very quickly may cause the acceleration in the Y-direction to be too large, so in this embodiment, the quick lifting action needs to be recognized.
Specifically, if the mobile terminal 100 detects that the acceleration in the Y-axis direction in the first detection interval exceeds the first acceleration threshold, a second preset number group acceleration stored earlier than the first detection interval in the cache queue is acquired as a second detection interval, and a third preset number group acceleration stored later than the first detection interval in the cache queue is acquired as a third detection interval.
In this embodiment, if it is detected that the acceleration in the Z-axis direction is decreased while the acceleration in the Y-axis direction is increased in the first preset number of sets of acceleration rates, the preset number of sets of acceleration rates is used as a first detection interval (denoted as D1 in this embodiment), and after the D1 is recorded, the mobile terminal 100 still continues to perform the action of acquiring the acceleration and storing the acceleration into the buffer queue.
If it is detected that the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is decreased in the first preset number group acceleration, and it is detected that the acceleration in the Y-axis direction exceeds the first acceleration threshold in the first detection interval, the mobile terminal 100 needs to perform the identification of the fast lift-up action, acquire a second preset number group acceleration stored earlier than the first detection interval in the cache queue as a second detection interval (denoted as D2 in this embodiment), and acquire a third preset number group acceleration stored later than the first detection interval in the cache queue as a third detection interval (denoted as D2 in this embodiment).
Then, the mobile terminal 100 detects the variation tendency of the acceleration in the second detection section and the third detection section.
The inventors have found that the accelerations of the axes of the mobile terminal 100 generally repeatedly fluctuate when the mobile terminal 100 is in motion. For example, referring to fig. 5, in fig. 5, series 1 represents the X-axis acceleration, series 2 represents the Y-axis acceleration, and series Z represents the axis acceleration.
Therefore, if the mobile terminal 100 detects that the number of accelerations greater than the second acceleration threshold in the accelerations of any one of the second detection interval and the third detection interval exceeds a fourth preset threshold, the action of waking up the screen of the mobile terminal 100 is not performed.
The fourth preset threshold may be set to 2, that is, if the acceleration data of any axis has more than 2 large peaks, the data is considered to be shaking, as can be determined from the acceleration data of D0 or D2. In this case, an action of waking up the screen of the mobile terminal 100 is not performed.
In the fast lifting process of the mobile terminal 100, the acceleration of each axis is a process in which the area is stable after one change. For example, referring to fig. 6, in fig. 6, series 1 represents the X-axis acceleration, series 2 represents the Y-axis acceleration, and series Z represents the axis acceleration.
Therefore, if the mobile terminal 100 detects that the number of accelerations greater than the second acceleration threshold in the accelerations of any one of the second detection interval and the third detection interval does not exceed a fourth preset threshold, the screen of the mobile terminal 100 is awakened.
Further, in this embodiment, after waking up the screen of the mobile terminal 100 through step S130, the step S110 is stopped to be continuously executed. In other words, after waking up the screen of the mobile terminal 100, the action of acquiring the mobile terminal acceleration for waking up the screen is stopped.
Based on the design, the scheme provided by the embodiment can automatically recognize general lifting actions and quick lifting actions, and eliminates data interference possibly caused by shaking, so that the recognition of the lifting actions is more accurate.
Referring to fig. 7, the present embodiment further provides a screen wakeup device 110 applied to the mobile terminal 100 shown in fig. 1, which includes an acceleration acquisition module 111, a detection module 112, and an execution module 113.
The acceleration obtaining module 111 is configured to periodically obtain accelerations in at least two directions of the mobile terminal 100 when the screen of the mobile terminal is in a dormant state during sleep, and store the obtained acceleration data in the at least two directions as a group into a buffer queue, where a direction perpendicular to a plane where the screen of the mobile terminal 100 is located is a Z-axis direction, and a direction in which a longer side of the screen of the mobile terminal 100 extends is a Y-axis direction.
In this embodiment, the acceleration obtaining module 111 may be configured to execute step S110 shown in fig. 2, and for a detailed description of the acceleration obtaining module 111, reference may be made to the description of step S110.
Optionally, the detection module 112 is specifically configured to perform a smoothing filtering process on the accelerations in the buffer queue in the axial direction to filter fine jitter and data noise formed by the acceleration sensor 140 itself, and then detect a variation trend of the acceleration speed of the first preset number group that is obtained recently in the buffer queue.
The detecting module 112 is configured to detect a variation trend of the acceleration rates of the first preset number group that is recently acquired in the buffer queue.
In this embodiment, the detection module 112 may be configured to execute the step S120 shown in fig. 2, and the detailed description about the detection module 112 may refer to the description about the step S120.
The executing module 113 is configured to wake up the screen of the mobile terminal 100 if it is detected that the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is decreased in the first preset number of acceleration groups.
In this embodiment, the execution module 113 may be configured to execute the step S130 shown in fig. 2, and reference may be made to the description of the step S130 for a detailed description of the execution module 113.
Optionally, the executing module 113 is specifically configured to, if it is detected that the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is decreased in the first preset number of groups of acceleration speeds, use the preset number of groups of acceleration as a first detection interval, and detect whether there is an acceleration in the Y-axis direction in the first detection interval that exceeds a preset first acceleration threshold; if it is detected that no acceleration in the Y-axis direction exceeds the first acceleration threshold in the first detection interval, the screen of the mobile terminal 100 is woken up.
Optionally, the first acceleration threshold is 1.5 times the acceleration due to gravity.
Optionally, the executing module 113 is further configured to, after detecting whether the acceleration in the Y-axis direction in the first detection interval exceeds a preset acceleration threshold, if it is detected that the acceleration in the Y-axis direction in the first detection interval exceeds the first acceleration threshold, obtain a second preset number group acceleration stored earlier than the first detection interval in the cache queue as a second detection interval, and obtain a third preset number group acceleration stored later than the first detection interval in the cache queue as a third detection interval; detecting the variation trend of the acceleration in the second detection interval and the third detection interval; if the acceleration quantity greater than the second acceleration threshold value in the accelerations of any one of the second detection interval and the third detection interval is detected to exceed a fourth preset threshold value, the action of awakening the screen of the mobile terminal 100 is not executed; if the acceleration quantity greater than the second acceleration threshold value in the accelerations of any one of the second detection interval and the third detection interval is detected not to exceed a fourth preset threshold value, awakening the screen of the mobile terminal 100.
In summary, the screen wake-up method and device provided by the embodiment of the application identify the lift-up action of the mobile terminal by detecting the variation trend of the acceleration of the mobile terminal in the Y-axis direction and the Z-axis direction, and then automatically execute the action of waking up the screen of the mobile terminal. Therefore, when the mobile terminal is lifted up, the screen can be automatically awakened without complex operation actions, the use by a user is facilitated, and the user experience is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (6)

1. A screen awakening method is applied to a mobile terminal, and comprises the following steps:
when a screen of a mobile terminal is in a dormant state, periodically acquiring accelerations of the mobile terminal in at least two directions, and storing the acquired acceleration data in the at least two directions as a group into a cache queue, wherein the direction perpendicular to and upward from a plane where the screen of the mobile terminal is located is a Z-axis direction, and the direction in which a longer side of the screen of the mobile terminal extends is a Y-axis direction;
detecting the variation trend of the acceleration speed of a first preset number group which is acquired recently in the cache queue;
if the acceleration in the Y-axis direction is increased and the acceleration in the Z-axis direction is reduced in the first preset number of groups of acceleration speeds, taking the preset number of groups of acceleration speeds as a first detection interval, and detecting whether the acceleration in the Y-axis direction exceeds a preset first acceleration threshold value in the first detection interval;
if the fact that no acceleration in the Y-axis direction exceeds the first acceleration threshold value in the first detection interval is detected, awakening a screen of the mobile terminal;
if the acceleration in the Y-axis direction in the first detection interval is detected to exceed the first acceleration threshold, acquiring a second preset number group acceleration stored earlier than the first detection interval in the cache queue as a second detection interval, and acquiring a third preset number group acceleration stored later than the first detection interval in the cache queue as a third detection interval;
detecting the variation trend of the acceleration in the second detection interval and the third detection interval;
if the fact that the number of the accelerated speeds larger than the second accelerated speed threshold value in the accelerated speeds of any axis of the second detection interval and the third detection interval exceeds a fourth preset threshold value is detected, the action of awakening the screen of the mobile terminal is not executed;
if the fact that the number of the accelerated speeds larger than the second accelerated speed threshold value in the accelerated speeds of any axis of the second detection interval and the third detection interval does not exceed a fourth preset threshold value is detected, the screen of the mobile terminal is awakened.
2. The method of claim 1, wherein the first acceleration threshold is 1.5 times acceleration due to gravity.
3. The method according to claim 1, wherein the step of detecting a trend of a change in the acceleration rates of the first preset number of groups recently acquired in the buffer queue comprises:
and carrying out smooth filtering processing on the acceleration in each axial direction in the buffer queue to filter fine jitter and data noise formed by the acceleration sensor, and then detecting the variation trend of the acceleration speed of a first preset number group which is acquired recently in the buffer queue.
4. A screen awakening device is applied to a mobile terminal, and comprises:
the acceleration acquisition module is used for periodically acquiring accelerations of the mobile terminal in at least two directions and storing the acquired acceleration data in the at least two directions as a group into a cache queue, wherein the direction perpendicular to and upward from the plane where the screen of the mobile terminal is located is the Z-axis direction, and the direction in which the longer side of the screen of the mobile terminal extends is the Y-axis direction;
the detection module is used for detecting the variation trend of the acceleration speed of a first preset number group which is acquired recently in the cache queue;
the execution module is used for taking the acceleration of the preset number group as a first detection interval and detecting whether the acceleration in the Y-axis direction exceeds a preset first acceleration threshold value in the first detection interval or not if the acceleration in the Z-axis direction is reduced while the acceleration in the Y-axis direction is increased in the first preset number group acceleration speed; if the fact that no acceleration in the Y-axis direction exceeds the first acceleration threshold value in the first detection interval is detected, awakening a screen of the mobile terminal; if the acceleration in the Y-axis direction in the first detection interval is detected to exceed the first acceleration threshold, acquiring a second preset number group acceleration stored earlier than the first detection interval in the cache queue as a second detection interval, and acquiring a third preset number group acceleration stored later than the first detection interval in the cache queue as a third detection interval; detecting the variation trend of the acceleration in the second detection interval and the third detection interval; if the fact that the number of the accelerated speeds larger than the second accelerated speed threshold value in the accelerated speeds of any axis of the second detection interval and the third detection interval exceeds a fourth preset threshold value is detected, the action of awakening the screen of the mobile terminal is not executed; if the fact that the number of the accelerated speeds larger than the second accelerated speed threshold value in the accelerated speeds of any axis of the second detection interval and the third detection interval does not exceed a fourth preset threshold value is detected, the screen of the mobile terminal is awakened.
5. The apparatus of claim 4, wherein the first acceleration threshold is 1.5 times acceleration due to gravity.
6. The apparatus according to claim 4, wherein the detection module is specifically configured to perform a smoothing filtering process on the accelerations in the buffer queue in each axial direction to filter fine jitter and data noise generated by the acceleration sensor itself, and then detect a variation trend of the acceleration speed of the first preset number group acquired recently in the buffer queue.
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 CN108762813A (en) 2018-11-06
CN108762813B true 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)

Families Citing this family (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 (3)

* 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
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014071772A (en) * 2012-09-28 2014-04-21 Toshiba Corp Electronic apparatus, program, and lock control method
CN103401961B (en) * 2013-07-23 2015-10-14 广东欧珀移动通信有限公司 A kind of method and system automatically lighting mobile phone screen
US20170083695A1 (en) * 2015-09-21 2017-03-23 The Eye Tribe Method for using eye tracking and eye biometrics for authentication
CN108021224B (en) * 2016-10-31 2020-06-02 腾讯科技(深圳)有限公司 Screen lighting method and device

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
CN108762813A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
US11226672B2 (en) Intelligent device wakeup
US9955067B2 (en) Initializing camera subsystem for face detection based on sensor inputs
WO2017118332A1 (en) Method and apparatus for invoking function in application
JP6046808B2 (en) Adaptive threshold processing for image recognition.
US8228292B1 (en) Flipping for motion-based input
US20140189604A1 (en) Method and system for unlocking a touchscreen of an electronic device
CN108762813B (en) Screen awakening method and device
EP2816450A1 (en) Information processing apparatus, and information processing method
KR20170008854A (en) Finger tracking
JP2016531340A5 (en) Operating system and operating method for a mobile device
BR112014007951B1 (en) METHOD TO DETECT FALSE AWAKENING CONDITIONS OF A PORTABLE ELECTRONIC DEVICE
US11579710B2 (en) Double-tap event detection device, system and method
CN106662970A (en) Method, apparatus and terminal device for setting interrupt threshold for fingerprint identification device
Lu et al. Gesture on: Enabling always-on touch gestures for fast mobile access from the device standby mode
CN106200878A (en) Fingerprint control method, device and mobile terminal
WO2018095125A1 (en) Terminal and method for realizing reading posture detection
CN111651041A (en) Lifting wake-up method and system for mobile equipment
WO2019179451A1 (en) Application message viewing method, mobile terminal, and readable storage medium
CN104077041A (en) Page turning method, device and terminal
US10078373B2 (en) Method of temporal segmentation of an instrumented gesture, associated device and terminal
WO2015131590A1 (en) Method for controlling blank screen gesture processing and terminal
CN104980451B (en) Information prompting method and device
CN106959743B (en) Control method and electronic equipment
WO2018014432A1 (en) Voice application triggering control method, device and terminal
TW201502872A (en) Electronic device and wake-up method thereof

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