CN108650422B - Terminal bright screen control method and device, terminal and storage medium - Google Patents

Terminal bright screen control method and device, terminal and storage medium Download PDF

Info

Publication number
CN108650422B
CN108650422B CN201810455329.5A CN201810455329A CN108650422B CN 108650422 B CN108650422 B CN 108650422B CN 201810455329 A CN201810455329 A CN 201810455329A CN 108650422 B CN108650422 B CN 108650422B
Authority
CN
China
Prior art keywords
motion state
screen
state parameter
terminal device
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810455329.5A
Other languages
Chinese (zh)
Other versions
CN108650422A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810455329.5A priority Critical patent/CN108650422B/en
Publication of CN108650422A publication Critical patent/CN108650422A/en
Application granted granted Critical
Publication of CN108650422B publication Critical patent/CN108650422B/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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a terminal bright screen control method, a device, a terminal and a storage medium, and the terminal bright screen control method is applied to terminal equipment and comprises the following steps: judging whether a first motion state parameter of the terminal equipment exceeds a first preset threshold value or not; if the first motion state parameter exceeds a first preset threshold value, controlling a screen of the terminal equipment to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal equipment; when the motion direction of the terminal equipment is opposite to the first motion state parameter, starting to detect whether a second motion state parameter of the terminal equipment exceeds a second preset threshold value; and if the second motion state parameter exceeds a second preset threshold, controlling the screen of the terminal equipment to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal equipment. According to the terminal screen-on control method, the terminal screen-on control device, the terminal and the storage medium, automatic screen-on and screen-off logics of the terminal equipment can be correctly executed.

Description

