Display brightness control method, device, electronic device and storage medium

By combining an acceleration sensor in the terminal to judge the effectiveness of the display brightness adjustment command, the display brightness control problem caused by infrared light distance sensor error is solved, and more efficient and accurate display brightness control is achieved.

CN114582264BActive Publication Date: 2025-03-11TCL COMM TECH (CHENGDU) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210177741.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2025-03-11
Estimated Expiration
2042-02-25

AI Technical Summary

Technical Problem

In the prior art, when the control terminal displays brightness, the error of the distance sensor due to the absorption and reflection characteristics of infrared light, affecting the control effect of the screen extinguishing and brighting screen.

Method used

The acceleration sensor is used to judge the motion data of the terminal, determine the validity of the display brightness adjustment command, and thereby adjust the display brightness of the terminal.

Benefits of technology

It improves the convenience of terminal display brightness control, reduces the error judgment rate, and enhances the precise control of terminal screen brightness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114582264B_ABST
    Figure CN114582264B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a display brightness control method, device, electronic device and storage medium; the embodiment of the present invention can receive a display brightness adjustment instruction from a distance sensor when the display brightness of a terminal is not at the maximum brightness, detect the screen display status of each application in the terminal in response to the display brightness adjustment instruction, and when at least one application among the applications is in the screen display state, determine whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor, and if the display brightness adjustment instruction is valid, adjust the display brightness of the terminal based on the display brightness adjustment instruction; the embodiment of the present invention can control the display brightness of the terminal screen by combining the acceleration sensor with the distance sensor to determine whether the display brightness adjustment instruction issued by the terminal distance sensor is valid, thereby improving the convenience of controlling the display brightness of the terminal and reducing the misjudgment rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of terminal technology, and in particular to a display brightness control method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of terminal design and manufacturing technology, there are more and more solutions for controlling the terminal screen on and off according to the movement of the terminal.

[0003] At present, the main method used to control the terminal screen is to use an infrared distance sensor to detect the distance between the terminal user and the terminal to provide a basis for the terminal display brightness control. However, with this solution, due to the high absorption rate and low reflectivity of infrared light by dark black hair and black skin, the distance sensor reading will produce errors, which will lead to problems in the control of the terminal screen. Summary of the invention

[0004] The embodiments of the present invention provide a display brightness control method, device, electronic device and storage medium, which can be combined with an acceleration sensor to realize the control of the display brightness of a terminal screen, improve the convenience of controlling the display brightness of the terminal, and reduce the misjudgment rate.

[0005] An embodiment of the present invention provides a display brightness control method, comprising:

[0006] When the display brightness of the terminal is not at the maximum brightness, receiving a display brightness adjustment instruction from the distance sensor;

[0007] In response to the display brightness adjustment instruction, detecting the screen display status of each application in the terminal;

[0008] When at least one of the applications is in a screen display state, determining whether the display brightness adjustment instruction is valid based on terminal motion data of the acceleration sensor;

[0009] If the display brightness adjustment instruction is valid, the display brightness of the terminal is adjusted based on the display brightness adjustment instruction.

[0010] Accordingly, an embodiment of the present invention provides a display brightness control device, comprising:

[0011] An instruction receiving unit, used for receiving a display brightness adjustment instruction of a distance sensor when the display brightness of the terminal is not at a maximum brightness;

[0012] A display status detection unit, configured to detect the screen display status of each application in the terminal in response to the display brightness adjustment instruction;

[0013] an instruction validity judgment unit, configured to judge whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor when at least one application among the applications is in a screen display state;

[0014] A brightness adjustment unit is used to adjust the display brightness of the terminal based on the display brightness adjustment instruction if the display brightness adjustment instruction is valid.

[0015] Optionally, the terminal motion data includes terminal acceleration data and terminal angle data;

[0016] The instruction validity judgment unit is used to calculate the acceleration change value of the terminal at the target time based on the terminal acceleration data of the acceleration sensor;

[0017] Calculating the angle change value of the terminal at the target time based on the terminal angle data of the acceleration sensor;

[0018] Determining whether the terminal moves relative to a target position according to the acceleration change value and the angle change value;

[0019] When it is determined that the terminal has moved relative to the target position, the display brightness adjustment instruction is determined to be valid.

[0020] Optionally, the instruction validity judgment unit is used to calculate the absolute value of the acceleration change of the acceleration change value according to the acceleration change value, and calculate the absolute value of the angle change of the angle change value according to the angle change value;

