CN114582264A - Display brightness control method and device, electronic equipment and storage medium - Google Patents

Display brightness control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114582264A
CN114582264A CN202210177741.1A CN202210177741A CN114582264A CN 114582264 A CN114582264 A CN 114582264A CN 202210177741 A CN202210177741 A CN 202210177741A CN 114582264 A CN114582264 A CN 114582264A
Authority
CN
China
Prior art keywords
terminal
acceleration
change
display brightness
absolute value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210177741.1A
Other languages
Chinese (zh)
Inventor
阳思民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Communication Technology Chengdu Ltd
Original Assignee
TCL Communication Technology Chengdu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Communication Technology Chengdu Ltd filed Critical TCL Communication Technology Chengdu Ltd
Priority to CN202210177741.1A priority Critical patent/CN114582264A/en
Publication of CN114582264A publication Critical patent/CN114582264A/en
Priority to PCT/CN2023/070053 priority patent/WO2023160250A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a display brightness control method, a display brightness control device, electronic equipment and a storage medium; the method and the device can receive a display brightness adjusting instruction of a distance sensor when the display brightness of a terminal is not at the maximum brightness, respond to the display brightness adjusting instruction, detect the screen display state of each application program in the terminal, judge whether the display brightness adjusting instruction is effective or not based on terminal motion data of an acceleration sensor when at least one application program exists in each application program and is in the screen display state, and adjust the display brightness of the terminal based on the display brightness adjusting instruction if the display brightness adjusting instruction is effective; the embodiment of the invention judges whether the display brightness adjusting instruction sent by the final distance sensor is effective or not by combining the acceleration sensor on the basis of the distance sensor, can realize the control of the display brightness of the terminal screen, improves the convenience of controlling the display brightness of the terminal and reduces the misjudgment rate.

Description

