Display screen state control method, storage medium and electronic device
A technology of electronic equipment and a control method, which is applied in the electronic field, can solve problems such as power consumption loss of electronic equipment and impact on battery life of electronic equipment, and achieve the effect of improving battery life
Active Publication Date: 2019-01-11
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
8 Cites 3 Cited by
AI-Extracted Technical Summary
Problems solved by technology
[0003] At present, when an electronic device is blocked, for example, when the electronic device is placed in the user's pocket, the user accidentally touches the power button of the electr...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View moreAbstract
The embodiment of the invention discloses a display screen state control method, a storage medium and an electronic device. According to the embodiment of the invention, in a standby state, when it isdetected that a preset key of the electronic device is triggered, a distance sensor is started; a distance value is detected through the distance sensor; a distance state between a display screen andan external object is determined according to the distance value; and the state of the display screen is controlled according to the distance state. In the standby state, the electronic device can control the state of the display screen according to the distance state between the display screen and the external object so as to avoid that the display screen is lightened in a condition that the display screen is shielded to cause power consumption loss of the electronic device and improve the cruising power of the electronic device.
Application Domain
Technology Topic
Image
Examples
- Experimental program(1)
Example Embodiment
[0028] Referring to the drawings, wherein the same reference numerals represent the same components, the principles of the present application are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the present application, which should not be construed as limiting other specific embodiments of the present application that are not described in detail here.
[0029] In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Accordingly, these steps and operations will several times be referred to as being computer-implemented, which herein refers to operations by a computer processing unit of electronic signals representing data in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system that can reconfigure or otherwise alter the operation of the computer in a manner well known to testers in the art. The data structures maintained by the data are physical locations in the memory that have certain characteristics defined by the data format. However, the principle of the present application is described in the above text, which is not meant to be a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.
[0030] The term "module" as used herein may be considered a software object that executes on the computing system. The various components, modules, engines and services described herein can be considered as implementation objects on the computing system. The devices and methods described herein can be implemented in the form of software, and of course can also be implemented in hardware, all of which are within the protection scope of the present application.
[0031] The terms "first", "second" and "third" in this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments Other steps or modules inherent to these processes, methods, products or devices are also included.
[0032] Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0033] refer to figure 1 , figure 1 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application. The electronic device may be a smart phone, a tablet computer or the like. The electronic device 100 includes a display screen 10 , a middle frame 20 , a circuit board 30 , a battery 40 , a rear cover 50 and a distance sensor 60 .
[0034] Wherein, the display screen 10 is installed on the rear cover 50 to form a display surface of the electronic device 100 . The display screen 10 is used as the front shell of the electronic device 100 and forms a storage space with the rear cover 50 for containing other electronic components or functional components of the electronic device 100 . Meanwhile, the display screen 10 forms a display surface of the electronic device 100 for displaying information such as images and texts. The display screen 10 may be a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode display (Organic Light-Emitting Diode, OLED) or other type of display.
[0035] In some embodiments, a glass cover may be disposed on the display screen 10 . Wherein, the glass cover can cover the display screen 10 to protect the display screen 10 and prevent the display screen 10 from being scratched or damaged by water.
[0036] In some embodiments, such as figure 1 As shown, the display screen 10 may include a display area 11 and a non-display area 12 . Wherein, the display area 11 performs the display function of the display screen 10, and is used for displaying information such as images and texts. The non-display area 12 does not display information. The non-display area 12 can be used to set functional components such as a camera, a receiver, and touch electrodes of a display screen. In some embodiments, the non-display area 12 may include at least one area located above and below the display area 11 .
[0037] In some embodiments, such as figure 2 As shown, the display screen 10 may be a full screen. At this time, the display screen 10 can display information in a full screen, so that the electronic device 100 has a larger screen ratio. The display screen 10 only includes a display area 11 and does not include a non-display area. At this time, functional components such as a camera and an ambient light sensor in the electronic device 100 can be hidden under the display screen 10 , while the fingerprint identification module of the electronic device 100 can be arranged on the back of the electronic device 100 .
[0038] The middle frame 20 may be a thin plate or sheet structure, or a hollow frame structure. Wherein, the middle frame 20 can be accommodated in the accommodation space formed by the above-mentioned display screen 10 and the rear cover 50 . The middle frame 20 is used to provide support for the electronic components or functional components in the electronic device 100, so as to install the electronic components and functional components in the electronic device together. For example, functional components such as cameras, receivers, circuit boards, and batteries in electronic equipment can be installed on the middle frame 20 for fixing. In some embodiments, the material of the middle frame 20 may include metal or plastic.
[0039] The circuit board 30 is installed inside the above-mentioned receiving space. For example, the circuit board 30 can be mounted on the middle frame 20 and accommodated together with the middle frame 20 in the above-mentioned receiving space. The circuit board 30 may be a main board of the electronic device 100 . A grounding point is provided on the circuit board 30 to realize the grounding of the circuit board 30 . One or two of functional components such as a motor, a microphone, a loudspeaker, a receiver, an earphone jack, a universal serial bus interface (USB interface), a camera, a distance sensor, an ambient light sensor, a gyroscope, and a processor can be integrated on the circuit board 30. one or more. Meanwhile, the display screen 10 may be electrically connected to the circuit board 30 .
[0040]In some embodiments, a display control circuit is disposed on the circuit board 30 . The display control circuit outputs electrical signals to the display screen 10 to control the display screen 10 to display information.
[0041] The battery 40 is installed inside the above-mentioned storage space. For example, the battery 40 can be mounted on the middle frame 20 and accommodated together with the middle frame 20 in the above-mentioned receiving space. The battery 40 can be electrically connected to the circuit board 30 , so that the battery 40 can provide power for the electronic device 100 . Wherein, the circuit board 30 may be provided with a power management circuit. The power management circuit is used to distribute the voltage provided by the battery 40 to various electronic components in the electronic device 100 .
[0042] The rear cover 50 is used to form the outer contour of the electronic device 100 . The rear cover 50 can be integrally formed. During the molding process of the rear cover 50 , structures such as a rear camera hole and a fingerprint recognition module installation hole may be formed on the rear cover 50 .
[0043] The distance sensor 60 may be connected to the circuit board 30 . The distance sensor 60 is used to detect the distance between the display screen 10 and external objects (such as user's face, hand, etc.). In the embodiment of the present application, the distance sensor 60 is disposed below the display area 11 of the display screen 10 . That is, the distance sensor 60 is hidden under the display area 11 of the display screen 10 . The distance sensor 60 is invisible when viewed from the outside of the electronic device 100 . In some embodiments, the distance sensor 60 can also be integrated inside the display area 11 of the display screen 10 .
[0044] Wherein, the distance sensor 60 may be an infrared sensor. The distance sensor 60 includes an infrared emitter and an infrared receiver. The infrared emitter emits infrared rays to the outside through the display area 11 of the display screen 10 . The infrared receiver receives infrared rays reflected by external objects (such as user's face, hands, etc.). Therefore, the electronic device 100 can judge the distance between the display screen 10 and the external object according to the intensity of the received infrared rays.
[0045] An embodiment of the present application provides a method for controlling the state of a display screen, and the method for controlling the state of a display screen can be applied to the above-mentioned electronic device 100 . like image 3 As shown, the method for controlling the state of the display screen may include the following steps:
[0046] 201. In a standby state, when it is detected that a preset key of the electronic device is triggered, start a distance sensor.
[0047] Among them, in order to improve the battery life of the electronic device, when the user does not need to use the electronic device, the electronic device will be switched to the standby state, and when in the standby state, the display screen of the electronic device will be in the extinguished state, thereby saving the electronic device. power consumption. When the user needs to use the electronic device again, he only needs to click a preset button on the electronic device, such as a power key (Power Key) or a fingerprint button to light up the display screen.
[0048] Based on this, when the electronic device is in the standby state, when it detects that the preset button of the electronic device is triggered, it means that the user needs to light up the display screen to enter the desktop or unlock the interface. button, the electronic device temporarily does not respond to the trigger operation, and activates the distance sensor set under the display area of the display screen. It should be noted that, since the distance sensor is set under the display screen, it is avoided The opening operation increases the screen-to-body ratio of electronic devices.
[0049] 202. Detect a distance value by using a distance sensor.
[0050] Wherein, the electronic device controls the distance sensor to emit a detection signal toward the display screen, and the detection signal is transmitted to the outside through the display screen, and is reflected by an external object to form a reflected signal, and the reflected signal passes through the display screen and enters the distance sensor. The electronic device can determine the distance value according to the time difference from when the distance sensor transmits the detection signal to when it receives the reflected signal. Or the distance value can be determined according to the attenuation degree of the signal.
[0051] In some implementations, the display area of the display screen includes a status bar area, which is used to display a small area of information such as the power information of the electronic device and alarm clock information, and the probability that the user usually touches the status bar area The display pixels of the status bar area can be smaller than those of other areas on the display screen, so that the signal can better pass through the status bar area. The orthographic projection of the distance sensor on the display screen may be located in the status bar area, that is, the distance sensor is set under the status bar area, and the step of detecting the distance value through the distance sensor may include:
[0052] (1) Control the distance sensor to emit a detection signal toward the status bar area, the detection signal passes through the status bar area to transmit to the outside world, forms a reflected signal after being reflected by external objects, and the reflected signal enters the status bar area through the status bar area distance sensor;
[0053] (2) Determine the distance value according to the time difference from when the distance sensor transmits the detection signal to when it receives the reflected signal.
[0054] Wherein, the distance sensor may include a signal transmitter and a signal receiver, and the electronic device controls the signal transmitter in the distance sensor to emit a detection signal toward the status bar area, because the pixels of the status bar area are lower than other display areas on the display screen. , so the detection signal can pass through the status bar area more easily, reducing the attenuation of the signal, thereby improving the accuracy of distance value detection.
[0055] Further, the detection signal is transmitted to the outside world through the status bar area, and a reflected signal will be formed after being reflected by an external object, and the reflected signal is returned to the signal receiver in the distance sensor through the status bar area, and the electronic device can The distance value is determined according to the time difference between the signal transmitter transmitting the detection signal and the signal receiver receiving the reflected signal. The greater the time difference, the greater the distance value, and the smaller the time difference, the smaller the distance value.
[0056] In some embodiments, the display area of the display screen includes a status bar area, and the front projection of the distance sensor on the display screen can be located in the status bar area, that is, the distance sensor is arranged under the status bar area, and the distance sensor includes a signal For the transmitter and the signal receiver, the step of detecting the distance value through the distance sensor may include:
[0057] (1.1) Control the signal transmitter in the distance sensor to transmit a detection signal towards the status bar area, the detection signal passes through the status bar area and transmits to the outside world, forms a reflected signal after being reflected by an external object, and the reflected signal passes through Enter the signal receiver in the distance sensor through the status bar area;
[0058] (1.2) Calculate the signal attenuation degree according to the first signal strength of the detection signal transmitted by the signal transmitter and the second signal strength of the reflected signal received by the signal receiver, and determine the distance value according to the signal attenuation degree.
[0059] Among them, the electronic device controls the signal transmitter in the distance sensor to emit a detection signal towards the status bar area, and the detection signal passes through the status bar area to be transmitted to the outside world. After the detection signal is transmitted to the outside world, due to impurities in the air, the When the detection signal is transmitted in the air, signal attenuation will occur, and the greater the transmission distance, the greater the degree of attenuation. The detection signal is reflected by an external object to form a reflected signal, and the reflected signal passes through the status bar area and enters the signal receiver in the distance sensor.
[0060] Further, the electronic device can calculate the signal attenuation degree according to the first signal strength when the signal transmitter transmits the detection signal and the second signal strength when the signal receiver receives the reflected signal, and determine the corresponding distance according to the signal attenuation degree value.
[0061] 203. Determine the distance state between the display screen and the external object according to the distance value.
[0062] Wherein, the distance state may include an approach state and a distance state. The approach state indicates that the display screen is in a blocked state, and the far state indicates that the display screen is in an unblocked state. The detected distance value can be compared with a critical value. In comparison, when the distance value is less than the critical value, it is determined that the distance state between the display screen and the external object is a close state. When the distance value is greater than the critical value, it is determined that the distance state between the display screen and the external object is far away.
[0063] In some implementations, the step of determining the distance state between the display screen and the external object according to the distance value may include:
[0064] (1) comparing the distance value with a preset threshold, and determining the relationship between the distance value and the preset threshold;
[0065] (2) When the distance value is less than the preset threshold, it is determined that the distance state between the display screen and the external object is a close state;
[0066] (3) When the distance value is greater than the preset threshold, it is determined that the distance state between the display screen and the external object is the far state.
[0067] Among them, by setting an appropriate preset threshold value, the preset threshold value is a suitable critical value, comparing the distance value with the preset threshold value, and determining the relationship between the distance value and the preset threshold value, when the distance When the value is less than the preset threshold, it means that the distance between the display screen and the external object is very close, and the distance state between the display screen and the external object is determined as the close state. When the distance value is greater than the preset threshold, it means that the distance between the display screen and the external object is very far, and the distance state between the display screen and the external object is determined as the far state.
[0068] 204. Control the state of the display screen according to the distance state.
[0069] Wherein, the state of the display screen includes the use state after the display screen is on and the standby state when the display screen is off. When the electronic device is in the standby state, when the distance between the display screen and the external object is in the close state, it means that the display screen is in a blocked state, and the electronic device remains in the standby state without responding to the trigger operation of the preset button. The power consumption of electronic equipment is saved, and in addition, it can also avoid misoperation caused by wrongly lighting up the display screen. When the electronic device is in the standby state, when the distance between the display screen and external objects is far away, it means that the display screen is not in a blocked state, and it can respond to the trigger operation of the preset button to light up the display screen to enter the desktop or unlock it. interface.
[0070] In some embodiments, the step of controlling the state of the display screen according to the distance state may include:
[0071] (1) When the distance state is close to the state, control the display screen to be in the state of turning off the screen;
[0072] (2) When the distance state is far away, control the display screen to turn on the screen.
[0073] Among them, when it is determined that the distance state between the display screen and the external object is close, it means that the display screen is blocked, and the display screen is controlled to be in the screen-off state, which does not affect the touch operation of the preset button. When the distance state between the screen and external objects is far away, it means that the display screen is not blocked. Control the display screen to brighten the screen, enter the desktop or unlock the interface, so that the user can use it normally.
[0074] As can be seen from the above, in the embodiment of the present application, when the preset button of the electronic device is detected to be triggered in the standby state, the distance sensor is activated; the distance value is detected by the distance sensor; and the distance between the display screen and the external object is determined according to the distance value. Distance state; control the state of the display screen according to the distance state. In this way, in the standby state, the electronic device can control the state of the display screen according to the distance between the display screen and external objects, so as to avoid lighting up the display screen when the display screen is blocked, resulting in loss of power consumption of the electronic device , thereby improving the battery life of electronic devices.
[0075] The display method of the present application will be further introduced below on the basis of the methods described in the above embodiments. refer to Figure 4 , the method for controlling the state of the display screen may include:
[0076] 301. In a standby state, when it is detected that a preset key of the electronic device is triggered, start a distance sensor.
[0077] Wherein, in the standby state, the display screen of the electronic device is turned off, so as to save power consumption of the electronic device, and when it is detected that the power key of the electronic device is triggered, the distance sensor arranged under the display area of the display screen is activated.
[0078] In one embodiment, the display area of the display screen includes a status bar area, and the status bar area is used to display a small area of information such as power information and alarm clock information of the electronic device. The small area is generally set on the display On the upper right corner of the screen, the orthographic projection of the distance sensor on the display screen may be located in the status bar area, that is, the distance sensor is arranged under the status bar area. In actual use, the display requirements of the status bar area are relatively low, and the display pixels of the status bar area can be lowered, so that the emission signal of the distance sensor set under the status bar area can better pass through this area, Improved the accuracy of distance value detection.
[0079] like Figure 5 As shown, the electronic device 100 is in a standby state, and when it is detected that the power button 70 on the electronic device is triggered, the distance sensor 60 disposed under the status bar area 13 is activated.
[0080] 302. Control the distance sensor to emit a detection signal toward the status bar area, the detection signal passes through the status bar area and is transmitted to the outside world, and forms a reflected signal after being reflected by external objects, and the reflected signal enters the distance sensor through the status bar area.
[0081] Wherein, the distance sensor includes a signal transmitter and a signal receiver. After the electronic device starts the distance sensor, it controls the signal transmitter in the distance sensor to emit a detection signal towards the status bar area, and the detection signal will pass through the status bar area for transmission. To the outside, when the transmission process encounters external objects, such as human hands or clothing, etc. to transmit, a reflected signal is formed, and the reflected signal passes through the status bar area and is fed back to the signal receiver.
[0082] 303. Determine the distance value according to the time difference from when the distance sensor transmits the detection signal to when it receives the reflected signal.
[0083] Wherein, the electronic device determines the distance between the display screen and the external object according to the time difference between the signal transmitter transmitting the detection signal and the signal receiver receiving the transmission signal multiplied by the transmission rate of the signal.
[0084] 304. Compare the distance value with a preset threshold, and determine a magnitude relationship between the distance value and the preset threshold.
[0085] Among them, the distance value between the display screen and the external object is compared with a preset threshold value, and the preset threshold value is a critical value, such as 0.1 meters, and the distance value is compared with the preset threshold value of 0.1 meters to determine the distance value and the preset threshold value. Threshold size relationship of 0.1 m. When the distance value is less than the preset threshold of 0.1 meters, step 305 is executed. When the distance value is greater than the preset threshold of 0.1 meters, step 307 is executed.
[0086] 305. When the distance value is less than the preset threshold, determine that the distance state between the display screen and the external object is the proximity state.
[0087] Wherein, when the distance value is less than the preset threshold of 0.1 meters, it means that the distance between the external object and the display screen is very close, and the distance state between the display screen and the external object is determined to be close.
[0088] 306. When the distance state is the proximity state, control the display screen to be in the screen-off state.
[0089] Among them, when it is determined that the distance between the display screen and the external object is in the close state, it means that the display screen is in a blocked state. The wrong power of the screen causes waste of power consumption of electronic equipment.
[0090] like Figure 5 As shown, when the distance value is less than the preset threshold, the electronic device 100 does not respond to the touch operation of the power button 70 , and keeps the screen off state.
[0091] 307. When the distance value is greater than the preset threshold, determine that the distance state between the display screen and the external object is the far state.
[0092] Wherein, when the distance value is greater than the preset threshold value of 0.1 meters, it indicates that the distance between the external object and the display screen is relatively long, and the distance state between the display screen and the external object is determined as the far state.
[0093] 308. Acquire the current ambient light intensity value when the distance state is the far state.
[0094] Wherein, when it is determined that the distance state between the display screen and external objects is far away, it means that the display screen is not in a blocked state. At this time, the current ambient light intensity value can be obtained through the ambient light sensor in response to the trigger operation of the power button.
[0095] 309. Obtain the corresponding brightness of the display screen according to the ambient light intensity value matching, and use the brightness of the display screen to control the display screen to brighten the screen.
[0096] Wherein, the electronic device can match the brightness of the corresponding display screen according to the ambient light intensity value. It should be noted that the higher the ambient light intensity value, the brighter the light in the current environment, and the greater the brightness of the corresponding display screen obtained through corresponding matching. The lower the ambient light intensity value, the darker the current ambient light, and the lower the brightness of the corresponding display screen obtained by corresponding matching.
[0097] Further, the display screen is controlled to brighten the screen by matching the obtained brightness of the display screen.
[0098] In one embodiment, the process of controlling the display screen from dark to the brightness of the display screen can be gradually increased to brighten the screen. Specifically, when the display screen is bright, the brightness of the display screen is gradually increased from 0 to the display obtained by matching. At this time, the user's eyes can gradually adapt to protect the user's eyes.
[0099] like Figure 5 As shown, when the distance value is greater than the preset threshold, the electronic device 100 responds to the touch operation of the power button 70 , controls the display screen to brighten the screen with the brightness of the display screen, and enters the display interface.
[0100] It can be seen from the above that, in the embodiment of the present application, in the standby state, when the preset button of the electronic device is detected to be triggered, the distance sensor arranged under the status bar area is activated; the distance value between the display screen and the external object is detected by the distance sensor ;Determine the distance state between the display screen and external objects according to the distance value; when the distance state is in the close state, control the display screen to continue to be in the off state; when the distance state is in the far state, obtain the current ambient light intensity value, according to The ambient light intensity value is matched to obtain the corresponding brightness of the display screen, and the display screen is controlled to turn on the screen according to the corresponding brightness of the display screen. In this way, in the standby state, the electronic device can control the state of the display screen according to the distance between the display screen and external objects, so as to avoid lighting up the display screen when the display screen is blocked, resulting in loss of power consumption of the electronic device , thereby improving the battery life of electronic devices.
[0101] In one embodiment, a device for controlling the state of the display screen is also provided. see Image 6 , Image 6 It is a schematic structural diagram of the device for controlling the state of the display screen provided by the embodiment of the present application. Wherein the display screen state control device is applied to electronic equipment, the display screen state control device includes a start unit 401, a detection unit 402, a determination unit 403 and a control unit 404, as follows:
[0102] The starting unit 401 is configured to start the distance sensor when it is detected that a preset key of the electronic device is triggered in a standby state.
[0103] Among them, in order to improve the battery life of the electronic device, when the user does not need to use the electronic device, the electronic device will be switched to the standby state, and when in the standby state, the display screen of the electronic device will be in the extinguished state, thereby saving the electronic device. power consumption. When the user needs to use the electronic device again, he only needs to click a preset button on the electronic device, such as a power key (Power Key) or a fingerprint button to light up the display screen.
[0104] Based on this, when the electronic device is in the standby state, when the startup unit 401 detects that the preset button of the electronic device is triggered, it means that the user needs to light up the display screen to enter the desktop or unlock the interface. At this time, in order to prevent the user from accidentally touching the Touch the trigger preset button, the electronic device temporarily does not respond to the trigger operation, and activates the distance sensor arranged under the display area of the display screen. The operation of opening holes on the cover increases the screen-to-body ratio of the electronic device.
[0105] The detecting unit 402 is configured to detect a distance value through the distance sensor.
[0106] Wherein, the detection unit 402 controls the distance sensor to emit a detection signal toward the display screen, the detection signal is transmitted to the outside world through the display screen, and forms a reflected signal after being reflected by an external object, and the reflected signal enters the distance through the display screen. The sensor, the electronic device can determine the distance value according to the time difference from when the distance sensor transmits the detection signal to when it receives the reflected signal. Or the distance value can be determined according to the attenuation degree of the signal.
[0107] The determination unit 403 is configured to determine a distance state between the display screen and an external object according to the distance value, and the distance state includes an approach state and a distance state.
[0108] Wherein, the distance state may include an approach state and a distance state. The approach state indicates that the display screen is in a blocked state, and the far state indicates that the display screen is in an unblocked state. The determining unit 403 may compare the detected distance value with A critical value is compared, and when the distance value is less than the critical value, it is determined that the distance state between the display screen and the external object is a close state. When the distance value is greater than the critical value, it is determined that the distance state between the display screen and the external object is far away.
[0109] The control unit 404 is configured to control the state of the display screen according to the distance state.
[0110] Wherein, the state of the display screen includes the use state after the display screen is on and the standby state when the display screen is off. When the electronic device is in the standby state, when the distance between the display screen and the external object is in the close state, it means that the display screen is in a blocked state, the control unit 404 may not respond to the trigger operation of the preset button, and the electronic device continues to maintain In the standby state, the power consumption of electronic equipment can be saved, and in addition, it can also avoid misoperation caused by wrongly lighting up the display screen. When the electronic device is in the standby state, when the distance between the display screen and the external object is far away, it means that the display screen is not in the blocked state, and the control unit 404 can respond to the trigger operation of the preset button to light up the display screen Enter the desktop or unlock the interface.
[0111] In one embodiment, the display area of the display screen includes a status bar area, and the orthographic projection of the distance sensor on the display screen is located in the status bar area, refer to Figure 7 , the detection unit 402 may include:
[0112] The transmitting subunit 4021 is used to control the distance sensor to transmit a detection signal towards the state bar area, the detection signal passes through the state bar area and is transmitted to the outside world, and forms a reflection signal after being reflected by an external object, and the reflection signal passes through the state bar area bar area into the distance sensor;
[0113] The determining subunit 4022 is configured to determine the distance value according to the time difference between the distance sensor transmitting the detection signal and receiving the reflection signal.
[0114] In one embodiment, refer to Figure 7 , the determining unit 403 may include:
[0115] A comparison subunit 4031, configured to compare the distance value with a preset threshold, and determine the magnitude relationship between the distance value and the preset threshold;
[0116] The first determining subunit 4032 is configured to determine that the distance state between the display screen and the external object is a close state when the distance value is less than the preset threshold;
[0117] The second determination subunit 4033 is configured to determine that the distance state between the display screen and the external object is the far state when the distance value is greater than the preset threshold.
[0118] For the steps performed by each unit in the device for controlling the state of the display screen, reference may be made to the method steps described in the above method embodiments. The device for controlling the status of the display screen can be integrated in electronic equipment, such as mobile phones, tablet computers, and the like.
[0119] During specific implementation, each of the above units can be implemented as an independent entity, or can be combined arbitrarily as the same or several entities. The specific implementation of each of the above units can refer to the previous embodiments, and will not be repeated here.
[0120] As can be seen from the above, the control device of the display screen state provided by this embodiment starts the distance sensor when the start unit 401 detects that the preset button of the electronic device is triggered in the standby state; the detection unit 402 detects the distance value through the distance sensor The determination unit 403 determines the distance state between the display screen and the external object according to the distance value; the control unit 404 controls the state of the display screen according to the distance state. In this way, in the standby state, the electronic device can control the state of the display screen according to the distance between the display screen and external objects, so as to avoid lighting up the display screen when the display screen is blocked, resulting in loss of power consumption of the electronic device , thereby improving the battery life of electronic devices.
[0121] The embodiment of the present application also provides an electronic device. see Figure 8 , the electronic device 500 includes a processor 501 and a memory 502 . Wherein, the processor 501 is electrically connected with the memory 502 .
[0122] The processor 500 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or loading computer programs stored in the memory 502, and calling data stored in the memory 502, execution Various functions of the electronic device 500 and data processing, so as to monitor the electronic device 500 as a whole.
[0123] The memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502 . Memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store operating systems, computer programs required by at least one function (such as sound playback function, image playback function, etc.); Data created by the use of electronic devices, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502 .
[0124] In the embodiment of the present application, the processor 501 in the electronic device 500 will follow the steps below to load the instructions corresponding to the process of one or more computer programs into the memory 502, and run the instructions stored in the memory 502 by the processor 501. The computer program in the computer, so as to realize various functions, as follows:
[0125] In the standby state, when it is detected that the preset button of the electronic device is triggered, the distance sensor is activated;
[0126] The distance value is detected by the distance sensor;
[0127] Determine the distance state between the display screen and the external object according to the distance value, the distance state includes an approach state and a distance state;
[0128] The state of the display screen is controlled according to the distance state.
[0129] In some implementations, the display area of the display screen includes a status bar area, where the orthographic projection of the distance sensor on the display screen is located in the status bar area, and when the distance value is detected by the distance sensor, the processor 501 may specifically Perform the following steps:
[0130] Controlling the distance sensor to emit a detection signal toward the status bar area, the detection signal is transmitted to the outside world through the status bar area, and forms a reflected signal after being reflected by an external object, and the reflected signal enters the distance sensor through the status bar area;
[0131] The distance value is determined according to the time difference between the distance sensor transmitting the detection signal and receiving the reflection signal.
[0132] In some implementations, when determining the distance state between the display screen and the external object according to the distance value, the processor 501 may specifically perform the following steps:
[0133] Comparing the distance value with a preset threshold, and determining the relationship between the distance value and the preset threshold;
[0134] When the distance value is less than the preset threshold, it is determined that the distance state between the display screen and the external object is a close state;
[0135] When the distance value is greater than the preset threshold, it is determined that the distance state between the display screen and the external object is the far state.
[0136] In some implementations, when controlling the state of the display screen according to the distance state, the processor 501 may specifically perform the following steps:
[0137] When the distance state is close to the state, control the display screen to be off;
[0138] When the distance state is far away, the display screen is controlled to turn on the screen.
[0139] In some implementation manners, when controlling the display screen to turn on the screen, the processor 501 may specifically perform the following steps:
[0140] Get the current ambient light intensity value;
[0141] According to the ambient light intensity value, the corresponding brightness of the display screen is obtained, and the brightness of the display screen is used to control the display screen to brighten the screen.
[0142] As can be seen from the above, the electronic device in the embodiment of the present application starts the distance sensor when it detects that the preset button of the electronic device is triggered in the standby state; detects the distance value through the distance sensor; and determines the distance between the display screen and the outside world according to the distance value. The distance state between objects; control the state of the display screen according to the distance state. In this way, in the standby state, the electronic device can control the state of the display screen according to the distance between the display screen and external objects, so as to avoid lighting up the display screen when the display screen is blocked, resulting in loss of power consumption of the electronic device , thereby improving the battery life of electronic devices.
[0143] Please also refer to Figure 9 , in some embodiments, the electronic device 500 may further include: a display 503 , a radio frequency circuit 504 , an audio circuit 505 and a power supply 506 . Wherein, the display 503 , the radio frequency circuit 504 , the audio circuit 505 and the power supply 506 are respectively electrically connected to the processor 501 .
[0144] The display 503 can be used to display information input by or provided to the user, as well as various graphical user interfaces. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The display 503 may include a display panel. In some implementation manners, the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD) or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
[0145] The radio frequency circuit 504 can be used to send and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to send and receive signals with network equipment or other electronic equipment.
[0146] The audio circuit 505 can be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
[0147] The power supply 506 can be used to supply power to various components of the electronic device 500 . In some embodiments, the power supply 506 may be logically connected to the processor 501 through a power management system, so as to implement functions such as charging, discharging, and power consumption management through the power management system.
[0148] although Figure 9 Not shown in , the electronic device 500 may also include a camera, a bluetooth module, etc., which will not be repeated here.
[0149] The embodiment of the present application also provides a storage medium, the storage medium stores a computer program, and when the computer program runs on the computer, the computer executes the method for controlling the state of the display screen in any of the above-mentioned embodiments, for example: In the standby state, when the preset button of the electronic device is detected to be triggered, the distance sensor is activated; the distance value is detected by the distance sensor; the distance state between the display screen and the external object is determined according to the distance value; the distance state of the display screen is controlled according to the distance state state.
[0150] In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), or the like.
[0151] In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
[0152] It should be noted that, for the method for controlling the state of the display screen in the embodiment of the present application, ordinary testers in the field can understand that all or part of the flow of the method for controlling the state of the display screen in the embodiment of the present application can be implemented through a computer program. Control related hardware to complete, the computer program can be stored in a computer-readable storage medium, such as stored in the memory of the electronic device, and executed by at least one processor in the electronic device, during the execution process can be Including the flow of the embodiment of the control method such as the state of the display screen. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, and the like.
[0153] For the device for controlling the status of the display screen in the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .
[0154] The method, device, storage medium, and electronic equipment for controlling the status of a display screen provided by the embodiments of the present application have been described in detail above. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The above embodiments The description is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation and application scope. In summary, , the contents of this specification should not be construed as limiting the application.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more PUM