[0021] Based on the absolute value of the acceleration change, determining the movement of the terminal;

[0022] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the angle change is greater than the preset angular velocity change threshold, the terminal moves relative to the target position.

[0023] Optionally, the acceleration change value includes an X-axis acceleration change value, a Y-axis acceleration change value, and a Z-axis acceleration change value;

[0024] The instruction validity judgment unit is used to calculate the absolute value of the X-axis acceleration change, the absolute value of the Y-axis acceleration change and the absolute value of the Z-axis acceleration change according to the X-axis acceleration change value, the Y-axis acceleration change value and the Z-axis acceleration change value;

[0025] When the absolute value of the acceleration change on the X-axis, the absolute value of the acceleration change on the Y-axis, and the absolute value of the acceleration change on the Z-axis are all greater than a preset judgment threshold, the terminal makes a motion judgment;

[0026] When at least one of the absolute value of the X-axis acceleration change, the absolute value of the Y-axis acceleration change, and the absolute value of the Z-axis acceleration change is not greater than a preset judgment threshold, the terminal fails the motion judgment.

[0027] Optionally, the display brightness control device provided by the embodiment of the present invention further includes a motion judgment unit, which is used to determine that when the terminal fails to pass the motion judgment, the terminal does not move relative to the target position; or,

[0028] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the angle change is not greater than the preset angular velocity change threshold, then the terminal does not move relative to the target position; or,

[0029] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is not greater than the preset acceleration change threshold, and the absolute value of the angle change is greater than the preset angular velocity change threshold, the terminal does not move relative to the target position.

[0030] Optionally, the angle change value includes a pitch angle change value and a roll angle change value;

[0031] The instruction validity judgment unit is used to calculate the absolute value of the pitch angle change and the absolute value of the roll angle change according to the pitch angle change value and the roll angle change value;

[0032] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the pitch angle change and the absolute value of the roll angle change are greater than the preset angular velocity change threshold, the terminal moves relative to the target position.

[0033] Optionally, the instruction receiving unit is used to receive a display brightness adjustment instruction of the distance sensor when the display brightness of the terminal is at the lowest brightness;

[0034] The display status detection unit is used to detect the screen display status of the call application in the terminal in response to the display brightness adjustment instruction, wherein when the call application is not in the call state, the call application is in the screen display state.

[0035] Correspondingly, an embodiment of the present invention further provides an electronic device, comprising a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the steps in any display brightness control method provided in the embodiment of the present invention.

[0036] Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in any one of the display brightness control methods provided by the embodiments of the present invention.

[0037] In addition, an embodiment of the present invention further provides a computer program product, including a computer program or instructions, which implements the steps in any display brightness control method provided by the embodiment of the present invention when executed by a processor.

[0038] By adopting the scheme of the embodiment of the present invention, when the display brightness of the terminal is not at the maximum brightness, a display brightness adjustment instruction of the distance sensor can be received, and in response to the display brightness adjustment instruction, the screen display status of each application in the terminal is detected, and when at least one application among the applications is in the screen display state, whether the display brightness adjustment instruction is valid is determined based on the terminal motion data of the acceleration sensor, and if the display brightness adjustment instruction is valid, the display brightness of the terminal is adjusted based on the display brightness adjustment instruction; in the embodiment of the present invention, since the display brightness adjustment instruction issued by the terminal distance sensor is determined to be valid based on the distance sensor and combined with the acceleration sensor, it is possible to control the display brightness of the terminal screen, improve the convenience of controlling the display brightness of the terminal, and reduce the misjudgment rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 is a schematic diagram of a scene of a display brightness control method provided by an embodiment of the present invention;

[0041] Figure 2 is a flow chart of a display brightness control method provided by an embodiment of the present invention;

[0042] Figure 3 is a schematic diagram of a login page provided by an embodiment of the present invention;

[0043] Figure 4 This is a schematic diagram of an authorization login page provided by an embodiment of the present invention;

[0044] Figure 5 is another schematic diagram of an authorization login page provided by an embodiment of the present invention;

[0045] Figure 6is another schematic diagram of an authorization login page provided by an embodiment of the present invention;

[0046] Figure 7 is a structural schematic diagram of a display brightness control device provided by an embodiment of the present invention;

[0047] Figure 8 is another structural schematic diagram of a display brightness control device provided by an embodiment of the present invention;

