CN111405110A - Screen control method and device, storage medium and mobile terminal - Google Patents

Screen control method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111405110A
CN111405110A CN202010166295.5A CN202010166295A CN111405110A CN 111405110 A CN111405110 A CN 111405110A CN 202010166295 A CN202010166295 A CN 202010166295A CN 111405110 A CN111405110 A CN 111405110A
Authority
CN
China
Prior art keywords
axis direction
mobile terminal
axis
screen
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010166295.5A
Other languages
Chinese (zh)
Other versions
CN111405110B (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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010166295.5A priority Critical patent/CN111405110B/en
Publication of CN111405110A publication Critical patent/CN111405110A/en
Application granted granted Critical
Publication of CN111405110B publication Critical patent/CN111405110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Abstract

The embodiment of the application provides a screen control method, a screen control device, a storage medium and a mobile terminal, wherein the method comprises the following steps: detecting a distant event based on a proximity sensor when the mobile terminal is in a screen-off call state; when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in X-axis, Y-axis and Z-axis directions based on the gyroscope sensor; when the rotation angle of the mobile terminal in any two axis directions of the X axis direction, the Y axis direction and the Z axis direction is larger than a first preset angle, acquiring the acceleration of the mobile terminal in the X axis direction and the Y axis direction based on a gravity sensor; when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value, detecting a touch event based on the touch screen; when the touch event meets the preset touch condition, the mobile terminal is controlled to be on, the judgment capability of judging whether the screen is on or not by the mobile terminal is improved, and the misjudgment rate and the mistouch rate are reduced.

Description

Screen control method and device, storage medium and mobile terminal
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a screen control method and apparatus, a storage medium, and a mobile terminal.
Background
In the process of a call of a mobile terminal, an infrared distance sensor is generally used for detecting the distance between a user and the mobile terminal, and is used for judging whether the mobile terminal should close a screen or not so as to avoid generating a false touch. The position of the infrared distance sensor is moved to the position below a slit structure consisting of a screen and a shell while the screen occupation ratio of the mobile terminal is improved. The reflection of infrared light in the slit structure is very likely to interfere with the test result of the infrared distance sensor using the threshold mode, which causes misjudgment of the distance between the user and the device and thus causes mistouch. By using the single-threshold infrared distance sensor, the reflectivity of the skin color of the user cannot be correspondingly adjusted, and the distance of skin, ornaments, hair and the like with low reflectivity is easily misjudged.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The embodiment of the application provides a screen control method and device, a storage medium and a mobile terminal, which can utilize monitoring of a plurality of sensors and a touch screen to judge whether the screen is bright, improve judgment capability of the mobile terminal, and reduce misjudgment rate and mistouch rate.
The embodiment of the application provides a screen control method, which comprises the following steps:
detecting a distant event based on a proximity sensor when the mobile terminal is in a screen-off call state;
when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in X-axis, Y-axis and Z-axis directions based on a gyroscope sensor;
when the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle, acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on a gravity sensor;
when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value, detecting a touch event based on a touch screen;
and when the touch event meets a preset touch condition, controlling the mobile terminal to light the screen.
In the screen control method according to the embodiment of the present application, when the mobile terminal is in a screen-off call state, detecting a distant event based on a proximity sensor includes: when the mobile terminal enters a screen-off conversation state, starting a timer, and detecting a far-away event based on the proximity sensor;
when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in directions of an X axis, a Y axis and a Z axis based on a gyroscope sensor, including:
when the proximity sensor detects a far-away event, judging whether the duration time of the timer is less than preset time or not;
and when the duration time of the timer is not less than the preset time, acquiring the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on a gyroscope sensor.
In the screen control method according to the embodiment of the present application, when the proximity sensor detects a distant event, determining whether a duration of the timer is less than a preset time, further includes:
and when the duration time of the timer is less than the preset time, controlling the mobile terminal to light up.
In the screen control method according to the embodiment of the present application, after the controlling the mobile terminal to turn on the screen, the method further includes: the timer is turned off.
In the screen control method according to the embodiment of the present application, after the obtaining, based on a gyro sensor, the rotation angles of the mobile terminal in the X-axis, Y-axis, and Z-axis directions when the proximity sensor detects a far event, the method further includes:
judging whether the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle or not;
if the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is not larger than a first preset angle, judging whether the rotation angle of the mobile terminal in any one direction of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle;
if the rotation angle of the mobile terminal in any one of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle, clearing the numerical value of the rotation angle larger than the second preset angle in the corresponding axis direction, and acquiring the rotation angle of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on the gyroscope sensor.
In the screen control method according to the embodiment of the present application, the controlling the mobile terminal to light a screen when the touch event meets a preset touch condition includes:
and when the touch event is that no touch operation is detected in a preset area on the touch screen, determining that the touch event meets a preset touch condition, and controlling the mobile terminal to light the screen.
An embodiment of the present application further provides a screen control device, the device includes:
the first detection module is used for detecting a far-away event based on the proximity sensor when the mobile terminal is in a screen-off conversation state;
the first acquisition module is used for acquiring the rotation angles of the mobile terminal in the directions of an X axis, a Y axis and a Z axis based on a gyroscope sensor when the proximity sensor detects a far-away event;
the second acquisition module is used for acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on the gravity sensor when the rotation angle of the mobile terminal in any two axis directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle;
the second detection module is used for detecting a touch event based on the touch screen when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value;
and the control module is used for controlling the mobile terminal to light the screen when the touch event meets a preset touch condition.
In the screen control device according to the embodiment of the application, the first obtaining module is configured to start a timer when the mobile terminal enters a screen-off conversation state, and detect a far-away event based on the proximity sensor;
the second acquisition module is used for judging whether the duration time of the timer is less than the preset time or not when the proximity sensor detects a far-away event; and when the duration time of the timer is not less than the preset time, acquiring the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on a gyroscope sensor.
In the screen control device according to the embodiment of the application, the control module is further configured to control the mobile terminal to turn on the screen when the duration of the timer is less than a preset time.
In the screen control device according to the embodiment of the present application, the control module is further configured to turn off the timer.
In the screen control device according to an embodiment of the present application, the device further includes:
the first judging module is used for judging whether the rotating angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle or not;
the second judging module is used for judging whether the rotating angle of the mobile terminal in any one of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle or not if the rotating angle of the mobile terminal in any two of the X-axis direction, the Y-axis direction and the Z-axis direction is not larger than the first preset angle;
the control module is further used for clearing the numerical value of the mobile terminal in the axis direction corresponding to the rotation angle larger than the second preset angle if the rotation angle of the mobile terminal in any one of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than the second preset angle, and acquiring the rotation angle of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on the gyroscope sensor.
In the screen control device according to the embodiment of the application, the control module is configured to determine that the touch event meets a preset touch condition when the touch event is that no touch operation is detected in a preset area on the touch screen, and control the mobile terminal to turn on the screen.
The embodiment of the application also provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is enabled to execute the steps in the screen control method.
The embodiment of the application also provides a mobile terminal, which comprises a processor and a memory, wherein the memory is stored with a computer program, and the processor is used for executing the steps in the screen control method by calling the computer program stored in the memory.
According to the embodiment of the application, when the mobile terminal is in a screen-off conversation state, a far-away event is detected based on the proximity sensor; when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in X-axis, Y-axis and Z-axis directions based on a gyroscope sensor; when the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle, acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on a gravity sensor; when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value, detecting a touch event based on a touch screen; and when the touch event meets a preset touch condition, controlling the mobile terminal to light the screen. According to the embodiment of the application, whether the screen of the mobile terminal needs to be lightened or not can be comprehensively judged by utilizing the data of the plurality of sensors and the touch screen, so that the mobile terminal is more in line with the behavior habit of a user, the judgment capability of the mobile terminal is improved, and the misjudgment rate and the mistouch rate are reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a first flowchart of a screen control method according to an embodiment of the present disclosure.
Fig. 2 is a second flowchart of the screen control method according to the embodiment of the present application.
Fig. 3 is a first structural schematic diagram of a screen control device according to an embodiment of the present application.
Fig. 4 is a second structural schematic diagram of the screen control device according to the embodiment of the present application.
Fig. 5 is a schematic diagram of a third structure of a screen control device according to an embodiment of the present application.
Fig. 6 is a fourth schematic structural diagram of a screen control device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides a screen control method, which can be applied to a mobile terminal. The mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 1, fig. 1 is a first flowchart of a screen control method according to an embodiment of the present disclosure. The screen control method is applied to a mobile terminal, and the mobile terminal is provided with a proximity sensor, a gyroscope sensor, a gravity sensor and a touch screen. The method may comprise the steps of:
and 101, when the mobile terminal is in a screen-off conversation state, detecting a far-away event based on a proximity sensor.
For example, a conventional touch screen mobile phone uses a proximity sensor alone to realize automatic on/off of a screen during a call. However, with the popularization of full-screen technology, no space is left above the screen for the proximity sensor, so the current choice is to place the proximity sensor below the screen, which greatly affects the accuracy and detection distance of the proximity sensor. The actual effect is that the screen is easily turned on during the call. Therefore, in order to prevent the false lighting event, other sensors and the touch screen are required to be added to assist the detection. But the proximity sensor is still the most important detection link in judging whether the screen of the mobile terminal is bright.
For example, during a call, all tasks of detecting proximity are handed to the proximity sensor, so it is still up to the proximity sensor to determine when the screen needs to be turned off. However, when a distance event (first distance condition) is detected, the proximity sensor needs to work together with the other two auxiliary devices, but the proximity sensor is still the first link, and only when the proximity sensor detects the distance event, the other auxiliary devices for auxiliary detection are triggered to work.
When the mobile terminal starts to talk, monitoring of the proximity sensor, the gyroscope sensor and the gravity sensor is registered. And when the proximity sensor detects the proximity task, the mobile terminal enters screen-off conversation. Before detecting a far-away event based on the proximity sensor, whether the call is ended needs to be detected, if the call is detected to be ended, the initialization state is recovered, and monitoring of the proximity sensor, the gyroscope sensor and the gravity sensor is cancelled. And if the fact that the call is not ended is detected, controlling the proximity sensor to detect a far-away event.
And 102, when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in the directions of an X axis, a Y axis and a Z axis based on a gyroscope sensor.
For example, when the proximity sensor detects a move-away event (first move-away condition), the gyro sensor, which is the second element of the entire move-away detection process, starts to operate. The operation of the gravity sensor is triggered only if the gyro sensor also detects that the distancing condition is met.
For example, taking a mobile phone as an example, the detection principle of the gyroscope sensor is as follows: and continuously calculating the rotation angles of the mobile phone in the X-axis direction, the Y-axis direction and the Z-axis direction, and when the rotation angles in any two directions reach more than a first preset angle, considering that a second away condition is reached. For example, the first preset angle may be set to 30 degrees, or may be set to 25 degrees. For example, when the first preset angle is 30 degrees, and the rotation angles in any two directions exceed 30 degrees, the second departing condition is considered to be reached.
For example, if the gyro sensor does not detect the rotation event of the mobile phone, it may be considered that the user is still talking in a fixed posture, and if the user takes the mobile phone away from the face, the rotation events in at least two directions may occur, which is taken as a detection condition, as one of the bases for judging whether the screen needs to be turned on.
After the proximity sensor detects the far-away event, before the gyroscope sensor acquires the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction, whether the call is ended needs to be detected, if the call is ended, the initialization state is recovered, and monitoring of the proximity sensor, the gyroscope sensor and the gravity sensor is cancelled. And if the situation that the call is not finished is detected, controlling a gyroscope sensor to acquire the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction.
And 103, when the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle, acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on a gravity sensor.
For example, when the proximity sensor detects a move-away event (a first move-away condition), and the gyro sensor also detects that a second move-away condition is satisfied, the gravity sensor starts to operate, and the gravity sensor is a third link in the entire move-away detection process. And the touch screen is triggered to work only if the gravity sensor also detects that a third far condition meeting the far condition is met.
For example, taking a mobile phone as an example, the detection principle of the gravity sensor is as follows: and continuously detecting the acceleration values of the mobile phone in the X-axis direction, the Y-axis direction and the Z-axis direction, and considering that a third far-away condition is achieved after the absolute value of any one of the acceleration values of the X-axis and the Y-axis is smaller than a preset value. For example, the preset value may be set to 5, and the third distant condition is considered to be reached after the absolute value of any one of the X-axis acceleration value and the Y-axis acceleration value is less than 5.
For example, falseThe local gravitational acceleration value is g, which can be 9.8m/s2. When the front of the mobile phone faces upwards, the value of Z is g, and when the back faces upwards, the value of Z is-g; when the right side of the mobile phone faces upwards, the value of X is g, and when the right side faces upwards, the value of X is-g; y has a value of g when the top side of the phone is facing up and-g when the bottom side is facing up. When a user holds the mobile phone to make a call, the mobile phone is generally not in a horizontal or vertical position, values of the gravity sensor in the X-axis direction, the Y-axis direction and the Z-axis direction are generally larger than 5, when the user looks at the mobile phone, the mobile phone is generally in a horizontal or vertical position, and the value of the gravity sensor in the X-axis direction or the Y-axis direction is smaller than 5, so that the values are taken as one of the bases for judging whether the screen needs to be lightened.
After the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle, whether the call is finished or not needs to be detected before the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction is obtained based on the gravity sensor, if the call is finished, the initialization state is recovered, and the monitoring of the proximity sensor, the gyroscope sensor and the gravity sensor is cancelled. And if the situation that the call is not finished is detected, controlling a gravity sensor to acquire the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction.
104, when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value, detecting a touch event based on a touch screen;
and when the touch event meets a preset touch condition, controlling the mobile terminal to light the screen.
When the touch event is that no touch operation is detected in a preset area on the touch screen, determining that the touch event meets a preset touch condition, and controlling the mobile terminal to light the screen.
For example, the touch screen is the last step in the overall distancing detection process. When the touch screen also detects that the fourth away condition of away is satisfied, the screen is finally lit.
For example, the detection principle of the touch screen is as follows: the bright screen condition is satisfied when no touch point is detected in an area of about 1/5 above the screen of the mobile terminal. For example, when a user takes a mobile phone to make a call, it is likely that a face is attached to the upper side of the screen, and a touch point is generated at this time, otherwise, it is considered that the user may take the mobile phone away from the face, and this is taken as a condition to determine whether the screen needs to be lightened. For example, the preset area may be an upper area of the screen, wherein the area may occupy one fifth of the entire screen.
After the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value, whether the call is ended or not needs to be detected before a touch event is detected based on the touch screen, if the call is detected to be ended, the initialization state is recovered, and monitoring of the proximity sensor, the gyroscope sensor and the gravity sensor is cancelled. And if the fact that the call is not finished is detected, enabling the touch screen, and controlling the touch screen to detect the touch event.
In some embodiments, the detecting a distant event based on a proximity sensor when the mobile terminal is in a screen-off conversation state includes: when the mobile terminal enters a screen-off conversation state, starting a timer, and detecting a far-away event based on the proximity sensor;
when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in directions of an X axis, a Y axis and a Z axis based on a gyroscope sensor, including:
when the proximity sensor detects a far-away event, judging whether the duration time of the timer is less than preset time or not;
and when the duration time of the timer is not less than the preset time, acquiring the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on a gyroscope sensor.
In the screen control method according to the embodiment of the present application, when the proximity sensor detects a distant event, determining whether a duration of the timer is less than a preset time, further includes:
and when the duration time of the timer is less than the preset time, controlling the mobile terminal to light up.
In some embodiments, after the controlling the mobile terminal to light up, the method further includes: the timer is turned off.
In some embodiments, after the acquiring the rotation angles of the mobile terminal in the X-axis, Y-axis and Z-axis directions based on a gyro sensor when the proximity sensor detects the far event, further includes:
judging whether the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle or not;
if the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is not larger than a first preset angle, judging whether the rotation angle of the mobile terminal in any one direction of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle;
if the rotation angle of the mobile terminal in any one of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle, clearing the numerical value of the rotation angle larger than the second preset angle in the corresponding axis direction, and acquiring the rotation angle of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on the gyroscope sensor.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
Referring to fig. 2, fig. 2 is a second flowchart of a screen control method according to an embodiment of the present disclosure. The screen control method is applied to the mobile terminal, and the method can comprise the following steps:
step 201, when the mobile terminal enters a screen-off conversation state, starting a timer, and detecting a far-away event based on the proximity sensor.
When the mobile terminal starts to talk, monitoring of the proximity sensor, the gyroscope sensor and the gravity sensor is registered. When the proximity sensor detects a proximity task, the mobile terminal is informed to turn off the screen, and at the moment, the mobile terminal enters screen-off conversation, starts a timer and detects a far-away event based on the proximity sensor.
Step 202, when the proximity sensor detects a far event, determining whether the duration of the timer is less than a preset time. If not, go to step 203. If yes, go to step 211.
For example, the preset time is 3 seconds, and when the proximity sensor detects a distant event, it is determined whether the duration of the timer is less than 3 seconds. If not, go to step 203. If yes, go to step 211.
And step 203, acquiring the rotation angles of the mobile terminal in the directions of the X axis, the Y axis and the Z axis based on the gyroscope sensor.
And when the duration time of the timer is not less than the preset time, acquiring the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on a gyroscope sensor.
For example, the rotation angle in the X-axis direction is an angle generated by rotating around X when the mobile phone is displaced. The rotation angle in the Y-axis direction is the angle generated by the rotation around Y when the mobile phone is displaced. The rotation angle in the Z-axis direction is an angle generated by the rotation around Z when the mobile phone is displaced.
And 204, judging whether the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle. If not, go to step 205. If so, go to step 207.
For example, when the first preset angle is 25 degrees, whether the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is greater than 25 degrees is judged. If not, go to step 205. If so, go to step 207.
Step 205, determining whether the rotation angle of the mobile terminal in any one of the directions of the X axis, the Y axis and the Z axis is greater than a second preset angle. If yes, go to step 206. If not, go to step 203.
If the rotation angle of the mobile terminal in any two axial directions of the X-axis, the Y-axis and the Z-axis is not larger than (smaller than or equal to) a first preset angle, judging whether the rotation angle of the mobile terminal in any one axial direction of the X-axis, the Y-axis and the Z-axis is larger than a second preset angle. If the rotation angle of the mobile terminal in any one of the X-axis, Y-axis and Z-axis directions is greater than a second preset angle, step 206 is executed. If the rotation angle of the mobile terminal in any one of the directions of the X axis, the Y axis and the Z axis is not greater than (less than or equal to) a second preset angle, the step 203 is executed again.
And step 206, clearing the numerical value of the rotation angle larger than the second preset angle in the corresponding axis direction. After the step 206 is completed, the process returns to the step 203, and the rotation angles of the mobile terminal in the X-axis, Y-axis and Z-axis directions are obtained again based on the gyro sensor.
For example, the second preset angle may be set to 90 degrees, and if the rotation angle of the mobile terminal in any one of the X-axis, Y-axis and Z-axis directions is greater than 90 degrees, the value in the axis direction corresponding to the rotation angle greater than 90 degrees is cleared to solve the problem of turning during walking, and the calculation is performed once every reporting period. After the step 206 is completed, the process returns to the step 203, and the rotation angles of the mobile terminal in the directions of the X axis, the Y axis and the Z axis are obtained again based on the gyroscope sensor.
And step 207, acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on the gravity sensor.
When a user holds the mobile phone to make a call, the mobile phone is generally not in a horizontal or vertical position, values of the gravity sensor in the X-axis direction, the Y-axis direction and the Z-axis direction are generally larger than 5, when the user looks at the mobile phone, the mobile phone is generally in a horizontal or vertical position, and the value of the gravity sensor in the X-axis direction or the Y-axis direction is smaller than 5, so that the values are taken as one of the bases for judging whether the screen needs to be lightened. Therefore, when the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is greater than a first preset angle, the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction needs to be acquired based on the gravity sensor.
And 208, judging whether the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value. If yes, go to step 209. If not, go to step 207.
For example, the preset value may be set to 5, and it is determined whether an absolute value of acceleration of the mobile terminal in any one of the X-axis and Y-axis directions is less than 5. When the absolute value of any one of the X-axis acceleration value and the Y-axis acceleration value is less than 5, step 209 is performed. And when the absolute value of any one of the X-axis acceleration value and the Y-axis acceleration value is less than 5, returning to execute the step 207. Once per reporting period.
In step 209, a touch event is detected based on the touch screen.
For example, whether a touch point exists at the screen top 1/5 of the touch screen is detected, and the touch event when no touch point exists at the screen top 1/5 is that a preset touch condition is met, that is, a screen-lighting condition is met. For example, the touch event when there is a touch point at the top 1/5 of the screen is that the preset touch condition is not satisfied, that is, the screen-lighting condition is not satisfied.
And step 210, judging whether the touch event meets a preset touch condition. If yes, go to step 211. If not, go to step 203.
For example, whether a touch point exists at the screen top 1/5 of the touch screen is detected, and if the touch event at the screen top 1/5 has no touch point satisfies the preset touch condition, that is, the screen-lighting condition is satisfied, step 211 is executed. For example, if the touch event when there is a touch point at the top 1/5 of the screen is that the preset touch condition is not satisfied, that is, the screen-lighting condition is not satisfied, step 203 is executed.
And step 211, controlling the mobile terminal to light up.
For example, when there is no contact point at the top portion 1/5 of the screen, the screen of the mobile terminal is lighted. And after the screen brightness condition is met, further detecting the ambient light brightness so as to output the screen brightness matched with the current ambient light brightness while controlling the screen to be bright.
Step 212, the timer is turned off.
For example, after controlling the mobile terminal to be on screen, the timer is closed so as to be cleared, and preparation is made for entering the screen-off conversation state next time.
Therefore, mobile terminal manufacturers can comprehensively judge whether the mobile terminal should light the screen or not by using data of the plurality of sensors based on behavior habits of users, so that the mobile terminal is more in line with the behavior habits of the users, and better use experience is provided. The embodiment of the application makes up the defects of the infrared distance sensor in some use scenes, and simultaneously gets rid of the strict limitation of the infrared distance sensor in the structural design in the past, so that the design of the infrared distance sensor is more flexible and efficient.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, in the screen control method provided in the embodiment of the present application, when the mobile terminal is in the screen-off call state, a distant event is detected based on the proximity sensor; when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in X-axis, Y-axis and Z-axis directions based on a gyroscope sensor; when the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle, acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on a gravity sensor; when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value, detecting a touch event based on a touch screen; and when the touch event meets a preset touch condition, controlling the mobile terminal to light the screen. According to the embodiment of the application, whether the screen of the mobile terminal needs to be lightened or not can be comprehensively judged by utilizing the data of the plurality of sensors and the touch screen, so that the mobile terminal is more in line with the behavior habit of a user, the judgment capability of the mobile terminal is improved, and the misjudgment rate and the mistouch rate are reduced.
The embodiment of the application further provides a screen control device, the screen control device can be integrated in a mobile terminal, and the mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 3, fig. 3 is a first structural schematic diagram of a screen control device according to an embodiment of the present application. The screen control device 30 may include:
the first detection module 31 is configured to detect a far-away event based on a proximity sensor when the mobile terminal is in a screen-off conversation state;
a first obtaining module 32, configured to obtain rotation angles of the mobile terminal in the X-axis, Y-axis and Z-axis directions based on a gyroscope sensor when the proximity sensor detects a far-away event;
the second obtaining module 35 is configured to obtain, based on a gravity sensor, accelerations of the mobile terminal in the X-axis direction and the Y-axis direction when a rotation angle of the mobile terminal in any two of the X-axis direction, the Y-axis direction, and the Z-axis direction is greater than a first preset angle;
a second detecting module 36, configured to detect a touch event based on a touch screen when an absolute value of an acceleration of the mobile terminal in any one of the X-axis and Y-axis directions is smaller than a preset value;
and the control module 37 is configured to control the mobile terminal to light a screen when the touch event meets a preset touch condition.
In some embodiments, the first obtaining module 31 is configured to start a timer when the mobile terminal enters a screen-off conversation state, and detect a far-away event based on the proximity sensor;
the second obtaining module 35 is configured to, when the proximity sensor detects a far event, determine whether a duration of the timer is less than a preset time; and when the duration time of the timer is not less than the preset time, acquiring the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on a gyroscope sensor.
In some embodiments, the control module 37 is further configured to control the mobile terminal to turn on the screen when the duration of the timer is less than a preset time.
In some embodiments, the control module 37 is further configured to turn off the timer.
In some embodiments, the control module 37 is configured to, when the touch event is that no touch operation is detected in a preset area on the touch screen, determine that the touch event meets a preset touch condition, and control the mobile terminal to turn on the screen.
Referring to fig. 4, fig. 4 is a second structural schematic diagram of a screen control device according to an embodiment of the present application. Fig. 4 differs from fig. 3 in that the screen control device 30 further includes:
the first judging module 33 is configured to judge whether a rotation angle of the mobile terminal in any two directions of an X-axis direction, a Y-axis direction and a Z-axis direction is greater than a first preset angle;
a second determining module 34, configured to determine whether a rotation angle of the mobile terminal in any one of the X-axis, Y-axis and Z-axis directions is greater than a second preset angle if the rotation angle of the mobile terminal in any two of the X-axis, Y-axis and Z-axis directions is not greater than the first preset angle;
the control module 37 is further configured to, if the rotation angle of the mobile terminal in any one of the X-axis, Y-axis and Z-axis directions is greater than a second preset angle, clear the value of the rotation angle greater than the second preset angle in the corresponding axis direction, and obtain the rotation angle of the mobile terminal in the X-axis, Y-axis and Z-axis directions based on the gyroscope sensor.
As can be seen from the above, the screen control apparatus 30 provided in the embodiment of the present application detects a far event based on the proximity sensor by the first detection module 31 when the mobile terminal is in the screen-off conversation state; when the proximity sensor detects a far-away event, the first obtaining module 32 obtains rotation angles of the mobile terminal in the directions of an X axis, a Y axis and a Z axis based on a gyroscope sensor; when the rotation angle of the mobile terminal in any two directions of the X-axis, the Y-axis and the Z-axis is greater than a first preset angle, the second obtaining module 35 obtains the acceleration of the mobile terminal in the X-axis and the Y-axis directions based on the gravity sensor; when the absolute value of the acceleration of the mobile terminal in any one of the X-axis and Y-axis directions is smaller than a preset value, the second detection module 36 detects a touch event based on the touch screen; when the touch event meets a preset touch condition, the control module 37 controls the mobile terminal to light the screen. According to the embodiment of the application, whether the screen of the mobile terminal needs to be lightened or not can be comprehensively judged by utilizing the data of the plurality of sensors and the touch screen, so that the mobile terminal is more in line with the behavior habit of a user, the judgment capability of the mobile terminal is improved, and the misjudgment rate and the mistouch rate are reduced.
Referring to fig. 5, fig. 5 is a third structural schematic diagram of a screen control device according to an embodiment of the present disclosure, in which the screen control device 30 includes a memory 120, one or more processors 180, and one or more application programs, where the one or more application programs are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a first detection module 31, a first acquisition module 32, a second acquisition module 35, a second detection module 36, and a control module 37. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 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. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
the first detection module 31 is configured to detect a far-away event based on a proximity sensor when the mobile terminal is in a screen-off conversation state;
a first obtaining module 32, configured to obtain rotation angles of the mobile terminal in the X-axis, Y-axis and Z-axis directions based on a gyroscope sensor when the proximity sensor detects a far-away event;
the second obtaining module 35 is configured to obtain, based on a gravity sensor, accelerations of the mobile terminal in the X-axis direction and the Y-axis direction when a rotation angle of the mobile terminal in any two of the X-axis direction, the Y-axis direction, and the Z-axis direction is greater than a first preset angle;
a second detecting module 36, configured to detect a touch event based on a touch screen when an absolute value of an acceleration of the mobile terminal in any one of the X-axis and Y-axis directions is smaller than a preset value;
and the control module 37 is configured to control the mobile terminal to light a screen when the touch event meets a preset touch condition.
In some embodiments, the first obtaining module 31 is configured to start a timer when the mobile terminal enters a screen-off conversation state, and detect a far-away event based on the proximity sensor;
the second obtaining module 35 is configured to, when the proximity sensor detects a far event, determine whether a duration of the timer is less than a preset time; and when the duration time of the timer is not less than the preset time, acquiring the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on a gyroscope sensor.
In some embodiments, the control module 37 is further configured to control the mobile terminal to turn on the screen when the duration of the timer is less than a preset time.
In some embodiments, the control module 37 is further configured to turn off the timer.
In some embodiments, the control module 37 is configured to, when the touch event is that no touch operation is detected in a preset area on the touch screen, determine that the touch event meets a preset touch condition, and control the mobile terminal to turn on the screen.
Referring to fig. 6, fig. 6 is a fourth structural schematic diagram of a screen control device according to an embodiment of the present application. Fig. 6 differs from fig. 5 in that the processor 180 further includes: a first determination module 33 and a second determination module 34.
The first determining module 33 is configured to determine whether a rotation angle of the mobile terminal in any two directions of an X axis, a Y axis, and a Z axis is greater than a first preset angle;
the second determining module 34 is configured to determine whether the rotation angle of the mobile terminal in any one of the X-axis, Y-axis and Z-axis directions is greater than a second preset angle if the rotation angle of the mobile terminal in any two of the X-axis, Y-axis and Z-axis directions is not greater than the first preset angle;
the control module 37 is further configured to, if the rotation angle of the mobile terminal in any one of the X-axis, Y-axis and Z-axis directions is greater than a second preset angle, clear the value of the rotation angle greater than the second preset angle in the corresponding axis direction, and obtain the rotation angle of the mobile terminal in the X-axis, Y-axis and Z-axis directions based on the gyroscope sensor.
The embodiment of the application also provides the mobile terminal. The mobile terminal can be a smart phone, a tablet computer, a desktop computer, a smart watch and other devices.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, where the mobile terminal may be used to implement the screen control method provided in the foregoing embodiment. The mobile terminal 1200 may be a smart phone or a tablet computer.
As shown in fig. 7, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown), and a power supply 190. Those skilled in the art will appreciate that the mobile terminal 1200 configuration illustrated in fig. 7 is not intended to be limiting of the mobile terminal 1200 and may include more or less components than those illustrated, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be used to store software programs and modules, such as program instructions/modules corresponding to the screen control method in the above-described embodiments, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 120 may further include memory located remotely from processor 180, which may be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means 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 the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Display unit 140 may be used to display information input by or provided to a user, as well as various graphical user interfaces of mobile terminal 1200, which may be comprised of graphics, text, icons, video, and any combination thereof display panel 141, optionally display panel 141 may be configured in the form of L CD (L acquired crystalline display, liquid crystal display), O L ED (Organic L lighting-Emitting Diode), etc. further, touch-sensitive surface 131 may overlay display panel 141, and when touch-sensitive surface 131 detects a touch operation on or near touch-sensitive surface 131, communicate to processor 180 to determine the type of touch event, and processor 180 then provides a corresponding visual output on display panel 141 according to the type of touch event.
The mobile terminal 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the mobile terminal 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like. The gyroscope sensor can utilize the conservation of angular momentum, can simultaneously measure the positions, moving tracks and accelerated speeds in a plurality of directions, and can be used for realizing the functions of body sensing, shaking, controlling visual angle and VR virtual reality in games, realizing inertial navigation and the like according to the motion state of an object when a GPS has no signal. As for other sensors such as a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 1200, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the mobile terminal 1200.
The mobile terminal 1200, which may assist the user in e-mail, web browsing, and streaming media access through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 7 illustrates the transmission module 170, it is understood that it does not belong to the essential constitution of the mobile terminal 1200, and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 180 is a control center of the mobile terminal 1200, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 1200 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 1200 also includes a power supply 190 (e.g., a battery) that powers the various components and, in some embodiments, may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in the present embodiment, the display unit 140 of the mobile terminal 1200 is a touch screen display, and the mobile terminal 1200 further includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
detecting a distant event based on a proximity sensor when the mobile terminal is in a screen-off call state;
when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in X-axis, Y-axis and Z-axis directions based on a gyroscope sensor;
when the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle, acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on a gravity sensor;
when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value, detecting a touch event based on a touch screen;
and when the touch event meets a preset touch condition, controlling the mobile terminal to light the screen.
In some embodiments, the processor 180 is configured to detect a move-away event based on the proximity sensor when the mobile terminal is in the screen-out call state, including:
when the mobile terminal enters a screen-off conversation state, starting a timer, and detecting a far-away event based on the proximity sensor;
when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in directions of an X axis, a Y axis and a Z axis based on a gyroscope sensor, including:
when the proximity sensor detects a far-away event, judging whether the duration time of the timer is less than preset time or not;
and when the duration time of the timer is not less than the preset time, acquiring the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on a gyroscope sensor.
In some embodiments, the processor 180 is configured to determine whether the duration of the timer is less than a preset time after the proximity sensor detects the far event, and further includes:
and when the duration time of the timer is less than the preset time, controlling the mobile terminal to light up.
In some embodiments, the processor 180 is configured to, after said controlling the mobile terminal to illuminate, further include: the timer is turned off.
In some embodiments, the processor 180 is configured to, after the acquiring the rotation angles of the mobile terminal in the X-axis, Y-axis and Z-axis directions based on the gyro sensor when the proximity sensor detects the far event, further include:
judging whether the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle or not;
if the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is not larger than a first preset angle, judging whether the rotation angle of the mobile terminal in any one direction of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle;
if the rotation angle of the mobile terminal in any one of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle, clearing the numerical value of the rotation angle larger than the second preset angle in the corresponding axis direction, and acquiring the rotation angle of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on the gyroscope sensor.
In some embodiments, the processor 180 is configured to control the mobile terminal to illuminate when the touch event satisfies a preset touch condition, and the controlling includes:
and when the touch event is that no touch operation is detected in a preset area on the touch screen, determining that the touch event meets a preset touch condition, and controlling the mobile terminal to light the screen.
As can be seen from the above, an embodiment of the present application provides a mobile terminal 1200, where the mobile terminal 1200 performs the following steps: detecting a distant event based on a proximity sensor when the mobile terminal is in a screen-off call state; when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in X-axis, Y-axis and Z-axis directions based on a gyroscope sensor; when the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle, acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on a gravity sensor; when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value, detecting a touch event based on a touch screen; and when the touch event meets a preset touch condition, controlling the mobile terminal to light the screen. According to the embodiment of the application, whether the screen of the mobile terminal needs to be lightened or not can be comprehensively judged by utilizing the data of the plurality of sensors and the touch screen, so that the mobile terminal is more in line with the behavior habit of a user, the judgment capability of the mobile terminal is improved, the misjudgment rate and the mistouch rate are reduced, and the user experience is improved.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the screen control method according to any one of the above embodiments.
It should be noted that, for the screen control method described in the present application, it can be understood by those skilled in the art that all or part of the process of implementing the screen control method described in the embodiments of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of a mobile terminal, and executed by at least one processor in the mobile terminal, and the process of executing the computer program can include the process of the embodiments of the screen control method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the screen control device in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The screen control method, the screen control device, the storage medium and the mobile terminal provided by the embodiment of the application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A screen control method, characterized in that the method comprises:
detecting a distant event based on a proximity sensor when the mobile terminal is in a screen-off call state;
when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in X-axis, Y-axis and Z-axis directions based on a gyroscope sensor;
when the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle, acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on a gravity sensor;
when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value, detecting a touch event based on a touch screen;
and when the touch event meets a preset touch condition, controlling the mobile terminal to light the screen.
2. The screen control method of claim 1, wherein the detecting a distant event based on a proximity sensor when the mobile terminal is in a screen-off call state comprises:
when the mobile terminal enters a screen-off conversation state, starting a timer, and detecting a far-away event based on the proximity sensor;
when the proximity sensor detects a far-away event, acquiring rotation angles of the mobile terminal in directions of an X axis, a Y axis and a Z axis based on a gyroscope sensor, including:
when the proximity sensor detects a far-away event, judging whether the duration time of the timer is less than preset time or not;
and when the duration time of the timer is not less than the preset time, acquiring the rotation angles of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on a gyroscope sensor.
3. The screen control method of claim 2, wherein determining whether the duration of the timer is less than a preset time after the proximity sensor detects a distancing event further comprises:
and when the duration time of the timer is less than the preset time, controlling the mobile terminal to light up.
4. The screen control method of claim 3, further comprising, after the controlling the mobile terminal to light up:
the timer is turned off.
5. The screen control method of any one of claims 1 to 4, further comprising, after the acquiring rotation angles of the mobile terminal in X-axis, Y-axis and Z-axis directions based on a gyro sensor when the proximity sensor detects a distant event, the:
judging whether the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle or not;
if the rotation angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is not larger than a first preset angle, judging whether the rotation angle of the mobile terminal in any one direction of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle;
if the rotation angle of the mobile terminal in any one of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle, clearing the numerical value of the rotation angle larger than the second preset angle in the corresponding axis direction, and acquiring the rotation angle of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on the gyroscope sensor.
6. The screen control method of claim 1, wherein the controlling the mobile terminal to light up when the touch event meets a preset touch condition comprises:
and when the touch event is that no touch operation is detected in a preset area on the touch screen, determining that the touch event meets a preset touch condition, and controlling the mobile terminal to light the screen.
7. A screen control apparatus, characterized in that the apparatus comprises:
the first detection module is used for detecting a far-away event based on the proximity sensor when the mobile terminal is in a screen-off conversation state;
the first acquisition module is used for acquiring the rotation angles of the mobile terminal in the directions of an X axis, a Y axis and a Z axis based on a gyroscope sensor when the proximity sensor detects a far-away event;
the second acquisition module is used for acquiring the acceleration of the mobile terminal in the X-axis direction and the Y-axis direction based on the gravity sensor when the rotation angle of the mobile terminal in any two axis directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle;
the second detection module is used for detecting a touch event based on the touch screen when the absolute value of the acceleration of the mobile terminal in any one of the X-axis direction and the Y-axis direction is smaller than a preset value;
and the control module is used for controlling the mobile terminal to light the screen when the touch event meets a preset touch condition.
8. The screen control apparatus of claim 7, wherein the apparatus further comprises:
the first judging module is used for judging whether the rotating angle of the mobile terminal in any two directions of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a first preset angle or not;
the second judging module is used for judging whether the rotating angle of the mobile terminal in any one of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than a second preset angle or not if the rotating angle of the mobile terminal in any two of the X-axis direction, the Y-axis direction and the Z-axis direction is not larger than the first preset angle;
the control module is further used for clearing the numerical value of the mobile terminal in the axis direction corresponding to the rotation angle larger than the second preset angle if the rotation angle of the mobile terminal in any one of the X-axis direction, the Y-axis direction and the Z-axis direction is larger than the second preset angle, and acquiring the rotation angle of the mobile terminal in the X-axis direction, the Y-axis direction and the Z-axis direction based on the gyroscope sensor.
9. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the steps in the screen control method of any one of claims 1 to 6.
10. A mobile terminal, characterized in that the mobile terminal comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the steps in the screen control method according to any one of claims 1 to 6 by calling the computer program stored in the memory.
CN202010166295.5A 2020-03-11 2020-03-11 Screen control method and device, storage medium and mobile terminal Active CN111405110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010166295.5A CN111405110B (en) 2020-03-11 2020-03-11 Screen control method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010166295.5A CN111405110B (en) 2020-03-11 2020-03-11 Screen control method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN111405110A true CN111405110A (en) 2020-07-10
CN111405110B CN111405110B (en) 2021-08-03