Terminal bright screen control method and device, terminal and storage medium
Technical Field
The embodiment of the application relates to a terminal technology, in particular to a method and a device for controlling screen lightening of a terminal, the terminal and a storage medium.
Background
Portable terminal devices such as smart phones and tablet computers have become indispensable tools for people, and most of the current portable terminal devices such as smart phones have an automatic screen-lighting function in order to improve the use experience of users. The automatic screen-lighting function is to detect the motion state of the terminal through a motion state detection element in the terminal, and when the motion state of the terminal meets a preset screen-lighting state, the screen of the terminal can be lighted without pressing a screen-lighting key or performing other operations by a user.
Currently, a commonly used automatic screen brightening operation is turning screen brightening, that is, when a user turns a terminal from a screen-down state to a screen-up state, the terminal is automatically lightened when the terminal is turned to a certain angle. On the contrary, when the terminal is turned from the state that the screen faces upwards to the state that the screen faces downwards, the screen automatically turns off when the terminal is turned to a certain angle. However, in the current turning screen brightening process, after turning screen brightening or screen off is realized, the turned angle of the terminal is cleared, but if a user continuously turns the terminal, the turning screen brightening or screen off angle of the terminal may be detected incorrectly, which may cause a logical error in the turning screen brightening process of the terminal.
Disclosure of Invention
The application provides a terminal screen-on control method, a terminal screen-on control device, a terminal and a storage medium, which are used for enabling automatic screen-on and screen-off logics of terminal equipment to be correctly executed.
In a first aspect, an embodiment of the present application provides a terminal bright screen control method, which is applied to a terminal device, and includes:
judging whether a first motion state parameter of the terminal equipment exceeds a first preset threshold value or not;
if the first motion state parameter exceeds a first preset threshold value, controlling a screen of the terminal equipment to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal equipment;
when the motion direction of the terminal equipment is opposite to the first motion state parameter, starting to detect whether a second motion state parameter of the terminal equipment exceeds a second preset threshold value;
and if the second motion state parameter exceeds a second preset threshold, controlling the screen of the terminal equipment to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal equipment.
In a possible implementation manner of the first aspect, if the first motion state parameter exceeds a first preset threshold, controlling a screen of the terminal device to be turned on or turned off according to a direction of the first motion state parameter and a screen state of the terminal device, and then the method further includes;
and if the motion direction of the terminal equipment is the same as the first motion state parameter, continuously resetting the motion state parameter accumulation of the terminal equipment.
In a possible implementation manner of the first aspect, when the moving direction of the terminal device is opposite to the first moving state parameter, starting to detect whether a second moving state parameter of the terminal device exceeds a second preset threshold, including:
when the motion direction of the terminal equipment is opposite to the first motion state parameter, starting to detect whether a second motion state parameter of the terminal equipment in preset time exceeds a second preset threshold value;
if the second motion state parameter exceeds a second preset threshold, controlling the screen of the terminal device to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal device, including:
and if the second motion state parameter exceeds a second preset threshold value within the preset time, controlling the screen of the terminal equipment to be lightened or extinguished according to the rotation direction of the second motion state parameter and the screen state of the terminal equipment.
In a possible implementation manner of the first aspect, the determining whether the first motion state parameter of the terminal device exceeds a first preset threshold includes:
judging whether a first motion state parameter of the terminal equipment in a preset time exceeds a first preset threshold value or not;
if the first motion state parameter exceeds a first preset threshold, controlling a screen of the terminal device to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal device, including:
and if the first motion state parameter exceeds a first preset threshold value within the preset time, controlling the screen of the terminal equipment to be lightened or extinguished according to the direction of the first motion state parameter and the screen state of the terminal equipment.
In a possible implementation manner of the first aspect, the motion state parameter includes a flip angle.
In a second aspect, an embodiment of the present application provides a terminal bright screen control device, including:
the motion state judging module is used for judging whether a first motion state parameter of the terminal equipment exceeds a first preset threshold value or not;
the screen lightening control module is used for controlling the screen of the terminal equipment to be lightened or extinguished according to the direction of the first motion state parameter and the screen state of the terminal equipment if the first motion state parameter exceeds a first preset threshold;
the motion state judgment module is further used for starting to detect whether a second motion state parameter of the terminal equipment exceeds a second preset threshold value when the motion direction of the terminal equipment is opposite to the first motion state parameter;
and the screen lightening control module is further used for controlling the screen of the terminal equipment to be lightened or extinguished according to the rotation direction of the second motion state parameter and the screen state of the terminal equipment if the second motion state parameter exceeds a second preset threshold value.
In a possible implementation manner of the second aspect, the motion state determining module is further configured to continuously zero the motion state parameter accumulation of the terminal device if the motion direction of the terminal device is the same as the first motion state parameter.
In a possible implementation manner of the second aspect, the motion state determining module is specifically configured to start detecting whether a second motion state parameter of the terminal device within a preset time exceeds a second preset threshold when a motion direction of the terminal device is opposite to the first motion state parameter;
and the screen lightening control module is specifically used for controlling the screen of the terminal equipment to be lightened or extinguished according to the rotation direction of the second motion state parameter and the screen state of the terminal equipment if the second motion state parameter exceeds a second preset threshold value within the preset time.
In a possible implementation manner of the second aspect, the motion state determining module is specifically configured to determine whether a first motion state parameter of the terminal device within a preset time exceeds a first preset threshold;
and the screen lightening control module is specifically used for controlling the screen of the terminal equipment to be lightened or extinguished according to the direction of the first motion state parameter and the screen state of the terminal equipment if the first motion state parameter exceeds a first preset threshold value within a preset time.
In one possible implementation of the second aspect, the motion state parameter includes a flip angle.
In a third aspect, an embodiment of the present application provides a terminal, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the terminal bright-screen control method according to any one of the possible implementations of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a terminal bright-screen control method according to any one of the possible implementations of the first aspect.
The terminal bright screen control method, the terminal bright screen control device, the terminal and the storage medium provided by the embodiment of the application judge whether the first motion state parameter of the terminal equipment exceeds a first preset threshold value, if the first motion state parameter exceeds the first preset threshold value, controlling the screen of the terminal device to be lighted or extinguished according to the direction of the first motion state parameter and the screen state of the terminal device, when the motion direction of the terminal equipment is opposite to the first motion state parameter, starting to detect whether a second motion state parameter of the terminal equipment exceeds a second preset threshold value or not, if the second motion state parameter exceeds the second preset threshold value, controlling the screen of the terminal device to be turned on or off according to the rotation direction of the second motion state parameter and the screen state of the terminal device, the automatic screen-lighting and screen-turning logic of the terminal equipment can be correctly executed, and the use experience of a user is improved.
Drawings
Fig. 1 is a schematic spatial direction diagram of a terminal device;
fig. 2 is a flowchart of a first embodiment of a terminal bright screen control method provided in the present application;
fig. 3 is a flowchart of a second embodiment of a terminal bright screen control method provided in the present application;
fig. 4 is a schematic structural diagram of a first embodiment of a terminal bright-screen control device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
In current terminal devices, a motion state detection element, such as a gyroscope, an acceleration sensor, or the like, is generally provided, and a plurality of motion state parameters of the terminal device can be detected. In order to quantify the motion state parameters of the terminal device, the directions of the terminal device in space need to be determined. Fig. 1 is a schematic view showing a spatial direction of a terminal device, and generally, as shown in fig. 1, a direction of the terminal device perpendicular to a display screen plane is taken as a Z direction, a direction of the terminal device parallel to a short side is taken as an X direction, and a direction of the terminal device parallel to a long side is taken as a Y direction. Of course, the terminal device shown in fig. 1 is a terminal device in which the normal state is a vertical state, such as a mobile phone, and for a terminal device in which the normal state is a horizontal state, such as a tablet computer, a direction parallel to the short side may be a Y direction, and a direction parallel to the long side may be a Z direction. For a non-rectangular terminal device, such as a square, a circle, or another shape, a direction parallel to the display content in the display screen in the default display state of the terminal device may be taken as the X direction, and a direction perpendicular to the display content may be taken as the Y direction. It should be noted that the spatial direction of the terminal device is only a common setting manner, and the terminal device may also adopt other spatial direction setting manners. In summary, three directions can be set X, Y, Z for the terminal device in three-dimensional space.
The current screen lightening method of the terminal equipment is mainly realized by matching the motion state of the terminal equipment, and a plurality of screen lightening states are preset in the terminal equipment, for example, the screen lightening states rotate for more than 30 degrees around an X axis, or rotate for more than 30 degrees around a Y axis, or the acceleration in a Z direction exceeds 2m/s2And the like. When the motion state of the terminal device changes, the motion state detection element can detect that the motion state parameter of the terminal device changes. And under the state that the display screen of the terminal equipment is extinguished, the terminal equipment compares the changed motion state parameters with the preset bright screen state, and if the motion state parameters of the terminal equipment are judged to accord with the bright screen state, the display screen of the terminal equipment is controlled to be lightened. Of course, the screen-turning processing method for the terminal equipment is similar.
However, in the current automatic screen-brightening method of the terminal device, after the terminal device realizes automatic screen brightening, the detected motion state parameter is cleared, and then the motion state parameter of the terminal device is continuously detected. However, the user may move the terminal device in the direction of the bright screen movement after the terminal device is already bright, and then move the terminal device in the direction opposite to the bright screen movement, which is often the direction of the bright screen movement, in an expecting to turn the terminal device to be turned off. At this moment, because the terminal equipment accumulates the motions in the positive and negative directions, the motion state parameters of the terminal equipment after mutual cancellation are smaller, the motion state required by screen turning cannot be achieved, and the terminal equipment cannot automatically turn the screen. The above situation may also occur when the user turns off the screen first and then turns on the screen when using the terminal device. Therefore, the bright screen processing logic of the terminal equipment cannot be executed correctly, and the use experience of the user is influenced.
Fig. 2 is a flowchart of a first embodiment of a terminal bright screen control method provided in an embodiment of the present application, and as shown in fig. 2, the method provided in this embodiment includes:
step 201, determining whether a first motion state parameter of the terminal device exceeds a first preset threshold.
The terminal bright screen control method provided by the embodiment is applied to terminal equipment, and the terminal equipment can be any terminal equipment with a screen display function, such as a mobile phone, a tablet computer, a smart watch and the like, and can control a screen to be turned on or turned off. The terminal device further comprises at least one motion state detection element, by means of which at least one motion state parameter of the terminal device can be detected.
The motion state detection element in the terminal device includes, but is not limited to, a gyroscope, an acceleration sensor, and the like, and at least one motion state parameter of the terminal device may be detected. The motion state parameter of the terminal device is any parameter capable of representing the motion state of the terminal, such as speed, acceleration, angular velocity, angular acceleration, and the like. In the embodiment of the present application, the motion state parameter of the terminal device needs to be a vector value containing a direction. The motion state parameters of the terminal device are measured to determine the motion state of the terminal device, and therefore a reference coordinate system, such as the three-dimensional coordinate system shown in fig. 1, needs to be established for the terminal device, although the reference coordinate system established for the terminal device is not limited to the three-dimensional coordinate system shown in fig. 1.
When the motion state of the terminal equipment is detected, whether a first motion state parameter of the terminal equipment exceeds a first preset threshold value is judged. The first motion state parameter may be any motion state parameter of the terminal device, and the first preset threshold is a trigger threshold of the terminal device for screen-off or screen-up corresponding to the first motion state parameter.
Step 202, if the first motion state parameter exceeds a first preset threshold, controlling a screen of the terminal device to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal device.
The automatic screen-on and screen-off operations of the terminal device are determined according to the use habits of the user, for example, the user picking up the terminal device generally means that the user needs to use the terminal device, and the screen-on of the terminal device needs to be controlled at the moment, and the user putting down the terminal device generally means that the user does not use the terminal device any more, and the screen-off of the terminal device needs to be controlled at the moment. For another example, the user may turn the terminal device in a different direction, which may also mean that the user needs to turn the terminal device on or off. Therefore, when determining that the first motion state parameter exceeds the first preset threshold, the direction of the first motion state parameter and the current screen state of the terminal device need to be considered. And when the current screen state of the terminal equipment is screen turning, and the direction of the first motion state parameter is a screen lightening direction and exceeds a first preset threshold value, controlling the terminal equipment to lighten the screen. And when the current screen state of the terminal equipment is bright screen, and the direction of the first motion state parameter is screen-off direction and exceeds a first preset threshold value, controlling the terminal equipment to screen off.
And 203, when the motion direction of the terminal device is opposite to the first motion state parameter, starting to detect whether a second motion state parameter of the terminal device exceeds a second preset threshold value.
And after the terminal equipment controls the terminal equipment to light or turn off the screen according to the direction of the first motion state parameter and the screen state of the terminal equipment, continuously detecting the motion state parameter of the terminal equipment. If the motion state parameter of the terminal device is continuously the same as the first motion state parameter in direction, then the user will not perform another screen-on or screen-off operation on the terminal device. This is because the directions of the screen-up and screen-down operations are generally opposite, and the user continuously moves the terminal device in one direction without any other screen-up or screen-down operation. Therefore, if the screen of the terminal equipment is controlled to be lightened or extinguished according to the direction of the first motion state parameter and the screen state of the terminal equipment, and the motion direction of the terminal equipment is still the same as the first motion state parameter, the motion state parameter accumulation of the terminal equipment is continuously cleared. That is, it is not considered that the user performs the screen-on or screen-off operation at the operation terminal device at this time.
After the screen of the terminal device is controlled to be turned on or off according to the direction of the first motion state parameter and the screen state of the terminal device, when the motion direction of the terminal device is opposite to the first motion state parameter, it may mean that the user starts to turn on or off the screen of the terminal device. At this time, it is detected whether the second motion state parameter of the terminal device exceeds a second preset threshold. The second motion state parameter may be any motion state parameter of the terminal device, and the second preset threshold is a trigger threshold of the terminal device for screen-off or screen-up corresponding to the second motion state parameter. The second motion state parameter is generally of the same type and opposite direction as the first motion state parameter. And the second predetermined threshold is generally the same as the first predetermined threshold.
It should be noted that, when it is determined that the motion direction of the terminal device is opposite to the first motion state parameter, it may be determined that the motion direction of the terminal device is opposite to the first motion state parameter when it is detected that the motion state parameter of the terminal device is opposite to the direction of the first motion state parameter in a plurality of consecutive detection values.
And 204, if the second motion state parameter exceeds a second preset threshold, controlling the screen of the terminal device to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal device.
If the second motion state parameter exceeds a second preset threshold, the user performs screen-on or screen-off operation on the terminal device. Thus, similarly to step 202, the direction of the second motion state parameter is considered, as well as the current screen state of the terminal device. And when the current screen state of the terminal equipment is screen-off, and the direction of the second motion state parameter is a screen-on direction and exceeds a second preset threshold value, controlling the terminal equipment to be screen-on. And when the current screen state of the terminal equipment is bright screen, and the direction of the second motion state parameter is screen-off direction and exceeds a second preset threshold value, controlling the terminal equipment to screen off.
It should be noted that the screen-up and screen-down operations of the terminal device in steps 202 and 204 are reversed, that is, the screen-up operation in one step is followed by the screen-down operation in the other step, and vice versa.
According to the end screen-lighting control method provided by the embodiment of the application, whether a first motion state parameter of the terminal device exceeds a first preset threshold value or not is judged, if the first motion state parameter exceeds the first preset threshold value, the terminal device is controlled to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal device, when the motion direction of the terminal device is opposite to that of the first motion state parameter, whether a second motion state parameter of the terminal device exceeds a second preset threshold value or not is started to be detected, and if the second motion state parameter exceeds the second preset threshold value, the terminal device is controlled to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal device, so that automatic screen-lighting and screen-lighting logic of the terminal device can be correctly executed, and the use experience of a user is improved.
Fig. 3 is a flowchart of a second embodiment of a terminal bright-screen control method provided in the embodiment of the present application, and as shown in fig. 3, the method provided in this embodiment includes:
step 301, judging whether a first motion state parameter of the terminal device in a preset time exceeds a first preset threshold.
The screen-on or screen-off operation of the terminal device by the user should be a coherent action and needs to be completed within a certain time, so that whether a first motion state parameter of the terminal device within a preset time exceeds a first preset threshold needs to be judged. The preset time can be determined according to different screen-lighting or screen-turning state operations, and if the screen-turning or screen-lighting operation is more complicated, the corresponding time is longer. If the first motion state parameter of the terminal device exceeds the first preset threshold but exceeds the preset time, the user may not want to control the terminal device to turn off or light the screen, but only move the terminal device.
Step 302, if the first motion state parameter exceeds the first preset threshold within the preset time, controlling the screen of the terminal device to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal device.
If the first motion state parameter of the terminal device exceeds the first preset threshold within the preset time, it means that the user performs a screen-up or screen-down operation on the terminal device. The automatic screen-on and screen-off operations of the terminal device are determined according to the use habits of the user, for example, the user picking up the terminal device generally means that the user needs to use the terminal device, and the screen-on of the terminal device needs to be controlled at the moment, and the user putting down the terminal device generally means that the user does not use the terminal device any more, and the screen-off of the terminal device needs to be controlled at the moment. For another example, the user may turn the terminal device in a different direction, which may also mean that the user needs to turn the terminal device on or off. Therefore, when determining that the first motion state parameter exceeds the first preset threshold, the direction of the first motion state parameter and the current screen state of the terminal device need to be considered. When the current screen state of the terminal equipment is screen-off, and the direction of the first motion state parameter is a screen-on direction and exceeds a first preset threshold value in preset time, controlling the terminal equipment to be screen-on. And when the current screen state of the terminal equipment is bright screen, and the direction of the first motion state parameter is the screen-off direction in the preset time and exceeds a first preset threshold value, controlling the terminal equipment to screen off.
Step 303, when the motion direction of the terminal device is opposite to the first motion state parameter, starting to detect whether a second motion state parameter of the terminal device within a preset time exceeds a second preset threshold.
Similarly to step 301, when the moving direction of the terminal device is opposite to the first moving state parameter, it is also required to detect whether the second moving state parameter of the terminal device exceeds the second preset threshold within a preset time. If the second motion state parameter of the terminal device exceeds the second preset threshold value, and the motion direction of the terminal device is opposite to the direction of the first motion state parameter, but the motion direction is not completed within the preset time, the motion state of the terminal device is not in a screen-on or screen-off state. The preset time in this step may be the same as or different from that in step 301, and generally, the preset time is also the same when the first motion state parameter and the second motion state parameter are the same in type but different in direction.
And 304, if the second motion state parameter exceeds a second preset threshold value within the preset time, controlling the screen of the terminal device to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal device.
If the second motion state parameter exceeds the second preset threshold value within the preset time, the user performs screen-on or screen-off operation on the terminal device. Thus, similarly to step 302, the direction of the second motion state parameter is considered, as well as the current screen state of the terminal device. And when the current screen state of the terminal equipment is screen-off, and the direction of the second motion state parameter is a screen-on direction within the preset time and exceeds a second preset threshold, controlling the terminal equipment to be screen-on. And when the current screen state of the terminal equipment is bright screen, and the direction of the second motion state parameter is the screen-off direction within the preset time and exceeds a second preset threshold value, controlling the terminal equipment to screen off.
The end-on screen control method provided in the embodiment of the application controls the screen of the terminal device to be turned on or off according to the direction of the first motion state parameter and the screen state of the terminal device by judging whether the first motion state parameter of the terminal device within the preset time exceeds a first preset threshold value or not, if the first motion state parameter exceeds the first preset threshold value within the preset time, starting to detect whether the second motion state parameter of the terminal device within the preset time exceeds a second preset threshold value or not, if the second motion state parameter exceeds the second preset threshold value within the preset time, controlling the screen of the terminal device to be turned on or off according to the rotation direction of the second motion state parameter and the screen state of the terminal device, so that the automatic screen-on and screen-off logic of the terminal device can be correctly executed, the use experience of the user is improved.
In the embodiments shown in fig. 2 and 3, the first motion state parameter and the second motion state parameter may be any motion state parameter of the terminal device, or a combination of multiple motion parameters. In the embodiment of the present application, a terminal bright-screen control method provided in the embodiment of the present application is exemplified by taking a first motion state parameter and a second motion state parameter as a flip angle.
For example, when the terminal device is in a bright screen state, the terminal device turns off the screen when turning around the Y-axis negative direction for more than 70 degrees within 0.6 seconds, and turns on the screen when turning around the Y-axis positive direction for more than 70 degrees within 0.6 seconds, wherein the Y-axis negative direction is counterclockwise and the Y-axis positive direction is clockwise. At the moment, the user controls the terminal device to turn over by 100 degrees around the Y-axis negative direction within 0.6 second, and when the terminal device turns over to 70 degrees, the terminal device turns off the screen. The user then immediately controls the terminal device to turn 80 degrees around the positive Y-axis direction in 0.6 seconds. In the prior art, because the angle accumulation in the bright screen control method of the terminal device is cleared when the terminal device is turned to 70 degrees, the detected turning angle accumulation is that the turning angle is turned to 30 degrees in the negative direction and is rotated to 80 degrees in the positive direction, and the turning angle accumulation is that the turning angle is turned to 50 degrees in the positive direction, the terminal device is not controlled to be bright screen.
By adopting the scheme of the embodiment of the application, when the terminal equipment turns to 70 degrees around the Y-axis negative direction within 0.6 second, the terminal is controlled to turn off the screen. While the terminal device continuously turns to 100 degrees in the negative direction, the 30 degrees of continuous turning are not accumulated. When the terminal device rotates to 70 degrees around the positive direction of the Y axis within 0.6 second, the terminal device is controlled to be on due to the fact that only the overturning angle of the terminal device to the positive direction is accumulated.
Fig. 4 is a schematic structural diagram of a first embodiment of a terminal bright-screen control device provided in an embodiment of the present application, and as shown in fig. 4, the terminal bright-screen control device provided in this embodiment is disposed in a terminal device, and includes:
the motion state determining module 41 is configured to determine whether a first motion state parameter of the terminal device exceeds a first preset threshold.
And the bright screen control module 42 is configured to control a screen of the terminal device to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal device if the first motion state parameter exceeds a first preset threshold.
The motion state determining module 41 is further configured to start to detect whether a second motion state parameter of the terminal device exceeds a second preset threshold when the motion direction of the terminal device is opposite to the first motion state parameter.
And the screen-lighting control module 42 is further configured to control the screen of the terminal device to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal device if the second motion state parameter exceeds a second preset threshold.
The terminal bright screen control device provided by the embodiment of the application can execute the terminal bright screen control method provided by the embodiment shown in fig. 2 or fig. 3, and has corresponding functional modules and beneficial effects of the execution method.
Further, on the basis of the embodiment shown in fig. 4, the motion state determining module 41 is further configured to continuously zero the motion state parameter accumulation of the terminal device if the motion direction of the terminal device is the same as the first motion state parameter.
Further, on the basis of the embodiment shown in fig. 4, the motion state determining module 41 is specifically configured to, when the motion direction of the terminal device is opposite to the first motion state parameter, start to detect whether a second motion state parameter of the terminal device within a preset time exceeds a second preset threshold; and the screen-lighting control module 42 is specifically configured to, if the second motion state parameter exceeds the second preset threshold within the preset time, control the screen of the terminal device to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal device.
Further, on the basis of the embodiment shown in fig. 4, the motion state determining module 41 is specifically configured to determine whether a first motion state parameter of the terminal device within a preset time exceeds a first preset threshold; the screen-lighting control module 42 is specifically configured to, if the first motion state parameter exceeds the first preset threshold within a preset time, control a screen of the terminal device to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal device.
Further, on the basis of the embodiment shown in fig. 4, the motion state parameter includes a flip angle.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application, and as shown in fig. 5, the terminal includes a processor 51, a memory 52, and a motion state detection element 53; the number of the processors 51 in the terminal may be one or more, and one processor 51 is taken as an example in fig. 5; a processor 51, a memory 52 and a motion state detection element 53 in the terminal; may be connected by a bus or other means, such as by a bus as illustrated in fig. 5.
The memory 52 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the terminal bright-screen control method in the embodiment of fig. 2 or fig. 3 (for example, the motion state determination module 41 and the bright-screen control module 42 in the terminal bright-screen control device). The processor 51 executes software programs, instructions and modules stored in the memory 52, so as to implement various functional applications and data processing of the terminal, i.e., the above-mentioned terminal bright screen control method.
The memory 52 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 52 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 non-volatile solid state storage device.
The motion state detection element 53 may be any one or more elements or modules capable of detecting a motion state parameter of the terminal device, such as a gyroscope, an acceleration sensor, and the like.
The embodiment of the present application also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are used for executing a terminal bright-screen control method, including:
judging whether a first motion state parameter of the terminal equipment exceeds a first preset threshold value or not;
if the first motion state parameter exceeds a first preset threshold value, controlling a screen of the terminal equipment to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal equipment;
when the motion direction of the terminal equipment is opposite to the first motion state parameter, starting to detect whether a second motion state parameter of the terminal equipment exceeds a second preset threshold value;
and if the second motion state parameter exceeds a second preset threshold, controlling the screen of the terminal equipment to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal equipment.
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the method operations described above, and may also perform related operations in the terminal bright-screen control method provided in any embodiment of the present application.
From the above description of the embodiments, it is obvious for those skilled in the art that the present application can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments of the present application.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. A terminal bright screen control method is applied to terminal equipment and is characterized by comprising the following steps:
judging whether a first motion state parameter of the terminal equipment exceeds a first preset threshold value or not, wherein the motion state parameter comprises a turning angle;
if the first motion state parameter exceeds a first preset threshold, controlling a screen of the terminal equipment to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal equipment;
when the motion direction of the terminal equipment is opposite to the first motion state parameter, starting to detect whether a second motion state parameter of the terminal equipment exceeds a second preset threshold value;
if the second motion state parameter exceeds a second preset threshold, controlling a screen of the terminal equipment to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal equipment;
if the first motion state parameter exceeds a first preset threshold, controlling the screen of the terminal equipment to be lightened or extinguished according to the direction of the first motion state parameter and the screen state of the terminal equipment, and further comprising the following steps;
and if the motion direction of the terminal equipment is the same as the first motion state parameter, continuously resetting the motion state parameter accumulation of the terminal equipment.
2. The method according to claim 1, wherein the starting to detect whether a second motion state parameter of the terminal device exceeds a second preset threshold when the motion direction of the terminal device is opposite to the first motion state parameter comprises:
when the motion direction of the terminal equipment is opposite to the first motion state parameter, starting to detect whether a second motion state parameter of the terminal equipment in preset time exceeds a second preset threshold value;
if the second motion state parameter exceeds a second preset threshold, controlling a screen of the terminal device to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal device, including:
and if the second motion state parameter exceeds a second preset threshold value within a preset time, controlling the screen of the terminal equipment to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal equipment.
3. The method of claim 1, wherein the determining whether the first motion state parameter of the terminal device exceeds a first preset threshold value comprises:
judging whether a first motion state parameter of the terminal equipment in a preset time exceeds a first preset threshold value or not;
if the first motion state parameter exceeds a first preset threshold, controlling a screen of the terminal device to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal device, including:
and if the first motion state parameter exceeds a first preset threshold value within a preset time, controlling the screen of the terminal equipment to be lightened or extinguished according to the direction of the first motion state parameter and the screen state of the terminal equipment.
4. A terminal bright screen control device is characterized by comprising:
the motion state judging module is used for judging whether a first motion state parameter of the terminal equipment exceeds a first preset threshold value or not, and the motion state parameter comprises a turning angle;
the screen lightening control module is used for controlling the screen of the terminal equipment to be lightened or extinguished according to the direction of the first motion state parameter and the screen state of the terminal equipment if the first motion state parameter exceeds a first preset threshold;
the motion state judgment module is further configured to start detecting whether a second motion state parameter of the terminal device exceeds a second preset threshold value when the motion direction of the terminal device is opposite to the first motion state parameter;
the screen-lighting control module is further configured to control a screen of the terminal device to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal device if the second motion state parameter exceeds a second preset threshold;
the motion state judgment module is further configured to continuously zero the motion state parameter accumulation of the terminal device if the motion direction of the terminal device is the same as the first motion state parameter.
5. The apparatus according to claim 4, wherein the motion state determining module is specifically configured to start detecting whether a second motion state parameter of the terminal device within a preset time exceeds a second preset threshold when the motion direction of the terminal device is opposite to the first motion state parameter;
the screen-lighting control module is specifically configured to control the screen of the terminal device to be turned on or turned off according to the rotation direction of the second motion state parameter and the screen state of the terminal device if the second motion state parameter exceeds a second preset threshold within a preset time.
6. The apparatus according to claim 4, wherein the motion state determining module is specifically configured to determine whether a first motion state parameter of the terminal device within a preset time exceeds a first preset threshold;
the screen-lighting control module is specifically configured to control a screen of the terminal device to be turned on or turned off according to the direction of the first motion state parameter and the screen state of the terminal device if the first motion state parameter exceeds a first preset threshold within a preset time.
7. A terminal, comprising:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the terminal bright-screen control method according to any one of claims 1-3.
8. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the terminal bright-screen control method according to any one of claims 1 to 3.
CN201810455329.5A 2018-05-14 2018-05-14 Terminal bright screen control method and device, terminal and storage medium Active CN108650422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810455329.5A CN108650422B (en) 2018-05-14 2018-05-14 Terminal bright screen control method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810455329.5A CN108650422B (en) 2018-05-14 2018-05-14 Terminal bright screen control method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108650422A CN108650422A (en) 2018-10-12
CN108650422B true CN108650422B (en) 2020-08-14