[0048] Fig. 9 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0050] Embodiments of the present invention provide a display brightness control method, device, electronic device, and computer-readable storage medium. Specifically, embodiments of the present invention provide a display brightness control method applicable to a display brightness control device, and the display brightness control device can be integrated in an electronic device.

[0051] The electronic device may be a terminal or other device, including but not limited to a mobile terminal, such as a mobile terminal including but not limited to a smart phone, a smart watch, a tablet computer, a laptop computer, a smart car, etc.

[0052] The display brightness control method of the embodiment of the present invention may be implemented by a server, or may be implemented by a terminal and a server together.

[0053] The method is described below by taking a terminal implementing the display brightness control method as an example.

[0054] like Figure 1 As shown, the display brightness control system provided by the embodiment of the present invention includes a terminal 10. The terminal 10 can be used to receive a display brightness adjustment instruction from a distance sensor when the display brightness of the terminal is not at the maximum brightness, and detect the screen display status of each application in the terminal in response to the display brightness adjustment instruction.

[0055] When at least one of the applications is in screen display state, the terminal 10 can be used to determine whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor. If the display brightness adjustment instruction is valid, the display brightness of the terminal is adjusted based on the display brightness adjustment instruction.

[0056] In the embodiment of the present invention, the distance sensor and the acceleration sensor may be arranged in the terminal 10 , or the distance sensor and the acceleration sensor may move synchronously with the terminal 10 and send the collected data to the terminal 10 .

[0057] For example, the distance sensor and the acceleration sensor may be connected to the terminal 10 in a wired or wireless manner, which is not limited in the embodiment of the present invention.

[0058] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0059] The embodiment of the present invention will be described from the perspective of a display brightness control device, which can be specifically integrated in a server or a terminal.

[0060] like Figure 2 As shown, the specific process of the display brightness control method of this embodiment can be as follows:

[0061] 201. When the display brightness of the terminal is not at the maximum brightness, receive a display brightness adjustment instruction from a distance sensor.

[0062] For example, when a user uses a terminal to make a call, if the user brings the terminal close to the ear, the display brightness of the terminal will generally decrease gradually. For example, the terminal can adjust the display brightness to a screen-off state.

[0063] Alternatively, when the terminal is far from the user's face, the display brightness of the terminal can be reduced. For example, when the user is walking, the terminal is held in the hand and follows the natural swing of the hand. At this time, the user is not using the terminal, and the terminal can reduce the display brightness.

[0064] Among them, the distance sensor (P-sensor) can be used to sense the distance between it and an object to complete a preset function. For example, in an embodiment of the present invention, the distance sensor can be used to sense the movement of the terminal to issue a brightness adjustment instruction.

[0065] When the distance sensor detects that the terminal is moving, a display brightness adjustment instruction may be issued, for example, when a user using the call function moves the terminal away from the ear, or when the user moves the terminal close to the face, etc.

[0066] 202. In response to the display brightness adjustment instruction, detect the screen display status of each application in the terminal.

[0067] For example, applications with different functions may be installed in the terminal. Specifically, the screen display state of the application refers to whether the application currently has elements displayed on the screen. If the application has elements displayed on the screen, the application is in the screen display state; if the application does not have elements displayed on the screen, the application is not in the screen display state.

[0068] Generally speaking, the lowest display brightness of the terminal is the brightness corresponding to the screen-off state. The step of "when the display brightness of the terminal is not at the maximum brightness, receiving the display brightness adjustment instruction of the distance sensor" may specifically include:

[0069] When the display brightness of the terminal is at the lowest brightness, a display brightness adjustment instruction of the distance sensor is received.

[0070] Step 202 may specifically include:

[0071] In response to the display brightness adjustment instruction, the screen display state of the call application in the terminal is detected, wherein when the call application is not in a call state, the call application is in a screen display state.

[0072] For example, when a user uses a call application on a terminal to make a call, the page of the call application will be displayed on the screen. When the user brings the terminal page close to the ear, the terminal can be in a screen-off state; when the distance sensor detects that the distance between the terminal and the ear becomes larger, a display brightness adjustment instruction can be issued.

[0073] At this time, the terminal can detect whether the call application is in the screen display state according to the display brightness adjustment instruction.

[0074] 203. When at least one of the applications is in a screen display state, determine whether the display brightness adjustment instruction is valid based on terminal motion data of an acceleration sensor.