Family

ID=71413255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010166295.5A Active CN111405110B (en) 2020-03-11 2020-03-11 Screen control method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111405110B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629104A (en) * 2020-02-28 2020-09-04 北京小米移动软件有限公司 Distance determination method, distance determination device, and computer storage medium
CN112272251A (en) * 2020-10-23 2021-01-26 展讯通信(深圳)有限公司 Terminal falling water protection device and terminal
CN112929492A (en) * 2021-03-03 2021-06-08 惠州Tcl移动通信有限公司 Control method, control device, storage medium and mobile terminal
CN113805784A (en) * 2021-08-19 2021-12-17 惠州Tcl移动通信有限公司 Method and device for responding to screen click event according to objective environment and mobile terminal
CN116489272A (en) * 2023-06-13 2023-07-25 荣耀终端有限公司 Voice message playing method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090251423A1 (en) * 2008-04-04 2009-10-08 Lg Electronics Inc. Mobile terminal using proximity sensor and control method thereof
US20160098137A1 (en) * 2014-10-02 2016-04-07 Lg Electronics Inc. Mobile terminal and controlling method thereof
CN108021224A (en) * 2016-10-31 2018-05-11 腾讯科技(深圳)有限公司 Screen lights method and device
CN108307074A (en) * 2018-02-05 2018-07-20 广东欧珀移动通信有限公司 Display control method and device, terminal, computer readable storage medium
CN108388413A (en) * 2018-02-05 2018-08-10 广东欧珀移动通信有限公司 The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN108418953A (en) * 2018-02-05 2018-08-17 广东欧珀移动通信有限公司 The screen control method and device of terminal, readable storage medium storing program for executing, terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090251423A1 (en) * 2008-04-04 2009-10-08 Lg Electronics Inc. Mobile terminal using proximity sensor and control method thereof
US20160098137A1 (en) * 2014-10-02 2016-04-07 Lg Electronics Inc. Mobile terminal and controlling method thereof
CN108021224A (en) * 2016-10-31 2018-05-11 腾讯科技(深圳)有限公司 Screen lights method and device
CN108307074A (en) * 2018-02-05 2018-07-20 广东欧珀移动通信有限公司 Display control method and device, terminal, computer readable storage medium
CN108388413A (en) * 2018-02-05 2018-08-10 广东欧珀移动通信有限公司 The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN108418953A (en) * 2018-02-05 2018-08-17 广东欧珀移动通信有限公司 The screen control method and device of terminal, readable storage medium storing program for executing, terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629104A (en) * 2020-02-28 2020-09-04 北京小米移动软件有限公司 Distance determination method, distance determination device, and computer storage medium
CN112272251A (en) * 2020-10-23 2021-01-26 展讯通信(深圳)有限公司 Terminal falling water protection device and terminal
CN112929492A (en) * 2021-03-03 2021-06-08 惠州Tcl移动通信有限公司 Control method, control device, storage medium and mobile terminal
CN112929492B (en) * 2021-03-03 2022-05-06 惠州Tcl移动通信有限公司 Control method, control device, storage medium and mobile terminal
CN113805784A (en) * 2021-08-19 2021-12-17 惠州Tcl移动通信有限公司 Method and device for responding to screen click event according to objective environment and mobile terminal
CN116489272A (en) * 2023-06-13 2023-07-25 荣耀终端有限公司 Voice message playing method and electronic equipment
CN116489272B (en) * 2023-06-13 2024-03-15 荣耀终端有限公司 Voice message playing method and electronic equipment