Display brightness control method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of terminals, in particular to a display brightness control method and device, electronic equipment and a storage medium.
Background
With the rapid development of the terminal design and manufacture technology, more and more schemes are used for controlling the screen turning-off and the screen turning-on of the terminal according to the movement of the terminal.
Currently, the main method adopted when the screen of the terminal is turned off and turned on is to detect the distance between a terminal user and the terminal by using a distance sensor of infrared light to provide a basis for controlling the display brightness of the terminal. However, according to this scheme, since dark black hair, black skin, and the like have high absorption rate and low reflectivity for infrared light, errors may occur in the degree of the distance sensor, and thus control of the turn-off and turn-on of the terminal may be problematic.
Disclosure of Invention
The embodiment of the invention provides a display brightness control method and device, electronic equipment and a storage medium, which can be combined with an acceleration sensor to realize control on the display brightness of a terminal screen, improve the convenience of controlling the display brightness of a terminal and reduce the misjudgment rate.
The embodiment of the invention provides a display brightness control method, which comprises the following steps:
when the display brightness of the terminal is not at the maximum brightness, receiving a display brightness adjusting instruction of the distance sensor;
responding to the display brightness adjusting instruction, and detecting the screen display state of each application program in the terminal;
when at least one application program in each application program is in a screen display state, judging whether the display brightness adjusting instruction is effective or not based on terminal motion data of an acceleration sensor;
and if the display brightness adjusting instruction is effective, adjusting the display brightness of the terminal based on the display brightness adjusting instruction.
Accordingly, an embodiment of the present invention provides a display brightness control apparatus, including:
the instruction receiving unit is used for receiving a display brightness adjusting instruction of the distance sensor when the display brightness of the terminal is not at the maximum brightness;
the display state detection unit is used for responding to the display brightness adjustment instruction and detecting the screen display state of each application program in the terminal;
the command validity judging unit is used for judging whether the display brightness adjusting command is valid or not based on the terminal motion data of the acceleration sensor when at least one application program in each application program is in a screen display state;
and the brightness adjusting unit is used for adjusting the display brightness of the terminal based on the display brightness adjusting instruction if the display brightness adjusting instruction is valid.
Optionally, the terminal motion data includes terminal acceleration data and terminal angle data;
the command validity judging unit is used for calculating an acceleration change value of the terminal at a target time based on the terminal acceleration data of the acceleration sensor;
calculating an angle change value of the terminal at the target time based on the terminal angle data of an acceleration sensor;
determining whether the terminal moves relative to a target position or not according to the acceleration change value and the angle change value;
and when the terminal is determined to move relatively to the target position, judging that the display brightness adjusting instruction is effective.
Optionally, the instruction validity judging unit is configured to calculate an absolute value of acceleration change of the acceleration change value according to the acceleration change value, and calculate an absolute value of angle change of the angle change value according to the angle change value;
judging the motion of the terminal based on the absolute value of the acceleration change;
and when the terminal judges through the motion, 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 speed change threshold, the terminal moves relative to the target position.
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;
the instruction effectiveness judging unit is used for calculating an X-axis acceleration change absolute value, a Y-axis acceleration change absolute value and a Z-axis acceleration change absolute value according to the X-axis acceleration change value, the Y-axis acceleration change value and the Z-axis acceleration change value;
when the absolute value of the change of the acceleration of the X axis, the absolute value of the change of the acceleration of the Y axis and the absolute value of the change of the acceleration of the Z axis are all larger than a preset judgment threshold value, the terminal judges through motion;
and when at least one of the absolute value of the change of the acceleration of the X axis, the absolute value of the change of the acceleration of the Y axis and the absolute value of the change of the acceleration of the Z axis is not more than a preset judgment threshold value, the terminal fails to be judged through movement.
Optionally, the display brightness control apparatus provided in the embodiment of the present invention further includes a motion determination unit, configured to determine that the terminal does not move relative to the target position when the terminal fails to perform the motion determination; alternatively, the first and second electrodes may be,
when the terminal passes the motion judgment, 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 not greater than a preset angular velocity change threshold, the terminal does not move relative to the target position; alternatively, the first and second electrodes may be,
and when the terminal passes the motion judgment, the absolute value of the acceleration change of the terminal is not 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 does not move relative to the target position.
Optionally, the angle change value includes a pitch angle change value and a roll angle change value;
the command validity judging unit is used for calculating a pitch angle change absolute value and a roll angle change absolute value according to the pitch angle change value and the roll angle change value;
and when the terminal judges through the movement, the absolute value of the acceleration change of the terminal is greater than a 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 a preset angular speed change threshold, the terminal moves relative to the target position.
Optionally, the instruction receiving unit is configured to receive a display brightness adjustment instruction of the distance sensor when the display brightness of the terminal is the lowest brightness;
the display state detection unit is used for responding to the display brightness adjustment instruction and detecting the screen display state of the call application in the terminal, wherein when the call application is not in the call state, the call application is in the screen display state.
Correspondingly, the embodiment of the invention also provides the electronic equipment, which comprises a memory and a processor; the memory stores an application program, and the processor is used for running the application program in the memory to execute the steps in any display brightness control method provided by the embodiment of the invention.
Correspondingly, the embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in any one of the display brightness control methods provided by the embodiments of the present invention.
In addition, the embodiment of the present invention further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the computer program or instructions implement the steps in any one of the display brightness control methods provided by the embodiment of the present invention.
By adopting the scheme of the embodiment of the invention, when the display brightness of the terminal is not at the maximum brightness, the display brightness adjusting instruction of the distance sensor is received, the screen display state of each application program in the terminal is detected in response to the display brightness adjusting instruction, when at least one application program exists in each application program and is in the screen display state, whether the display brightness adjusting instruction is effective or not is judged based on the terminal motion data of the acceleration sensor, and if the display brightness adjusting instruction is effective, the display brightness of the terminal is adjusted based on the display brightness adjusting instruction; in the embodiment of the invention, on the basis of the distance sensor, the acceleration sensor is combined to judge whether the display brightness adjusting instruction sent by the final distance sensor is effective or not, so that the control on the display brightness of the terminal screen can be realized, the convenience of controlling the display brightness of the terminal is improved, and the misjudgment rate is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene schematic diagram of a display brightness control method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for controlling display brightness according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a landing page provided by an embodiment of the invention;
FIG. 4 is a schematic diagram of an authorized login page provided by an embodiment of the invention;
FIG. 5 is another schematic diagram of an authorization login page provided by an embodiment of the invention;
FIG. 6 is another schematic diagram of an authorization login page provided by an embodiment of the invention;
FIG. 7 is a schematic structural diagram of a display brightness control apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic view of another structure of a display luminance controlling apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a display brightness control method and device, electronic equipment and a computer readable storage medium. In particular, embodiments of the present invention provide a display luminance control method suitable for a display luminance control apparatus, which may be integrated in an electronic device.
The electronic device may be a terminal or other devices, including but not limited to a mobile terminal, for example, a mobile terminal including but not limited to a smartphone, a smart watch, a tablet computer, a notebook computer, a smart car, and the like.
The display brightness control method of the embodiment of the invention can be realized by a server, and can also be realized by a terminal and the server together.
The method for realizing the display brightness control by the terminal is taken as an example and is explained below.
As shown in fig. 1, the display brightness control system according to the embodiment of the present invention includes a terminal 10. The terminal 10 may be configured to receive a display brightness adjustment instruction from the distance sensor when the display brightness of the terminal is not at the maximum brightness, and detect a screen display state of each application in the terminal in response to the display brightness adjustment instruction.
When at least one application program in each application program is in a screen display state, the terminal 10 may be configured to 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.
In the embodiment of the present invention, the distance sensor and the acceleration sensor may be provided in the terminal 10, or the distance sensor and the acceleration sensor may move in synchronization with the terminal 10 and transmit the collected data to the terminal 10.
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 by the embodiment of the present invention.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Embodiments of the present invention will be described from the perspective of a display luminance control apparatus, which may be specifically integrated in a server or a terminal.
As shown in fig. 2, a specific flow of the display brightness control method of the present embodiment may be as follows:
201. and when the display brightness of the terminal is not at the maximum brightness, receiving a display brightness adjusting instruction of the distance sensor.
For example, when a user uses the terminal to conduct a call, if the user brings the terminal close to the ear, the display brightness of the terminal is generally gradually reduced, for example, the terminal may adjust the display brightness to a screen-off state.
Alternatively, when the terminal is distant from the face of the user, the display brightness of the terminal may be reduced. For example, when the user holds the terminal in his hand and naturally swings with the hand while walking, the terminal may decrease the display brightness when the user is not using the terminal.
The distance sensor (P-sensor) may be configured to sense a distance between the distance sensor and an object to perform a predetermined function, for example, in an embodiment of the present invention, the distance sensor may be configured to sense a movement of the terminal to issue a brightness adjustment command.
And when the distance sensor detects that the terminal moves, a display brightness adjusting instruction can be sent out. For example, a user using a call function places the terminal far from the ear, or the user places the terminal close to the face, or the like.
202. And responding to the display brightness adjusting instruction, and detecting the screen display state of each application program in the terminal.
For example, applications with different functions may be installed in the terminal. Specifically, the screen display state of the application program refers to whether an element is displayed on the screen currently or not, and if the element is displayed on the screen, the application program is in the screen display state; if no elements of the application are displayed on the screen, the application is not in the screen display state.
Generally, the lowest display brightness of the terminal is the brightness corresponding to the screen-off state. The step of receiving the display brightness adjustment instruction of the distance sensor when the display brightness of the terminal is not at the maximum brightness may specifically include:
and when the display brightness of the terminal is the lowest brightness, receiving a display brightness adjusting instruction of the distance sensor.
Step 202 may specifically include:
and responding to the display brightness adjusting instruction, and detecting the screen display state of the call application in the terminal, wherein when the call application is not in the call state, the call application is in the screen display state.
For example, when a user makes a call using a call application on a terminal, a page of the call application is displayed on a 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 is increased, a display brightness adjusting instruction can be sent out.
At this time, the terminal may detect whether the call application is in the screen display state according to the display brightness adjustment instruction.
203. And when at least one application program in each application program is in a screen display state, judging whether the display brightness adjusting instruction is effective or not based on the terminal motion data of the acceleration sensor.
It is understood that the terminal may only have one application in the screen display state, or the terminal may support at least two applications in the screen display state at the same time, for example, the applications may be displayed on the screen at the same time by splitting the screen.
Among them, an acceleration sensor (G-sensor) is a sensor capable of measuring acceleration. Common acceleration sensors include capacitive, inductive, strain, piezoresistive, piezoelectric, and the like. The embodiment of the present invention does not limit the specific type of the acceleration sensor.
The terminal motion data is data obtained by measuring the motion of the terminal, and may represent a relevant parameter in the terminal motion process.
Specifically, the acceleration sensor may complete the determination of whether the display brightness adjustment command is valid through the logic diagram shown in fig. 3. In some optional embodiments, the terminal motion data includes terminal acceleration data and terminal angle data, and the step "determining whether the display brightness adjustment instruction is valid based on the terminal motion data of the acceleration sensor" may specifically include:
calculating an acceleration change value of the terminal at a target time based on the terminal acceleration data of an acceleration sensor;
calculating an angle change value of the terminal at the target time based on the terminal angle data of the acceleration sensor;
determining whether the terminal moves relative to a target position or not according to the acceleration change value and the angle change value;
and when the terminal is determined to move relatively to the target position, judging that the display brightness adjusting instruction is effective.
Wherein, the target time refers to a certain time period. For example, the target time may be the time between the time the user answers or makes a call and the time the user hangs up the call.
The target position may be a position pre-specified by the user or default by the terminal, such as the face of the user or the ear of the user, and so on. Alternatively, the target location may be the location at which the terminal is located at the beginning of the target time, and so on.
It can be understood that, in order to prevent the motion of the human body from making the acceleration sensor mistaken the motion of the mobile phone leaving the ear during the call, in the embodiment of the present invention, a misjudgment adjustment mechanism is added, and the step "determining whether the terminal moves relative to the target position according to the acceleration change value and the angle change value" includes:
calculating an acceleration change absolute value of the acceleration change value according to the acceleration change value, and calculating an angle change absolute value of the angle change value according to the angle change value;
judging the motion of the terminal based on the absolute value of the acceleration change;
and when the terminal is judged through the motion, 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.
Specifically, as shown in fig. 4, the acceleration sensor may determine whether the terminal moves according to an absolute value of a change in acceleration.
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 "calculating an absolute value of acceleration change of the acceleration change value according to the acceleration change value" may specifically include:
calculating an absolute value of the change of the acceleration of the X axis, an absolute value of the change of the acceleration of the Y axis and an absolute value of the change of the acceleration of the Z axis according to the change value of the acceleration of the X axis, the change value of the acceleration of the Y axis and the change value of the acceleration of the Z axis;
the judging the motion of the terminal based on the absolute value of the acceleration change comprises the following steps:
when the absolute value of the change of the acceleration of the X axis, the absolute value of the change of the acceleration of the Y axis and the absolute value of the change of the acceleration of the Z axis are all larger than a preset judgment threshold value, the terminal judges through motion;
and when at least one of the absolute value of the change of the acceleration of the X axis, the absolute value of the change of the acceleration of the Y axis and the absolute value of the change of the acceleration of the Z axis is not more than a preset judgment threshold value, the terminal fails to be judged through movement.
Generally, as shown in fig. 4, when the absolute value of the change in the acceleration of the X axis, the absolute value of the change in the acceleration of the Y axis, and the absolute value of the change in the acceleration of the Z axis are all larger than the determination threshold, it is considered that the change in the acceleration of the terminal is large.
Further, the display brightness control method provided by the embodiment of the present invention may further include: when the terminal does not pass the motion judgment, the terminal does not move relative to the target position; alternatively, the first and second electrodes may be,
when the terminal passes the motion judgment, 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 not greater than a preset angular velocity change threshold, the terminal does not move relative to the target position; alternatively, the first and second electrodes may be,
and when the terminal passes the motion judgment, the absolute value of the acceleration change of the terminal is not 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 does not move relative to the target position.
That is, the terminal may be considered to be motionless (defined as a stationary state) if the acceleration of the terminal is unchanged or the absolute value of the change is not greater than the preset acceleration change threshold. At the moment, the terminal does not move relatively to the target position, and the display brightness adjustment instruction is invalid;
when a user holds the terminal to walk, the acceleration change is large, and the angle change is small. At the moment, the terminal does not move relatively to the target position, and the display brightness adjustment instruction is invalid;
when the user holds the terminal to turn, the acceleration change is small, and the angle change is large. At the moment, the terminal does not move relatively relative to the target position, and the display brightness adjusting instruction is invalid;
when the acceleration change of the terminal is large, the angle change is also large. At this time, the terminal moves relatively to the target position, and the display brightness adjustment instruction takes effect.
In some optional embodiments, as shown in fig. 5, when the acceleration change is large, the relative change angle between the mobile phone and the human body may also be determined according to the change amount Δ Pitch of the mobile phone and the change amount Δ Roll of the Roll angle of the mobile phone. At this time, the angle change value includes a pitch angle change value and a roll angle change value;
the calculating an absolute value of the angle change value according to the angle change value includes:
calculating a pitch angle change absolute value and a roll angle change absolute value according to the pitch angle change value and the roll angle change value;
when the terminal judges through the motion, 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, and the method comprises the following steps:
and when the terminal judges through the movement, the absolute value of the acceleration change of the terminal is greater than a 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 a preset angular speed change threshold, the terminal moves relative to the target position.
204. And if the display brightness adjusting instruction is effective, adjusting the display brightness of the terminal based on the display brightness adjusting instruction.
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 instruct the terminal to increase the display brightness, but the specifically adjusted brightness value may be determined by the terminal itself.
For example, the terminal may determine a target value to which the display brightness needs to be adjusted according to the ambient brightness. Alternatively, the terminal may calculate a difference between the luminance value indicated by the display luminance adjustment instruction and the current luminance value, and may not adjust the display luminance of the terminal when the difference is smaller than a preset luminance difference threshold, and the like.
As shown in fig. 6, if the display brightness adjustment instruction is invalid, the terminal may not adjust the display brightness.
As can be seen from the above, in the embodiment of the present invention, when the display brightness of the terminal is not at the maximum brightness, the display brightness adjustment instruction of the distance sensor is received, the screen display state of each application program in the terminal is detected in response to the display brightness adjustment instruction, when at least one application program exists in each application program and 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 invention, on the basis of the distance sensor, the acceleration sensor is combined to judge whether the display brightness adjusting instruction sent by the final distance sensor is effective or not, so that the control on the display brightness of the terminal screen can be realized, the convenience of controlling the display brightness of the terminal is improved, and the misjudgment rate is reduced.
In order to better implement the method, correspondingly, the embodiment of the invention also provides a display brightness control device.
Referring to fig. 7, the apparatus includes:
an instruction receiving unit 701, configured to receive a display brightness adjustment instruction of the distance sensor when the display brightness of the terminal is not at the maximum brightness;
a display state detection unit 702, configured to detect a screen display state of each application program in the terminal in response to the display brightness adjustment instruction;
an instruction validity judging unit 703, configured to judge whether the display brightness adjustment instruction is valid based on terminal motion data of an acceleration sensor when at least one application program in each application program is in a screen display state;
a brightness adjusting unit 704, configured to adjust the display brightness of the terminal based on the display brightness adjusting instruction if the display brightness adjusting instruction is valid.
Optionally, the terminal motion data includes terminal acceleration data and terminal angle data;
the instruction validity judging unit 703 is configured to calculate an acceleration change value of the terminal at a target time based on the terminal acceleration data of the acceleration sensor;
calculating an angle change value of the terminal at the target time based on the terminal angle data of the acceleration sensor;
determining whether the terminal moves relative to a target position or not according to the acceleration change value and the angle change value;
and when the terminal is determined to move relatively to the target position, judging that the display brightness adjusting instruction is effective.
Optionally, the instruction validity determining unit 703 is configured to calculate an absolute value of acceleration change of the acceleration change value according to the acceleration change value, and calculate an absolute value of angle change of the angle change value according to the angle change value;
judging the motion of the terminal based on the absolute value of the acceleration change;
and when the terminal is judged through the motion, 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.
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;
the instruction effectiveness judging unit is used for calculating an X-axis acceleration change absolute value, a Y-axis acceleration change absolute value and a Z-axis acceleration change absolute value according to the X-axis acceleration change value, the Y-axis acceleration change value and the Z-axis acceleration change value;
when the absolute value of the change of the acceleration of the X axis, the absolute value of the change of the acceleration of the Y axis and the absolute value of the change of the acceleration of the Z axis are all larger than a preset judgment threshold value, the terminal judges through motion;
and when at least one of the absolute value of the change of the acceleration of the X axis, the absolute value of the change of the acceleration of the Y axis and the absolute value of the change of the acceleration of the Z axis is not more than a preset judgment threshold value, the terminal fails to be judged through movement.
Optionally, as shown in fig. 8, the display brightness control apparatus according to the embodiment of the present invention further includes a motion determination unit 705, configured to determine that the terminal does not move relative to the target position when the terminal does not pass the motion determination; alternatively, the first and second electrodes may be,
when the terminal passes the motion judgment, 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 not greater than a preset angular velocity change threshold, the terminal does not move relative to the target position; alternatively, the first and second electrodes may be,
and when the terminal passes the motion judgment, the absolute value of the acceleration change of the terminal is not 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 does not move relative to the target position.
Optionally, the angle change value includes a pitch angle change value and a roll angle change value;
the command validity judging unit 703 is configured to calculate an absolute value of pitch angle change and an absolute value of roll angle change according to the pitch angle change and the roll angle change;
and when the terminal judges through the movement, the absolute value of the acceleration change of the terminal is greater than a 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 a preset angular speed change threshold, the terminal moves relative to the target position.
Optionally, the instruction receiving unit 701 is configured to receive a display brightness adjustment instruction of the distance sensor when the display brightness of the terminal is the lowest brightness;
the display state detection unit 702 is configured to detect a screen display state of a call application in a terminal in response to the display brightness adjustment instruction, where the call application is in the screen display state when the call application is not in the call state
As can be seen from the above, by 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 is received, the screen display state of each application program in the terminal is detected in response to the display brightness adjustment instruction, when at least one application program exists in each application program and 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 invention, on the basis of the distance sensor, the acceleration sensor is combined to judge whether the display brightness adjusting instruction sent by the final distance sensor is effective or not, so that the control on the display brightness of the terminal screen can be realized, the convenience of controlling the display brightness of the terminal is improved, and the misjudgment rate is reduced.
In addition, an embodiment of the present invention further provides an electronic device, where the electronic device may be a terminal or a server, and as shown in fig. 9, a schematic structural diagram of the electronic device according to the embodiment of the present invention is shown, specifically:
the electronic device may include Radio Frequency (RF) circuitry 901, memory 902 including one or more computer-readable storage media, input unit 903, display unit 904, sensor 905, audio circuitry 906, Wireless Fidelity (WiFi) module 907, processor 908 including one or more processing cores, and power supply 909. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
RF circuit 901 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information from a base station and then processing the received downlink information by one or more processors 908; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 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, and the like. In addition, the RF circuit 901 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 902 may be used to store software programs and modules, and the processor 908 executes various functional applications and data processing by operating 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 program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 902 may also include a memory controller to provide access to the memory 902 by the processor 908 and the input unit 903.
The input unit 903 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 903 may include touch sensitive surfaces as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 908, and receives and executes commands from the processor 908. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 903 may include other input devices in addition to a touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 904 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 904 may include a Display panel, and may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is communicated to the processor 908 to determine the type of touch event, and the processor 908 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 9 the touch sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
The electronic device may also include at least one sensor 905, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
Audio circuitry 906, a speaker, and a microphone may provide an audio interface between a user and the electronic device. The audio circuit 906 may transmit the electrical signal converted from the received audio data to a speaker, and the electrical signal is converted into a sound signal by the speaker and output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 906 and converted into audio data, which is then processed by the audio data output processor 908, and then transmitted to, for example, another electronic device via the RF circuit 901, or the audio data is output to the memory 902 for further processing. The audio circuitry 906 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
WiFi belongs to short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 907, and provides wireless broadband internet access for the user. Although fig. 9 shows the WiFi module 907, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 908 is a control center of the electronic device, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory 902. Optionally, processor 908 may include one or more processing cores; preferably, the processor 908 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 908.
The electronic device also includes a power supply 909 (e.g., a battery) that provides power to the various components, which may preferably be logically coupled to the processor 908 via a power management system, such that the functions of managing charging, discharging, and power consumption are performed via the power management system. The power supply 909 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 908 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 902 according to the following instructions, and the processor 908 runs the application programs stored in the memory 902, thereby implementing various functions as follows:
when the display brightness of the terminal is not at the maximum brightness, receiving a display brightness adjusting instruction of the distance sensor;
responding to the display brightness adjusting instruction, and detecting the screen display state of each application program in the terminal;
when at least one application program in each application program is in a screen display state, judging whether the display brightness adjusting instruction is effective or not based on terminal motion data of an acceleration sensor;
and if the display brightness adjusting instruction is effective, adjusting the display brightness of the terminal based on the display brightness adjusting instruction.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the 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 one of the display brightness control methods provided by the embodiment of the present invention. For example, the instructions may perform the steps of:
when the display brightness of the terminal is not at the maximum brightness, receiving a display brightness adjusting instruction of the distance sensor;
responding to the display brightness adjusting instruction, and detecting the screen display state of each application program in the terminal;
when at least one application program exists in the application programs and is in a screen display state, judging whether the display brightness adjusting instruction is effective or not based on terminal motion data of an acceleration sensor;
and if the display brightness adjusting instruction is effective, adjusting the display brightness of the terminal based on the display brightness adjusting instruction.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the 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, which are detailed in the foregoing embodiments and will not be described herein again.
According to an aspect of the application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the 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 method provided in the various alternative implementations in the above embodiments.
The display brightness control method, the display brightness control device, the electronic device and the storage medium according to the embodiments of the present invention are described in detail above, and the principles and embodiments of the present invention are described herein by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core concept of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A display luminance control method, comprising:
when the display brightness of the terminal is not at the maximum brightness, receiving a display brightness adjusting instruction of the distance sensor;
responding to the display brightness adjusting instruction, and detecting the screen display state of each application program in the terminal;
when at least one application program in each application program is in a screen display state, judging whether the display brightness adjusting instruction is effective or not based on terminal motion data of an acceleration sensor;
and if the display brightness adjusting instruction is effective, adjusting the display brightness of the terminal based on the display brightness adjusting instruction.
2. The display brightness control method according to claim 1, wherein the terminal motion data includes terminal acceleration data and terminal angle data;
the judging whether the display brightness adjusting instruction is effective or not based on the terminal motion data of the acceleration sensor comprises the following steps:
calculating an acceleration change value of the terminal at a target time based on the terminal acceleration data of an acceleration sensor;
calculating an angle change value of the terminal at the target time based on the terminal angle data of the acceleration sensor;
determining whether the terminal moves relative to a target position or not according to the acceleration change value and the angle change value;
and when the terminal is determined to move relatively to the target position, judging that the display brightness adjusting instruction is effective.
3. The method for controlling display brightness according to claim 2, wherein the determining whether the terminal moves relatively to the target position according to the acceleration change value and the angle change value comprises:
calculating an acceleration change absolute value of the acceleration change value according to the acceleration change value, and calculating an angle change absolute value of the angle change value according to the angle change value;
judging the motion of the terminal based on the absolute value of the acceleration change;
and when the terminal is judged through the motion, 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.
4. The display luminance control method according to claim 3, wherein 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 calculating the absolute value of the acceleration change value according to the acceleration change value comprises the following steps:
calculating an absolute value of the change of the acceleration of the X axis, an absolute value of the change of the acceleration of the Y axis and an absolute value of the change of the acceleration of the Z axis according to the change value of the acceleration of the X axis, the change value of the acceleration of the Y axis and the change value of the acceleration of the Z axis;
the judging the motion of the terminal based on the absolute value of the acceleration change comprises the following steps:
when the absolute value of the change of the acceleration of the X axis, the absolute value of the change of the acceleration of the Y axis and the absolute value of the change of the acceleration of the Z axis are all larger than a preset judgment threshold value, the terminal judges through motion;
and when at least one of the absolute value of the change of the acceleration of the X axis, the absolute value of the change of the acceleration of the Y axis and the absolute value of the change of the acceleration of the Z axis is not more than a preset judgment threshold value, the terminal fails to be judged through movement.
5. The display brightness control method according to claim 3, further comprising:
when the terminal does not pass the motion judgment, the terminal does not move relatively relative to the target position; alternatively, the first and second electrodes may be,
when the terminal passes the motion judgment, 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 not greater than a preset angular velocity change threshold, the terminal does not move relative to the target position; alternatively, the first and second electrodes may be,
and when the terminal passes the motion judgment, the absolute value of the acceleration change of the terminal is not 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 does not move relative to the target position.
6. The display luminance control method according to claim 3, wherein the angle change value includes a pitch angle change value and a roll angle change value;
the calculating an absolute value of the angle change value according to the angle change value includes:
calculating a pitch angle change absolute value and a roll angle change absolute value according to the pitch angle change value and the roll angle change value;
when the terminal judges through the motion, 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, and the method comprises the following steps:
and when the terminal judges through the movement, the absolute value of the acceleration change of the terminal is greater than a 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 a preset angular speed change threshold, the terminal moves relative to the target position.
7. The display brightness control method according to any one of claims 1 to 6, wherein the receiving of the display brightness adjustment instruction of the distance sensor when the display brightness of the terminal is not at the maximum brightness comprises:
when the display brightness of the terminal is the lowest brightness, receiving a display brightness adjusting instruction of a distance sensor;
the detecting the screen display state of each application program in the terminal in response to the display brightness adjusting instruction comprises:
and responding to the display brightness adjusting instruction, and detecting the screen display state of the call application in the terminal, wherein when the call application is not in the call state, the call application is in the screen display state.
8. A display luminance control apparatus, comprising:
the instruction receiving unit is used for receiving a display brightness adjusting instruction of the distance sensor when the display brightness of the terminal is not at the maximum brightness;
the display state detection unit is used for responding to the display brightness adjustment instruction and detecting the screen display state of each application program in the terminal;
the command validity judging unit is used for judging whether the display brightness adjusting command is valid or not based on the terminal motion data of the acceleration sensor when at least one application program in each application program is in a screen display state;
and the brightness adjusting unit is used for adjusting the display brightness of the terminal based on the display brightness adjusting instruction if the display brightness adjusting instruction is valid.
9. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the steps of the display brightness control method according to any one of claims 1 to 7.
10. A computer readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the method according to any one of claims 1 to 7.
CN202210177741.1A 2022-02-25 2022-02-25 Display brightness control method and device, electronic equipment and storage medium Pending CN114582264A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210177741.1A CN114582264A (en) 2022-02-25 2022-02-25 Display brightness control method and device, electronic equipment and storage medium
PCT/CN2023/070053 WO2023160250A1 (en) 2022-02-25 2023-01-03 Display brightness control method, apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210177741.1A CN114582264A (en) 2022-02-25 2022-02-25 Display brightness control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114582264A true CN114582264A (en) 2022-06-03