[0075] It is understandable that the terminal may have only one application in the screen display state, or the terminal may also support at least two applications in the screen display state at the same time, for example, the applications may be displayed on the screen simultaneously by splitting the screen.

[0076] Among them, an acceleration sensor (G-sensor) is a sensor that can measure acceleration. Common acceleration sensors include capacitive, inductive, strain, piezoresistive, piezoelectric, etc. The embodiment of the present invention does not limit the specific type of the acceleration sensor.

[0077] The terminal motion data is data obtained by measuring the motion of the terminal, and can represent relevant parameters during the terminal motion process.

[0078] Specifically, the acceleration sensor can be Figure 3 The logic diagram shown completes the judgment on whether the display brightness adjustment instruction is valid. In some optional embodiments, the terminal motion data includes terminal acceleration data and terminal angle data, and the step of "judging whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor" may specifically include:

[0079] Calculating the acceleration change value of the terminal at the target time based on the terminal acceleration data of the acceleration sensor;

[0080] Calculating the angle change value of the terminal at the target time based on the terminal angle data of the acceleration sensor;

[0081] Determining whether the terminal moves relative to a target position according to the acceleration change value and the angle change value;

[0082] When it is determined that the terminal has moved relative to the target position, the display brightness adjustment instruction is determined to be valid.

[0083] The target time refers to a certain time period, for example, the target time may be the time between the time when the user answers or makes a call and the time when the user hangs up the call.

[0084] The target position may be a position pre-specified by the user or a default position of the terminal, such as the face of the user or the ear of the user, etc. Alternatively, the target position may also be the position of the terminal at the beginning of the target time, etc.

[0085] It is understandable that in order to prevent the acceleration sensor from mistaking the movement of the human body during a call as the movement of the mobile phone leaving the ear, a misjudgment adjustment mechanism is added in the embodiment of the present invention. The step of "determining whether the terminal moves relative to the target position according to the acceleration change value and the angle change value" includes:

[0086] Calculating an absolute value of an acceleration change of the acceleration change value according to the acceleration change value, and calculating an absolute value of an angle change of the angle change value according to the angle change value;

[0087] Based on the absolute value of the acceleration change, determining the movement of the terminal;

[0088] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the angle change is greater than the preset angular velocity change threshold, the terminal moves relative to the target position.

[0089] Specifically, you can Figure 4 As shown, the acceleration sensor can determine whether the terminal is moving by the absolute value of the acceleration change.

[0090] In some optional examples, the acceleration change value includes an X-axis acceleration change value, a Y-axis acceleration change value, and a Z-axis acceleration change value, and the step of "calculating the acceleration change absolute value of the acceleration change value according to the acceleration change value" may specifically include:

[0091] Calculate the absolute value of the acceleration change on the X-axis, the Y-axis and the Z-axis according to the acceleration change on the X-axis, the Y-axis and the Z-axis;

[0092] The step of determining the movement of the terminal based on the absolute value of the acceleration change includes:

[0093] When the absolute value of the acceleration change on the X-axis, the absolute value of the acceleration change on the Y-axis, and the absolute value of the acceleration change on the Z-axis are all greater than a preset judgment threshold, the terminal makes a motion judgment;

[0094] When at least one of the absolute value of the X-axis acceleration change, the absolute value of the Y-axis acceleration change, and the absolute value of the Z-axis acceleration change is not greater than a preset judgment threshold, the terminal fails the motion judgment.

[0095] Generally speaking, if Figure 4 As shown, when the absolute value of the acceleration change on the X-axis, the Y-axis, and the Z-axis are all greater than the judgment threshold, it can be considered that the acceleration change of the terminal is large.

[0096] Furthermore, the display brightness control method provided by the embodiment of the present invention may further include: when the terminal fails to pass the motion judgment, the terminal does not move relative to the target position; or,

[0097] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the angle change is not greater than the preset angular velocity change threshold, then the terminal does not move relative to the target position; or,

[0098] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is not greater than the preset acceleration change threshold, and the absolute value of the angle change is greater than the preset angular velocity change threshold, the terminal does not move relative to the target position.

[0099] In other words, if the terminal's acceleration does not change or the absolute value of the change is not greater than the preset acceleration change threshold, it can be considered that the terminal is not moving (defined as static state). At this time, the terminal has no relative motion relative to the target position, and the display brightness adjustment command is invalid;

[0100] When the user walks with the terminal in hand, the acceleration changes greatly and the angle changes slightly. At this time, the terminal does not move relative to the target position, and the display brightness adjustment command is invalid;

