[go: up one dir, main page]

CN111273774A - Terminal device display screen control method and system, storage medium and terminal device - Google Patents

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

Info

Publication number
CN111273774A
CN111273774A CN202010057514.6A CN202010057514A CN111273774A CN 111273774 A CN111273774 A CN 111273774A CN 202010057514 A CN202010057514 A CN 202010057514A CN 111273774 A CN111273774 A CN 111273774A
Authority
CN
China
Prior art keywords
fluctuation
distance
value
preset time
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010057514.6A
Other languages
Chinese (zh)
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202010057514.6A priority Critical patent/CN111273774A/en
Publication of CN111273774A publication Critical patent/CN111273774A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3265Power saving in display device

Landscapes

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

Abstract

The invention discloses a control method and a system for a display screen of a terminal device, a storage medium and the terminal device. The control method of the display screen of the terminal equipment comprises the following steps: dividing a first distance area and a second distance area according to a distance threshold; if the terminal equipment moves from the first distance area to the second distance area, increasing a fluctuation value by one; if the terminal equipment moves from the second distance area to the first distance area, increasing a fluctuation value by one; judging whether the fluctuation numerical value is smaller than a fluctuation threshold value within a first preset time; and when the fluctuation value is judged to be larger than or equal to the fluctuation threshold value within the first preset time, closing the distance sensor within the second preset time. The method can effectively prevent the problem that the screen of the terminal equipment is turned on or off for many times in a short time due to body actions of a user in the conversation process, so that the electric quantity consumption of the terminal equipment during conversation is more stable.

Description

