CN108563387A - Display control method and device, terminal, computer readable storage medium - Google Patents

Display control method and device, terminal, computer readable storage medium Download PDF

Info

Publication number
CN108563387A
CN108563387A CN201810331404.7A CN201810331404A CN108563387A CN 108563387 A CN108563387 A CN 108563387A CN 201810331404 A CN201810331404 A CN 201810331404A CN 108563387 A CN108563387 A CN 108563387A
Authority
CN
China
Prior art keywords
terminal
acceleration
screen
axis
single 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.)
Pending
Application number
CN201810331404.7A
Other languages
Chinese (zh)
Inventor
陆智弘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810331404.7A priority Critical patent/CN108563387A/en
Publication of CN108563387A publication Critical patent/CN108563387A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application involves a kind of display control methods and device, terminal, computer readable storage medium.This method includes:When terminal is when lifting arousal function opening, the acceleration transducer based on terminal built-in persistently obtains acceleration information;Judge whether terminal has the motion change trend of single direction according to continuous multiple acceleration informations;When determining that the terminal has the movement tendency of single direction, the posture information of terminal is obtained based on the acceleration sensor;When the posture information meets default bright set of hanging scrolls part, the display screen of the terminal is lighted.Pass through the above method, it can judge whether to meet default bright set of hanging scrolls part after determining variation tendency of the terminal with single direction, terminal shaking is avoided to cause bright screen false triggering, while improving the recognition accuracy of screen wake actions, additional sensor need not be increased, power consumption of terminal is reduced, device cost is saved.

Description