[0101] When the user turns around while holding the terminal, the acceleration changes slightly but the angle changes significantly. At this time, the terminal does not move relative to the target position, and the display brightness adjustment command is invalid.

[0102] When the terminal's acceleration changes greatly, the angle changes greatly. At this time, the terminal moves relative to the target position, and the display brightness adjustment command takes effect.

[0103] In some optional embodiments, such as Figure 5 As shown, when the acceleration changes greatly, the relative change angle between the phone and the human body can also be determined by the change in the phone's pitch angle △Pitch and the change in the phone's roll angle △Roll. At this time, the angle change value includes the pitch angle change value and the roll angle change value;

[0104] The step of calculating the angle change absolute value of the angle change value according to the angle change value comprises:

[0105] Calculating an absolute value of a pitch angle change and an absolute value of a roll angle change according to the pitch angle change value and the roll angle change value;

[0106] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than a preset acceleration change threshold, and the absolute value of the angle change is greater than a preset angular velocity change threshold, then the terminal moves relative to the target position, including:

[0107] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the pitch angle change and the absolute value of the roll angle change are greater than the preset angular velocity change threshold, the terminal moves relative to the target position.

[0108] 204. If the display brightness adjustment instruction is valid, adjust the display brightness of the terminal based on the display brightness adjustment instruction.

[0109] Specifically, the display brightness adjustment instruction may instruct the terminal to adjust the display brightness to a preset brightness value, or the display brightness adjustment instruction may only instruct the terminal to increase the display brightness, but the specific adjusted brightness value may be determined by the terminal itself.

[0110] For example, the terminal may determine the target value to which the display brightness needs to be adjusted based on the ambient brightness. Alternatively, the terminal may calculate the difference between the brightness value indicated by the display brightness adjustment instruction and the current brightness value, and when the difference is less than a preset brightness difference threshold, the display brightness of the terminal may not be adjusted, and so on.

[0111] like Figure 6 As shown, if the display brightness adjustment instruction is invalid, the terminal may not adjust the display brightness.

[0112] From the above, it can be seen that the embodiment of the present invention can receive a display brightness adjustment instruction from a distance sensor when the display brightness of the terminal is not at the maximum brightness, detect the screen display status of each application in the terminal in response to the display brightness adjustment instruction, and when at least one application among the applications is in the screen display state, determine whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor; if the display brightness adjustment instruction is valid, adjust the display brightness of the terminal based on the display brightness adjustment instruction; in the embodiment of the present invention, since the display brightness adjustment instruction issued by the terminal distance sensor is determined to be valid based on the acceleration sensor on the basis of the distance sensor, it is possible to control the display brightness of the terminal screen, improve the convenience of controlling the display brightness of the terminal, and reduce the misjudgment rate.

[0113] In order to better implement the above method, accordingly, an embodiment of the present invention further provides a display brightness control device.

[0114] refer to Figure 7 , the device comprises:

[0115] The instruction receiving unit 701 is used to receive a display brightness adjustment instruction of the distance sensor when the display brightness of the terminal is not at the maximum brightness;

[0116] A display status detection unit 702, configured to detect the screen display status of each application in the terminal in response to the display brightness adjustment instruction;

[0117] The instruction validity judging unit 703 is used to judge whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor when at least one application among the applications is in the screen display state;

[0118] The brightness adjustment unit 704 is configured to adjust the display brightness of the terminal based on the display brightness adjustment instruction if the display brightness adjustment instruction is valid.

[0119] Optionally, the terminal motion data includes terminal acceleration data and terminal angle data;

[0120] The instruction validity judgment unit 703 is used to calculate the acceleration change value of the terminal at the target time based on the terminal acceleration data of the acceleration sensor;

[0121] Calculating the angle change value of the terminal at the target time based on the terminal angle data of the acceleration sensor;

[0122] Determining whether the terminal moves relative to a target position according to the acceleration change value and the angle change value;

[0123] When it is determined that the terminal has moved relative to the target position, the display brightness adjustment instruction is determined to be valid.

[0124] Optionally, the instruction validity judgment unit 703 is used to calculate the acceleration change absolute value of the acceleration change value according to the acceleration change value, and calculate the angle change absolute value of the angle change value according to the angle change value;

[0125] Based on the absolute value of the acceleration change, determining the movement of the terminal;