Also Published As

Publication number Publication date
CN111405110B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN111405110B (en) Screen control method and device, storage medium and mobile terminal
US10862595B2 (en) Method for processing radio frequency interference, and electronic device
CN107908334B (en) Fingerprint icon display method and device and mobile terminal
US9129546B2 (en) Electronic device and method for changing setting value
CN108055408B (en) Application program control method and mobile terminal
CN108089891B (en) Application program starting method and mobile terminal
CN110109539A (en) A kind of gestural control method, wearable device and computer readable storage medium
CN109521933A (en) A kind of display control method and mobile terminal
CN110908513B (en) Data processing method and electronic equipment
CN106951143B (en) Method and device for hiding application icons
CN108369447A (en) The method and apparatus for controlling wearable electronic operating status
CN110233933A (en) A kind of call method and terminal device
CN108073405B (en) Application program unloading method and mobile terminal
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN109933267B (en) Method for controlling terminal equipment and terminal equipment
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN108076223A (en) Target switching method, device, terminal device and storage medium
CN109189514B (en) Terminal device control method and terminal device
CN108089935B (en) Application program management method and mobile terminal
CN109739430B (en) Display method and mobile terminal
CN114710816A (en) Network switching method and device, electronic equipment and storage medium
CN109784014B (en) Screen unlocking method and terminal equipment
CN110413385B (en) Task management method, terminal device and medium
CN106850985B (en) Control method, device and the mobile terminal of mobile terminal sensor
CN111026259A (en) Control method and device of mobile terminal and storage medium

Legal Events

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