Terminal device display screen control method and system, storage medium and terminal device
Technical Field
The invention relates to the technical field of computers, in particular to a display screen control method and system of a terminal device, a storage medium and the terminal device.
Background
With the development of terminal equipment technology and the popularization of devices such as smart phones and tablets, terminal equipment is not only traditional devices for making calls and sending short messages. However, a call is one of the most basic functions of a terminal device, and at present, in order to save the electric quantity of the terminal device or prevent a screen of the terminal device from being touched by the skin of the face of a user by mistake in the call process, a terminal device manufacturer places a distance sensor at a specific position of the terminal device manufacturer, so as to detect whether an object is in front of the terminal device or not through the distance sensor, and when the object exists, the screen is closed to achieve the effect.
However, in actual use, the user holds the terminal device on his head, and may move the terminal device along with the user, which may change the distance between the terminal device and the head or the face of the user, and may turn on the display screen or turn off the display screen. However, the power consumption of the display from off to on is relatively high, which in turn increases the average power consumption of the terminal device as a whole.
Therefore, a new solution for solving the problem of high power consumption of the display panel is needed.
Disclosure of Invention
The embodiment of the invention provides a control method and a control system for a display screen of a terminal device, a storage medium and the terminal device, which can effectively solve the problem that the average power consumption of the whole terminal device is increased because the power consumption is higher after the display screen is turned off to be turned on for multiple times in the conversation process.
According to an aspect of the present invention, an embodiment of the present invention provides a method for controlling a display screen of a terminal device, including the following steps: dividing a first distance area and a second distance area according to a distance threshold value, wherein the distance threshold value is a distance value between the display screen and the face of a user, the area smaller than or equal to the distance threshold value is set as the first distance area, and the area larger than the distance threshold value is set as the second distance area; when the terminal equipment moves from the first distance area to the second distance area, increasing a fluctuation value by one; when the terminal equipment moves from the second distance area to the first distance area, increasing a fluctuation value by one; judging whether the fluctuation numerical value is smaller than a fluctuation threshold value within a first preset time; and when the fluctuation value is judged to be larger than or equal to the fluctuation threshold value within the first preset time, closing the distance sensor within the second preset time, so that the display screen is in a lighting state within the second preset time.
Further, after the step of judging whether the fluctuation value is smaller than the fluctuation threshold value within the first preset time, the method further comprises the steps of: and when the fluctuation value is judged to be smaller than the fluctuation threshold value within the first preset time, the fluctuation value is reset to zero.
Further, when it is determined that the fluctuation value is greater than or equal to the fluctuation threshold value within the first preset time, after the step of turning off the distance sensor within the second preset time, the method further includes the steps of: zeroing the fluctuation value; judging whether the fluctuation numerical value is smaller than a fluctuation threshold value within second preset time; and when the fluctuation value is judged to be smaller than the fluctuation threshold value within second preset time, starting the distance sensor.
Further, the fluctuation threshold is 3 to 7, and a preferable fluctuation threshold is 5.
According to another aspect of the present invention, an embodiment of the present invention provides a terminal device display screen control system, including: a distance region dividing unit, configured to divide a first distance region and a second distance region according to a distance threshold, where the distance threshold is a distance value between the display screen and a face of a user, a region smaller than or equal to the distance threshold is set as the first distance region, and a region larger than the distance threshold is set as the second distance region; a counting unit, when the terminal device moves from the first distance area to the second distance area, the fluctuation value is increased by one, and when the terminal device moves from the second distance area to the first distance area, the fluctuation value is increased by one; the first fluctuation numerical value judging unit is connected with the counting unit and used for judging whether the fluctuation numerical value is smaller than a preset value within a first preset time; and the sensor closing unit is connected with the fluctuation numerical value judging unit and used for closing the distance sensor within second preset time when judging that the fluctuation numerical value is greater than or equal to a preset value within first preset time so as to enable the display screen to be in a lighting state within the second preset time.
Further, the display screen control system further includes: and the counting zeroing unit is connected with the first judgment unit of the fluctuation numerical value and is used for zeroing the fluctuation numerical value.
Further, the display screen control system further includes: the second fluctuation value judgment unit is connected with the sensor closing unit and is used for judging whether the fluctuation value is smaller than a preset value within a second preset time; and the sensor starting unit is used for starting the distance sensor when the fluctuation value is judged to be smaller than a preset value within second preset time.
Further, the fluctuation threshold is 3 to 7, and a preferable fluctuation threshold is 5.
According to another aspect of the present invention, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are adapted to be loaded by a processor to execute the above-mentioned terminal device display screen control method.
According to another aspect of the present invention, an embodiment of the present invention provides a terminal device, including a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the terminal device display screen control method.
The distance detection method has the advantages that the distance of the front object is detected through the terminal equipment, and when the distance between the front object and the terminal equipment is larger than a distance threshold value or smaller than or equal to the distance threshold value, the counting unit records the times. And when the recorded times in the first preset time are greater than the set value, closing the distance sensor. And in a second preset time, using the same recording method, and recovering the distance sensor when the number of times of recording is not detected to be more than the set value. Therefore, the problem that the screen of the terminal equipment is turned on or off for multiple times in a short time due to the body action of the user can be effectively prevented in the conversation process, and the electricity consumption of the terminal equipment during conversation is more stable.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for controlling a display screen of a terminal device according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a display screen control system of a terminal device according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Fig. 4 is another schematic structural diagram of the terminal device according to the embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or uses of other materials.
As shown in fig. 1, a flowchart of a method for controlling a display screen of a terminal device according to an embodiment of the present invention includes the following steps:
step S110: dividing a first distance area and a second distance area according to a distance threshold value, wherein the distance threshold value is a distance value between the display screen and the face of a user, setting the area smaller than or equal to the distance threshold value as the first distance area, and setting the area larger than the distance threshold value as the second distance area.
In this embodiment, the distance threshold is 1cm to 3cm, and preferably, the distance threshold is 2 cm.
Step S120: when the terminal device moves from the first distance area to the second distance area, the fluctuation value is increased by one.
In this embodiment, when the terminal device moves from the first distance area to the second distance area, the fluctuation value is increased by one. Further, when the terminal device moves within the second distance area and does not enter the first distance area, the fluctuation value does not increase regardless of how the terminal device moves within the second distance area.
Step S130: when the terminal equipment moves from the second distance area to the first distance area, the fluctuation value is increased by one.
In this embodiment, when the terminal device moves from the second distance area to the first distance area, the fluctuation value is increased by one. Further, when the terminal device moves within the first distance area and does not enter the second distance area, the fluctuation value does not increase regardless of how the terminal device moves within the first distance area.
Step S140: and judging whether the fluctuation numerical value is smaller than a fluctuation threshold value within a first preset time.
In this embodiment, the fluctuation threshold is a value used to set the maximum fluctuation acceptable to the terminal device. When the fluctuation value of the front object (such as the face of the user) from the terminal equipment is larger than the fluctuation threshold value, the terminal equipment turns off the distance sensor. The fluctuation threshold needs to be set in advance. The fluctuation threshold is 3 to 7, and preferably the fluctuation value is 5. The first preset time is 1 second to 3 seconds, and preferably the first preset time is 2 seconds.
Step S150: and when the fluctuation numerical value is judged to be larger than or equal to the fluctuation threshold value within the first preset time, closing the distance sensor within the second preset time, so that the display screen is in a lighting state within the second preset time.
In this embodiment, when it is determined that the fluctuation value is greater than or equal to the fluctuation threshold value within the first preset time, the distance sensor is turned off, and the turning-off time lasts for a second preset time. The second preset time is 1 second to 3 seconds, and preferably the second preset time is 2 seconds. In addition, it should be noted that, when the distance sensor is turned off, the display screen may be in an off state within the second preset time.
Step S151: and when the fluctuation value is judged to be smaller than the fluctuation threshold value within the first preset time, the fluctuation value is reset to zero.
In this embodiment, after the fluctuation value is zeroed, the process returns to continue to step S120.
Step S160: and zeroing the fluctuation value.
Step S170: and judging whether the fluctuation numerical value is smaller than a fluctuation threshold value within second preset time.
In this embodiment, it is determined whether the fluctuation value is smaller than a fluctuation threshold value within a second preset time. And when the fluctuation value is judged to be larger than or equal to the fluctuation threshold value within the second preset time, returning to the step S160, and judging whether the fluctuation value is smaller than the fluctuation threshold value within the next second preset time.
Step S180: and when the fluctuation value is judged to be smaller than the fluctuation threshold value within second preset time, starting the distance sensor.
In this embodiment, when it is determined that the fluctuation value is smaller than the fluctuation threshold value within the second preset time, the process returns to step S151.
The distance detection method has the advantages that the distance of the front object is detected through the terminal equipment, and when the distance between the front object and the terminal equipment is larger than a distance threshold value or smaller than or equal to the distance threshold value, the counting unit records the times. And when the recorded times in the first preset time are greater than the set value, closing the distance sensor. And in a second preset time, using the same recording method, and recovering the distance sensor when the number of times of recording is not detected to be more than the set value. Therefore, the problem that the screen of the terminal equipment is turned on or off for multiple times in a short time due to the body action of the user can be effectively prevented in the conversation process, and the electricity consumption of the terminal equipment during conversation is more stable.
Fig. 2 is a schematic structural diagram of a display screen control system of a terminal device according to an embodiment of the present invention. The system comprises: a distance area dividing unit 1, a counting unit 2, a first fluctuation value judging unit 3, a sensor closing unit 4, a counting zero-returning unit 5, a second fluctuation value judging unit 6 and a sensor opening unit 7.
The distance area dividing unit 1 is configured to divide a first distance area and a second distance area according to a distance threshold. Wherein the distance threshold is a distance value of the display screen from the face of the user, a region smaller than or equal to the distance threshold is set as the first distance region, and a region larger than the distance threshold is set as the second distance region. In this embodiment, the distance threshold is 1cm to 3cm, and preferably, the distance threshold is 2 cm.
The counting unit 2 is configured to increase a fluctuation value by one when the terminal device moves from the first distance area to the second distance area, and increase a fluctuation value by one when the terminal device moves from the second distance area to the first distance area. In this embodiment, when the terminal device moves from the first distance area to the second distance area, the fluctuation value is increased by one. Further, when the terminal device moves within the second distance area and does not enter the first distance area, the fluctuation value does not increase regardless of how the terminal device moves within the second distance area. And when the terminal equipment moves from the second distance area to the first distance area, increasing the fluctuation value by one. Further, when the terminal device moves within the first distance area and does not enter the second distance area, the fluctuation value does not increase regardless of how the terminal device moves within the first distance area.
The first fluctuation value judging unit 3 is connected to the counting unit 2, and the first fluctuation value judging unit 3 is configured to judge whether the fluctuation value is smaller than a preset value within a first preset time.
In this embodiment, the fluctuation threshold is a fluctuation value that is set to be acceptable by the terminal device to the maximum, and the terminal device turns off the distance sensor when the fluctuation value of the object (e.g., the face of the user) in front from the terminal device is greater than the fluctuation threshold. The fluctuation threshold needs to be set in advance. The fluctuation threshold is 3 to 7, and preferably the fluctuation value is 5. The first preset time is 1 second to 3 seconds, and preferably the first preset time is 2 seconds.
The sensor closing unit 4 is connected to the fluctuation value determination unit, and the sensor closing unit 4 is configured to close the distance sensor within a second preset time when it is determined that the fluctuation value is greater than or equal to a preset value within a first preset time, so that the display screen is in a lighting state within the second preset time. In this embodiment, when it is determined that the fluctuation value is greater than or equal to the fluctuation threshold value within the first preset time, the distance sensor is turned off, and the turning-off time lasts for a second preset time. The second preset time is 1 second to 3 seconds, and preferably the second preset time is 2 seconds. In addition, it should be noted that, when the distance sensor is turned off, the display screen may be in an off state within the second preset time.
The counting zeroing unit 5 is connected with the first judging unit 3 for the fluctuation value, and the counting zeroing unit 5 is used for zeroing the fluctuation value.
The second fluctuation value determination unit 6 is connected to the sensor shutdown unit 4, and is configured to determine whether the fluctuation value is smaller than a preset value within a second preset time. In this embodiment, it is determined whether the fluctuation value is smaller than the fluctuation threshold value within a second preset time, and when it is determined that the fluctuation value is greater than or equal to the fluctuation threshold value within the second preset time, it is determined whether the fluctuation value is smaller than the fluctuation threshold value within a next second preset time.
The sensor starting unit 7 is connected with the second judgment unit 6 for the fluctuation value, and the sensor starting unit 7 is configured to start the distance sensor when the fluctuation value is judged to be smaller than a preset value within a second preset time. In this embodiment, when it is determined that the fluctuation value is smaller than the fluctuation threshold value within the second preset time. And then, the fluctuation numerical value is reset to zero, and whether the fluctuation numerical value is smaller than a preset value or not is interrupted within the first preset time.
The distance detection method has the advantages that the distance of the front object is detected through the terminal equipment, and when the distance between the front object and the terminal equipment is larger than a distance threshold value or smaller than or equal to the distance threshold value, the counting unit records the times. And when the recorded times in the first preset time are greater than the set value, closing the distance sensor. And in a second preset time, using the same recording method, and recovering the distance sensor if the number of times of non-detection recording is more than the set value. Therefore, the problem that the screen of the terminal equipment is turned on or off for multiple times in a short time due to the body action of the user can be effectively prevented in the conversation process, and the electricity consumption of the terminal equipment during conversation is more stable.
As shown in fig. 3, an embodiment of the present invention further provides a terminal device, where the terminal device may be a smart phone, a tablet computer, or the like. Specifically, as shown in fig. 3, the terminal device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the terminal device 200 is provided with a plurality of memory partitions, the plurality of memory partitions includes a system partition and a target partition, the processor 201 in the terminal device 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, so as to implement various functions:
dividing a first distance area and a second distance area according to a distance threshold value, wherein the distance threshold value is a distance value between the display screen and the face of a user, the area smaller than or equal to the distance threshold value is set as the first distance area, and the area larger than the distance threshold value is set as the second distance area;
when the terminal equipment moves from the first distance area to the second distance area, increasing a fluctuation value by one;
when the terminal equipment moves from the second distance area to the first distance area, increasing a fluctuation value by one;
judging whether the fluctuation numerical value is smaller than a fluctuation threshold value within a first preset time; and
and when the fluctuation numerical value is judged to be larger than or equal to the fluctuation threshold value within the first preset time, closing the distance sensor within the second preset time, so that the display screen is in a lighting state within the second preset time.
Fig. 4 is a specific block diagram of a terminal device according to an embodiment of the present invention, where the terminal device may be used to implement the method for controlling the display screen of the terminal device provided in the foregoing embodiment. The terminal device 300 may be a smart phone or a tablet computer. In addition, the terminal device may further include a RF circuit 310 for receiving and transmitting electromagnetic waves, so as to perform interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various communication standards, protocols and technologies, including but not limited to Global System for mobile communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE 2.11b, IEEE 2.11g and/or IEEE802.11 n standards for electrical and electronic engineers), Voice over internet Protocol (VoIP), world wide internet mail (wimax), other short message Access (wimax), and other short message communication protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 320 may be configured to store software programs and modules, such as program instructions/modules corresponding to the display screen control method of the terminal device in the foregoing embodiment, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, that is, functions of implementing display screen control of the terminal device. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 4, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal device 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 300.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., a Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which may be logically coupled to processor 380 via a power management system in some embodiments to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
dividing a first distance area and a second distance area according to a distance threshold value, wherein the distance threshold value is a distance value between the display screen and the face of a user, the area smaller than or equal to the distance threshold value is set as the first distance area, and the area larger than the distance threshold value is set as the second distance area;
when the terminal equipment moves from the first distance area to the second distance area, increasing a fluctuation value by one;
when the terminal equipment moves from the second distance area to the first distance area, increasing a fluctuation value by one;
judging whether the fluctuation numerical value is smaller than a fluctuation threshold value within a first preset time; and
and when the fluctuation numerical value is judged to be larger than or equal to the fluctuation threshold value within the first preset time, closing the distance sensor within the second preset time, so that the display screen is in a lighting state within the second preset time.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute steps in any one of the methods for controlling a display screen of a terminal device provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any of the terminal device display screen control methods provided in the embodiments of the present invention, the beneficial effects that can be achieved by any of the terminal device display screen control methods provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The principle and the implementation of the present invention are explained in the present text by applying specific examples, and the above description of the examples is only used to help understanding the technical solution and the core idea of the present invention; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A control method for a display screen of terminal equipment is characterized by comprising the following steps:
dividing a first distance area and a second distance area according to a distance threshold value, wherein the distance threshold value is a distance value between the display screen and the face of a user, the area smaller than or equal to the distance threshold value is set as the first distance area, and the area larger than the distance threshold value is set as the second distance area;
when the terminal equipment moves from the first distance area to the second distance area, increasing a fluctuation value by one;
when the terminal equipment moves from the second distance area to the first distance area, increasing a fluctuation value by one;
judging whether the fluctuation numerical value is smaller than a fluctuation threshold value within a first preset time; and
and when the fluctuation numerical value is judged to be larger than or equal to the fluctuation threshold value within the first preset time, closing the distance sensor within the second preset time, so that the display screen is in a lighting state within the second preset time.
2. The method for controlling the display screen of the terminal device according to claim 1, wherein after the step of judging whether the fluctuation value is smaller than the fluctuation threshold value within the first preset time, the method further comprises the steps of:
and when the fluctuation value is judged to be smaller than the fluctuation threshold value within the first preset time, the fluctuation value is reset to zero.
3. The method for controlling the display screen of the terminal device according to claim 1, wherein when it is determined that the fluctuation value is greater than or equal to the fluctuation threshold value within a first preset time, after the step of turning off the distance sensor within a second preset time, the method further comprises the steps of:
zeroing the fluctuation value;
judging whether the fluctuation numerical value is smaller than a fluctuation threshold value within second preset time;
and when the fluctuation value is judged to be smaller than the fluctuation threshold value within second preset time, starting the distance sensor.
4. The terminal device display screen control method according to claim 1, wherein the fluctuation threshold is 3 to 7, preferably 5.
5. A terminal equipment display screen control system is characterized by comprising:
a distance region dividing unit, configured to divide a first distance region and a second distance region according to a distance threshold, where the distance threshold is a distance value between the display screen and a face of a user, a region smaller than or equal to the distance threshold is set as the first distance region, and a region larger than the distance threshold is set as the second distance region;
a counting unit, when the terminal device moves from the first distance area to the second distance area, the fluctuation value is increased by one, and when the terminal device moves from the second distance area to the first distance area, the fluctuation value is increased by one;
the first fluctuation numerical value judging unit is connected with the counting unit and used for judging whether the fluctuation numerical value is smaller than a preset value within a first preset time; and
and the sensor closing unit is used for closing the distance sensor within second preset time when the fluctuation value is judged to be more than or equal to the preset value within first preset time, so that the display screen is in a lighting state within the second preset time.
6. The display screen control system of claim 5, further comprising:
and the counting zeroing unit is connected with the first judgment unit of the fluctuation numerical value and is used for zeroing the fluctuation numerical value.
7. The display screen control system of claim 5, further comprising:
the second fluctuation value judgment unit is connected with the sensor closing unit and is used for judging whether the fluctuation value is smaller than a preset value within a second preset time; and
and the sensor starting unit is used for starting the distance sensor when the fluctuation value is judged to be smaller than a preset value within second preset time.
8. The terminal device display screen control system of claim 5, wherein the fluctuation threshold is 3 to 7, preferably 5.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the method of controlling a display screen of a terminal device according to claims 1 to 4.
10. A terminal device, comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the terminal device display screen control method according to claims 1 to 4.
CN202010057514.6A 2020-01-19 2020-01-19 Terminal device display screen control method and system, storage medium and terminal device Pending CN111273774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010057514.6A CN111273774A (en) 2020-01-19 2020-01-19 Terminal device display screen control method and system, storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010057514.6A CN111273774A (en) 2020-01-19 2020-01-19 Terminal device display screen control method and system, storage medium and terminal device