Description & Claims & Application Information
We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more Similar technology patents
Integrated type cooling and temperature preservation battery system and control method thereof
PendingCN108091803AReduce energy consumptionImprove battery lifeSecondary cellsCell component detailsEngineeringCooling fluid
Owner:杭州捷能科技有限公司
Microphone control method and apparatus, storage medium, and electronic device
InactiveCN108848264ASave powerImprove battery lifeDevices with sensorPower supply for data processingMicrophoneComputer hardware
Owner:GUANGDONG OPPO MOBILE TELECOMM CORP LTD
Wind energy and kinetic energy combined stroke-increasing compensation type electric automobile
InactiveCN107415705AImprove battery lifeReduce noiseBatteries circuit arrangementsPropulsion partsAir volumeCharging station
Owner:邵怀金
Double-evaporator air-conditioning system for pure electric vehicle and control method of system
ActiveCN103644617ASolving Thermal Management IssuesImprove battery lifeSpace heating and ventilation safety systemsLighting and heating apparatusEvaporatorEngineering
Owner:ANHUI JIANGHUAI AUTOMOBILE GRP CORP LTD
Electric car and bi-directional inversion type motor controller
InactiveCN104786866AImprove battery lifeWidely usedSpeed controllerVehicular energy storageAC modulePower grid
Owner:深圳电擎科技有限公司
Classification and recommendation of technical efficacy words
- Improve battery life
User terminal and method for controlling automatically-operating application program
InactiveCN102508701AQuick responseImprove battery lifeMultiprogramming arrangementsPower supply for data processingAutomatic controlComputer engineering
Owner:BEIJING BENY WAVE SCI & TECH
Control electronics for Li-ion batteries
InactiveUS20070029972A1Extended calendar and cycle lifeImprove battery lifeCell electrodesSolid electrolyte cellsIonControl electronics
Owner:BOSTON POWER INC
Power road electric closer car
InactiveCN1718457ASimple structureImprove battery lifeRail and road vehiclesPower railsAutomotive engineeringSubgrade
Owner:SHANGHAI JIAO TONG UNIV
Application program interface for managing complication data
InactiveUS20180150443A1Reduce numberImprove battery lifeVisual indicationsCathode-ray tube indicatorsData providerGraphical user interface
Owner:GOOGLE LLC