Family

ID=63755182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810455329.5A Active CN108650422B (en) 2018-05-14 2018-05-14 Terminal bright screen control method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108650422B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672094A (en) * 2021-09-03 2021-11-19 东莞盟大集团有限公司 Method and device for controlling screen turning of mobile terminal, mobile terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055097A (en) * 2016-05-24 2016-10-26 北京搜狗科技发展有限公司 Screen lighting control method and apparatus, and electronic device
CN106557021A (en) * 2016-10-14 2017-04-05 杭州联络互动信息科技股份有限公司 A kind of screen based on intelligent watch lights method and apparatus, intelligent watch
CN107734191A (en) * 2017-11-15 2018-02-23 深圳市沃特沃德股份有限公司 Utilize the method and apparatus of acceleration transducer control mobile phone
CN107896276A (en) * 2017-10-30 2018-04-10 珠海市魅族科技有限公司 Display panel control method and device, terminal installation and computer-readable recording medium
CN107895561A (en) * 2017-09-30 2018-04-10 努比亚技术有限公司 Method, terminal and the computer-readable recording medium of a kind of intelligent bright screen and the screen that goes out
EP3565228A1 (en) * 2016-12-28 2019-11-06 Shenzhen Royole Technologies Co., Ltd. Information processing method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055097A (en) * 2016-05-24 2016-10-26 北京搜狗科技发展有限公司 Screen lighting control method and apparatus, and electronic device
CN106557021A (en) * 2016-10-14 2017-04-05 杭州联络互动信息科技股份有限公司 A kind of screen based on intelligent watch lights method and apparatus, intelligent watch
EP3565228A1 (en) * 2016-12-28 2019-11-06 Shenzhen Royole Technologies Co., Ltd. Information processing method and apparatus
CN107895561A (en) * 2017-09-30 2018-04-10 努比亚技术有限公司 Method, terminal and the computer-readable recording medium of a kind of intelligent bright screen and the screen that goes out
CN107896276A (en) * 2017-10-30 2018-04-10 珠海市魅族科技有限公司 Display panel control method and device, terminal installation and computer-readable recording medium
CN107734191A (en) * 2017-11-15 2018-02-23 深圳市沃特沃德股份有限公司 Utilize the method and apparatus of acceleration transducer control mobile phone