Publications (1)

Publication Number Publication Date
CN111273774A true CN111273774A (en) 2020-06-12

Family

ID=71003053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010057514.6A Pending CN111273774A (en) 2020-01-19 2020-01-19 Terminal device display screen control method and system, storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN111273774A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741165A (en) * 2020-06-19 2020-10-02 北京字节跳动网络技术有限公司 Mobile terminal control method and device, mobile terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339168A (en) * 2016-08-22 2017-01-18 北京小米移动软件有限公司 Screen control method and device
CN106652970A (en) * 2015-10-29 2017-05-10 深圳市虚拟现实科技有限公司 Brightness adjusting method and head-mounted display
US9678192B2 (en) * 2012-08-16 2017-06-13 Microchip Technology Germany Gmbh Signal processing for a capacitive sensor system with robustness to noise
CN108776435A (en) * 2018-03-30 2018-11-09 广东美的制冷设备有限公司 Control method, household appliance and the readable storage medium storing program for executing of household appliance
CN109888889A (en) * 2019-04-11 2019-06-14 惠州Tcl移动通信有限公司 A charging control method, device, storage medium and electronic device
CN110362185A (en) * 2018-04-09 2019-10-22 努比亚技术有限公司 Control method, terminal and the computer readable storage medium that screen intensity is adjusted

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9678192B2 (en) * 2012-08-16 2017-06-13 Microchip Technology Germany Gmbh Signal processing for a capacitive sensor system with robustness to noise
CN106652970A (en) * 2015-10-29 2017-05-10 深圳市虚拟现实科技有限公司 Brightness adjusting method and head-mounted display
CN106339168A (en) * 2016-08-22 2017-01-18 北京小米移动软件有限公司 Screen control method and device
CN108776435A (en) * 2018-03-30 2018-11-09 广东美的制冷设备有限公司 Control method, household appliance and the readable storage medium storing program for executing of household appliance
CN110362185A (en) * 2018-04-09 2019-10-22 努比亚技术有限公司 Control method, terminal and the computer readable storage medium that screen intensity is adjusted
CN109888889A (en) * 2019-04-11 2019-06-14 惠州Tcl移动通信有限公司 A charging control method, device, storage medium and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741165A (en) * 2020-06-19 2020-10-02 北京字节跳动网络技术有限公司 Mobile terminal control method and device, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN111596793B (en) Anti-misoperation method and system, storage medium and terminal equipment
CN106254673A (en) Terminal fall detection method and device
CN111104012B (en) Distance measuring method and device, storage medium and terminal equipment
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN112433694B (en) Light intensity adjusting method and device, storage medium and mobile terminal
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN112202464B (en) Identification card detection method and device, storage medium and mobile terminal
CN105262894B (en) The way of recording and device
CN111083288B (en) Screen control method and device, terminal equipment and storage medium
CN110048824B (en) Communication module control method, control device, and computer-readable storage medium
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN111654849A (en) Quick starting method and system for near field communication, storage medium and terminal equipment
CN111131614A (en) Method and system for preventing mistaken call answering of terminal equipment, storage medium and terminal equipment
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN111048056A (en) Terminal equipment brightness adjusting method and system, storage medium and terminal equipment
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN109995441B (en) Communication information processing method, device and storage medium
CN110972220B (en) Wireless communication method, device, storage medium and terminal equipment
CN112243269B (en) Method and device for downloading data and mobile terminal
CN111651313B (en) Conversion method and system of identification card, storage medium and terminal equipment
CN111245911B (en) Network transmission method and system, storage medium and terminal equipment

Legal Events

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

Application publication date: 20200612

RJ01 Rejection of invention patent application after publication