[0126] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the angle change is greater than the preset angular velocity change threshold, the terminal moves relative to the target position.

[0127] Optionally, the acceleration change value includes an X-axis acceleration change value, a Y-axis acceleration change value, and a Z-axis acceleration change value;

[0128] The instruction validity judgment unit is used to calculate the absolute value of the X-axis acceleration change, the absolute value of the Y-axis acceleration change and the absolute value of the Z-axis acceleration change according to the X-axis acceleration change value, the Y-axis acceleration change value and the Z-axis acceleration change value;

[0129] When the absolute value of the acceleration change on the X-axis, the absolute value of the acceleration change on the Y-axis, and the absolute value of the acceleration change on the Z-axis are all greater than a preset judgment threshold, the terminal makes a motion judgment;

[0130] When at least one of the absolute value of the X-axis acceleration change, the absolute value of the Y-axis acceleration change, and the absolute value of the Z-axis acceleration change is not greater than a preset judgment threshold, the terminal fails the motion judgment.

[0131] Optional, such as Figure 8As shown, the display brightness control device provided by the embodiment of the present invention further includes a motion judgment unit 705, which is used for determining that when the terminal fails to pass the motion judgment, the terminal does not move relative to the target position; or,

[0132] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the angle change is not greater than the preset angular velocity change threshold, then the terminal does not move relative to the target position; or,

[0133] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is not greater than the preset acceleration change threshold, and the absolute value of the angle change is greater than the preset angular velocity change threshold, the terminal does not move relative to the target position.

[0134] Optionally, the angle change value includes a pitch angle change value and a roll angle change value;

[0135] The instruction validity judgment unit 703 is used to calculate the pitch angle change absolute value and the roll angle change absolute value according to the pitch angle change value and the roll angle change value;

[0136] When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the pitch angle change and the absolute value of the roll angle change are greater than the preset angular velocity change threshold, the terminal moves relative to the target position.

[0137] Optionally, the instruction receiving unit 701 is used to receive a display brightness adjustment instruction of the distance sensor when the display brightness of the terminal is at the lowest brightness;

[0138] The display state detection unit 702 is used to detect the screen display state of the call application in the terminal in response to the display brightness adjustment instruction, wherein when the call application is not in the call state, the call application is in the screen display state

[0139] As can be seen from the above, through the display brightness control device, when the display brightness of the terminal is not at the maximum brightness, the display brightness adjustment instruction of the distance sensor can be received, and in response to the display brightness adjustment instruction, the screen display status of each application in the terminal is detected, and when at least one application among the applications is in the screen display state, it is determined whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor, and if the display brightness adjustment instruction is valid, the display brightness of the terminal is adjusted based on the display brightness adjustment instruction; in the embodiment of the present invention, since the display brightness adjustment instruction issued by the terminal distance sensor is determined to be valid based on the distance sensor in combination with the acceleration sensor, it is possible to control the display brightness of the terminal screen, improve the convenience of controlling the display brightness of the terminal, and reduce the misjudgment rate.

[0140] In addition, an embodiment of the present invention further provides an electronic device, which may be a terminal or a server, etc. Fig. 9 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present invention, specifically:

[0141] The electronic device may include a radio frequency (RF) circuit 901, a memory 902 including one or more computer-readable storage media, an input unit 903, a display unit 904, a sensor 905, an audio circuit 906, a wireless fidelity (WiFi) module 907, a processor 908 including one or more processing cores, and a power supply 909. Those skilled in the art will appreciate that Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0142] The RF circuit 901 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 908 for processing; in addition, the data related to the uplink is sent to the base station. Usually, the RF circuit 901 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 901 can also communicate with the network and other devices through wireless communication. Wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0143] The memory 902 can be used to store software programs and modules, and the processor 908 executes various functional applications and data processing by running the software programs and modules stored in the memory 902. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 902 may also include a memory controller to provide the processor 908 and the input unit 903 with access to the memory 902.

[0144] The input unit 903 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 903 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display screen or a touch pad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 908, and can receive and execute the command sent by the processor 908. In addition, the touch-sensitive surface can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch-sensitive surface, the input unit 903 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0145] The display unit 904 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 904 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 908 to determine the type of touch event. Subsequently, the processor 908 provides a corresponding visual output on the display panel according to the type of touch event. Although in Fig. 9 In the embodiment, the touch-sensitive surface and the display panel are used as two independent components to realize input and output functions, but in some embodiments, the touch-sensitive surface and the display panel can be integrated to realize input and output functions.

