CN108388414B - Screen-off control method and device for terminal, computer-readable storage medium and terminal - Google Patents

Screen-off control method and device for terminal, computer-readable storage medium and terminal Download PDF

Info

Publication number
CN108388414B
CN108388414B CN201810112081.2A CN201810112081A CN108388414B CN 108388414 B CN108388414 B CN 108388414B CN 201810112081 A CN201810112081 A CN 201810112081A CN 108388414 B CN108388414 B CN 108388414B
Authority
CN
China
Prior art keywords
terminal
screen
control
preset
application
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.)
Expired - Fee Related
Application number
CN201810112081.2A
Other languages
Chinese (zh)
Other versions
CN108388414A (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.)
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 CN201810112081.2A priority Critical patent/CN108388414B/en
Publication of CN108388414A publication Critical patent/CN108388414A/en
Application granted granted Critical
Publication of CN108388414B publication Critical patent/CN108388414B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • 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
    • 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/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors

Abstract

The application relates to a screen-off control method and device for a terminal, a computer-readable storage medium and the terminal. The method comprises the following steps: acquiring application information of an application program currently running in a foreground of a terminal; detecting attitude information of the terminal based on a sensor built in the terminal; when the attitude information meets the preset screen-off condition, detecting whether the current terminal is in a use state; when the terminal is not in a use state, the screen of the terminal is controlled to be turned off according to the application information, the screen of the terminal can be automatically controlled to be turned off according to the application program, power consumption is saved, and user experience is improved.

Description

