CN107257409B - Screen state control method, mobile terminal and computer readable storage medium - Google Patents

Screen state control method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN107257409B
CN107257409B CN201710418049.2A CN201710418049A CN107257409B CN 107257409 B CN107257409 B CN 107257409B CN 201710418049 A CN201710418049 A CN 201710418049A CN 107257409 B CN107257409 B CN 107257409B
Authority
CN
China
Prior art keywords
mobile terminal
screen state
state
hand
angle
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
CN201710418049.2A
Other languages
Chinese (zh)
Other versions
CN107257409A (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.)
Mingguang Jiuzhi Intellectual Property Management Co ltd
Original Assignee
Anhui Yuanye Photoelectric 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 Anhui Yuanye Photoelectric Co Ltd filed Critical Anhui Yuanye Photoelectric Co Ltd
Priority to CN201710418049.2A priority Critical patent/CN107257409B/en
Publication of CN107257409A publication Critical patent/CN107257409A/en
Application granted granted Critical
Publication of CN107257409B publication Critical patent/CN107257409B/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
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Abstract

The invention discloses a screen state control method, a mobile terminal and a computer readable storage medium. The left side and the right side of the mobile terminal are respectively provided with at least one sensor, and the screen state control method comprises the following steps: when the mobile terminal is in a black screen state, detecting the angle between the mobile terminal and the horizontal direction, and detecting whether the mobile terminal is in a hand-held state through a sensor; and when the angle is within the preset angle range and the mobile terminal is in a hand-held state, controlling the mobile terminal to enter a bright screen state from a black screen state. The method and the device realize that the mobile terminal is controlled to enter the bright screen state from the black screen state under the conditions that the mobile terminal is not unlocked and the screen locking function key of the mobile terminal is not triggered; in addition, the mobile terminal is controlled to enter the bright screen state from the black screen state only when the angle and the hand holding state are required to be met, and the misoperation rate of controlling the mobile terminal to enter the bright screen state from the black screen state is reduced.

Description