[0146] The electronic device may also include at least one sensor 905, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and / or backlight when the electronic device is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify 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, tapping), etc.; as for other sensors that can be configured in the electronic device, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0147] The audio circuit 906, the speaker, and the microphone can provide an audio interface between the user and the electronic device. The audio circuit 906 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 906 and converted into audio data, and then the audio data is output to the processor 908 for processing, and then sent to another electronic device through the RF circuit 901, or the audio data is output to the memory 902 for further processing. The audio circuit 906 may also include an earplug jack to provide communication between an external headset and the electronic device.

[0148] WiFi is a short-range wireless transmission technology. Electronic devices can help users send and receive emails, browse web pages, and access streaming media through WiFi module 907. It provides users with wireless broadband Internet access. Fig. 9 A WiFi module 907 is shown, but it is understandable that it is not an essential component of the electronic device and can be omitted as needed without changing the essence of the invention.

[0149] The processor 908 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 902, and calling data stored in the memory 902. Optionally, the processor 908 may include one or more processing cores; preferably, the processor 908 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 908.

[0150] The electronic device also includes a power supply 909 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 908 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 909 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0151] Although not shown, the electronic device may also include a camera, a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the processor 908 in the electronic device will load the executable files corresponding to the processes of one or more applications into the memory 902 according to the following instructions, and the processor 908 will run the application stored in the memory 902 to implement various functions, as follows:

[0152] When the display brightness of the terminal is not at the maximum brightness, receiving a display brightness adjustment instruction from the distance sensor;

[0153] In response to the display brightness adjustment instruction, detecting the screen display status of each application in the terminal;

[0154] When at least one of the applications is in a screen display state, determining whether the display brightness adjustment instruction is valid based on terminal motion data of the acceleration sensor;

[0155] If the display brightness adjustment instruction is valid, the display brightness of the terminal is adjusted based on the display brightness adjustment instruction.

[0156] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0157] To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any display brightness control method provided in the embodiment of the present invention. For example, the instructions can execute the following steps:

[0158] When the display brightness of the terminal is not at the maximum brightness, receiving a display brightness adjustment instruction from the distance sensor;

[0159] In response to the display brightness adjustment instruction, detecting the screen display status of each application in the terminal;

[0160] When at least one of the applications is in a screen display state, determining whether the display brightness adjustment instruction is valid based on terminal motion data of the acceleration sensor;

[0161] If the display brightness adjustment instruction is valid, the display brightness of the terminal is adjusted based on the display brightness adjustment instruction.

[0162] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0163] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0164] Since the instructions stored in the computer-readable storage medium can execute the steps in any display brightness control method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any display brightness control method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0165] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the methods provided in various optional implementations of the above embodiments.

[0166] The above is a detailed introduction to a display brightness control method, device, electronic device and storage medium provided by an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A display brightness control method, characterized in that: include: When the display brightness of the terminal is not at the maximum brightness, receiving a display brightness adjustment instruction issued by the distance sensor when the terminal is detected to be in motion; In response to the display brightness adjustment instruction, detecting the screen display status of each application in the terminal; When at least one of the applications is in a screen display state, judging whether the display brightness adjustment instruction is valid based on terminal motion data of an acceleration sensor, wherein the terminal motion data includes terminal acceleration data and terminal angle data; If the display brightness adjustment instruction is valid, adjusting the display brightness of the terminal based on the display brightness adjustment instruction; The determining whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor includes: Based on the terminal acceleration data of the acceleration sensor, calculate the acceleration change value of the terminal at the target time; based on the terminal angle data of the acceleration sensor, calculate the angle change value of the terminal at the target time; determine whether the terminal moves relative to the target position according to the acceleration change value and the angle change value; when it is determined that the terminal moves relative to the target position, judge that the display brightness adjustment instruction is valid; The determining, according to the acceleration change value and the angle change value, whether the terminal moves relative to a target position includes: According to the acceleration change value, the absolute value of the acceleration change of the acceleration change value is calculated, and according to the angle change value, the absolute value of the angle change of the angle change value is calculated; based on the absolute value of the acceleration change, the movement of the terminal is judged; when the terminal passes the movement judgment and the absolute value of the acceleration change of the terminal is greater than a preset acceleration change threshold, and the absolute value of the angle change is greater than a preset angular velocity change threshold, the terminal moves relative to the target position.