Screen-off control method and device for terminal, computer-readable storage medium and terminal
Technical Field
The present application relates to the field of screen control technologies, and in particular, to a screen turn-off control method and apparatus for a terminal, a computer-readable storage medium, and a terminal.
Background
With the terminal equipment entering the intelligent era, the terminal equipment becomes an indispensable communication tool in life and work of people, and the user has higher and higher requirements on the use experience of the terminal. Generally, the terminal needs to be turned on and off, and usually, a physical key needs to be manually pressed, the physical key loss can be caused by frequently clicking the physical key, the terminal is inconvenient for a user, the mobile terminal is not protected, the flexibility is not realized, and the power consumption of the terminal can be increased if the terminal is always in a screen-on state.
Disclosure of Invention
The embodiment of the application provides a screen turn-off control method and device for a terminal, a computer readable storage medium and a terminal, which can automatically control screen turn-off of a mobile terminal, save power consumption and improve user experience.
A screen-off control method of a terminal comprises the following steps:
acquiring application information of an application program currently in foreground operation of the terminal;
detecting attitude information of the terminal based on a sensor built in the terminal within preset time;
when the attitude information meets a preset screen-off condition, detecting whether the terminal is in a use state at present;
and when the terminal is not in a use state, controlling the screen of the terminal to be turned off and carrying out application control after the screen is turned off according to the application information.
A screen-off control apparatus of a terminal, the apparatus comprising:
the acquisition module is used for acquiring the application information of the application program currently running in the foreground of the terminal;
the acquisition module is used for detecting the attitude information of the terminal based on a sensor built in the terminal within a preset time;
the detection module is used for detecting whether the terminal is in a use state or not when the attitude information meets a preset screen-off condition;
and the control module is used for controlling the screen of the terminal to be turned off and carrying out application control after the screen is turned off according to the application information when the terminal is not in the using state.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a screen-off control method of a terminal in various embodiments of the present application.
A terminal comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the steps of the screen-off control method of the terminal in various embodiments of the application.
The method and the device for controlling the screen-off of the terminal, the computer-readable storage medium and the terminal provided by the embodiment of the application acquire the application program currently running in the foreground of the terminal; detecting attitude information of the terminal based on a sensor built in the terminal; when the attitude information meets a preset screen-off condition, detecting whether the current terminal is in a use state; when the terminal is not in the use state, the screen of the terminal can be controlled to be turned off, and the application control after the screen is turned off is carried out according to the application information, so that the power consumption is saved, and the experience degree of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a screen-off control method of a terminal in one embodiment;
FIG. 2 is a flow chart illustrating an embodiment of detecting a rotation angle of the terminal based on a sensor built in the terminal;
FIG. 3 is a flowchart illustrating an embodiment of detecting whether a current terminal is in a use state;
FIG. 4 is a flowchart illustrating controlling the screen-off of the terminal according to the application information when the terminal is not in use in one embodiment;
fig. 5 is a flowchart of a screen-off control method of a terminal in another embodiment;
fig. 6 is a block diagram showing a configuration of a screen-off control apparatus of the terminal in one embodiment;
fig. 7 is a schematic diagram of the internal structure of the terminal in one embodiment;
fig. 8 is a block diagram of a partial structure of a mobile phone related to a terminal according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, the first preset angle may be referred to as a second preset angle, and similarly, the second preset angle may be referred to as the first preset angle, without departing from the scope of the present invention. Both the first preset angle and the second preset angle are preset angles, but they are not the same preset angle.
Fig. 1 is a flowchart of a screen-off control method of a terminal in one embodiment. The screen turn-off control method of the terminal in this embodiment is described by taking the operation on the terminal as an example. As shown in fig. 1, the screen-off control method of the terminal includes steps 102 to 106.
Step 102: and acquiring the application information of the application program currently in foreground operation of the terminal.
The operation of an Application program (APP, also called an Application) is usually represented by the operation of a plurality of related processes. A process (process) is a running activity of a program in a computer on a data set, is a basic unit of resource allocation and scheduling of a system, and is the basis of an operating system structure. The application program corresponding to the operation page of the application program displayed on the current display interface of the terminal is foreground application currently running on the terminal, and the application program running on the background is background application program.
The method comprises the steps of obtaining application information of an application program currently in foreground operation of a terminal, wherein the application information can be application types, application identifications, historical operation data and the like.
Step 104: and detecting the attitude information of the terminal based on a sensor built in the terminal within a preset time.
The terminal is internally provided with a sensor for acquiring attitude information or running state information of the terminal, a proportional acceleration sensor, a magnetic sensor, a direction sensor, a gyroscope sensor, a gravity sensor, a linear acceleration sensor and the like. And light sensing sensors, pressure sensors, temperature sensors, proximity sensors and the like for assisting in acquiring other information of the terminal can be arranged in the terminal.
It should be noted that the attitude information may be understood as position information based on a standard coordinate system of an acceleration sensor and a gyroscope sensor in the terminal within a preset time, and the position information may be characterized by acceleration of X, Y, Z triaxial components and angular velocity information of X, Y, Z triaxial components. Wherein the attitude information includes three-axis acceleration and three-axis rotation angle. Wherein the preset time is related to the use habit of the user and the age of the user.
Step 106: and when the attitude information accords with a preset screen-off condition, detecting whether the terminal is in a use state currently.
The terminal compares the attitude information acquired by a sensor arranged in the terminal with the preset screen-off condition information, and detects whether the current terminal is in a use state or not when the attitude information meets the preset screen-off condition. The preset screen-off condition can be expressed by using the posture information of the terminal, for example, the terminal is changed from a handheld lifting state to a handheld natural hanging state, or from a handheld lifting state to a pocket-returning state. Wherein, the hand-held natural hanging-down state and the pocket-putting-back state can be expressed by the posture information. That is, the posture information of the current terminal may be used to indicate whether the terminal is in a use state.
It should be noted that the use state is that the user is operating or browsing the display interface of the terminal, or when the terminal is in the use state, the terminal may acquire the face information of the user using the terminal.
When the terminal is not in the use state, it can be understood that the current terminal is far away from the face area of the user. For example, the terminal is in a pocket, or the user holds the terminal with his arm in a natural state, which can be detected by the posture information.
Step 108: and when the terminal is not in a use state, controlling the screen of the terminal to be turned off and carrying out application control after the screen is turned off according to the application information.
When the terminal is not in a use state, the application program is still running on the current terminal foreground, the attitude information of the terminal at this time accords with the preset screen-off condition of putting down the screen-off, and the user does not watch the display interface of the terminal, and at this time, the terminal can be controlled to screen-off and the application control after the screen-off is carried out according to the application information. For example, the current terminal runs a video-type application program, and according to the type, the terminal can be controlled to turn off the screen and pause the content played by the video-type application program, so that the screen-off is controlled to keep the current state.
According to the screen-off control method of the terminal, the application information of the application program currently running in the foreground of the terminal is acquired, when the attitude information detected based on the sensor accords with the preset screen-off condition and the terminal is not in the use state, the screen can be controlled to be turned off according to the application information, the screen of the terminal is controlled to be turned off, the application control after the screen is turned off is carried out according to the application information, a user does not need to use a power supply key, the use is convenient and fast, the power consumption is saved, and the user experience is improved.
In one embodiment, the attitude information of the terminal is detected based on a sensor built in the terminal, and is mainly based on an acceleration sensor and a gyroscope built in the terminal. The acceleration sensor (accelerometer), also known as a Gravity sensor (G-sensor), is an MEMS sensor capable of sensing the magnitude of acceleration, and can obtain the acceleration from three different axial components (X, Y, Z three-axis components) through the acceleration, so as to inform the upper layer application of performing corresponding processing. When the terminal is horizontally placed on a desktop, the three-axis components (X, Y and Z) of the acceleration are (0, 0 and 9.81); when the terminal is placed on a desktop downwards, three-axis acceleration components (X, Y and Z) are (0, 0, -9.81); when the terminal inclines to the left, the acceleration X axis is a positive value; when the terminal inclines to the right, the X axis of the acceleration is a negative value; when the terminal inclines upwards, the acceleration Y axis is a negative value; when the terminal is inclined downwards, the acceleration Y axis is a positive value. The value of the X, Y, Z axis will change constantly as the terminal is rotated. That is, it can be understood that the terminal is in a coordinate system, and whether the terminal moves or rotates can be determined by determining the current values of the current X, Y, Z triaxial components.
A gyroscope (Gyro-sensor), also called an angular velocity sensor, measures a physical quantity, which is a rotational angular velocity in yaw and tilt, unlike an acceleration sensor. On the terminal, the complete 3D motion cannot be measured or reconstructed by only using the acceleration sensor, and only the axial linear motion can be detected. However, the gyroscope can well measure the rotating and deflecting actions, so that the actual actions of a user can be accurately analyzed and judged. The gyroscope and the acceleration sensor use the same coordinate system, wherein when the terminal horizontally rotates clockwise, the Z axis is a positive value; when the terminal rotates horizontally anticlockwise, the z axis is a negative value; when the terminal rotates to the left, the y axis is a negative value; when the terminal rotates rightwards, the y axis is a positive value; when the terminal rotates upwards, the x axis is a negative value; when the terminal is rotated down, the x-axis is positive.
Fig. 2 is a flowchart illustrating detecting the attitude information of the terminal based on a sensor built in the terminal within a preset time period according to an embodiment.
Detecting the attitude information of the terminal based on a sensor built in the terminal within a preset time, wherein the method comprises the following steps:
step 202: and acquiring the preset time.
The preset time is related to factors of the use habit of the user and the age of the user.
The acquiring of the preset time specifically comprises: the terminal prompts a user to demonstrate a putting-down action (the terminal is changed from a handheld lifting state to a handheld natural hanging-down state or from a handheld lifting state to a pocket putting-back state); when the drop action executed by the user is detected and the preset drop condition is met, the time length for executing the drop action is saved, the saved time length is used as the time basis for identifying the drop action of the user next time, and meanwhile, the saved time length is defined as a first time length. Repeating the putting down action, detecting whether the demonstration action can be correctly recognized within a first time length, and if the demonstration action can be recognized, taking the first time length as a preset time length, namely, finishing the putting down action within the preset time length; if the user can not recognize the drop action, the user is prompted to demonstrate the drop action again, the first time length is adjusted until the drop action can be recognized correctly, and the adjusted first time length is used as the preset time length.
Step 204: and acquiring the acceleration and the rotation angle of X, Y, Z triaxial components acquired by the acceleration sensor and the gyroscope within a preset time.
The acceleration sensor and gyroscope can acquire the acceleration and rotation angular velocity of X, Y, Z triaxial components throughout the process (lowering action) from the initial position of the terminal (toward the face of the person) to the final position where the user holds the terminal arm naturally down or places the pocket. When the terminal moves, the attitude information of the terminal starts to be acquired, the attitude information acquired at the current moment is used as first attitude information, meanwhile, the current moment is used as the starting moment of preset time, and the attitude information of the terminal acquired by the acceleration sensor and the gyroscope is continuously acquired within the preset time.
Further, the preset time may be set to 1 second, and within the time of 1 second, the acceleration of the X, Y, Z triaxial components of the terminal is acquired according to the acquisition frequency of the acceleration sensor. The gyroscope acquires the rotation angular velocity of the current terminal X, Y, Z with three-axis components, and performs integral calculation on the angular velocity from the starting time of the preset time to any time within the preset time, so as to continuously acquire the rotation angle of X, Y, Z three-axis components within the preset time. That is, the gyroscope will acquire the rotation angles of the X, Y, Z three-axis components of angular velocity in a preset time.
Step 206: and acquiring the attitude information according to the acceleration and the rotation angle.
And acquiring attitude information of the terminal in preset time according to the three-axis acceleration acquired by the acceleration and the three-axis rotation angle acquired by the gyroscope, wherein the attitude information comprises X, Y, Z three-axis component acceleration and X, Y, Z three-axis component rotation angle. According to the information of the two dimensions of the obtained three-axis component acceleration and the three-axis component rotation angle, the attitude information of the terminal can be accurately obtained, and whether the attitude information of the terminal in the preset time meets the preset screen-off condition or not can be accurately and timely judged.
Whether preset screen-off conditions are met or not can be judged based on the acquired attitude information. If the preset screen-off condition is met, the current state of the terminal is a put-down state, wherein the put-down state can be understood as a state that the arm of the terminal held by a user naturally drops or the terminal is placed in a pocket.
In one embodiment, the preset screen-off condition is used to reflect that the terminal is dropped. The preset screen turn-off condition is that the rotation angle of the X-axis component is larger than or equal to a first preset angle and the Y-axis acceleration is smaller than a first preset value.
Furthermore, the rotation angle of the X-axis component is more than or equal to 20 degrees, and the acceleration of the Y-axis is less than 0.05m/s2. When the attitude information meets the preset screen-off condition, the terminal is indicated to be in a lifted state (initial position: display interface of the terminal)Toward the face) to a down state (a state in which the user holds the terminal arm naturally drooping).
In one embodiment, the preset screen-off condition is used to reflect that the terminal is being put back in a pocket or backpack. Optionally, the preset screen turn-off condition may be that the rotation angles of the Y-axis component and the Z-axis component are both greater than or equal to a second preset angle, and the Y-axis acceleration is smaller than a second preset value.
Furthermore, the preset screen-off condition can also be that the rotation angles of the Y-axis component and the Z-axis component are both more than or equal to 30 degrees and the acceleration of the Y-axis is less than 1m/s2. Wherein the rotation angle of the Y-axis component is greater than or equal to 30 degrees, the rotation angle of the Z-axis component is greater than or equal to 40 degrees, and the acceleration of the Y-axis is less than 1m/s2. When the posture information meets the preset screen-off condition, the terminal is changed from a lifting state (an initial position: the display interface of the terminal faces to the face) to a dropping state (the terminal is placed in a pocket).
Optionally, in one embodiment, the preset screen-off condition is used to reflect that the terminal is turned over. The preset screen-off condition can also be that the rotation angle of the X-axis component can be more than or equal to 30 degrees and the Z-axis acceleration is less than-9.81 m/s2. Or the preset screen-off condition can also be that the rotation angle of the Y-axis component is more than or equal to 30 degrees and the Z-axis acceleration is less than-9.81 m/s2
Of course, the preset screen-off condition may also be set according to the usage habit of the user, and is not limited to the numerical information listed in the above embodiment.
According to the method in the embodiment, the attitude information of the terminal in the preset time can be accurately acquired by combining the acceleration sensor in the preset time and the triaxial acceleration and the rotation angle acquired by the gyroscope, and whether the terminal is in a put-down state or not can be accurately judged by combining the preset screen-off condition.
In one embodiment, before acquiring the acceleration of the three-axis component acquired by the acceleration sensor within a preset time period, the method further includes:
step 200: and detecting whether the terminal shakes or not based on the acceleration sensor.
When the acceleration sensor is in an on state, an acceleration detection (AMD) function of the acceleration sensor starts to work, and collects position information of the terminal, but a gyroscope for collecting angular velocity and a processor (main chip) in the terminal for processing the obtained acceleration and angular velocity are both in a low power consumption state. And judging whether the terminal shakes or not according to whether the acceleration sensor detects that the acceleration of the three-axis component changes or not.
Step 201: and when the terminal shakes, the gyroscope is started to be in a working state.
When the acceleration sensor detects that the acceleration of the triaxial component changes, the terminal shakes, the acceleration sensor sends an MD interrupt signal (MD ═ 1, which indicates that data continues to be sent) to a processor (main chip) for processing acceleration and angular velocity, the processor is awakened, and after receiving the MD interrupt signal, the processor controls to turn on the gyroscope to enable the gyroscope to be in a working state, so that acceleration data acquired by the acceleration sensor and rotation angle data acquired by the gyroscope are acquired.
In the screen turn-off control method for the terminal in this embodiment, the acceleration sensor and the gyroscope are not turned on simultaneously, and when the acceleration sensor detects that the three-axis acceleration of the terminal changes, the main chip and the gyroscope in the low power consumption state are restored to the operating state, so that power consumption can be saved.
Fig. 3 is a flowchart illustrating detecting whether a current terminal is in a use state according to an embodiment.
Detecting whether the current terminal is in a use state, including:
step 302: and calling camera equipment of the terminal to acquire the image information of the current visible area of the terminal.
And when the attitude information meets the preset screen-off condition, the terminal calls the camera equipment to acquire the image information of the current terminal visual area. The camera equipment is a front camera of the terminal, and the front camera collects image information of a current terminal visual area. It should be noted that the visible area is an area that can be shot by the front-facing camera at the moment when the current terminal meets the preset screen-off condition.
Step 304: and identifying whether the image comprises a human eye region.
If the user is operating or browsing the terminal, the image information comprises the human eye information of the user; if the user does not operate or browse the terminal, the image information does not include the human eye information of the user himself. Whether the image comprises human eye information is identified based on human eye identification technology.
Specifically, an algorithm based on skin color is adopted, and a method of normalizing an RGB color space is used for separating the face from the image and other backgrounds according to the clustering characteristics of the face skin color in the color space, so that a face area image is obtained. On the basis of accurately identifying the human face region, according to the characteristics that the gray value of the eye region is lower than the gray values of other surrounding regions and the gray value change rate of the eye region is high, after the binarization processing of the human face image, integral projection is carried out on the gray value of the image in the horizontal and vertical directions, and the human eye region is roughly positioned after the obtained projection curve is comprehensively analyzed.
Step 306: when the image comprises the human eye area, the terminal is in a use state;
when the image information includes the human eye area, it indicates that the current user is operating or browsing the display interface of the terminal, and at this time, the terminal is in a use state.
Step 308: and when the human eye area is not included in the image, the terminal is not in a use state.
When the image information includes the human eye region, it indicates that the current terminal is far away from the human face region of the user, and the terminal may be located in a pocket, or the user holds the terminal with arms in a natural dropping state, and the terminal is in an unused state at this time.
According to the screen-off control method of the terminal, the front-facing camera of the terminal can be called to collect images, whether the current terminal is in a browsing state or not is judged by analyzing whether the image information comprises a human eye region or not, the use state of the current terminal can be intuitively and accurately judged, and then a basis is provided for screen-off control.
Fig. 4 is a flowchart for controlling the screen of the terminal to be turned off according to the application information when the terminal is not in a use state in one embodiment.
When the terminal is not in a use state, controlling the screen of the terminal to be turned off according to the application program, comprising the following steps:
step 402: and when the terminal is not in a use state, acquiring the application type of the application program.
When the attitude information of the terminal accords with the preset screen-off condition and the terminal is not in a use state, acquiring the application information of the application program currently running in the foreground of the terminal, wherein the application information comprises an application type, an application identifier, historical running data and the like.
The application types can be divided into an intelligence development type, a game type, a video playing type, an instant messaging type, a system tool type and the like according to the functional division of each application. The application identifier is used for uniquely identifying the corresponding application program and can be formed by one or a combination of several of numbers, letters or other characters with preset digits. For example, application a may be represented by application identifier "0001", application B by "1234", and so on.
Step 404: and determining a screen-off control strategy corresponding to the application type according to the mapping relation between the application type and the screen-off control strategy.
Different types of application programs correspond to different screen-off control strategies, and the mapping relation between the application types and the screen-off control strategies can be stored in the terminal in advance. The application type and the screen-off control strategy may be in a one-to-one mapping relationship or a mapping relationship of multiple pairs. The screen-off control strategy can be screen-off and screen-locking control and screen-off keeping current state control.
Specifically, the screen-off and screen-locking control is to turn off the screen of the terminal, and simultaneously, to make the screen of the terminal in a screen-locking state, and to unlock the screen when the screen is turned on again. The screen-off current state is controlled to be only the screen of the terminal in a black screen state without performing screen locking processing, meanwhile, an application program running in a foreground keeps the state of the screen immediately before the screen-off processing unchanged, and when the screen is lightened again, the screen can be directly unlocked and is restored to the state of the screen immediately before the screen-off processing. For example, when the application running in the foreground immediately before the screen is turned off is an audio-visual playing application, and a certain movie or a tv series is being played, the control for keeping the current state of the screen off can be understood as the control for keeping the state of the screen off and the playing suspended, that is, keeping the state immediately before the screen turning-off processing unchanged, and when the screen is turned on again, continuing to play the suspended movie or tv series.
And determining a screen-off control strategy corresponding to the application type according to the preset mapping relation and the application type of the foreground running application program.
Step 406: and performing screen-off control processing on the terminal according to the determined screen-off control strategy.
And performing screen-off control processing on the terminal according to the determined screen-off control strategy. If the application program running in the foreground is in the video and audio playing class, the screen-off control strategy corresponding to the video and audio playing class is the screen-off protection current state control. For example, when a user takes a subway or a bus, the user is watching a movie "warwolf 2", when the user arrives at a stop, the user needs to get off the bus, at this time, the user places the terminal in a pocket, or holds the terminal to naturally droop, the posture information of the terminal meets the preset screen-off condition, meanwhile, the terminal is also in an unused state, and when the posture information of the terminal meets the preset screen-off condition, the terminal can control the screen-off of the terminal, and meanwhile, the movie "warwolf 2" being played is paused.
According to the screen-off control method in the embodiment, when a user encounters an emergency (for example, needs to get off when taking a subway) while using the terminal (for example, watching news and videos), the use of the terminal needs to be interrupted, the automatic screen-off function can be realized by putting down the terminal, the running of an application program can be suspended, and the experience degree of the user is improved.
Fig. 5 is a flowchart of a screen-off control method of a terminal in one embodiment.
A screen-off control method of a terminal comprises the following steps:
step 502: acquiring application information of an application program currently in foreground operation of the terminal;
step 504: detecting attitude information of the terminal based on a sensor built in the terminal;
step 506: within a preset time, when the attitude information meets a preset screen-off condition, detecting whether the terminal is in a use state at present;
step 508: and when the terminal is not in a use state, controlling the screen of the terminal to be turned off according to the application information.
Steps 502 to 508 correspond to steps 102 to 108 in the previous embodiment one to one, and are not described herein again.
Step 510: and when the terminal is in a screen-off state, acquiring the attitude information of the current terminal.
When the terminal is in a screen-off state, attitude information of the terminal is acquired based on an acceleration sensor and a gyroscope which are arranged in the terminal.
Step 512: and when the gesture information accords with a preset screen lightening condition, acquiring the duration of the terminal in a screen extinguishing state.
And when the acquired gesture information accords with a preset screen lightening condition, acquiring the duration of the terminal in a screen extinguishing state. Wherein, the duration of the screen-off state is counted from the time when the control terminal is screen-off in step 508, and the time when the preset screen-on condition is met is ended.
It should be noted that the preset bright screen condition may be a hand-lifting preset bright screen condition, a turning preset bright screen condition, or a bag-out preset bright screen condition. Wherein, the preset bright screen condition for raising the hand can be that when the X-axis of the gyroscope rotates for more than or equal to 25 degrees, and the terminal faces the human face (acceleration: 4 m/s)2<X axis<4m/s2,2m/s2<Y-axis<9.8m/s2,3.5m/s2<Z axis<9.3m/s2). The turning-over preset bright screen condition may be that when the rotation angle of the Y-axis of the gyroscope exceeds 70 degrees, and the terminal position is facing the human face (acceleration: -5 m/s)2<X axis<5m/s2,-2m/s2<Y<9.8m/s2,0.5m/s2<Z axis<9.8m/s2). The preset bright screen condition can be found out by drawing out the pocketThe rotation angle of the Z axis of the gyroscope exceeds 40 degrees, the Z axis exceeds 15 degrees and the terminal position is a face-facing state (acceleration: 5 m/s)2<X axis<5m/s2,-2m/s2<Y-axis<9.8m/s2,0.5m/s2<Z axis<9.8m/s2)。
Of course, other acceleration and rotation angles may be set in the preset bright screen condition, and are not limited to the above condition range.
Step 514: and determining the bright screen control strategy corresponding to the duration according to the corresponding relation between the duration and the bright screen control strategy.
Presetting the corresponding relation between the screen-off time length and the screen-on control strategy, and determining the screen-on control strategy corresponding to the time length. The bright screen control strategy can be at least one of bright screen display time, bright screen wallpaper replacement and display state when the bright screen is restored to be turned off. And the display state when the screen is turned on and turned off, and the display state when the screen is turned off is restored.
Step 516: and carrying out screen lightening control processing on the terminal according to the determined screen lightening control strategy.
If the screen-off time is 10s, the corresponding screen-on control strategy is the display state when the screen-on is recovered to be screen-off, and the screen-on processing can be carried out on the terminal according to the control mode of the display state when the screen-on is recovered to be screen-off. For example, when the screen is turned off, the state is that the movie "warwolf 2" is paused to be played, and if the screen-on control strategy at this time is that the screen is turned on and the screen is restored to the display state when the screen is turned off, the display state is that the screen is restored to the display state when the screen is turned off, and the tentative movie "warwolf 2" is continuously played.
In this embodiment, after the screen-off control is performed on the terminal, if the gesture information of the terminal meets the hand-raising screen-on condition during the screen-off period, the screen-on processing of different screen-on strategies may be performed on the terminal according to the screen-off duration. If a user meets an emergency (for example, needs to get off when taking a subway) while using the terminal (for example, watching news and videos), the use of the terminal needs to be interrupted, the automatic screen-off function of the terminal can be realized by putting down the terminal, and meanwhile, the running of an application program can be suspended, so that the experience degree of the user is improved. After the emergency event is processed, the terminal can be subjected to screen lightening processing of different screen lightening strategies according to the screen lightening duration, such as screen lightening display time, screen lightening replacement wallpaper, and screen lightening restoration screen lightening display state screen lightening processing, so that the personalized screen lightening strategy is customized for the user, and the user experience is improved.
It should be understood that although the various steps in the flow charts of fig. 1-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 6 is a block diagram of a screen-off control apparatus of a terminal according to an embodiment. The screen control device that disappears of terminal, the device includes:
an obtaining module 610, configured to obtain application information of an application program currently running in a foreground of the terminal;
the acquisition module 620 is configured to detect attitude information of the terminal based on a sensor built in the terminal within a preset time;
a detecting module 630, configured to detect whether the terminal is in a use state when the gesture information meets a preset screen-off condition;
and the control module 640 is configured to control the screen of the terminal to be turned off when the terminal is not in a use state, and perform application control after the screen is turned off according to the application information.
Above-mentioned screen controlling means that disappears at terminal acquires module 610 and acquires the application information that the terminal is currently in the application of proscenium operation, and detection module 630 is in predetermineeing the time, and when detecting attitude information based on the sensor and accord with and predetermine the condition of going out the screen, and when the terminal is not in user state, control module 640 can control terminal and go out the screen and according to application control after the screen is gone out to application information can carry out the screen control that goes out of different tactics to the terminal according to application information automatically, need not the user and uses the power button, and convenient to use is swift, saves the consumption, has promoted user's experience degree.
In one embodiment, the acquisition module comprises an acceleration sensor and a gyroscope; acquiring the acceleration and the rotation angle of X, Y, Z triaxial components acquired by the acceleration sensor and the gyroscope within preset time; the acquisition module 620 acquires the attitude information according to the acceleration and the rotation angle.
In one embodiment, the acquisition module 620 further comprises:
the judging unit is used for detecting whether the terminal shakes or not based on the acceleration sensor;
and the starting unit is used for starting the gyroscope to enable the gyroscope to be in a working state when the terminal shakes.
In this embodiment, the acceleration sensor and the gyroscope are not simultaneously turned on, and when the acceleration sensor detects that the triaxial acceleration of the terminal changes, the main chip and the gyroscope in the low power consumption state are enabled to be recovered to the working state, so that the power consumption can be saved.
In one embodiment, the preset screen turn-off condition is that the rotation angle of the X-axis component is greater than or equal to a first preset angle and the Y-axis acceleration is less than a first preset value, or the rotation angles of the Y-axis component and the Z-axis component are both greater than or equal to a second preset angle and the Y-axis acceleration is less than a second preset value; the first preset angle is smaller than the second preset angle, and the first preset value is smaller than the second preset value.
In one embodiment, a detection module comprises:
the calling unit is used for calling the camera equipment of the terminal to acquire the image information of the current visible area of the terminal;
the identification unit is used for identifying whether the image comprises human eye information or not based on a human eye identification technology, and if so, the terminal is in a use state; if not, the terminal is not in a use state.
The screen-off control device of the terminal in the embodiment can call the front camera of the terminal to collect images, judge whether the current terminal is in a browsing state or not by analyzing whether the image information comprises a human eye region or not, judge the use state of the current terminal intuitively and accurately and then provide a basis for screen-off control.
In one embodiment, a control module includes:
a first obtaining unit, configured to obtain an application type of the application program when the terminal is not in a use state;
the determining unit is used for determining a screen-off control strategy corresponding to the application type according to the mapping relation between the application type and the screen-off control strategy; the screen-off control strategy comprises screen-off and screen-locking control and screen-off keeping current state control;
and the screen-off control unit is used for carrying out screen-off control processing on the terminal according to the determined screen-off control strategy.
According to the screen-off control device in the embodiment, when a user encounters an emergency (for example, needs to get off when taking a subway) while using a terminal (for example, watching news and videos), the use of the terminal needs to be interrupted, the automatic screen-off function can be realized by putting down the terminal, the running of an application program can be suspended, and the experience degree of the user is improved.
In one embodiment, the screen-off control device of the terminal further includes a screen-on control module, and the screen-on control module includes:
the second acquisition unit is used for acquiring the attitude information of the current terminal when the terminal is in a screen-off state;
the third acquisition unit is used for acquiring the time length of the terminal in a screen-off state when the gesture information meets a preset screen-on condition;
the second determining unit is used for determining the bright screen control strategy corresponding to the duration according to the corresponding relation between the duration and the bright screen control strategy; the bright screen control strategy comprises at least one of bright screen display time, bright screen wallpaper replacement and display state when the bright screen is restored to be turned off
And the screen lightening control unit is used for carrying out screen lightening control processing on the terminal according to the determined screen extinguishing control strategy.
In this embodiment, after the screen is turned off, if the gesture information of the terminal meets the condition of raising hands and lighting the screen during the screen turning off period, the screen lighting process with different screen lighting strategies can be performed on the terminal according to the screen turning off duration. If a user meets an emergency (for example, needs to get off when taking a subway) while using the terminal (for example, watching news and videos), the use of the terminal needs to be interrupted, the automatic screen-off function of the terminal can be realized by putting down the terminal, and meanwhile, the running of an application program can be suspended, so that the experience degree of the user is improved. After the emergency event is processed, the terminal can be subjected to screen lightening processing of different screen lightening strategies according to the screen lightening duration, such as screen lightening display time, screen lightening replacement wallpaper, and screen lightening restoration screen lightening display state screen lightening processing, so that the personalized screen lightening strategy is customized for the user, and the user experience is improved.
The division of each module in the screen turn-off control device of the terminal is only used for illustration, and in other embodiments, the screen turn-off control device of the terminal may be divided into different modules as needed to complete all or part of the functions of the screen turn-off control device of the terminal.
For specific limitations of the screen-off control device of the terminal, reference may be made to the above limitations of the screen-off control method of the terminal, and details are not described herein again. All or part of each module in the screen-off control device of the terminal can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 7 is a schematic diagram of the internal structure of the terminal in one embodiment. As shown in fig. 7, the terminal includes a processor, a memory, and a network interface connected through a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory is used for storing data, programs and the like, and the memory stores at least one computer program which can be executed by the processor to realize the wireless network communication method suitable for the electronic device provided by the embodiment of the application. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor for implementing a screen-off control method of a terminal provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external electronic device. The electronic device may be a mobile phone, a tablet computer, or a personal digital assistant or a wearable device, etc.
The implementation of each module in the screen turn-off control device of the terminal provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal or the server. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a screen blanking control method of a terminal.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a method of controlling a screen blanking of a terminal.
The embodiment of the application also provides a terminal. As shown in fig. 8, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of sales), a vehicle-mounted computer, a wearable device, and so on, taking the terminal as the mobile phone as an example:
fig. 8 is a block diagram of a partial structure of a mobile phone related to a terminal according to an embodiment of the present application. Referring to fig. 8, the handset includes: radio Frequency (RF) circuitry 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuitry 860, wireless fidelity (WiFi) module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the downlink information to the processor 880; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 800. Specifically, the input unit 830 may include an operation panel 831 and other input devices 832. The operation panel 831, which may also be referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the operation panel 831 or in the vicinity of the operation panel 831 using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. In one embodiment, the operation panel 831 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the operation panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the operation panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 840 may include a display panel 841. In one embodiment, the Display panel 841 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the operation panel 831 can cover the display panel 841, and when the operation panel 831 detects a touch operation thereon or nearby, it is transmitted to the processor 880 to determine the type of touch event, and then the processor 880 provides a corresponding visual output on the display panel 841 according to the type of touch event. Although in fig. 8 the operation panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments the operation panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 800 may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
The audio circuitry 860, speaker 861 and microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 860 and converted into audio data, and then the audio data is output to the processor 880 for processing, and then the audio data may be transmitted to another mobile phone through the RF circuit 810, or the audio data may be output to the memory 820 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 870, and provides wireless broadband Internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it is not an essential component of cell phone 800 and may be omitted as desired.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby performing an overall listening to the mobile phone. In one embodiment, processor 880 may include one or more processing units. In one embodiment, the processor 880 may integrate an application processor and a modem, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem handles primarily wireless communications. It is to be appreciated that the modem need not be integrated into the processor 880. For example, the processor 880 may integrate an application processor and a baseband processor, which may constitute a modem with other peripheral chips, etc. The phone 800 also includes a power supply 890 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 890 through a power management system that may be used to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 800 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present application, the processor included in the mobile phone implements the above-described screen-off control method of the terminal when executing the computer program stored in the memory.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A screen-off control method of a terminal is characterized by comprising the following steps:
acquiring application information of an application program currently in foreground operation of the terminal;
detecting attitude information of the terminal based on a sensor built in the terminal within preset time; the built-in sensor of the terminal comprises an acceleration sensor and a gyroscope; wherein whether the terminal shakes is detected based on the acceleration sensor; when the terminal shakes, the gyroscope is started to be in a working state;
when the attitude information meets a preset screen-off condition, detecting whether the terminal is in a use state at present;
when the terminal is not in a use state, controlling the screen of the terminal to be turned off and carrying out application control after the screen is turned off according to the application information;
when the terminal is not in a use state, controlling the screen of the terminal to be turned off and carrying out application control after the screen is turned off according to the application information, wherein the method comprises the following steps:
when the terminal is not in a use state, acquiring the application type of the application program;
determining a screen-off control strategy corresponding to the application type according to the mapping relation between the application type and the screen-off control strategy; the screen-off control strategy comprises screen-off and screen-locking control and screen-off keeping current state control;
and performing screen-off control processing on the terminal according to the determined screen-off control strategy.
2. The method according to claim 1, wherein detecting the attitude information of the terminal based on a sensor built in the terminal within a preset time comprises:
acquiring the preset time;
continuously acquiring the acceleration and the rotation angle of X, Y, Z triaxial components acquired by the acceleration sensor and the gyroscope within a preset time;
and acquiring the attitude information according to the acceleration and the rotation angle.
3. The method according to claim 2, wherein the preset screen-off condition is that the rotation angle of the X-axis component is greater than or equal to a first preset angle and the Y-axis acceleration is less than a first preset value, or,
the rotation angles of the Y-axis component and the Z-axis component are both larger than or equal to a second preset angle, and the Y-axis acceleration is smaller than a second preset value;
the first preset angle is smaller than the second preset angle, and the first preset value is smaller than the second preset value.
4. The method of claim 1, wherein the detecting whether the current terminal is in a use state comprises:
calling camera equipment of the terminal to acquire image information of a current visible area of the terminal;
identifying whether a human eye region is included in the image information;
if so, the terminal is in a use state;
if not, the terminal is not in a use state.
5. The method according to claim 1, wherein the screen-off and screen-locking control means that a screen of the terminal is turned off while the screen of the terminal is in a screen-locking state, and unlocking is required when the screen is turned on again;
the screen-off current state control is to make the screen of the terminal in a black screen state only, not lock the screen of the terminal, and make the application program running in the foreground keep the state immediately before the screen-off process unchanged.
6. The method according to any one of claims 1-5, further comprising:
when the terminal is in a screen-off state, acquiring the attitude information of the current terminal;
when the gesture information meets a preset screen lightening condition, acquiring the time length of the terminal in a screen extinguishing state;
determining a bright screen control strategy corresponding to the duration according to the corresponding relation between the duration and the bright screen control strategy; the bright screen control strategy comprises at least one of bright screen display time, bright screen wallpaper replacement and display state when the bright screen is restored to be turned off;
and carrying out screen lightening control processing on the terminal according to the determined screen lightening control strategy.
7. A screen-off control device of a terminal, the device comprising:
the acquisition module is used for acquiring the application information of the application program currently running in the foreground of the terminal;
the acquisition module is used for detecting the attitude information of the terminal based on a sensor built in the terminal within a preset time; the acquisition module comprises an acceleration sensor and a gyroscope; wherein, the collection module still includes: the judging unit is used for detecting whether the terminal shakes or not based on the acceleration sensor; the starting unit is used for starting the gyroscope to enable the gyroscope to be in a working state when the terminal shakes;
the detection module is used for detecting whether the terminal is in a use state or not when the attitude information meets a preset screen-off condition;
the screen-off control module is used for controlling the screen of the terminal to be off and carrying out application control after screen-off according to the application information when the terminal is not in a use state;
the screen-off control module comprises:
a first obtaining unit, configured to obtain an application type of the application program when the terminal is not in a use state;
the determining unit is used for determining a screen-off control strategy corresponding to the application type according to the mapping relation between the application type and the screen-off control strategy; the screen-off control strategy comprises screen-off and screen-locking control and screen-off keeping current state control;
and the screen-off control unit is used for carrying out screen-off control processing on the terminal according to the determined screen-off control strategy.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
9. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 6 are implemented by the processor when executing the computer program.
CN201810112081.2A 2018-02-05 2018-02-05 Screen-off control method and device for terminal, computer-readable storage medium and terminal Expired - Fee Related CN108388414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810112081.2A CN108388414B (en) 2018-02-05 2018-02-05 Screen-off control method and device for terminal, computer-readable storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810112081.2A CN108388414B (en) 2018-02-05 2018-02-05 Screen-off control method and device for terminal, computer-readable storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108388414A CN108388414A (en) 2018-08-10
CN108388414B true CN108388414B (en) 2020-05-12