Display control method and device, terminal, computer readable storage medium
Technical field
This application involves electronic technology fields, can more particularly to a kind of display control method and device, terminal, computer Read storage medium.
Background technology
With the intelligent development of communication equipment, the application of sensor is more and more extensive, can be intelligent by sensor Multiple functions are realized on ground, are often equipped with many sensors on present intelligent terminal, such as sonic transducer, optical sensor, are touched Sensor, gravity sensor, acceleration transducer, direction sensor, range sensor, Magnetic Sensor etc. are touched, is brought to user Abundant application and experience.During screen function bright by sensor realization lift hand, terminal may also during rocking Cause false triggering, influence user experience, and multiple sensors is used to combine the scheme for carrying out lift hand motion detection that can bring power consumption Increase, and device cost is excessively high.
Invention content
A kind of display control method of the embodiment of the present application offer, device, computer equipment and storage medium, can improve screen The recognition accuracy of curtain wake actions, effectively prevent false triggering.
A kind of display control method is used for the display screen of control terminal, the method includes:
When terminal is when lifting arousal function opening, the acceleration transducer based on terminal built-in, which persistently obtains, accelerates the number of degrees According to;
Judge whether terminal has the motion change trend of single direction according to continuous multiple acceleration informations;The acceleration The variation of degrees of data reflects the motion state variation of terminal;
When determining that the terminal has the movement tendency of single direction, the appearance of terminal is obtained based on the acceleration sensor State information;
When the posture information meets default bright set of hanging scrolls part, the display screen of the terminal is lighted.
A kind of display control unit, including:
Data acquisition module, for when terminal lift arousal function open when, the acceleration sensing based on terminal built-in Device persistently obtains acceleration information;
Trend judgement module, for judging whether terminal has the movement of single direction according to continuous multiple acceleration informations Variation tendency;
Posture acquisition module, for when determining that the terminal has the movement tendency of single direction, being based on the acceleration Sensor obtains the posture information of terminal;
Display control module, for when the posture information meets default bright set of hanging scrolls part, lighting the display of the terminal Screen.
A kind of terminal, including memory and processor store computer program, the computer journey in the memory When sequence is executed by the processor so that the processor executes the step of display control method.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of method is realized when row.
Above-mentioned display control method and device, terminal, computer readable storage medium, when the arousal function that lifts of terminal is beaten When opening, the acceleration transducer based on terminal built-in persistently obtains acceleration information, is judged according to continuous multiple acceleration informations Whether terminal has the motion change trend of single direction, when determining that the terminal has the movement tendency of single direction, base The posture information of terminal is obtained in the acceleration sensor, when the posture information meets default bright set of hanging scrolls part, is lighted described The display screen of terminal.By the above method, can judge whether to accord with after determining variation tendency of the terminal with single direction It closes and presets bright set of hanging scrolls part, terminal shaking is avoided to cause bright screen false triggering, improving the same of the recognition accuracy of screen wake actions When, additional sensor need not be increased, reduce power consumption of terminal, save device cost.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the driver framework schematic diagram of sensor in one embodiment;
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment;
Fig. 3 is the flow chart of display control method in one embodiment;
Fig. 4 is the flow chart of display control method in another embodiment;
Fig. 5 is the flow chart of display control method in another embodiment;
Fig. 6 is the flow chart of display control method in another embodiment;
Fig. 7 is the flow chart of display control method in another embodiment;
Fig. 8 is the flow chart of display control method in another embodiment;
Fig. 9 is the structure diagram of display control unit in one embodiment;
Figure 10 is the block diagram with the part-structure of the relevant mobile phone of terminal provided by the embodiments of the present application;
Figure 11 is the solid axes position view of terminal in one embodiment.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Unless otherwise defined, all of technologies and scientific terms used here by the article and belong to the technical field of the application The normally understood meaning of technical staff is identical.The term used in the description of the present application is intended merely to description tool herein The purpose of the embodiment of body, it is not intended that limitation the application.It is appreciated that term " first " used in this application, " second " Etc. can be used to describe various elements herein, but these elements should not be limited by these terms.These terms are only used to by first A element is distinguished with another element.It for example, can be by the first client in the case where not departing from scope of the present application Referred to as the second client, and similarly, the second client can be known as the first client.First client and the second client two Person is client, but it is not same client.
In one embodiment, as shown in Figure 1, providing a kind of driver framework schematic diagram of sensor.Wherein, the sensing The driver framework of device includes user's space layer 110, kernel spacing layer 120 and hardware layer 130.It may include on user's space layer 110 Application program 112, sensor can realize the detection to motion state of terminal by the application program 112, when the position of terminal When information and/or rotational angle reach default wake-up condition, terminal screen is waken up.Kernel spacing layer 120 includes I2C (Inter-Integrated Circuit, I2C bus) device drives 122, I2C cores 124 and I2C adapters 126.It is logical Driving of the realization of I2C device drives 122 to equipment end in I2C hardware architectures is crossed, equipment is generally articulated in by master chip (CPU) on the I2C adapters 126 controlled, data are exchanged with master chip by I2C adapters 126.I2C cores 124 provide The registration of I2C bus drivers and device drives, cancellation method.It is realized to the I2C adapters in hardware layer by I2C bus drivers 132 control, I2C bus drivers mainly contain the data structure of I2C adapters 132 and control I2C adapters 132 generate and lead to Believe the function of signal, control I2C adapters and I2C devices exchange datas.By the driver framework of above-mentioned sensor, it can be achieved that Display control method in each embodiment of the application.
In one embodiment, as shown in Fig. 2, providing a kind of internal structure schematic diagram of terminal.The terminal includes logical Cross processor, memory and the display screen of system bus connection.Wherein, the processor is for providing calculating and control ability, branch Support the operation of entire terminal.Memory for storing data, program, and/or instruction code etc., stored on memory at least one Computer program, the computer program can be executed by processor, to realize that is provided in the embodiment of the present application is suitable for terminal Display control method.Memory may include that magnetic disc, CD, read-only memory (Read-OnlY MemorY, ROM) etc. are non-easily The property lost storage medium or random access memory (Random-Access-MemorY, RAM) etc..For example, in one embodiment In, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system, database And computer program.A kind of display control method phase provided for realizing above each embodiment is provided in the database The data of pass, for example the predeterminated position data for waking up terminal screen or angle-data can be stored with etc..The computer program can quilt Performed by processor, for realizing a kind of display control method that each embodiment of the application is provided.Built-in storage is non- Operating system, database and computer program in volatile storage medium provide the running environment of cache.Display screen can To be touch screen, for example it is capacitance plate or electrical screen, is used for the interface information of display terminal, display screen includes bright screen state and breath Screen state, when terminal is in suspend mode, display screen is breath screen state, and when the screen of terminal is waken up, display screen is bright screen State.The terminal can be mobile phone, tablet computer or personal digital assistant or Wearable etc..
It will be understood by those skilled in the art that structure shown in Fig. 1, is only tied with the relevant part of application scheme The block diagram of structure, does not constitute the restriction for the terminal being applied thereon to application scheme, and specific terminal may include than figure Shown in more or fewer components, either combine certain components or arranged with different components.Such as the terminal further includes The sensor connected by system bus, sensor can be acceleration transducer, gyroscope, infrared sensor, earth magnetism biography One kind in sensor or more is detected for the status information to terminal, for example, can be used for detection terminal position data, Rotational angle, at a distance from external contact object etc..
In one embodiment, as shown in figure 3, providing a kind of display control method, it is used for the display screen of control terminal Curtain, and can be used for lifting wake-up terminal screen or put down extinguishing terminal screen.The present embodiment is applied to as shown in Figure 2 in this way Terminal for illustrate.The display control method includes the following steps:
Step 302:When terminal is when lifting arousal function opening, the acceleration transducer based on terminal built-in persistently obtains Acceleration information.
Wherein, terminal, which is equipped with, lifts arousal function switch, such as switch names are " the bright screen of lift hand ", for opening or closing It closes and lifts arousal function.Optionally, terminal can receive the operational order that user inputs at setting interface and be lifted with being turned on and off Arousal function is played, operational order can be at least one of touch control operation, voice operating, button operation;Terminal can be with root Intelligently switch this according to different scenes and lift wake-up switch, such as 24:00~8:It is closed in 00 period and lifts arousal function, Arousal function is lifted in the unlatching of other times section.
When terminal is when lifting arousal function unlatching, the acceleration transducer for opening the terminal built-in carries out movement inspection It surveys, and obtains the acceleration information of acceleration transducer acquisition.There is motion detection function, according to adding inside acceleration transducer Fast motion detection (accel motion detect, AMD) judges whether terminal moves.Wherein, acceleration transducer exists It can be gravity accelerometer (GRAVITY Sensor, G-sensor) in the present embodiment, the change of acceleration can be detected Change, can by its come obtain respectively from three it is axially different on acceleration notifying upper layer application to make corresponding position Reason.When terminal does not occur mobile, acceleration transducer is in low power consumpting state;It (such as is trembled detecting that terminal moves It is dynamic) after, acceleration transducer is to master chip transmission data.
Specifically, acceleration transducer is detected by AMD and can be sent out to master chip after the motion state of terminal changes Interrupt requests, interrupt requests are sent to indicate to file an application (such as sending an electric impulse signal) to master chip, it is desirable that in master chip Disconnected work at present, the demand that processing surrounding hardware proposes.
For example, first a threshold value is set to G-sensor devices, when the G-sensor units tests are to working as preacceleration Triggering master chip interrupts when angle value is more than the threshold value of setting, and master chip receives primary shake event, and master chip handles the shake Event simultaneously starts to lift the detection work for waking up terminal screen.When detecting that the terminal occurs mobile, master chip is according to adding The interrupt requests of velocity sensor open the data transmission channel with acceleration transducer, obtain adding for acceleration transducer detection Velocity amplitude.
Step 304:Judge whether terminal has the motion change trend of single direction according to continuous multiple acceleration informations; The variation of the acceleration information reflects the motion state variation of terminal.
The state of terminal includes stable state and mobile status, and wherein stable state can indicate when terminal is in static State, mobile status can indicate that the different postures under terminal is kept in motion, such as terminal are in rocking for different directions The rollover states etc. of state, the lifting status of single direction, single direction.It is realizing when lifting arousal function of terminal, is needing Whether detection terminal has lift action, and often makes that terminal is kept in motion during user's carried terminal, Terminal is also at motion state when being in walking states such as user's handheld terminal, is easy to miss due to terminal rocks state because being at this time Bright screen is triggered, therefore it needs to be determined that whether terminal has the movement of single direction before judging whether to meet default bright set of hanging scrolls part Variation tendency.
Judge whether terminal has the motion change trend of single direction according to continuous multiple acceleration informations, accelerates the number of degrees According to variation reflect terminal motion state variation.It specifically, can be by obtaining the continuous more of acceleration transducer acquisition A acceleration value judges the variation tendency of continuous multiple acceleration values;If continuous multiple acceleration values are to become successively Greatly or become smaller, then it is assumed that terminal has the movement tendency of single direction in the X-axis direction;If alternatively, two acceleration of arbitrary continuation The error of angle value is less than default error threshold, then it is assumed that terminal has the movement tendency of single direction in the X-axis direction.
Step 306:When determining that the terminal has the movement tendency of single direction, obtained based on the acceleration sensor The posture information of terminal.
When determining that the terminal has the movement tendency of single direction, the appearance of terminal is obtained based on the acceleration sensor State information.Specifically, when acceleration transducer is in running order, can in real time detection terminal X, Y, Z 3-axis acceleration Component.Acceleration transducer can be gravity accelerometer (GravitY Sensor, G-sensor) in the present embodiment, It is the MEMS sensor of energy sense accelerations size, can be respectively obtained from three axially different components by acceleration Acceleration in (tri- axis component of X, Y, Z), to notify upper layer application to make respective handling.When terminal is kept flat on the table, add Three axis component of speed (X, Y, Z) is (0,0,9.81);When terminal is put on the table downward, three axis component of acceleration (X, Y, Z) is (0,0, -9.81);When terminal is tilted to the left, acceleration X-axis is positive value;When terminal is tilted to the right, acceleration X-axis is negative value;Eventually When end tilts upwards, acceleration Y-axis is negative value;When terminal tilts down, acceleration Y-axis is positive value.When rotating terminal, X, Y, The value of Z axis will constantly change.Namely, it can be understood as terminal is in a coordinate system, can be by judging to work as Whether the current value of tri- axis component of preceding X, Y, Z is moved or is rotated judging terminal.
Optionally, the posture information of terminal can also be obtained by gyroscope.When (GYro-sensor is called angle to gyroscope Velocity sensor) it is in running order when, can in real time detection terminal tri- axis rotational angular velocity of X, Y, Z.Gyroscope then can be with Good measurement is done to the action for rotating, deflecting.Gyroscope uses the same coordinate system with acceleration transducer, wherein works as terminal When level rotates clockwise, Z axis is positive value;When end level rotates counterclockwise, Z axis is negative value;When terminal is to anticlockwise, Y-axis For negative value;When terminal is to right rotation, Y-axis is positive value;When terminal rotates up, X-axis is negative value;When terminal is rotated down, X-axis is Positive value.
The 3-axis acceleration acquired based on acceleration transducer and/or gyroscope in preset time and three axis swing angle speed Degree can obtain the posture information of terminal.Wherein, posture letter includes the rotation letter of the location of terminal information and/or terminal Breath.
Step 308:When the posture information meets default bright set of hanging scrolls part, the display screen of the terminal is lighted.
Default bright set of hanging scrolls part is prestored in terminal, it is to lift bright screen, dig out the bright screen of pocket, turn over that this, which presets bright set of hanging scrolls part, Turn bright screen etc..Lift bright screen, pocket digs out bright screen, the condition of the bright screen of overturning can with acceleration value and/or rotation angle come Characterization.For example, the variable quantity of acceleration value at least one direction is more than preset value and/or rotation angle at least one side It can be used for characterizing pocket more than predetermined angle upwards and dig out bright screen.When the posture information that terminal acquires in preset time meets When preset default bright set of hanging scrolls part, so that it may with the bright screen of control terminal.
Above-mentioned display control method, when terminal lift arousal function open when, the acceleration sensing based on terminal built-in Device persistently obtains acceleration information, judges whether terminal has the motion change of single direction according to continuous multiple acceleration informations Trend obtains the posture of terminal based on the acceleration sensor when determining that the terminal has the movement tendency of single direction Information lights the display screen of the terminal when the posture information meets default bright set of hanging scrolls part.Pass through the above method, energy It is enough to judge whether to meet default bright set of hanging scrolls part after determining variation tendency of the terminal with single direction, avoid terminal shaking from causing Bright screen false triggering reduces power consumption of terminal while improving the recognition accuracy of screen wake actions, saves device cost.
In one embodiment, as shown in figure 4, when terminal is when lifting arousal function opening, adding based on terminal built-in Velocity sensor persistently obtains acceleration information namely step 302 includes:
Step 402:When the terminal is in breath screen state, tri- axis of X, Y, Z of the acceleration transducer acquisition is obtained Acceleration value on component.
Specifically, indicate that the display backlight of terminal is extinguished to save power supply, prevent from accidentally touching when terminal is in breath screen state Control etc., in the case where ceasing screen state, terminal is generally in low-power consumption mode, and each device keeps dormant state waiting to have operational order or logical Start-up operation is just waken up when knowing.
When terminal be in breath screen state, and terminal lift arousal function open when, if terminal keep stable state, at this time Acceleration sensor enters standby detection pattern, and whether real-time detection terminal moves.Specifically, acceleration transducer detection is whole The current acceleration value at end, when terminal is in static or uniform speed motion state, the current acceleration of terminal is zero, at this time terminal It is generally in the case of being placed;When terminal is moved, acceleration transducer can detect the current acceleration value of terminal It changes, if detecting, acceleration value is more than predetermined acceleration threshold value, then it is assumed that terminal occurs shake or shakes, at this time terminal It is likely to be in the case of being lifted or overturning.
The acceleration value in tri- coordinate axis components of X, Y, Z is obtained by acceleration transducer.For example, due to the earth Graviational interaction, when G-sensor is kept flat, Z-direction can sense the acceleration of gravity of 1g, if mobile or tilt, hang down at this time Straight acceleration of gravity can decompose X, Y, on Z coordinate axis, thus when mobile terminal with G-sensor, X, Y, the value of Z axis Constantly variation, it can be understood as terminal is in a space coordinates.
As shown in figure 11, using the lower left of screen as origin, the direction that arrow is directed toward is just, using floating number as grade list Position, such as from -10 to 10, then have following situation:The marquis when (Z axis towards day) is horizontal positioned upwards for mobile phone screen, (X, Y, Z's) Value is respectively (0,0,10);The marquis when (Z axis towards ground) is horizontal positioned downwards for mobile phone screen, the value of (X, Y, Z) be respectively (0, 0, -10);When mobile phone screen puts to the left (X-axis towards day), the value of (X, Y, Z) is respectively (10,0,0);When mobile phone is vertical When (Y-axis towards day) is upward, the value of (X, Y, Z) is respectively (0,10,0), wherein the unit of above-mentioned acceleration value is m/s2; Therefore, trigonometric function is sought by tri- reference axis of X, Y, Z, can accurately detects the motion state of mobile phone.It is appreciated that It is that, when the origin of reference axis chooses different location, the value of tri- reference axis of X, Y, Z is also corresponding to indicate different location.
Step 404:Acceleration value in tri- axis component of X, Y, Z of acquisition is stored into buffer, to be supplied to main core Piece carries out data processing.
Wherein, buffer refers to buffer register, referred to herein as input buffer, the data for sending peripheral hardware Temporarily storage, so that processor takes it away.By storing acceleration value to buffer, the master chip of high speed operation can be made Coordination and cushioning effect are played with the acceleration transducer of external connection, realizes the synchronization of data transmission.
Optionally, when terminal is in stable state, acceleration transducer is in standby detection pattern, this brief acceleration passes The channel of sensor and master chip is not opened namely master chip does not carry out data exchange with acceleration transducer at this time.Work as acceleration When degree sensor detects that terminal moves (shake), interrupt requests are sent to master chip, master chip is used to indicate and is lifted It rises and wakes up detection work.Master chip is opened after receiving the interrupt requests that acceleration transducer is sent and the data of associated sensor Transmission channel carries out data exchange with relevant sensor.
In one embodiment, as shown in figure 5, judging whether terminal has single side according to continuous multiple acceleration informations To motion change trend namely step 304 include:
Step 502:Continuous multiple acceleration values in X-axis are obtained, judge that the variation of continuous multiple acceleration values becomes Gesture.
Specifically, the acceleration information of acceleration transducer detection is acquired, obtains continuous multiple acceleration in X-axis Angle value, refering to fig. 1 shown in 1, when terminal is to the left or when side to overturn to the right, the acceleration value in X-axis changes, therefore passes through Judge the variation tendency of continuous multiple acceleration values in X-axis, it may be determined that whether terminal rotates towards single direction.Wherein, right It is required to embody the rotation amplitude of terminal in the collecting quantity of continuous multiple acceleration values, therefore can connect in preset time The continuous sufficient amount of acceleration value of acquisition, such as 10 acceleration values of continuous acquisition or 20 acceleration values of continuous acquisition etc., can With understanding, the quantity of the acceleration value of acquisition disclosure satisfy that the variation tendency for judging terminal, the present embodiment to this not It is defined.
It is possible to further judge that the variation of continuous multiple acceleration values becomes by step 504 or step 506 Gesture, either-or meet.
Step 504:If continuous multiple acceleration values are to become larger or become smaller successively, then it is assumed that terminal is in the X-axis direction Movement tendency with single direction.
If continuous multiple acceleration values in the X-axis of acquisition are to become larger or become smaller successively, illustrate that acceleration value is super at this time Single direction changes, since the change direction of acceleration value reflects the direction of motion of terminal, then it is believed that terminal is in X-axis at this time Movement tendency with single direction on direction that is to say that terminal is rotated towards single direction at this time, such as terminal is in overturning and shields Tentiform state.
When determining that terminal has the movement tendency of single direction, judge whether to meet according to the current posture information of terminal Preset bright set of hanging scrolls part, can to avoid terminal under the state of rocking the bright screen of false triggering.
Step 506:If the error of two acceleration values of arbitrary continuation is less than default error threshold, then it is assumed that terminal is in X-axis Movement tendency with single direction on direction.
If the error of two acceleration values of arbitrary continuation in the X-axis of acquisition is less than default error threshold, illustrate to acquire Acceleration value there is continuity and the variation tendency of single direction is presented.And then it is believed that terminal is in the X-axis direction at this time Movement tendency with single direction that is to say that terminal is rotated towards single direction at this time, such as terminal is in turnover screen state. Wherein default error threshold can be set according to the quantity of the acceleration value of acquisition and density, for example, connecting when in 10ms When 10 acceleration values of continuous acquisition, default error threshold could be provided as 0.5m/s2, it is to be understood that default error threshold It can be set according to practical computational accuracy, the illustration be not limited to the present embodiment.
When determining that terminal has the movement tendency of single direction, judge whether to meet according to the current posture information of terminal Preset bright set of hanging scrolls part, can to avoid terminal under the state of rocking the bright screen of false triggering.
Display control method provided in this embodiment can judge after determining variation tendency of the terminal with single direction Whether meet default bright set of hanging scrolls part, avoids terminal shaking from causing bright screen false triggering, improve user experience.Also, improving screen While the recognition accuracy of wake actions, additional sensor need not be increased, reduce power consumption of terminal, save device at This.
In one embodiment, as shown in fig. 6, step 304 further includes:
Step 602:Continuous multiple acceleration values in Y-axis are obtained, judge that the variation of continuous multiple acceleration values becomes Gesture.
Specifically, the acceleration information of acceleration transducer detection is acquired, obtains continuous multiple acceleration in Y-axis Angle value, refering to fig. 1 shown in 1, when terminal is lifted upward or downward along one side of Y-axis (Y-axis towards day), the acceleration value in Y-axis It changes, therefore the variation tendency by judging continuous multiple acceleration values in Y-axis, it may be determined that whether terminal is towards single Direction rotates.Wherein, the collecting quantity of continuous multiple acceleration values is required to embody the rotation amplitude of terminal, therefore can With the sufficient amount of acceleration value of continuous acquisition in preset time, such as 10 acceleration values of continuous acquisition or continuous acquisition 20 acceleration values etc., it is to be understood that the quantity of the acceleration value of acquisition, which disclosure satisfy that, judges the variation tendency of terminal i.e. Can, the present embodiment is to this without limiting.
It is possible to further judge that the variation of continuous multiple acceleration values becomes by step 604 or step 606 Gesture, either-or meet.
Step 604:If continuous multiple acceleration values are to become larger or become smaller successively, then it is assumed that terminal is in the Y-axis direction Movement tendency with single direction.
If continuous multiple acceleration values in the Y-axis of acquisition are to become larger or become smaller successively, illustrate that acceleration value is super at this time Single direction changes, since the change direction of acceleration value reflects the direction of motion of terminal, then it is believed that terminal is in Y-axis at this time The movement tendency with single direction, that is to say that terminal is lifted towards single direction at this time on direction, such as terminal is in and lifts screen Tentiform state.
When determining that terminal has the movement tendency of single direction, judge whether to meet according to the current posture information of terminal Preset bright set of hanging scrolls part, can to avoid terminal under the state of rocking the bright screen of false triggering.
Step 606:If the error of two acceleration values of arbitrary continuation is less than default error threshold, then it is assumed that terminal is in Y-axis Movement tendency with single direction on direction.
It is identical as the judgement principle of above-mentioned X-axis, if the error of two acceleration values of arbitrary continuation in the Y-axis of acquisition is less than Default error threshold then illustrates that the acceleration value of acquisition has continuity and the variation tendency of single direction is presented.And then it can Think the movement tendency with single direction in the Y-axis direction of terminal at this time, that is to say that terminal is lifted towards single direction at this time, example Screen state is lifted as terminal is in.
When determining that terminal has the movement tendency of single direction, judge whether to meet according to the current posture information of terminal Preset bright set of hanging scrolls part, can to avoid terminal under the state of rocking the bright screen of false triggering.
Display control method provided in this embodiment can judge after determining variation tendency of the terminal with single direction Whether meet default bright set of hanging scrolls part, avoids terminal shaking from causing bright screen false triggering, improve user experience.Also, improving screen While the recognition accuracy of wake actions, additional sensor need not be increased, reduce power consumption of terminal, save device at This.
In one embodiment, as shown in fig. 7, obtaining the posture information of terminal based on the acceleration sensor, including with Lower step:
Step 702:The terminal is obtained in the first position information of initial stable state based on acceleration transducer, and is obtained The terminal is taken to carry out mobile second position information in the first preset duration.
Wherein, first position information can indicate that terminal is in the position at stable state moment, that is to say when master chip is opened The location of open with terminal when sensor data transmission channel.Tri- reference axis of X, Y, Z detected according to acceleration transducer Acceleration value, the first position information that terminal is in stable state can be obtained.Second position information can indicate that terminal exists The position obtained in real time in moving process, limits the recognition time of lift action by the first preset duration, usual user into Row lift action is a coherent operating process, identifies duration by restriction and makees manually to determine whether belonging to lift, can drop The probability of low false triggering promotes user experience.For example, the first preset duration can be 1 second, persistently obtained within 1 second time Take the second position information of terminal.
Step 702:According to the posture information of the first position information and second position information acquisition terminal.
Wherein, acceleration information reflects the posture information of the terminal.First position message reflection terminal, which is in, stablizes shape The posture information at state moment, the posture information that second position message reflection terminal obtains in real time in moving process.
In one embodiment, as shown in figure 8, when the posture information meets default bright set of hanging scrolls part, the end is lighted The display screen namely step 308 at end include:
Step 802:Judge whether the second position information meets default bright set of hanging scrolls part according to the first position information.
Specifically, first position information include but not limited to terminal display screen downward, the display screen of terminal upward When location information.When the display screen of stable state terminal upward when, need to lift terminal the display screen so that terminal Curtain is towards human face region, such as scene when terminal is held in the hand.When the display screen of stable state terminal downward when, need to turn over Turn and is lifted up terminal so that the display screen of terminal is towards human face region, such as when terminal screen is placed on table downward Scene when face;Therefore the first position information difference when terminal be in stable state, terminal in moving process second Location information needs the default wake-up condition met also different, whether judges the second position information according to first position information Meet and preset wake-up condition, can increase under different scenes to the recognition accuracy of terminal lift action.
In one of the embodiments, when the first position information is in the first default model of terminal screen state downward When enclosing, judge whether the second position information meets second preset range of the terminal screen towards human face region;If so, table Show that terminal is in turnover screen posture, meets and preset bright set of hanging scrolls part.
Wherein, the first preset range defines acceleration information when terminal screen is placed downward.Such as when acceleration passes Sensor detects that acceleration value is (- 4.5m/s2<X-axis<4.5m/s2, -5m/s2<Y-axis<5m/s2, -9.8m/s2<Z-axis<-5m/s2) When, then it represents that terminal is in screen placement status downward, that is to say when the first position data that acceleration transducer obtains are in When the value range, then judge that terminal is currently at screen placement status downward.
Second preset range defines acceleration of the terminal screen corresponding with the first preset range towards human face region when Degrees of data.Such as when acceleration transducer detects that acceleration value is (- 5m/s2<X-axis<5m/s2, -2m/s2<Y-axis<9.8m/s2, 0.5m/s2<Z-axis<9.8m/s2) when, then it represents that terminal is in screen towards human face region state curtain.
When detecting that the location information of terminal is in the first preset range, the shifting of terminal is judged in the first preset duration Whether dynamic position meets the second preset range.For example, being placed downward when detect that terminal is in initial stable state screen When state, judge whether the location information of terminal reaches the second preset range in 1 second, is indicated when reaching the second preset range The display screen of terminal is towards human face region.
In another embodiment, when the first position information is in the third preset range of terminal screen state upward When, obtain the variable quantity of the acceleration value in Y-axis;Judge whether the second position information meets terminal screen towards face Whether the 4th preset range in region and the variable quantity of the acceleration value in Y-axis are more than the first predetermined threshold value;If so, indicating Terminal, which is in, lifts screen posture, meets and presets bright set of hanging scrolls part.
Wherein, third preset range defines acceleration information when terminal screen is placed upward.Such as when acceleration passes Sensor detects that acceleration value is (- 4m/s2<X-axis<4m/s2, 2m/s2<Y-axis<9.8m/s2, 3.5m/s2<Z-axis<9.3m/s2) when, It then indicates that terminal is in screen placement status upward, that is to say that the first position data obtained when acceleration transducer are in the model When enclosing value, then judge that terminal is currently at screen placement status upward.Further, acceleration transducer detection is persistently obtained The variable quantity of acceleration value in Y-axis, since Y-axis can indicate the plane corresponding to the screen long side of terminal, according in Y-axis The variable quantity of acceleration value can reflect the inclined amplitude size of terminal screen, such as when terminal is lifted up, the acceleration of Y-axis It is maximum to spend variable quantity, the magnitude of inclination or angular dimension of terminal can be judged according to the acceleration change amount in Y-axis.
4th preset range defines terminal screen corresponding with third preset range towards people with the first predetermined threshold value Acceleration information when face region.Such as when acceleration transducer detects that acceleration value is (- 4m/s2<X-axis<4m/s2, 2m/s2 <Y-axis<9.8m/s2, 3.5m/s2<Z-axis<9.3m/s2), and acceleration change amount of the terminal in Y-axis is more than 3m/s2When, then table Show that terminal is in screen towards human face region state.
When detecting that the location information of terminal is in third preset range, the shifting of terminal is judged in the first preset duration Whether dynamic position meets whether the acceleration change amount in the 4th preset range and Y-axis is more than the first predetermined threshold value.For example, working as Detect that terminal when initial stable state screen is in the state placed upward, judges that the location information of terminal is in 1 second It is no reach the 4th preset range and acceleration change amount of the terminal in Y-axis whether be more than 3m/s2, if meeting preset condition Indicate the display screen of terminal towards human face region.
Step 804:If the second position information, which meets, presets bright set of hanging scrolls part, the display screen of the terminal is lighted.
Default wake-up condition defines that terminal reaches the location information of bright set of hanging scrolls part under different scenes, such as can be arranged Make location information of the terminal screen towards human face region when to lift terminal, may be arranged as overturning terminal makes terminal screen court Location information when to human face region.After determining the scene residing for the first position information of terminal, if second position information is full The default wake-up condition of foot, then wake up terminal screen.
Display control method provided in this embodiment, the location information detected by acceleration transducer can judge end End is moved to the discrimination that bright screen detection operation is improved towards human face region from initial position, promotes user experience.
It should be understood that although each step in the flow chart of Fig. 3-8 is shown successively according to the instruction of arrow, These steps are not that the inevitable sequence indicated according to arrow executes successively.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 3-8 Part steps may include that either these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can either the sub-step of other steps or at least part in stage be in turn or alternately with other steps It executes.
As shown in figure 9, in one embodiment, providing a kind of display control unit, which includes:Data acquisition module 910, Trend judgement module 920, posture acquisition module 930 and display control module 940.
Data acquisition module 910, for when terminal is when lifting arousal function opening, the acceleration based on terminal built-in to pass Sensor persistently obtains acceleration information.
Trend judgement module 920, for judging whether terminal has single direction according to continuous multiple acceleration informations Motion change trend.
Posture acquisition module 930, for when determining that the terminal has the movement tendency of single direction, being added based on described Fast sensor obtains the posture information of terminal.
Display control module 940, for when the posture information meets default bright set of hanging scrolls part, lighting the aobvious of the terminal Display screen curtain.
Above-mentioned display control unit, when terminal is when lifting arousal function opening, data acquisition module 910 is based in terminal The acceleration transducer set persistently obtains acceleration information, and Trend judgement module 920 judges according to continuous multiple acceleration informations Whether terminal has the motion change trend of single direction, when determining that the terminal has the movement tendency of single direction, appearance State acquisition module 930 obtains the posture information of terminal based on the acceleration sensor, when the posture information meets default bright screen When condition, display control module 940 lights the display screen of the terminal.By above-mentioned apparatus, can have determining terminal Judge whether to meet default bright set of hanging scrolls part after the variation tendency of single direction, avoids terminal shaking from causing bright screen false triggering, carrying While the recognition accuracy of high screen wake actions, additional sensor need not be increased, reduce power consumption of terminal, saving device Part cost.
In one embodiment, data acquisition module 910 is additionally operable to when the terminal is in breath screen state, described in acquisition Acceleration value in tri- axis component of X, Y, Z of acceleration transducer acquisition;By the acceleration value in tri- axis component of X, Y, Z of acquisition It stores into buffer, to be supplied to master chip to carry out data processing.
In one embodiment, Trend judgement module 920 is additionally operable to obtain continuous multiple acceleration values in X-axis, judges The variation tendency of continuous multiple acceleration values;If continuous multiple acceleration values are to become larger or become smaller successively, then it is assumed that Terminal has the movement tendency of single direction in the X-axis direction;Alternatively, if the error of two acceleration values of arbitrary continuation is less than in advance If error threshold, then it is assumed that terminal has the movement tendency of single direction in the X-axis direction.
In one embodiment, Trend judgement module 920 is additionally operable to obtain continuous multiple acceleration values in Y-axis, judges The variation tendency of continuous multiple acceleration values;If continuous multiple acceleration values are to become larger or become smaller successively, then it is assumed that Terminal has the movement tendency of single direction in the Y-axis direction;Alternatively, if the error of two acceleration values of arbitrary continuation is less than in advance If error threshold, then it is assumed that terminal has the movement tendency of single direction in the Y-axis direction.
In one embodiment, posture acquisition module 930 is additionally operable to obtain the terminal first based on acceleration transducer The first position information of beginning settling position, and obtain the terminal and carry out mobile second confidence in the first preset duration Breath;According to the posture information of the first position information and second position information acquisition terminal.
In one embodiment, display control module 940 is additionally operable to judge described second according to the first position information Whether location information meets default bright set of hanging scrolls part;If the second position information, which meets, presets bright set of hanging scrolls part, the end is lighted The display screen at end.
The division of modules is only used for for example, in other embodiments, can will show in above-mentioned display control unit Show that control device is divided into different modules as required, to complete all or part of function of above-mentioned display control unit.
Specific about display control unit limits the restriction that may refer to above for display control method, herein not It repeats again.Modules in above-mentioned display control unit can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in or independently of in the processor in computer equipment, can also store in a software form in the form of hardware In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
Realizing for modules in the display control unit provided in the embodiment of the present application can be the shape of computer program Formula.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal Or on the memory of server.When the computer program is executed by processor, method described in the embodiment of the present application is realized Step.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When so that the processor executes the display control method as described in the various embodiments described above.
The embodiment of the present application also provides a kind of computer program products.A kind of computer program product including instruction, When run on a computer so that computer executes the display control method described in the various embodiments described above.
The embodiment of the present application also provides a kind of terminal devices.As shown in Figure 10, for convenience of description, it illustrates only and this Apply for that the relevant part of embodiment, particular technique details are not disclosed, please refers to the embodiment of the present application method part.The terminal is set Include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS for that can be The arbitrary terminal device such as (Point of Sales, point-of-sale terminal), vehicle-mounted computer, Wearable, using terminal device as mobile phone For:
Figure 10 is the block diagram with the part-structure of the relevant mobile phone of terminal provided by the embodiments of the present application.With reference to figure 10, hand Machine includes:Radio frequency (Radio FrequencY, RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, Sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelitY, WiFi) module 1070, processor 1080, And the equal components of power supply 1090.It will be understood by those skilled in the art that handset structure shown in Fig. 10 is not constituted to mobile phone It limits, may include either combining certain components or different components arrangement than illustrating more or fewer components.
Wherein, RF circuits 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 1080;The data of uplink can also be sent to base station.In general, RF circuits include But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1010 can also be communicated with network and other equipment by radio communication.It is above-mentioned wireless Communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global SYstem of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, to execute various function application and the data processing of mobile phone.Memory 1020 can be led To include program storage area and data storage area, wherein program storage area can storage program area, needed at least one function Application program (such as the application program of sound-playing function, application program of image player function etc.) etc.;It data storage area can Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1020 can wrap High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories Part or other volatile solid-state parts.
Input unit 1030 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1000 It sets and the related key signals of function control inputs.Specifically, input unit 1030 may include touch panel 1031 and other Input equipment 1032.Touch panel 1031, alternatively referred to as touch screen collect user on it or neighbouring touch operation (are compared Such as user is using finger, stylus any suitable object or attachment on touch panel 1031 or near touch panel 1031 Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 1031 can Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine The signal that touch operation is brought is surveyed, touch controller is transmitted a signal to;Touch controller is received from touch detecting apparatus to be touched Information is touched, and is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and added To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves 1031.In addition to touch panel 1031, input unit 1030 can also include other input equipments 1032.Specifically, other are inputted Equipment 1032 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc. Kind is a variety of.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1041.In one embodiment, liquid crystal display may be used (Liquid CrYstal DisplaY, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED forms configure display panel 1041.In one embodiment, touch panel 1031 can cover display panel 1041, When touch panel 1031 detects on it or after neighbouring touch operation, processor 1080 is sent to determine touch event Type is followed by subsequent processing device 1080 and provides corresponding visual output on display panel 1041 according to the type of touch event.Although In Fig. 10, touch panel 1031 and display panel 1041 are to realize the input and input of mobile phone as two independent components Function, but in some embodiments it is possible to touch panel 1031 and display panel 1041 are integrated and are realized the input of mobile phone And output function.
Mobile phone 1000 may also include at least one sensor 1050, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1041, and proximity sensor can close display when mobile phone is moved in one's ear Panel 1041 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer The size of upper acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as horizontal Vertical screen switches), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, Other sensors such as hygrometer, thermometer, infrared sensor etc..
Voicefrequency circuit 1060, loud speaker 1061 and microphone 1062 can provide the audio interface between user and mobile phone.Sound The transformed electric signal of the audio data received can be transferred to loud speaker 1061 by frequency circuit 1060, by 1061 turns of loud speaker It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1062, by voicefrequency circuit Audio data is converted to after 1060 receptions, then by after the processing of audio data output processor 1080, can be sent out through RF circuits 1010 Another mobile phone is given, or audio data is exported to memory 1020 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Figure 10 is shown WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone 1000, it can save as needed Slightly.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, Processor 1080 may include one or more processing units.In one embodiment, processor 1080 can integrate application processor And modem processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulatedemodulate Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 1080.
Mobile phone 1000 further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through Power-supply management system and processor 1080 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
In one embodiment, mobile phone 1000 can also include camera, bluetooth module etc..
In the embodiment of the present application, the processor 1080 included by the terminal device executes the calculating of storage on a memory The display control method described in the various embodiments described above is realized when machine program.
When the execution of the computer program run on a processor, there can be the variation of single direction to become determining terminal Judge whether to meet default bright set of hanging scrolls part after gesture, terminal shaking is avoided to cause bright screen false triggering, is improving screen wake actions While recognition accuracy, additional sensor need not be increased, reduce power consumption of terminal, save device cost.
Used in this application may include to any reference of memory, storage, database or other media is non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (SYnchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the application the scope of the claims therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (11)

1. a kind of display control method is used for the display screen of control terminal, the method includes:
When terminal is when lifting arousal function opening, the acceleration transducer based on terminal built-in persistently obtains acceleration information;
Judge whether terminal has the motion change trend of single direction according to continuous multiple acceleration informations;The acceleration number of degrees According to variation reflect terminal motion state variation;
When determining that the terminal has the movement tendency of single direction, the posture letter of terminal is obtained based on the acceleration sensor Breath;
When the posture information meets default bright set of hanging scrolls part, the display screen of the terminal is lighted.
2. according to the method described in claim 1, it is characterized in that, it is described when terminal lift arousal function open when, be based on The acceleration transducer of terminal built-in persistently obtains acceleration information, including:
When the terminal is in breath screen state, the acceleration in tri- axis component of X, Y, Z of the acceleration transducer acquisition is obtained Angle value;
Acceleration value in tri- axis component of X, Y, Z of acquisition is stored into buffer, to be supplied to master chip to carry out at data Reason.
3. according to the method described in claim 1, it is characterized in that, the basis continuously multiple acceleration informations judge that terminal is The no motion change trend with single direction, including:
Continuous multiple acceleration values in X-axis are obtained, judge the variation tendency of continuous multiple acceleration values;
If continuous multiple acceleration values are to become larger or become smaller successively, then it is assumed that terminal has single direction in the X-axis direction Movement tendency;Or
If the error of two acceleration values of arbitrary continuation is less than default error threshold, then it is assumed that terminal has single in the X-axis direction The movement tendency in one direction.
4. according to the method described in claim 3, it is characterized in that, the basis continuously multiple acceleration informations judge that terminal is The no motion change trend with single direction further includes:
Continuous multiple acceleration values in Y-axis are obtained, judge the variation tendency of continuous multiple acceleration values;
If continuous multiple acceleration values are to become larger or become smaller successively, then it is assumed that terminal has single direction in the Y-axis direction Movement tendency;Or
If the error of two acceleration values of arbitrary continuation is less than default error threshold, then it is assumed that terminal has single in the Y-axis direction The movement tendency in one direction.
5. according to the method described in claim 1, it is characterized in that, the posture for obtaining terminal based on the acceleration sensor Information, including:
The terminal is obtained in the first position information of initial stable state based on acceleration transducer, and is obtained the terminal and is existed Mobile second position information is carried out in first preset duration;
According to the posture information of the first position information and second position information acquisition terminal.
6. according to the method described in claim 5, it is characterized in that, described when the posture information meets default bright set of hanging scrolls part When, the display screen of the terminal is lighted, including:
Judge whether the second position information meets default bright set of hanging scrolls part according to the first position information;
If the second position information, which meets, presets bright set of hanging scrolls part, the display screen of the terminal is lighted.
7. according to the method described in claim 6, it is characterized in that, described judge described second according to the first position information Whether location information meets default bright set of hanging scrolls part, including:
When the first position information is in terminal screen the first preset range of state downward, the second confidence is judged Whether breath meets second preset range of the terminal screen towards human face region;
If so, indicating that terminal is in turnover screen posture, meets and preset bright set of hanging scrolls part.
8. the method according to the description of claim 7 is characterized in that described judge described second according to the first position information Whether location information meets default bright set of hanging scrolls part, further includes:
When the first position information is in the terminal screen third preset range of state upward, the acceleration in Y-axis is obtained The variable quantity of angle value;
Judge whether the second position information meets terminal screen towards in the 4th preset range and Y-axis of human face region Whether the variable quantity of acceleration value is more than the first predetermined threshold value;
If so, indicating that terminal is in lifts screen posture, meets and preset bright set of hanging scrolls part.
9. a kind of display control unit, which is characterized in that including:
Data acquisition module, for when terminal is when lifting arousal function opening, the acceleration transducer based on terminal built-in to be held It is continuous to obtain acceleration information;
Trend judgement module, for judging whether terminal has the motion change of single direction according to continuous multiple acceleration informations Trend;
Posture acquisition module, for when determining that the terminal has the movement tendency of single direction, being sensed based on the acceleration Device obtains the posture information of terminal;
Display control module, for when the posture information meets default bright set of hanging scrolls part, lighting the display screen of the terminal.
10. a kind of terminal, including memory and processor, computer program, the computer journey are stored in the memory When sequence is executed by the processor so that the processor executes such as display control side described in any item of the claim 1 to 8 The step of method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program It is realized such as the step of display control method described in any item of the claim 1 to 8 when being executed by processor.
CN201810331404.7A 2018-04-13 2018-04-13 Display control method and device, terminal, computer readable storage medium Pending CN108563387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810331404.7A CN108563387A (en) 2018-04-13 2018-04-13 Display control method and device, terminal, computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810331404.7A CN108563387A (en) 2018-04-13 2018-04-13 Display control method and device, terminal, computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108563387A true CN108563387A (en) 2018-09-21

Family

ID=63534927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810331404.7A Pending CN108563387A (en) 2018-04-13 2018-04-13 Display control method and device, terminal, computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108563387A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111079112A (en) * 2019-12-06 2020-04-28 北京小米移动软件有限公司 Application control method, application control device and storage medium
CN111163213A (en) * 2019-11-20 2020-05-15 华为技术有限公司 Terminal control method and device and terminal equipment
CN111651114A (en) * 2020-05-27 2020-09-11 北京小米移动软件有限公司 Screen control method and device and storage medium
CN111930228A (en) * 2020-07-14 2020-11-13 北京字节跳动网络技术有限公司 Method, device, equipment and storage medium for detecting user gesture
CN112230779A (en) * 2020-11-03 2021-01-15 Oppo广东移动通信有限公司 Operation response method, device, equipment and storage medium
CN112235700A (en) * 2020-10-30 2021-01-15 Oppo广东移动通信有限公司 Amplitude adjustment method for electroacoustic device, terminal device and readable storage medium
CN112272251A (en) * 2020-10-23 2021-01-26 展讯通信(深圳)有限公司 Terminal falling water protection device and terminal
CN113126737A (en) * 2021-04-19 2021-07-16 无锡宇宁智能科技有限公司 Screen awakening method and device, terminal equipment and computer readable storage medium
CN114090140A (en) * 2020-08-05 2022-02-25 华为技术有限公司 Interaction method between devices based on pointing operation and electronic device
CN114265656A (en) * 2021-12-24 2022-04-01 四川千里倍益康医疗科技股份有限公司 Fascia gun and display control method of display screen of fascia gun
CN114582264A (en) * 2022-02-25 2022-06-03 Tcl通讯科技(成都)有限公司 Display brightness control method and device, electronic equipment and storage medium
US11941178B2 (en) 2020-11-02 2024-03-26 Asustek Computer Inc. Electronic device and control method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206165990U (en) * 2016-10-12 2017-05-17 广东乐源数字技术有限公司 Can realize raising one's hand shining shields, changes intelligent bracelet that wrist is surely shielded
CN107770391A (en) * 2017-11-16 2018-03-06 珠海市魅族科技有限公司 Put out screen and bright screen method and device, terminal and computer-readable recording medium
CN107895561A (en) * 2017-09-30 2018-04-10 努比亚技术有限公司 Method, terminal and the computer-readable recording medium of a kind of intelligent bright screen and the screen that goes out

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206165990U (en) * 2016-10-12 2017-05-17 广东乐源数字技术有限公司 Can realize raising one's hand shining shields, changes intelligent bracelet that wrist is surely shielded
CN107895561A (en) * 2017-09-30 2018-04-10 努比亚技术有限公司 Method, terminal and the computer-readable recording medium of a kind of intelligent bright screen and the screen that goes out
CN107770391A (en) * 2017-11-16 2018-03-06 珠海市魅族科技有限公司 Put out screen and bright screen method and device, terminal and computer-readable recording medium

Cited By (16)

* 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
CN111079112A (en) * 2019-12-06 2020-04-28 北京小米移动软件有限公司 Application control method, application control device and storage medium
CN111651114A (en) * 2020-05-27 2020-09-11 北京小米移动软件有限公司 Screen control method and device and storage medium
CN111930228A (en) * 2020-07-14 2020-11-13 北京字节跳动网络技术有限公司 Method, device, equipment and storage medium for detecting user gesture
US11921968B2 (en) 2020-08-05 2024-03-05 Huawei Technologies Co., Ltd. Method for interaction between devices based on pointing operation, and electronic device
CN114090140A (en) * 2020-08-05 2022-02-25 华为技术有限公司 Interaction method between devices based on pointing operation and electronic device
CN114090140B (en) * 2020-08-05 2024-10-11 华为技术有限公司 Interaction method between devices based on pointing operation and electronic device
CN112272251A (en) * 2020-10-23 2021-01-26 展讯通信(深圳)有限公司 Terminal falling water protection device and terminal
CN112235700A (en) * 2020-10-30 2021-01-15 Oppo广东移动通信有限公司 Amplitude adjustment method for electroacoustic device, terminal device and readable storage medium
US11941178B2 (en) 2020-11-02 2024-03-26 Asustek Computer Inc. Electronic device and control method thereof
CN112230779A (en) * 2020-11-03 2021-01-15 Oppo广东移动通信有限公司 Operation response method, device, equipment and storage medium
CN112230779B (en) * 2020-11-03 2024-04-05 Oppo广东移动通信有限公司 Operation response method, device, equipment and storage medium
CN113126737A (en) * 2021-04-19 2021-07-16 无锡宇宁智能科技有限公司 Screen awakening method and device, terminal equipment and computer readable storage medium
CN113126737B (en) * 2021-04-19 2022-06-07 无锡宇宁智能科技有限公司 Screen awakening method and device, terminal equipment and computer readable storage medium
CN114265656A (en) * 2021-12-24 2022-04-01 四川千里倍益康医疗科技股份有限公司 Fascia gun and display control method of display screen of fascia gun
CN114582264A (en) * 2022-02-25 2022-06-03 Tcl通讯科技(成都)有限公司 Display brightness control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108307074A (en) Display control method and device, terminal, computer readable storage medium
CN108563387A (en) Display control method and device, terminal, computer readable storage medium
CN108376086A (en) Display control method and device, terminal, computer readable storage medium
CN108391002A (en) Display control method and device, terminal, computer readable storage medium
CN108536377A (en) Display control method and device, terminal, computer readable storage medium
CN108366170A (en) Display control method and device, terminal, computer readable storage medium
CN108430100A (en) The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN108347758A (en) screen awakening method and device, terminal, computer readable storage medium
CN108391001A (en) The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN108418953A (en) The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN103365419B (en) A kind of method and apparatus triggering alarm clock control command
CN108388413A (en) The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN108462986A (en) The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN103472993A (en) Rotation displaying method, device and terminal equipment
CN109697088A (en) Application interface loading method, mobile terminal and computer readable storage medium
CN108566490A (en) The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN109542279A (en) A kind of terminal equipment control method and terminal device
CN109885153A (en) A kind of screen control method and mobile terminal
CN110515448A (en) Lift wrist detection service automatic closing method, equipment and computer readable storage medium
CN109343699A (en) A kind of bright screen method, apparatus, mobile terminal and storage medium
CN113220176A (en) Display method and device based on widget, electronic equipment and readable storage medium
CN108668015A (en) The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN110401434A (en) Wearable device control method, wearable device and computer readable storage medium
CN109947484A (en) A kind of control method, terminal and computer readable storage medium waking up lock
CN110134312A (en) Control method, wearable device and computer readable storage medium

Legal Events

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

Application publication date: 20180921