2. The display brightness control method according to claim 1, characterized in that: The acceleration change value includes an X-axis acceleration change value, a Y-axis acceleration change value and a Z-axis acceleration change value; The step of calculating the absolute value of the acceleration change of the acceleration change value according to the acceleration change value comprises: Calculate the absolute value of the acceleration change on the X-axis, the Y-axis and the Z-axis according to the acceleration change on the X-axis, the Y-axis and the Z-axis; The step of determining the movement of the terminal based on the absolute value of the acceleration change includes: When the absolute value of the acceleration change on the X-axis, the absolute value of the acceleration change on the Y-axis, and the absolute value of the acceleration change on the Z-axis are all greater than a preset judgment threshold, the terminal makes a motion judgment; When at least one of the absolute value of the X-axis acceleration change, the absolute value of the Y-axis acceleration change, and the absolute value of the Z-axis acceleration change is not greater than a preset judgment threshold, the terminal fails the motion judgment.

3. The display brightness control method according to claim 1, characterized in that: The method further comprises: When the terminal fails to pass the motion judgment, the terminal does not move relative to the target position; or, When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the angle change is not greater than the preset angular velocity change threshold, then the terminal does not move relative to the target position; or, When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is not greater than the preset acceleration change threshold, and the absolute value of the angle change is greater than the preset angular velocity change threshold, the terminal does not move relative to the target position.

4. The display brightness control method according to claim 1, characterized in that: The angle change value includes a pitch angle change value and a roll angle change value; The step of calculating the angle change absolute value of the angle change value according to the angle change value comprises: Calculating an absolute value of a pitch angle change and an absolute value of a roll angle change according to the pitch angle change value and the roll angle change value; When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than a preset acceleration change threshold, and the absolute value of the angle change is greater than a preset angular velocity change threshold, then the terminal moves relative to the target position, including: When the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than the preset acceleration change threshold, and the absolute value of the pitch angle change and the absolute value of the roll angle change are greater than the preset angular velocity change threshold, the terminal moves relative to the target position.

5. The display brightness control method according to any one of claims 1 to 4, characterized in that: When the display brightness of the terminal is not at the maximum brightness, receiving the display brightness adjustment instruction of the distance sensor includes: When the display brightness of the terminal is at the lowest brightness, receiving a display brightness adjustment instruction from the distance sensor; The step of detecting the screen display status of each application in the terminal in response to the display brightness adjustment instruction includes: In response to the display brightness adjustment instruction, the screen display state of the call application in the terminal is detected, wherein when the call application is not in a call state, the call application is in a screen display state.

6. A display brightness control device, characterized in that: include: An instruction receiving unit, used for receiving a display brightness adjustment instruction issued by the distance sensor when the terminal detects movement when the display brightness of the terminal is not at the maximum brightness; A display status detection unit, configured to detect the screen display status of each application in the terminal in response to the display brightness adjustment instruction; An instruction validity judgment unit is used to judge whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor when at least one application among the applications is in a screen display state, and the terminal motion data includes terminal acceleration data and terminal angle data; wherein the judgment of whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor includes: calculating the acceleration change value of the terminal at the target time based on the terminal acceleration data of the acceleration sensor; calculating the angle change value of the terminal at the target time based on the terminal angle data of the acceleration sensor; determining whether the terminal has relative motion with respect to the target position according to the acceleration change value and the angle change value; when When it is determined that the terminal has undergone relative motion relative to the target position, the display brightness adjustment instruction is judged to be valid; wherein, determining whether the terminal has undergone relative motion relative to the target position according to the acceleration change value and the angle change value comprises: calculating the absolute value of the acceleration change of the acceleration change value according to the acceleration change value, and calculating the absolute value of the angle change of the angle change value according to the angle change value; performing motion judgment on the terminal based on the absolute value of the acceleration change; when the terminal passes the motion judgment, and the absolute value of the acceleration change of the terminal is greater than a preset acceleration change threshold, and the absolute value of the angle change is greater than a preset angular velocity change threshold, then the terminal has undergone relative motion relative to the target position; A brightness adjustment unit is used to adjust the display brightness of the terminal based on the display brightness adjustment instruction if the display brightness adjustment instruction is valid.

7. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the steps in the display brightness control method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the display brightness control method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Screen control method and device for mobile terminal

    CN106953969A

  • Terminal screen control method and device, readable memory medium and terminal

    CN108391001A