Family

ID=63074451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810112081.2A Expired - Fee Related CN108388414B (en) 2018-02-05 2018-02-05 Screen-off control method and device for terminal, computer-readable storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108388414B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582197A (en) * 2018-11-30 2019-04-05 北京小米移动软件有限公司 Screen control method, device and storage medium
CN109511139B (en) * 2018-12-19 2023-01-03 Oppo广东移动通信有限公司 WIFI control method and device, mobile device and computer-readable storage medium
CN110505527A (en) * 2019-08-09 2019-11-26 北京达佳互联信息技术有限公司 Adjust method and device, electronic equipment and the storage medium of video broadcasting condition
CN112135058B (en) * 2020-09-30 2022-04-19 浙江大华技术股份有限公司 Mobile terminal and method for controlling PTZ camera by using mobile terminal
CN112019756B (en) * 2020-10-06 2021-05-18 盛夏 Control method and system of intelligent wearable equipment based on 5G
CN112351482A (en) * 2020-10-29 2021-02-09 深圳Tcl新技术有限公司 Method and device for automatically controlling terminal dormancy and computer readable storage medium
CN112596600A (en) * 2020-12-16 2021-04-02 惠州Tcl移动通信有限公司 Screen unlocking method and device, storage medium and mobile terminal
CN113157090A (en) * 2021-03-24 2021-07-23 维沃移动通信有限公司 Bright screen control method and device of electronic equipment and electronic equipment
CN113672094A (en) * 2021-09-03 2021-11-19 东莞盟大集团有限公司 Method and device for controlling screen turning of mobile terminal, mobile terminal and storage medium
WO2023240451A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Screen control method and apparatus, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118175A (en) * 2013-01-14 2013-05-22 成都西可科技有限公司 Method for achieving application rapid exit, off screen and standby mode of smartphone
CN104486510A (en) * 2014-12-16 2015-04-01 上海斐讯数据通信技术有限公司 Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal
CN104656899A (en) * 2015-02-12 2015-05-27 深圳市金立通信设备有限公司 Terminal operation and control method
CN106125883A (en) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 Intelligent terminal and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118175A (en) * 2013-01-14 2013-05-22 成都西可科技有限公司 Method for achieving application rapid exit, off screen and standby mode of smartphone
CN104486510A (en) * 2014-12-16 2015-04-01 上海斐讯数据通信技术有限公司 Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal
CN104656899A (en) * 2015-02-12 2015-05-27 深圳市金立通信设备有限公司 Terminal operation and control method
CN106125883A (en) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 Intelligent terminal and control method thereof