Screen state control method, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a screen state control method, a mobile terminal, and a computer-readable storage medium.
Background
With the continuous development of technology, a user can process complex and diverse tasks on a mobile terminal, such as reading an electronic book, playing videos, playing music, browsing webpages, and the like, which requires frequent information interaction between the user and the mobile terminal.
When a user wants to interact with the mobile terminal, the user first lights up a screen of the mobile terminal. The current methods for lighting up the screen of the mobile terminal include: directly unlocking the mobile terminal through a fingerprint to light a screen of the mobile terminal; pressing a screen locking function key in the mobile terminal to light the screen of the mobile terminal. Therefore, except for the situation of directly unlocking through fingerprints, no other method is available for controlling the mobile terminal to enter the bright screen state from the black screen state under the conditions of not unlocking and not triggering the screen locking function key.
Disclosure of Invention
The invention mainly aims to provide a screen state control method, a mobile terminal and a computer readable storage medium, and aims to solve the technical problem that the mobile terminal cannot be controlled to enter a bright screen state from a black screen state under the conditions of not unlocking and not triggering a screen locking function key.
In order to achieve the above object, the present invention provides a screen state control method, which is applied to a mobile terminal, wherein at least one sensor is respectively disposed on the left side and the right side of the mobile terminal, and the screen state control method comprises the following steps:
when the mobile terminal is in a black screen state, detecting an angle between the mobile terminal and the horizontal direction, and detecting whether the mobile terminal is in a hand-held state or not through the sensor;
and when the angle is within a preset angle range and the mobile terminal is in a hand-held state, controlling the mobile terminal to enter a bright screen state from a black screen state.
Optionally, when the angle is within the preset angle range and the mobile terminal is in the hand-held state, the step of controlling the mobile terminal to enter the bright screen state from the black screen state includes:
when the angle is within the preset angle range, calculating the duration time of the angle within the preset angle range;
and when the duration is greater than or equal to the preset time and the mobile terminal is in a hand-held state, controlling the mobile terminal to enter a bright screen state from a black screen state.
Optionally, after the step of controlling the mobile terminal to enter the bright screen state from the black screen state when the angle is within the preset angle range and the mobile terminal is in the hand-held state, the method further includes:
when detecting that the angle between the mobile terminal in the bright screen state and the horizontal direction is not within the preset angle range, controlling the mobile terminal to enter a black screen state from the bright screen state;
and/or when the mobile terminal in the bright screen state is detected to be in a non-hand-held state, controlling the mobile terminal to enter a black screen state from the bright screen state.
Optionally, when it is detected that the mobile terminal in the bright screen state is in the non-handheld state, the step of controlling the mobile terminal to enter the black screen state from the bright screen state includes:
when the mobile terminal in the bright screen state is detected to be in a non-hand-held state, judging whether an application program which is running exists in a foreground of the mobile terminal;
and if the running application program does not exist in the mobile terminal foreground, controlling the mobile terminal to enter a black screen state from a bright screen state.
Optionally, after the step of determining whether there is an application running in the foreground of the mobile terminal when the mobile terminal in the bright-screen state is detected to be in the non-handheld state, the method further includes:
and if the application program which is running exists in the foreground of the mobile terminal, controlling the mobile terminal to be in a bright screen state.
Optionally, after the step of controlling the mobile terminal to enter the bright screen state from the black screen state when the angle is within the preset angle range and the mobile terminal is in the hand-held state, the method further includes:
and when detecting that the angle between the mobile terminal in the bright screen state and the horizontal direction is increased, unlocking the mobile terminal.
Optionally, a back sensor is disposed on the back of the mobile terminal, and when the angle is within a preset angle range and the mobile terminal is in a hand-held state, the step of controlling the mobile terminal to enter a bright screen state from a black screen state includes:
when the angle is within a preset angle range and the mobile terminal is in a hand-held state, acquiring a third detection value corresponding to the back sensor;
and when the third detection value is not zero, controlling the mobile terminal to enter a bright screen state from a black screen state.
Optionally, the step of detecting whether the mobile terminal is in a hand-held state by the sensor includes:
acquiring a first detection value corresponding to a left sensor of the mobile terminal and acquiring a second detection value corresponding to a right sensor of the mobile terminal;
when the first detection value and the second detection value are both larger than a preset detection value, confirming that the mobile terminal is in a hand-held state;
and when the first detection value is smaller than or equal to the preset detection value and/or the second detection value is smaller than or equal to the preset detection value, confirming that the mobile terminal is in a non-hand-held state.
In addition, to achieve the above object, the present invention also provides a mobile terminal including a memory, a sensor, a processor, and a screen state control program stored on the memory and executable on the processor, the screen state control program implementing the steps of the screen state control method as described above when executed by the processor.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a screen state control program which, when executed by a processor, implements the steps of the screen state control method as described above.
In the invention, at least one sensor is respectively arranged on the left side and the right side of a mobile terminal, the angle between the mobile terminal and the horizontal direction is detected when the mobile terminal is in a black screen state, and whether the mobile terminal is in a hand-held state is detected through the sensor; and when the angle is within a preset angle range and the mobile terminal is in a hand-held state, controlling the mobile terminal to enter a bright screen state from a black screen state. The mobile terminal is controlled to enter a bright screen state from a black screen state under the conditions that the mobile terminal is not unlocked and a screen locking function key of the mobile terminal is not triggered; in addition, the mobile terminal is controlled to enter the bright screen state from the black screen state only when the angle and the hand holding state are required to be met, and the misoperation rate of controlling the mobile terminal to enter the bright screen state from the black screen state is reduced.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
fig. 3 is a rear view of the mobile terminal in the embodiment of the present invention;
FIG. 4 is a cross-sectional view of the mobile terminal of FIG. 3 taken along direction AA;
FIG. 5 is a flowchart illustrating a screen state control method according to a first embodiment of the present invention;
FIG. 6 is a schematic diagram of a sensor respectively disposed on the left and right sides of a mobile terminal according to an embodiment of the present invention;
fig. 7a is a schematic view illustrating that a plurality of sensors are respectively disposed on the left side and the right side of the mobile terminal in the embodiment of the present invention;
FIG. 7b is a right side view of the front side of the mobile terminal of FIG. 7a in accordance with the present invention;
FIG. 7c is a left side view of the front side of the mobile terminal of FIG. 7a in accordance with the present invention;
fig. 8 is a flowchart illustrating a process of detecting whether the mobile terminal is held by the sensor according to an embodiment of the present invention;
FIG. 9 is a diagram of a user holding a mobile terminal;
FIG. 10 is a diagram illustrating a variation of an angle between a mobile terminal and a horizontal direction;
FIG. 11 is a flowchart illustrating a screen status control method according to a third embodiment of the present invention;
FIG. 12 is a flowchart illustrating a screen status control method according to a fourth embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, Wi-Fi module 102, audio output unit 103, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal 100 depicted in fig. 1 is not intended to be limiting of the mobile terminal 100, and that the mobile terminal 100 may include more or less components than those shown, or some components may be combined, or a different arrangement of components.
The various components of the mobile terminal 100 are described in detail below with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution), etc.
Wi-Fi belongs to a short-distance wireless transmission technology, and the mobile terminal 100 can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the Wi-Fi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal 100, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the Wi-Fi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, motion sensor, pressure sensor, capacitive sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a 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; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal 100, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby monitoring the mobile terminal 100 as a whole. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
Further, in the mobile terminal 100 shown in fig. 1, at least one sensor 105 is respectively disposed on the left and right sides of the mobile terminal 100, and the processor 110 is configured to call up a screen state control program stored in the memory 109 and perform the following operations:
when the mobile terminal 100 is in the black screen state, detecting an angle of the mobile terminal 100 with respect to a horizontal direction, and detecting whether the mobile terminal 100 is in a hand-held state by a sensor;
when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the mobile terminal 100 is controlled to enter the bright screen state from the black screen state.
Further, when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the step of controlling the mobile terminal 100 to enter the bright screen state from the black screen state includes:
when the angle is within the preset angle range, calculating the duration time of the angle within the preset angle range;
and when the duration is greater than or equal to the preset time and the mobile terminal 100 is in the hand-held state, controlling the mobile terminal 100 to enter the bright screen state from the black screen state.
Further, after the step of controlling the mobile terminal 100 to enter the bright screen state from the black screen state when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the processor 110 is further configured to call a screen state control program stored in the memory 109, and perform the following operations:
when detecting that the angle between the mobile terminal 100 in the bright screen state and the horizontal direction is not within the preset angle range, controlling the mobile terminal 100 to enter a black screen state from the bright screen state;
and/or controlling the mobile terminal 100 to enter a black screen state from a bright screen state when the mobile terminal 100 in the bright screen state is detected to be in a non-hand-held state.
Further, when it is detected that the mobile terminal 100 in the bright screen state is in the non-handheld state, the step of controlling the mobile terminal 100 to enter the black screen state from the bright screen state includes:
when detecting that the mobile terminal 100 in the bright screen state is in a non-hand-held state, judging whether an application program which is running exists in a foreground of the mobile terminal 100;
and if the running application program does not exist in the foreground of the mobile terminal 100, controlling the mobile terminal 100 to enter a black screen state from a bright screen state.
Further, after the step of determining whether the running application program exists in the foreground of the mobile terminal 100 when the mobile terminal 100 in the bright-screen state is detected to be in the non-hand-held state, the processor 110 is further configured to call the screen state control program stored in the memory 109, and perform the following operations:
and if the application program running in the foreground of the mobile terminal 100 exists, controlling the mobile terminal 100 to be in a bright screen state.
Further, after the step of controlling the mobile terminal 100 to enter the bright screen state from the black screen state when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the processor 110 is further configured to call a screen state control program stored in the memory 109, and perform the following operations:
and when detecting that the angle between the mobile terminal 100 in the bright screen state and the horizontal direction is increased, unlocking the mobile terminal 100.
Further, a back sensor is disposed on the back of the mobile terminal 100, and when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the step of controlling the mobile terminal 100 to enter the bright screen state from the black screen state includes:
when the angle is within the preset angle range and the mobile terminal 100 is in a hand-held state, acquiring a third detection value corresponding to the back sensor;
and when the third detection value is not zero, controlling the mobile terminal 100 to enter a bright screen state from a black screen state.
Further, the detecting whether the mobile terminal 100 is in the hand-held state by the sensor includes:
acquiring a first detection value corresponding to a left sensor of the mobile terminal 100 and acquiring a second detection value corresponding to a right sensor of the mobile terminal 100;
when the first detection value and the second detection value are both greater than a preset detection value, confirming that the mobile terminal 100 is in a hand-held state;
when the first detection value is less than or equal to the preset detection value and/or the second detection value is less than or equal to the preset detection value, it is determined that the mobile terminal 100 is in a non-hand-held state.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the mobile terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above hardware structure of the mobile terminal 100 and the communication network system, various embodiments of the screen state control method of the present invention are proposed.
In the present embodiment, an embodiment of a screen state control method is provided, and it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
In the embodiment of the present invention, the screen state control method is optionally applied to the mobile terminal 100.
Referring to fig. 3 and 4, the body 200 of the mobile terminal 100 includes an outer case 210 and various hardware inside the outer case 210. One side of the outer casing 210 is provided with a screen, the other side opposite to the screen is a back, and the outer casing 210 connecting the screen and the back is a side of the mobile terminal 100. Generally, the mobile terminal 100 has two long sides and two short sides.
The housing 210 is provided with a hand-held state detection area 220 for detecting whether the mobile terminal 100 is in a hand-held state. The hand-held state detection area 220 may cover the entire outer casing 210, or may be only a partial area of the outer casing 210, and the area and the position of the area may be flexibly configured according to actual needs.
In order to sense an object, a capacitive sensor 230 is disposed on the hand-held state detection area 220. The capacitive sensor 230 is electrically connected to the CPU300, and transmits the capacitance value to the CPU300 in real time, so that the CPU300 can determine whether an object touches the hand-held state detection area 220.
The body 200 is provided with an attitude sensor 400 for sensing an attitude change of the mobile terminal 100 in a hand-held state. The posture acquiring instrument 400 is electrically connected to the CPU300, and transmits a signal generated by the same to the CPU 300.
The CPU300 is electrically connected to the capacitance sensor 230 and the posture collection instrument 400, respectively, and receives signals transmitted from the capacitance sensor 230 and the posture collection instrument 400. The CPU300 may detect whether an object touches the hand-held state detection area 220 according to the signal transmitted from the capacitive sensor 230.
The working principle of the capacitive sensor 230 is: assuming that the effective projection area of a proximity object (e.g., a user's finger) in the capacitive sensor 230 is a, the capacitance value C can be expressed by the following formula:
Figure BDA0001313156320000111
it should be noted that, in the following description,0andrwhich represent the dielectric constants of vacuum and air, respectively, and d represents the distance between the approaching object and the capacitive sensor 230. As can be seen from the formula, the effective projection area a and the distance d from the object can both change the value of the capacitor C, so that the interaction state between the user and the mobile terminal 100 can be determined according to the change of the capacitor C and the difference between the capacitors, and further, whether the mobile terminal 100 is in the hand-held state can be detected. Further, the pressure value of the hand can be detected.
It should be noted that, in addition to using the capacitance sensor 230 to detect whether the mobile terminal 100 is in the hand-held state, a pressure sensor, a photosensitive sensor, etc. may also be used to detect whether the mobile terminal 100 is in the hand-held state.
Thus, the CPU300 can determine whether or not an object touches the hand-held state detection area 220 according to the magnitude and the variation trend of the capacitance value fed back by the capacitance sensor 230. Generally, when the user approaches the capacitive sensor 230, the capacitance value fed back by the capacitive sensor 230 gradually increases. Considering that grip strength of different users is different, a capacitance threshold value may be preset, and when the capacitance value detected by the capacitive sensor 230 gradually increases and exceeds the preset capacitance threshold value, it is determined that an object is in contact with the position where the capacitive sensor 230 is located.
Then, the CPU300 detects whether the mobile terminal 100 is in a hand-held state according to the position touched by the object sensed by the capacitive sensor 230. For example, when a user holds the mobile terminal 100 with one hand, it is common that four fingers contact one long side of the mobile terminal 100 and a palm contacts the other long side of the mobile terminal 100. If the position touched by the object sensed by the capacitive sensor 230 includes two long sides of the mobile terminal 100, it may be determined that the mobile terminal 100 is currently in a hand-held state.
After determining that the mobile terminal 100 is currently in the hand-held state, the CPU300 generates an angle between the mobile terminal 100 and the horizontal direction according to the signal transmitted by the gesture acquirer 400, and further, the CPU300 determines an angle change direction of the mobile terminal 100 according to the signal transmitted by the gesture acquirer 400, thereby detecting a gesture change of the mobile terminal 100. Herein, the angle between the body 200 and the horizontal direction may be understood as a value of an inclination angle of the body 200 of the mobile terminal 100 with respect to the horizontal direction, and the direction of the change of the angle of the mobile terminal 100 may be understood as an inclination direction of the body 200 of the mobile terminal 100 with respect to the horizontal direction, which represents the change of the direction of the body 200.
The gesture acquirer 400 may be a gyroscope, a gravity sensor, or other devices for detecting the angle change of the mobile terminal 100 from the horizontal direction. The gyroscope operates on the principle that the rotating shaft of the object rotates at a high speed, and tends to the vertical direction under the action of an external force for changing the direction of the rotating shaft, and when the rotating object tilts transversely, gravity acts in the direction for increasing the tilt, and the rotating shaft moves in the vertical direction, so that the motion (motion of the camera) for shaking the head is generated, and the CPU300 can calculate the tilt direction and the tilt angle of the mobile terminal 100 relative to the horizontal direction according to the signal generated by the rotation of the gyroscope.
When detecting the change in the angle of the mobile terminal 100 from the horizontal direction using the gravity sensor, the acceleration due to gravity is measured by the gravity sensor and a signal is transmitted to the CPU300, and the CPU300 calculates the tilt direction (angle change direction) and tilt angle (angle of the mobile terminal 100 from the horizontal direction) of the mobile terminal 100 from the acceleration measured by the gravity sensor.
Here, the horizontal direction may be understood as a reference direction that is set as a reference vector value set by the CPU300 for reference, the reference vector value being a vector value designated by the mobile terminal 100 in a preset azimuth coordinate system or a vector value of an initial position of the mobile terminal 100 to be acquired from a sensor. The preset orientation coordinate system comprises one or more of a plane coordinate system, a terrestrial coordinate system and a geographic coordinate system. The initial position of the mobile terminal 100 may be a position when the mobile terminal 100 enters the current operation mode, or a position of the mobile terminal 100 before a preset time interval, or a position after the CPU300 executes the control instruction last time, and may be flexibly configured or selected according to actual needs.
The CPU300 periodically detects an angle between the body 200 and the horizontal direction according to a preset frequency, or monitors an angle between the body 200 and the horizontal direction in real time. The CPU300 controls the mobile terminal 100 when an angle between the body 200 and the horizontal direction satisfies a preset control condition. Specifically, the CPU300 searches the control condition library for a control condition that is satisfied by an angle of the mobile terminal 100 with respect to the horizontal direction, determines a control instruction corresponding to the control condition, and after determining the control instruction, the CPU300 executes the control instruction to correspondingly control the mobile terminal 100.
In one embodiment, the predetermined control conditions include, but are not limited to, a predetermined direction, and a range of angular values. When it is required to be described, the preset control condition may be configured by the CPU300, or may be set by the user, or the use habit of the user may be collected to perform optimization adjustment on the range of the direction and the angle value in the control condition.
Referring to fig. 5, the screen status control method includes:
in step S10, when the mobile terminal 100 is in the black screen state, an angle of the mobile terminal 100 with respect to a horizontal direction is detected, and whether the mobile terminal 100 is in a hand-held state is detected by a sensor.
In this embodiment, at least one sensor is disposed on each of the left and right sides of the mobile terminal 100, and the mobile terminal 100 detects whether it is in a hand-held state through the sensor. One sensor may be provided on each of the left and right sides of the mobile terminal 100, or a plurality of sensors may be provided. Specifically, referring to fig. 6, fig. 7a, fig. 7b and fig. 7c, fig. 6 is a schematic diagram illustrating that one sensor is respectively disposed on the left and right sides of the mobile terminal 100 in an embodiment of the present invention, fig. 7a is a schematic diagram illustrating that a plurality of sensors are respectively disposed on the left and right sides of the mobile terminal 100 in an embodiment of the present invention, fig. 7b is a right side view of the front of the mobile terminal in fig. 7a in the present invention, and fig. 7c is a left side view of the front of the mobile terminal in fig. 7. In fig. 6, S1 denotes a sensor on the right side of the mobile terminal 100, and S2 denotes a sensor on the left side of the mobile terminal 100; in fig. 7a, 7b and 7c, a plurality of sensors are provided at positions of S1 and S2 in fig. 6, so that S1 is (S10 … S1n) and S2 is (S20 … S2 m). In fig. 7a, 7b and 7c, S1 denotes a sensor array on the right side of the mobile terminal 100, and S10 … S1n denotes a plurality of sensors provided on the right side of the mobile terminal 100; s2 denotes a sensor array on the left side of the mobile terminal 100, and S20 … S2m denotes a plurality of sensors provided on the left side of the mobile terminal 100. In the present embodiment, the sensors used are capacitive sensors.
When the mobile terminal 100 is in the black screen state, the mobile terminal 100 detects its angle with the horizontal direction and detects whether it is in the hand-held state by a sensor. It should be noted that, in the embodiment of the present invention, the mobile terminal 100 may first detect the angle between the mobile terminal 100 and the horizontal direction, and then detect whether the mobile terminal 100 is in the hand-held state through the sensor when the angle between the mobile terminal 100 and the horizontal direction satisfies a certain condition, for example, when the angle between the mobile terminal 100 and the horizontal direction is greater than a certain set angle, the mobile terminal 100 considers that the current user may want to light the screen, and then detects whether the mobile terminal is in the hand-held state. Or, it is detected whether the mobile terminal is in a hand-held state, and when the hand-held state is detected, the mobile terminal 100 detects an angle with the horizontal direction.
Further, referring to fig. 8, the step of detecting whether the mobile terminal 100 is in a hand-held state by a sensor includes:
in step S11, a first detection value corresponding to the left sensor of the mobile terminal 100 is obtained, and a second detection value corresponding to the right sensor of the mobile terminal 100 is obtained.
In step S12, when both the first detection value and the second detection value are greater than the preset detection value, it is confirmed that the mobile terminal 100 is in a hand-held state.
In step S13, when the first detection value is less than or equal to the preset detection value and/or the second detection value is less than or equal to the preset detection value, it is determined that the mobile terminal 100 is in a non-hand-held state.
The specific process of the mobile terminal 100 detecting whether the mobile terminal is in the hand-held state through the sensor is as follows: the mobile terminal 100 acquires a first detection value corresponding to the left sensor through the left sensor, and acquires a second detection value corresponding to the right sensor through the right sensor. When the first detection value and the second detection value are acquired, the mobile terminal 100 determines whether both the first detection value and the second detection value are greater than a preset detection value to determine whether the mobile terminal is currently in a hand-held state.
When both the first detection value and the second detection value are greater than the preset detection value, the mobile terminal 100 confirms that it is currently in a hand-held state; when the first detection value is less than or equal to the preset detection value and/or the second detection value is less than or equal to the preset detection value, the mobile terminal 100 confirms that it is currently in a non-hand-held state. It should be noted that the preset detection value may be set according to specific situations, and the preset detection value differs according to the sensor used by the mobile terminal 100 and differs according to the calculation unit used by the sensor.
Further, when it is determined that the mobile terminal 100 is in the hand-held state, the mobile terminal 100 may also determine whether the left-hand-held state or the right-hand-held state is currently in accordance with a magnitude between the first detection value and the second detection value. If the capacitive sensors are disposed on the left and right sides of the mobile terminal 100, the first and second detection values may have different sizes due to different effective projection areas a on the left and right sides of the mobile terminal 100 in the left-hand holding state and the right-hand holding state. When the first detection value is greater than the second detection value, it indicates that the mobile terminal 100 is currently in a left-handed holding state; when the second detection value is greater than the first detection value, it indicates that the mobile terminal 100 is currently in a right-hand grip state.
In step S20, when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the mobile terminal 100 is controlled to enter the bright screen state from the black screen state.
When the angle between the mobile terminal 100 and the horizontal direction is within the preset angle range and the mobile terminal 100 is in the hand-held state, the mobile terminal 100 enters the bright screen state from the black screen state. In this embodiment, the numerical value of the preset angle range is not limited, and may be set to 20 ° to 70 °, or 28 ° to 65 °, for example, and specifically may be set according to habits of different users in holding the mobile terminal 100. Specifically, referring to fig. 9 and 10, fig. 9 is a schematic diagram of a user holding the mobile terminal 100, and fig. 10 is a schematic diagram of an angle change of the mobile terminal 100 from a horizontal direction. In fig. 10, (α, β) indicates a preset angle range, α indicates a preset angle range lower limit value, and β indicates a preset angle range upper limit value.
Further, when the angle of the mobile terminal 100 to the horizontal direction is not within the preset angle range and/or the mobile terminal 100 is not in the hand-held state, the mobile terminal 100 continues to be in the black screen state.
Further, step S20 includes:
step a, when the angle is in the preset angle range, calculating the duration time of the angle in the preset angle range.
And b, when the duration is greater than or equal to the preset time and the mobile terminal 100 is in the hand-held state, controlling the mobile terminal 100 to enter the bright screen state from the black screen state.
Further, when the mobile terminal 100 determines that its angle to the horizontal direction is within the preset angle range, the mobile terminal 100 calculates a duration time of the angle within the preset range and determines whether the duration time is greater than or equal to the preset time. When the duration is greater than or equal to the preset time and the mobile terminal 100 is in the hand-held state, the mobile terminal 100 enters the bright screen state from the black screen state; when the duration is less than the preset time, the mobile terminal 100 continues to be in the black screen state. In the present embodiment, the preset time may be set to 3 seconds, 4 seconds, 5 seconds, or the like.
By judging the duration time of the angle between the mobile terminal 100 and the horizontal direction within the preset angle range, the situation that the mobile terminal 100 enters the bright screen state from the black screen state when the user shakes the mobile terminal 100 is avoided, and the accuracy rate of the mobile terminal 100 entering the bright screen state from the black screen state according to the user needs is improved.
Further, when the mobile terminal 100 detects that the angle between the mobile terminal 100 and the horizontal direction is in the process of being held by the hand, and then detects that the angle between the mobile terminal 100 and the horizontal direction starts to change, it is determined whether the change time before the angle between the mobile terminal 100 and the horizontal direction enters the preset range angle from zero is greater than the preset time length. When the preset angle range is represented by (α, β), determining whether the change time is greater than the preset time period may be understood as determining whether a duration T of the angle between the mobile terminal 100 and the horizontal direction within the range of (0, α) is greater than the preset time period T. When T > T and the detected angle is within the preset angle range, the mobile terminal 100 starts the sensor, and detects whether the mobile terminal is currently in a hand-held state through the sensor, so as to improve the accuracy of entering a bright screen state from a black screen state of the mobile terminal 100 according to the user requirement. When T is less than or equal to T, the mobile terminal 100 does not start the sensor. The preset time period can be set according to specific needs, such as 2 seconds, 3 seconds, and the like.
In the embodiment, by respectively providing at least one sensor on the left side and the right side of the mobile terminal 100, when the mobile terminal 100 is in the black screen state, the angle between the mobile terminal 100 and the horizontal direction is detected, and whether the mobile terminal 100 is in the hand-held state is detected by the sensor; when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the mobile terminal 100 is controlled to enter the bright screen state from the black screen state. The mobile terminal 100 is controlled to enter the bright screen state from the black screen state under the conditions that the mobile terminal 100 is not unlocked and the screen locking function key of the mobile terminal 100 is not triggered; in addition, in the invention, the mobile terminal 100 is controlled to enter the bright screen state from the black screen state only when the angle and the hand holding state are required to be met, so that the misoperation rate of controlling the mobile terminal 100 to enter the bright screen state from the black screen state is reduced.
Further, a second embodiment of the screen status control method of the present invention is proposed based on the first embodiment. The second embodiment of the screen state control method is different from the first embodiment of the screen state control method in that the screen state control method further includes:
step c, when detecting that the angle between the mobile terminal 100 in the bright screen state and the horizontal direction is not within the preset angle range, controlling the mobile terminal 100 to enter a black screen state from the bright screen state;
and/or step d, when the mobile terminal 100 is detected to be in the non-hand-held state, controlling the mobile terminal 100 to enter the black screen state from the bright screen state.
When the mobile terminal 100 in the bright screen state detects that the angle between the mobile terminal 100 and the horizontal direction is not within the preset angle range, the mobile terminal 100 enters a black screen state from the bright screen state; when the mobile terminal 100 in the bright screen state detects that the angle between the mobile terminal 100 and the horizontal direction is within the preset angle range, but the mobile terminal is currently in the non-hand-held state, entering a black screen state from the bright screen state; when the mobile terminal 100 in the bright screen state detects that the angle between the mobile terminal 100 and the horizontal direction is not within the preset angle range and is currently in the non-hand-held state, the mobile terminal enters the black screen state from the bright screen state.
By controlling the mobile terminal 100 to enter the black screen state from the bright screen state when the angle between the mobile terminal 100 in the bright screen state and the horizontal direction is not within the preset angle range and/or the mobile terminal 100 is in the non-handheld state, the situation that the mobile terminal 100 is still in the bright screen state all the time when the user does not need to light the screen of the mobile terminal 100 is avoided, the electric quantity of the mobile terminal 100 is saved, and the intelligence of the mobile terminal 100 is improved.
Further, the screen state control method further includes:
and e, when detecting that the mobile terminal 100 is in a non-hand-held state, judging whether the running application program exists in the foreground of the mobile terminal 100.
And f, if the foreground of the mobile terminal 100 does not have the running application program, controlling the mobile terminal 100 to enter a black screen state from a bright screen state.
Further, the screen state control method further includes:
and g, if the application program running in the foreground of the mobile terminal 100 exists, controlling the mobile terminal 100 to be in a bright screen state.
Further, when the mobile terminal 100 in the bright screen state detects that it is currently in the non-handheld state through the sensor, the mobile terminal 100 determines whether there is an application running in the foreground. When the application program running in the foreground of the mobile terminal 100 exists, the mobile terminal 100 maintains a bright screen state; when the running application does not exist in the foreground of the mobile terminal 100, the mobile terminal 100 enters a black screen state from a bright screen state.
For example, when the mobile terminal 100 in the bright screen state detects that it is currently in the non-handheld state through the sensor and the foreground thereof is playing the video through the player, the mobile terminal 100 maintains the bright screen state.
When the mobile terminal 100 in the bright screen state is in the non-hand-held state, whether an application program running in the foreground of the mobile terminal 100 exists is further detected, and if the application program running in the foreground exists, the mobile terminal 100 is controlled to be in the bright screen state continuously, so that the situation that the mobile terminal 100 automatically enters the black screen state from the bright screen state when a user places the mobile terminal 100 on a desk, or watches videos in a specific place, or browses webpages and the like is avoided.
Further, a third embodiment of the screen status control method of the present invention is proposed based on the first embodiment.
The third embodiment of the screen state control method is different from the first embodiment of the screen state control method in that, referring to fig. 11, the screen state control method further includes:
in step S30, when it is detected that the angle of the mobile terminal 100 in the bright screen state to the horizontal direction is increasing, the mobile terminal 100 is unlocked.
The mobile terminal 100 in the bright screen state detects its angle with the horizontal direction in real time. When the mobile terminal 100 in the bright screen state detects that the angle between the mobile terminal 100 and the horizontal direction is increasing, the mobile terminal 100 enters an unlocking state from the bright screen state, and an unlocking operation is performed to unlock the mobile terminal 100.
In the embodiment, when it is detected that the angle between the mobile terminal 100 in the bright screen state and the horizontal direction is increased, it is considered that the user wants to view the content of the mobile terminal 100, or manipulate the mobile terminal 100, and the like, at this time, the mobile terminal 100 is unlocked, and at this time, the user does not need to unlock the mobile terminal 100 by fingerprint unlocking or manually inputting an unlocking password, so that the unlocking process of unlocking the mobile terminal 100 is simplified.
Further, a fourth embodiment of the screen status control method of the present invention is proposed based on the first, second, or third embodiment. The fourth embodiment of the screen status control method is different from the first, second and third embodiments of the screen status control method in that a rear sensor is provided at the rear of the mobile terminal 100, and referring to fig. 12, step S20 includes:
step S21, when the angle is within the preset angle range and the mobile terminal 100 is in a hand-held state, obtaining a third detection value corresponding to the back sensor;
in step S22, when the third detection value is not zero, the mobile terminal 100 is controlled to enter the bright screen state from the black screen state.
The rear surface of the mobile terminal 100 is provided with at least one rear surface sensor. When a back sensor is provided on the back of the mobile terminal 100, the back sensor may be provided in the middle of the back of the mobile terminal 100 in order to detect a user holding operation. It is to be understood that the position of the rear sensor at the rear of the mobile terminal 100 is not limited to the present embodiment. In the present invention, it is preferable that two sensors are provided on the rear surface of the mobile terminal 100. Specifically, referring to fig. 6 or 7a, one sensor S3 is disposed above the rear surface of the mobile terminal 100, and the other sensor S0 is disposed below the rear surface of the mobile terminal 100.
When the mobile terminal 100 in the black screen state detects that the angle between the mobile terminal 100 and the horizontal direction is within the preset angle range and the mobile terminal is currently in the hand-held state, the mobile terminal 100 acquires a third detection value corresponding to the back sensor and determines whether the third detection value is zero. When the third detection value is not zero, the mobile terminal 100 enters a bright screen state from a black screen state; when the third detection value is zero, the mobile terminal 100 maintains the black screen state.
Further, it may be set that the mobile terminal 100 enters the bright screen state from the black screen state only when the third detection value is greater than a certain fixed value; when the third detection value is less than or equal to the fixed value, the mobile terminal 100 continues to be in the black screen state.
In this embodiment, by setting the back sensor on the back of the mobile terminal 100, by detecting the third detection value corresponding to the back sensor, when the third detection value meets the condition, the mobile terminal 100 enters the bright screen state from the black screen state, the angle between the mobile terminal 100 and the horizontal direction is within the preset angle range, and under the condition that the detection values corresponding to the sensors on the left and right sides of the mobile terminal 100 meet the condition, whether to control the mobile terminal 100 to enter the bright screen state from the black screen state is further determined according to the third detection value corresponding to the back sensor of the mobile terminal 100, so that the accuracy of the mobile terminal 100 entering the bright screen state from the black screen state according to the user needs is improved.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The computer readable storage medium has stored thereon a screen state control program which, when executed by the processor, performs the steps of:
when the mobile terminal 100 is in a black screen state, detecting an angle between the mobile terminal 100 and a horizontal direction, and detecting whether the mobile terminal 100 is in a hand-held state by using a sensor, wherein the left side and the right side of the mobile terminal 100 are respectively provided with at least one sensor;
when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the mobile terminal 100 is controlled to enter the bright screen state from the black screen state.
In the present invention, at least one sensor is respectively disposed at the left and right sides of the mobile terminal 100, by detecting an angle of the mobile terminal 100 with respect to a horizontal direction when the mobile terminal 100 is in a black screen state, and by detecting whether the mobile terminal 100 is in a hand-held state by the sensor; when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the mobile terminal 100 is controlled to enter the bright screen state from the black screen state. The mobile terminal 100 is controlled to enter the bright screen state from the black screen state under the conditions that the mobile terminal 100 is not unlocked and the screen locking function key of the mobile terminal 100 is not triggered; in addition, in the invention, the mobile terminal 100 is controlled to enter the bright screen state from the black screen state only when the angle and the hand holding state are required to be met, so that the misoperation rate of controlling the mobile terminal 100 to enter the bright screen state from the black screen state is reduced.
Further, when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the step of controlling the mobile terminal 100 to enter the bright screen state from the black screen state includes:
when the angle is within the preset angle range, calculating the duration time of the angle within the preset angle range;
and when the duration is greater than or equal to the preset time and the mobile terminal 100 is in the hand-held state, controlling the mobile terminal 100 to enter the bright screen state from the black screen state.
Further, when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, after the step of controlling the mobile terminal 100 to enter the bright screen state from the black screen state, the screen state control program is executed by the processor to implement the following steps:
when detecting that the angle between the mobile terminal 100 in the bright screen state and the horizontal direction is not within the preset angle range, controlling the mobile terminal 100 to enter a black screen state from the bright screen state;
and/or controlling the mobile terminal 100 to enter a black screen state from a bright screen state when the mobile terminal 100 in the bright screen state is detected to be in a non-hand-held state.
Further, when it is detected that the mobile terminal 100 in the bright screen state is in the non-handheld state, the step of controlling the mobile terminal 100 to enter the black screen state from the bright screen state includes:
when detecting that the mobile terminal 100 in the bright screen state is in a non-hand-held state, judging whether an application program which is running exists in a foreground of the mobile terminal 100;
and if the running application program does not exist in the foreground of the mobile terminal 100, controlling the mobile terminal 100 to enter a black screen state from a bright screen state.
Further, when it is detected that the mobile terminal 100 in the bright screen state is in the non-hand-held state, after the step of determining whether the running application program exists in the foreground of the mobile terminal 100, the screen state control program implements the following steps when executed by the processor:
and if the application program running in the foreground of the mobile terminal 100 exists, controlling the mobile terminal 100 to be in a bright screen state.
Further, when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, after the step of controlling the mobile terminal 100 to enter the bright screen state from the black screen state, the screen state control program is executed by the processor to implement the following steps:
and when detecting that the angle between the mobile terminal 100 in the bright screen state and the horizontal direction is increased, unlocking the mobile terminal 100.
Further, a back sensor is disposed on the back of the mobile terminal 100, and when the angle is within the preset angle range and the mobile terminal 100 is in the hand-held state, the step of controlling the mobile terminal 100 to enter the bright screen state from the black screen state includes:
when the angle is within the preset angle range and the mobile terminal 100 is in a hand-held state, acquiring a third detection value corresponding to the back sensor;
and when the third detection value is not zero, controlling the mobile terminal 100 to enter a bright screen state from a black screen state.
Further, the detecting whether the mobile terminal 100 is in the hand-held state by the sensor includes:
acquiring a first detection value corresponding to a left sensor of the mobile terminal 100 and acquiring a second detection value corresponding to a right sensor of the mobile terminal 100;
when the first detection value and the second detection value are both greater than a preset detection value, confirming that the mobile terminal 100 is in a hand-held state;
when the first detection value is less than or equal to the preset detection value and/or the second detection value is less than or equal to the preset detection value, it is determined that the mobile terminal 100 is in a non-hand-held state.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the screen status control method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A screen state control method is applied to a mobile terminal, the left side and the right side of the mobile terminal are respectively provided with at least one sensor, and the screen state control method comprises the following steps:
when the mobile terminal is in a black screen state, detecting an angle between the mobile terminal and the horizontal direction, and detecting whether the mobile terminal is in a hand-held state or not through the sensor;
when the angle is within a preset angle range and the mobile terminal is in a hand-held state, controlling the mobile terminal to enter a bright screen state from a black screen state, wherein when the change of the angle between the mobile terminal and the horizontal direction is detected, judging whether the change time before the angle between the mobile terminal and the horizontal direction enters the preset angle range from zero is longer than a preset time length or not, and when the change time is longer than the preset time length and the angle is detected to be within the preset range, starting the sensor to detect whether the mobile terminal is in the hand-held state or not;
wherein the detecting whether the mobile terminal is in a hand-held state by the sensor comprises:
acquiring a first detection value corresponding to a left sensor of the mobile terminal and acquiring a second detection value corresponding to a right sensor of the mobile terminal;
when the first detection value and the second detection value are both larger than a preset detection value, confirming that the mobile terminal is in a hand-held state, and when the first detection value is larger than the second detection value, determining that the mobile terminal is in a left-hand holding state; when the second detection value is larger than the first detection value, determining that the mobile terminal is in a right-hand holding state;
and when the first detection value is smaller than or equal to the preset detection value and/or the second detection value is smaller than or equal to the preset detection value, confirming that the mobile terminal is in a non-hand-held state.
2. The screen state control method of claim 1, wherein the controlling the mobile terminal to enter the bright screen state from the black screen state when the angle is within a preset angle range and the mobile terminal is in a hand-held state comprises:
when the angle is within the preset angle range, calculating the duration time of the angle within the preset angle range;
and when the duration is greater than or equal to the preset time and the mobile terminal is in a hand-held state, controlling the mobile terminal to enter a bright screen state from a black screen state.
3. The screen state control method of claim 1, wherein after the step of controlling the mobile terminal to enter the bright screen state from the black screen state when the angle is within the preset angle range and the mobile terminal is in the hand-held state, the method further comprises:
when detecting that the angle between the mobile terminal in the bright screen state and the horizontal direction is not within the preset angle range, controlling the mobile terminal to enter a black screen state from the bright screen state;
and/or when the mobile terminal in the bright screen state is detected to be in a non-hand-held state, controlling the mobile terminal to enter a black screen state from the bright screen state.
4. The screen state control method of claim 3, wherein the controlling the mobile terminal to enter the black screen state from the bright screen state when detecting that the mobile terminal in the bright screen state is in the non-handheld state comprises:
when the mobile terminal in the bright screen state is detected to be in a non-hand-held state, judging whether an application program which is running exists in a foreground of the mobile terminal;
and if the running application program does not exist in the mobile terminal foreground, controlling the mobile terminal to enter a black screen state from a bright screen state.
5. The screen state control method of claim 4, wherein after the step of determining whether the application program is running in the foreground of the mobile terminal when the mobile terminal in the bright screen state is detected to be in the non-handheld state, further comprising:
and if the application program which is running exists in the foreground of the mobile terminal, controlling the mobile terminal to be in a bright screen state.
6. The screen state control method of claim 1, wherein after the step of controlling the mobile terminal to enter the bright screen state from the black screen state when the angle is within the preset angle range and the mobile terminal is in the hand-held state, the method further comprises:
and when detecting that the angle between the mobile terminal in the bright screen state and the horizontal direction is increased, unlocking the mobile terminal.
7. The screen status control method of claim 1, wherein a back sensor is disposed on a back surface of the mobile terminal, and the step of controlling the mobile terminal to enter the bright screen state from the black screen state when the angle is within the preset angle range and the mobile terminal is in the hand-held state comprises:
when the angle is within a preset angle range and the mobile terminal is in a hand-held state, acquiring a third detection value corresponding to the back sensor;
and when the third detection value is not zero, controlling the mobile terminal to enter a bright screen state from a black screen state.
8. A mobile terminal characterized in that it comprises a memory, a sensor, a processor and a screen state control program stored on said memory and executable on said processor, said screen state control program when executed by said processor implementing the steps of the screen state control method according to any one of claims 1 to 7.
9. A computer-readable storage medium, having stored thereon a screen state control program which, when executed by a processor, implements the steps of the screen state control method of any one of claims 1 to 7.
CN201710418049.2A 2017-06-05 2017-06-05 Screen state control method, mobile terminal and computer readable storage medium Active CN107257409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710418049.2A CN107257409B (en) 2017-06-05 2017-06-05 Screen state control method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710418049.2A CN107257409B (en) 2017-06-05 2017-06-05 Screen state control method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107257409A CN107257409A (en) 2017-10-17
CN107257409B true CN107257409B (en) 2020-11-10

Family

ID=60023948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710418049.2A Active CN107257409B (en) 2017-06-05 2017-06-05 Screen state control method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107257409B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770391A (en) * 2017-11-16 2018-03-06 珠海市魅族科技有限公司 Put out screen and bright screen method and device, terminal and computer-readable recording medium
CN108769392A (en) * 2018-05-14 2018-11-06 Oppo(重庆)智能科技有限公司 The bright screen control method of terminal, device, terminal and storage medium
CN108803896B (en) * 2018-05-28 2021-07-16 Oppo(重庆)智能科技有限公司 Method, device, terminal and storage medium for controlling screen
CN109086095A (en) * 2018-06-20 2018-12-25 宇龙计算机通信科技(深圳)有限公司 The quick open method of application program, device, terminal and storage medium
CN109391868B (en) * 2018-09-30 2020-01-14 Oppo广东移动通信有限公司 Earphone unlocking method and device, electronic equipment and storage medium
CN109558019A (en) * 2018-11-30 2019-04-02 努比亚技术有限公司 Method and device, mobile terminal and the computer readable storage medium of the bright screen of intelligence
WO2020133040A1 (en) * 2018-12-27 2020-07-02 海能达通信股份有限公司 Control method and apparatus, electronic device and storage medium
CN110022495B (en) * 2019-03-28 2021-07-23 海信视像科技股份有限公司 Method for pushing media file to display device by mobile terminal and display device
CN110968205B (en) * 2019-11-20 2023-10-17 深圳传音控股股份有限公司 Screen lighting method, mobile terminal and storage medium
CN112866479A (en) * 2020-12-30 2021-05-28 惠州Tcl移动通信有限公司 Screen-off state time display processing method, device and equipment based on mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833412A (en) * 2012-08-27 2012-12-19 广东欧珀移动通信有限公司 Mobile terminal and unlocking system and unlocking method for same
CN104639732A (en) * 2013-11-13 2015-05-20 上海斐讯数据通信技术有限公司 Electronic equipment and method for automatically lightening screen
CN106484258A (en) * 2016-09-29 2017-03-08 努比亚技术有限公司 A kind of method and device of terminal screen bright screen

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8954099B2 (en) * 2010-06-16 2015-02-10 Qualcomm Incorporated Layout design of proximity sensors to enable shortcuts
US9798399B2 (en) * 2014-06-02 2017-10-24 Synaptics Incorporated Side sensing for electronic devices
CN105373325B (en) * 2014-09-01 2020-07-14 深圳富泰宏精密工业有限公司 Touch screen unlocking method and system
EP3201751A1 (en) * 2014-09-30 2017-08-09 PCMS Holdings, Inc. Mobile device and method for interpreting gestures without obstructing the screen
CN106357905B (en) * 2016-09-20 2019-08-16 努比亚技术有限公司 A kind of mobile terminal
CN106412301A (en) * 2016-09-29 2017-02-15 努比亚技术有限公司 Screen control system based on proximity sensor and mobile terminal
CN106599651A (en) * 2016-11-17 2017-04-26 努比亚技术有限公司 Terminal unlocking apparatus and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833412A (en) * 2012-08-27 2012-12-19 广东欧珀移动通信有限公司 Mobile terminal and unlocking system and unlocking method for same
CN104639732A (en) * 2013-11-13 2015-05-20 上海斐讯数据通信技术有限公司 Electronic equipment and method for automatically lightening screen
CN106484258A (en) * 2016-09-29 2017-03-08 努比亚技术有限公司 A kind of method and device of terminal screen bright screen

Also Published As

Publication number Publication date
CN107257409A (en) 2017-10-17

Similar Documents

Publication Publication Date Title
CN107257409B (en) Screen state control method, mobile terminal and computer readable storage medium
CN107943367B (en) Interface display method of double-screen terminal, double-screen terminal and computer storage medium
CN108108081B (en) Information display method based on double-sided screen, mobile terminal and readable storage medium
CN108287611B (en) Screen touch response method, terminal and computer storage medium
CN109284065B (en) Key false touch prevention method and device, mobile terminal and readable storage medium
CN107273035B (en) Application program recommendation method and mobile terminal
CN110007816B (en) Display area determining method, terminal and computer readable storage medium
CN108459805B (en) Screen capture method, mobile terminal and computer-readable storage medium
CN107832032B (en) Screen locking display method and mobile terminal
CN107809534B (en) Control method, terminal and computer storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN111324257B (en) Application icon arrangement method and mobile terminal
CN112306366A (en) Operation method, mobile terminal and storage medium
CN107193379B (en) Application program starting method, terminal and computer readable storage medium
CN109885242B (en) Method for executing operation and electronic equipment
CN110096213B (en) Terminal operation method based on gestures, mobile terminal and readable storage medium
CN109063444B (en) Mobile terminal screen unlocking method, mobile terminal and computer readable storage medium
CN108810262B (en) Application configuration method, terminal and computer readable storage medium
CN108287627B (en) Interface operation method based on flexible screen, terminal and computer readable storage medium
CN109254691B (en) False touch prevention method and device and storage medium
CN107340958B (en) Horizontal and vertical screen switching method and mobile terminal
CN112558826A (en) Shortcut operation method, mobile terminal and storage medium
CN109739430B (en) Display method and mobile terminal
CN108897417B (en) Working mode adjusting method, mobile terminal and computer readable storage medium
CN108696638B (en) Control method of mobile terminal and mobile 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201026

Address after: 239400 north of balinghu road and west of Fushan Road, Changcheng new area, Mingguang Economic Development Zone, Chuzhou City, Anhui Province

Applicant after: Anhui Yuanye photoelectric Co.,Ltd.

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230419

Address after: No. 2398, Mingcang Road, Chuzhou City, Anhui Province

Patentee after: Mingguang Jiuzhi Intellectual Property Management Co.,Ltd.

Address before: 239400 North of Balinghu Road and West of Fushan Road, Chancheng New Area, Mingguang Economic Development Zone, Chuzhou City, Anhui Province

Patentee before: Anhui Yuanye photoelectric Co.,Ltd.