Family

ID=81773192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210177741.1A Pending CN114582264A (en) 2022-02-25 2022-02-25 Display brightness control method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114582264A (en)
WO (1) WO2023160250A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160250A1 (en) * 2022-02-25 2023-08-31 Tcl通讯科技(成都)有限公司 Display brightness control method, apparatus, electronic device, and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103903539A (en) * 2012-12-24 2014-07-02 联想(北京)有限公司 Screen brightness adjusting method and system
CN104700816B (en) * 2015-01-08 2017-05-24 小米科技有限责任公司 Method and device for setting screen brightness
CN106797416B (en) * 2016-10-31 2020-06-19 北京小米移动软件有限公司 Screen control method and device
CN108153563B (en) * 2016-12-02 2019-05-31 上海中兴软件有限责任公司 A kind of screen control method and device
CN108391001A (en) * 2018-02-05 2018-08-10 广东欧珀移动通信有限公司 The screen control method and device of terminal, readable storage medium storing program for executing, terminal
CN111355843A (en) * 2020-02-26 2020-06-30 北京小米移动软件有限公司 Brightness adjusting method and device, mobile terminal and storage medium
CN111261128B (en) * 2020-03-17 2021-07-06 维沃移动通信有限公司 Screen brightness adjusting method and electronic equipment
CN114582264A (en) * 2022-02-25 2022-06-03 Tcl通讯科技(成都)有限公司 Display brightness control method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160250A1 (en) * 2022-02-25 2023-08-31 Tcl通讯科技(成都)有限公司 Display brightness control method, apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
WO2023160250A1 (en) 2023-08-31