Also Published As

Publication number Publication date
CN108388414A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN108388414B (en) Screen-off control method and device for terminal, computer-readable storage medium and terminal
CN108418953B (en) Screen control method and device of terminal, readable storage medium and terminal
CN108430100B (en) Screen control method and device of terminal, readable storage medium and terminal
CN107613131B (en) Application program disturbance-free method, mobile terminal and computer-readable storage medium
CN107817939B (en) Image processing method and mobile terminal
CN108089891B (en) Application program starting method and mobile terminal
CN107943374B (en) Method for starting application program in foldable terminal and foldable terminal
CN108628217B (en) Wearable device power consumption control method, wearable device and computer-readable storage medium
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN110365853B (en) Prompting method and electronic equipment
CN110299100B (en) Display direction adjustment method, wearable device and computer readable storage medium
CN106406530B (en) Screen display method and mobile terminal thereof
CN106445340B (en) Method and device for displaying stereoscopic image by double-screen terminal
CN108196753B (en) Interface switching method and mobile terminal
CN110456911B (en) Electronic equipment control method and device, electronic equipment and readable storage medium
CN110531915B (en) Screen operation method and terminal equipment
CN109493821B (en) Screen brightness adjusting method and device and storage medium
CN111443815A (en) Vibration reminding method and electronic equipment
CN110865764A (en) Interface application display method and device
CN110609648A (en) Application program control method and terminal
CN108132749B (en) Image editing method and mobile terminal
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN110058767B (en) Interface operation method, wearable terminal and computer-readable storage medium
CN109521937B (en) Screen display control method and mobile terminal
CN108769206B (en) Data synchronization method, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200512

CF01 Termination of patent right due to non-payment of annual fee