Also Published As

Publication number Publication date
CN108650422A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
US10591974B2 (en) Detecting user focus on hinged multi-screen device
RU2599536C2 (en) User interface interaction method and apparatus applied in touchscreen device, and touchscreen device
US10684673B2 (en) Apparatus and control method based on motion
US9781252B2 (en) Information processing method, system and mobile terminal
US20150169180A1 (en) Rearranging icons on a display by shaking
US20130154947A1 (en) Determining a preferred screen orientation based on known hand positions
CN110575671B (en) Method and device for controlling viewing angle in game and electronic equipment
CN114341784A (en) Touch event processing method and device, mobile terminal and storage medium
CN109550242B (en) Method and device for controlling virtual character in game
CN103513788A (en) Gesture recognition method and system based on gyroscope sensor and mobile terminal
EP3196738A1 (en) Method for controlling blank screen gesture processing and terminal
CN108434728B (en) Operation control adaptation method and device, electronic equipment and storage medium
CN111866275A (en) Screen adjustment method and device, storage medium and processor
CN108650422B (en) Terminal bright screen control method and device, terminal and storage medium
CN103761041A (en) Information processing method and electronic device
CN104898818A (en) Information processing method and electronic equipment
CN108635850B (en) Information processing method, device and storage medium
US20170285798A1 (en) Method and system for realizing functional key on side surface
CN104639964A (en) Method and device for determining key values of direction keys of remote controller
CN109254710B (en) Screen rotation method and device, terminal equipment and computer readable storage medium
CN109753146B (en) Method for starting application by mobile terminal and mobile terminal
CN108021235B (en) Method, device, terminal and storage medium for triggering operation
CN108415651B (en) Electronic equipment, display control method and related product
US20200150820A1 (en) Method and apparatus for processing edge of touch screen
CN104598030A (en) Automatic adjusting method and automatic adjusting device for control key of intelligent terminal and intelligent terminal

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