Similar Documents

Publication Publication Date Title
CN109067418B (en) Antenna control method and mobile terminal
CN108182019B (en) Suspension control display processing method and mobile terminal
US11366510B2 (en) Processing method for reducing power consumption and mobile terminal
CN111954286B (en) Power adjusting method, device, storage medium and terminal
CN108196753B (en) Interface switching method and mobile terminal
CN108668328B (en) Network switching method and mobile terminal
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
CN109739394B (en) SAR value processing method and mobile terminal
CN111443815A (en) Vibration reminding method and electronic equipment
CN106936516B (en) Display screen display state control method, storage medium and terminal
CN108388400B (en) Operation processing method and mobile terminal
CN108170310B (en) Touch screen control method and mobile terminal
CN114582264A (en) Display brightness control method and device, electronic equipment and storage medium
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium
CN108170362B (en) Application running state control method and mobile terminal
CN112367425B (en) Volume adjusting method and device and terminal
CN111966206B (en) Power saving control method and device for fingerprint sensor and mobile terminal
CN110413385B (en) Task management method, terminal device and medium
CN108966298B (en) Communication frequency band control method and device
CN109634503B (en) Operation response method and mobile terminal
CN108287755B (en) Application program control method and mobile terminal
CN111694419A (en) Sensor control method and electronic device
CN111898542A (en) Display screen control method and device and terminal
CN111431249A (en) Charging method and electronic equipment
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination