Backlight adjustment method, terminal device and readable storage medium
By placing light sensors on the front and back of the terminal device to coordinate the adjustment of screen brightness, the problem of unreasonable backlight adjustment in the prior art is solved, achieving more reasonable brightness adaptation and improving the user experience.
Patent Information
- Application Number
- CN202010883302.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-26
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2040-08-26
AI Technical Summary
Existing backlight adjustment methods result in low light intensity detected by the light sensor in point light source environments, especially when the front of the terminal device is in its own shadow. This leads to unreasonable screen backlight brightness adjustment and an inability to adapt to the current ambient brightness.
First and second light sensors are respectively set on the front and back of the terminal device. By acquiring the light values detected by the two sensors, the target brightness value is determined collaboratively, and the screen brightness is adjusted according to the value to adapt to changes in ambient brightness.
The backlight adjustment has been improved to ensure that the screen brightness can better adapt to different environments, avoiding unreasonable brightness adjustment and improving the user experience.
Smart Images

Figure CN111899695B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to backlight adjustment methods, terminal devices, and readable storage media. Background Technology
[0002] LCD terminal devices are commonly used terminal devices. When displaying content, LCD terminal devices need to emit backlight to ensure a clearer viewing experience for the user.
[0003] In some implementations, a light sensor is typically placed on the front of the terminal device to collect the light intensity in front of the device and automatically adjust the backlight brightness based on the collected light intensity. However, when adjusting the backlight brightness based solely on the collected front light intensity, if the user is in a point light source environment and the front of the terminal device is in its own shadow, the backlight will be too dim due to the low light intensity collected by the light sensor, failing to adapt to the current ambient brightness. Therefore, existing backlight adjustment methods suffer from the flaw of unreasonable backlight brightness adjustment.
[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the Invention
[0005] The main objective of this application is to provide a backlight adjustment method, a terminal device, and a computer-readable storage medium, with the aim of improving the rationality of backlight adjustment.
[0006] To achieve the above objectives, this application provides a backlight adjustment method applied to a terminal device. The terminal device includes a first light sensor and a second light sensor, and a screen is provided on one side of the terminal device. The backlight adjustment method includes the following steps:
[0007] Obtain the first light-sensing value detected by the first light sensor and the second light-sensing value detected by the second light sensor;
[0008] The target brightness value is determined based on the first light-sensing value and the second light-sensing value;
[0009] Adjust the screen brightness of the terminal device according to the target brightness value.
[0010] Optionally, the first light sensor is disposed on the front of the terminal device, and the second light sensor is disposed on the back of the terminal device.
[0011] Optionally, the step of determining the target brightness value based on the first light-sensing value and the second light-sensing value includes:
[0012] Compare the second light sensitivity value with the first light sensitivity value;
[0013] Determine the target light sensitivity value based on the comparison results;
[0014] The target brightness value is determined based on the target light sensitivity value.
[0015] Optionally, the step of determining the target light sensitivity value based on the comparison result includes:
[0016] When the first light-sensing value is greater than or equal to the second light-sensing value, the first light-sensing value is used as the target light-sensing value; and / or,
[0017] When the first light sensitivity value is less than the second light sensitivity value, the second light sensitivity value is taken as the target light sensitivity value.
[0018] Optionally, the step of determining the target light sensitivity value based on the comparison result includes:
[0019] Determine the initial light sensitivity value based on the comparison results;
[0020] Based on the second light-sensing value and the first light-sensing value, it is determined whether the light-sensing value compensation condition is met. Optionally, the light-sensing value compensation condition includes the second light-sensing value being greater than a preset light-sensing value and / or the first light-sensing value being greater than a preset light-sensing value.
[0021] When the light sensitivity compensation condition is met, light sensitivity compensation parameters are obtained, and the target light sensitivity value is determined based on the light sensitivity compensation parameters and the initial light sensitivity value.
[0022] Optionally, when the first light-sensing value is greater than or equal to the second light-sensing value, the first light-sensing value is used as the initial light-sensing value; and / or, when the first light-sensing value is less than the second light-sensing value, the second light-sensing value is used as the initial light-sensing value.
[0023] Optionally, after the step of determining whether the light sensitivity compensation condition is met based on the second light sensitivity value and the first light sensitivity value, the method further includes: if the light sensitivity compensation condition is not met, using the initial light sensitivity value as the target light sensitivity value.
[0024] Optionally, the step of determining the target light sensitivity value based on the comparison result includes:
[0025] Determine the initial light sensitivity value based on the comparison results;
[0026] When the light-sensing attenuation condition is met, the light-sensing attenuation parameters are obtained;
[0027] The target light sensitivity value is determined based on the initial light sensitivity value and / or the attenuation parameter.
[0028] Optionally, before the step of adjusting the screen brightness of the terminal device according to the backlight target, the method further includes:
[0029] When the brightness attenuation condition is met, the brightness attenuation parameter is obtained. Optionally, the brightness attenuation condition includes that both the first light-sensing value and the second light-sensing value are less than the attenuation threshold and / or the absolute value of the difference between the first light-sensing value and the second light-sensing value is greater than a preset value.
[0030] The step of adjusting the screen brightness of the terminal device according to the target brightness value includes:
[0031] The backlight brightness value is determined based on the brightness attenuation parameter and / or the target brightness value;
[0032] The screen brightness of the terminal device is adjusted according to the backlight brightness value.
[0033] Optionally, before the step of obtaining the brightness attenuation parameter when the brightness attenuation condition is met, the method further includes:
[0034] Calculate the absolute value of the difference between the first light-sensing value and the second light-sensing value to determine whether the brightness decay condition is met at the current moment.
[0035] Optionally, before the step of adjusting the screen brightness of the terminal device according to the backlight target, the method further includes:
[0036] When the brightness compensation conditions are met, obtain the brightness compensation parameters;
[0037] The step of adjusting the screen brightness of the terminal device according to the target brightness value includes:
[0038] The backlight brightness value is determined based on the brightness compensation parameters and the target brightness value;
[0039] The screen brightness of the terminal device is adjusted according to the backlight brightness value.
[0040] Optionally, the backlight adjustment method further includes:
[0041] Upon receiving a brightness adjustment command, the backlight brightness value corresponding to the brightness adjustment command is obtained;
[0042] Determine the target light sensitivity value based on the current first light sensitivity value and second light sensitivity value;
[0043] Update the target brightness value associated with the target light sensitivity value to the backlight brightness value corresponding to the brightness adjustment command.
[0044] Optionally, the step of determining the target brightness value based on the first light-sensing value and the second light-sensing value further includes:
[0045] When both the first light sensing value and the second light sensing value are less than the preset lock screen light sensing value, the target brightness value is set to 0.
[0046] Furthermore, to achieve the above objectives, this application also provides a terminal device, the terminal device comprising: a first light sensor and a second light sensor, both the first light sensor and the second light sensor being disposed on the terminal device, the terminal device further comprising a screen, and the backlight adjustment method comprising the following steps:
[0047] Obtain the first light-sensing value detected by the first light sensor and the second light-sensing value detected by the second light sensor;
[0048] The target brightness value is determined based on the two light sensitivity values;
[0049] Adjust the screen brightness of the terminal device according to the target brightness value.
[0050] Optionally, the first light sensor is disposed on the front of the terminal device, and the second light sensor is disposed on the back of the terminal device.
[0051] Optionally, the terminal device has a first screen and a second screen located on different sides, and the brightness of the first screen and / or the second screen of the terminal device is adjusted according to the target brightness value.
[0052] Optionally, the terminal device has a first screen and a second screen on the same side, and the brightness of the first screen and / or the second screen is adjusted according to the target brightness value.
[0053] Optionally, after the step of obtaining the light sensitivity value of the surface detected by the first light sensor and the light sensitivity value of the surface detected by the second light sensor, the method further includes:
[0054] Compare the first light sensitivity value and the second light sensitivity value;
[0055] Based on the comparison results, the light sensitivity value or screen brightness can be supplemented or reduced.
[0056] This application also provides a terminal device, characterized in that the terminal device includes: a memory, a processor, and a backlight adjustment program stored in the memory and executable on the processor, wherein when the backlight adjustment program is executed by the processor, it implements the steps of the backlight adjustment method as described above.
[0057] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a backlight adjustment program, which, when executed by a processor, implements the steps of the backlight adjustment method as described above.
[0058] This application proposes a backlight adjustment method, terminal device, and computer-readable storage medium. First, it acquires a first light-sensing value detected by a first light sensor and a second light-sensing value detected by a second light sensor. Then, it determines a target brightness value based on the first and second light-sensing values and adjusts the screen brightness of the terminal device according to the target brightness value. Because the first and second light-sensing values of the terminal device can be acquired and the screen brightness adjusted collaboratively based on them, the unreasonable backlight brightness adjustment phenomenon of existing backlight adjustment methods is avoided. This achieves the effect of improving the rationality of backlight adjustment. Attached Figure Description
[0059] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0060] Figure 1 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiments of this application;
[0061] Figure 2 This is a schematic flowchart of an embodiment of the backlight adjustment method of this application;
[0062] Figure 3 This is a front view of the terminal device involved in the embodiments of this application;
[0063] Figure 4 This is a flowchart illustrating another embodiment of this application;
[0064] Figure 5 This is a flowchart illustrating yet another embodiment of this application;
[0065] Figure 6 This is a flowchart illustrating another embodiment of the present application;
[0066] Figure 7 This is a schematic diagram of the hardware structure of a mobile terminal according to an embodiment of this application;
[0067] Figure 8 This is a diagram of a communication network system architecture according to an embodiment of this application.
[0068] The realization of the objectives, functional features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and textual descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation
[0069] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0070] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, components, features, and elements with the same names in different embodiments of this application may have the same meaning or different meanings, the specific meaning of which must be determined by its interpretation in that specific embodiment or further in conjunction with the context of that specific embodiment.
[0071] It should be understood that although the terms first, second, third, etc., may be used herein to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this document, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if," as used herein, can be interpreted as "when," "when," or "in response to determination." Furthermore, as used herein, the singular forms "a," "an," and "the" are intended to also include the plural forms unless the context indicates otherwise. It should be further understood that the terms "comprising," "including," indicate the presence of the stated feature, step, operation, element, component, item, kind, and / or group, but do not exclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" as used herein are to be interpreted as inclusive, or mean any one or any combination thereof. Therefore, "A, B, or C" or "A, B, and / or C" means "any one of the following: A; B; C; A and B; A and C; B and C; A, B, and C". Exceptions to this definition will only occur if the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way.
[0072] It should be understood that although the steps in the flowcharts of this application's embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.
[0073] It should be noted that step designations such as S10 and S20 are used in this document for the purpose of more clearly and concisely describing the corresponding content, and do not constitute a substantial limitation on the order. In specific implementation, those skilled in the art may execute S20 first and then S10, etc., but these should all be within the protection scope of this application.
[0074] In traditional electronic devices, a light sensor is typically placed on the front of the device to collect the light intensity in front of it and automatically adjust the backlight brightness accordingly. However, adjusting the backlight brightness based solely on the collected front light intensity is problematic if the user is in a point light source environment and the device is in its own shadow. In such cases, the light intensity collected by the sensor will be low, resulting in insufficient backlight brightness to adapt to the ambient light. Therefore, existing backlight adjustment methods suffer from an unreasonable backlight brightness adjustment mechanism.
[0075] This application provides a backlight adjustment method, a terminal device, and a computer-readable storage medium. The main solution of the backlight adjustment method embodiment is as follows:
[0076] Obtain the first light-sensing value detected by the first light sensor and the second light-sensing value detected by the second light sensor;
[0077] The target brightness value is determined based on the first light-sensing value and the second light-sensing value;
[0078] Adjust the screen brightness of the terminal device according to the target brightness value.
[0079] Because it can acquire the first and second light-sensing values of the terminal device and adjust the screen brightness accordingly, it avoids the unreasonable backlight brightness adjustment phenomenon of existing backlight adjustment methods. This achieves the effect of improving the rationality of backlight adjustment.
[0080] like Figure 1 As shown, Figure 1 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiments of this application.
[0081] The terminal in this application embodiment can be a smartphone and / or tablet computer or other terminal device.
[0082] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen, an input unit such as a keyboard, a mouse, or a touch device. Optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0083] Those skilled in the art will understand that Figure 1 The terminal structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0084] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a backlight adjustment program for the terminal device.
[0085] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and communicate with it; the processor 1001 can be used to call the backlight adjustment program of the terminal device stored in the memory 1005 and perform the following operations:
[0086] Obtain the first light-sensing value detected by the first light sensor and the second light-sensing value detected by the second light sensor;
[0087] The target brightness value is determined based on the first light-sensing value and the second light-sensing value;
[0088] Adjust the screen brightness of the terminal device according to the target brightness value.
[0089] Furthermore, the processor 1001 can call the backlight adjustment program of the terminal device stored in the memory 1005, and also perform the following operations:
[0090] Compare the second light sensitivity value with the first light sensitivity value;
[0091] Determine the target light sensitivity value based on the comparison results;
[0092] The target brightness value is determined based on the target light sensitivity value.
[0093] Furthermore, the processor 1001 can call the backlight adjustment program of the terminal device stored in the memory 1005, and also perform the following operations:
[0094] When the first light-sensing value is greater than or equal to the second light-sensing value, the first light-sensing value is used as the target light-sensing value; and / or,
[0095] When the first light sensitivity value is less than the second light sensitivity value, the second light sensitivity value is taken as the target light sensitivity value.
[0096] Furthermore, the processor 1001 can call the backlight adjustment program of the terminal device stored in the memory 1005, and also perform the following operations:
[0097] Determine the initial light sensitivity value based on the comparison results;
[0098] Based on the second light-sensing value and the first light-sensing value, it is determined whether the light-sensing value compensation condition is met. Optionally, the light-sensing value compensation condition includes the second light-sensing value being greater than a preset light-sensing value and / or the first light-sensing value being greater than a preset light-sensing value.
[0099] When the light sensitivity compensation condition is met, light sensitivity compensation parameters are obtained, and the target light sensitivity value is determined based on the light sensitivity compensation parameters and the initial light sensitivity value.
[0100] Furthermore, the processor 1001 can call the backlight adjustment program of the terminal device stored in the memory 1005, and also perform the following operations:
[0101] Determine the initial light sensitivity value based on the comparison results;
[0102] When the light-sensing attenuation condition is met, the light-sensing attenuation parameters are obtained;
[0103] The target light sensitivity value is determined based on the initial light sensitivity value and / or the attenuation parameter.
[0104] Furthermore, the processor 1001 can call the backlight adjustment program of the terminal device stored in the memory 1005, and also perform the following operations:
[0105] When the brightness attenuation condition is met, the brightness attenuation parameter is obtained. Optionally, the brightness attenuation condition includes that both the first light-sensing value and the second light-sensing value are less than the attenuation threshold and / or the absolute value of the difference between the first light-sensing value and the second light-sensing value is greater than a preset value.
[0106] The step of adjusting the screen brightness of the terminal device according to the target brightness value includes:
[0107] The backlight brightness value is determined based on the brightness attenuation parameter and / or the target brightness value;
[0108] The screen brightness of the terminal device is adjusted according to the backlight brightness value.
[0109] Furthermore, the processor 1001 can call the backlight adjustment program of the terminal device stored in the memory 1005, and also perform the following operations:
[0110] Calculate the absolute value of the difference between the first light-sensing value and the second light-sensing value to determine whether the brightness decay condition is met at the current moment.
[0111] Furthermore, the processor 1001 can call the backlight adjustment program of the terminal device stored in the memory 1005, and also perform the following operations:
[0112] When the brightness compensation conditions are met, obtain the brightness compensation parameters;
[0113] The step of adjusting the screen brightness of the terminal device according to the target brightness value includes:
[0114] The backlight brightness value is determined based on the brightness compensation parameters and the target brightness value;
[0115] The screen brightness of the terminal device is adjusted according to the backlight brightness value.
[0116] Furthermore, the processor 1001 can call the backlight adjustment program of the terminal device stored in the memory 1005, and also perform the following operations:
[0117] Upon receiving a brightness adjustment command, the backlight brightness value corresponding to the brightness adjustment command is obtained;
[0118] Determine the target light sensitivity value based on the current first light sensitivity value and second light sensitivity value;
[0119] Update the target brightness value associated with the target light sensitivity value to the backlight brightness value corresponding to the brightness adjustment command.
[0120] Furthermore, the processor 1001 can call the backlight adjustment program of the terminal device stored in the memory 1005, and also perform the following operations:
[0121] When both the first light sensing value and the second light sensing value are less than the preset lock screen light sensing value, the target brightness value is set to 0.
[0122] Reference Figure 2 In one embodiment of the backlight adjustment method of this application, the backlight adjustment method includes the following steps:
[0123] Step S10: Obtain the first light-sensing value detected by the first light sensor and the second light-sensing value detected by the second light sensor;
[0124] In this embodiment, the terminal device may be equipped with a display panel, and the side of the terminal device on which the display panel is located may be defined as the front of the terminal device. For example, as Figure 3 As shown, when the terminal device is a mobile phone, the side where the mobile phone's display screen is located can be defined as the front side, and a first light sensor 10 can be set on the front side of the mobile phone. It is understood that, in the terminal device, the side opposite the front side is defined as the back side of the terminal device.
[0125] A first light sensor is disposed on the front of the terminal device, and a second brightness detection sensor is disposed on the back of the terminal device. Optionally, the first light sensor is configured to detect a first light sensitivity value of the terminal device, and the second light sensor is configured to monitor a second light sensitivity value of the terminal device.
[0126] It is understandable that, based on the principle of rectilinear propagation of light, and given that common light sources in daily life are point light sources or point-like light sources, when the front of the terminal device is close to a light source, its back may be in its own shadow, or vice versa. This results in the brightness values collected by the first and second light sensors being different.
[0127] Step S20: Determine the target brightness value based on the first light-sensing value and the second light-sensing value;
[0128] In this embodiment, when the first light-sensing value and the second light-sensing value are collected, the first light-sensing value and the second light-sensing value can be compared.
[0129] When the first light-sensing value is greater than or equal to the second light-sensing value, the first light-sensing value is taken as the target light-sensing value; when the second light-sensing value is greater than the first light-sensing value, the second light-sensing value is taken as the target light-sensing value.
[0130] When a target light sensitivity value is determined, the corresponding target brightness value can be obtained. Optionally, the mapping relationship between the target light sensitivity value and the target brightness value can be stored in the storage medium of the terminal device. When the target light sensitivity value is determined, the associated target brightness value can be directly obtained based on the target light sensitivity value.
[0131] Step S30: Adjust the screen brightness of the terminal device according to the target brightness value.
[0132] In this embodiment, when a target brightness value is determined, the backlight brightness of the terminal device can be adjusted to the target brightness value, thereby adjusting the screen brightness of the terminal device.
[0133] In the technical solution disclosed in this embodiment, a first light-sensing value detected by the first light sensor and a second light-sensing value detected by the second light sensor are first acquired. Then, a target brightness value is determined based on the first light-sensing value and the second light-sensing value, and the screen brightness of the terminal device is adjusted according to the target brightness value. Since the first and second light-sensing values of the terminal device can be acquired, and the screen brightness is adjusted collaboratively based on the first and second light-sensing values, the unreasonable backlight brightness adjustment phenomenon of existing backlight adjustment methods is avoided. This achieves the effect of improving the rationality of backlight adjustment.
[0134] Reference Figure 4 Based on the above embodiments, in another embodiment, step S20 includes the following steps:
[0135] Step S21: Compare the second light-sensing value with the first light-sensing value;
[0136] Step S22: Determine the target light sensitivity value based on the comparison results;
[0137] Step S23: Determine the target brightness value based on the target light sensitivity value.
[0138] In this embodiment, when the second light-sensing value and the first light-sensing value are obtained, they can be compared. If the second light-sensing value is greater than the first light-sensing value, the second light-sensing value is used as the initial light-sensing value. If the first light-sensing value is greater than or equal to the second light-sensing value, the first light-sensing value is used as the initial light-sensing value.
[0139] Once the initial light sensitivity value is determined, it can be further determined whether the light sensitivity value compensation condition is met at the current moment. Optionally, the light sensitivity value compensation condition can be set to the second light sensitivity value being greater than a preset light sensitivity value and / or the first light sensitivity value being greater than a preset light sensitivity value. If the light sensitivity value compensation condition is not met at the current moment, the initial light sensitivity value is directly used as the target light sensitivity value. And the target brightness value is determined based on the target light sensitivity value.
[0140] When the light sensitivity compensation condition is met at the current moment, the light sensitivity compensation parameters are obtained, and the target light sensitivity value is determined based on the light sensitivity compensation parameters and the initial light sensitivity value.
[0141] Specifically, when the light sensitivity compensation condition is met at the current moment, a preset light sensitivity compensation parameter m can be obtained. After obtaining the light sensitivity compensation parameter m, it is determined whether both the first light sensitivity value and the second light sensitivity value are greater than a preset light sensitivity value. When both the first light sensitivity value and the second light sensitivity value are greater than the preset light sensitivity value, the target light sensitivity value can be calculated based on the light sensitivity compensation parameter m, the first light sensitivity value, the second light sensitivity value, and the initial light sensitivity value C. Optionally, the specific calculation formula is as follows:
[0142] P = C + Zm + Bm
[0143] Optionally, P is the target light sensitivity value, Z is the first light sensitivity value, and B is the second light sensitivity value.
[0144] When the first light sensitivity value is greater than the preset light sensitivity value, and the second light sensitivity value is less than or equal to the preset light sensitivity value, the target light sensitivity value can be calculated according to the following formula:
[0145] P = C + Zm
[0146] Optionally, P is the target light sensitivity value, Z is the first light sensitivity value, and C is the initial light sensitivity value.
[0147] When the second light sensitivity value is greater than the preset light sensitivity value, and the first light sensitivity value is less than or equal to the preset light sensitivity value, the target light sensitivity value can be calculated according to the following formula:
[0148] P = C + Bm
[0149] Optionally, P is the target light sensitivity value, B is the second light sensitivity value, and C is the initial light sensitivity value.
[0150] For example, the preset light sensitivity value can be set to 500; the light sensitivity compensation parameter m can be set to 5%.
[0151] When the first and second light sensing values are 30 and 200 respectively, the second light sensing value of 200 is first set as the initial light sensing value. Since both the first and second light sensing values are less than the preset light sensing value of 500, it is determined that the light sensing compensation condition is not met at the current moment. The initial light sensing value of 200 is then used as the target light sensing value. The target brightness value is then obtained based on the target light sensing value.
[0152] When the first and second light-sensing values are 200 and 600 respectively, the second light-sensing value of 600 is taken as the initial light value. Since the second light-sensing value of 600 is greater than the preset light-sensing value of 500, it can be determined that the light-sensing value compensation condition is met at the current moment. Therefore, the light-sensing compensation parameter m can be obtained. Thus, the target light-sensing value can be calculated using the following formula:
[0153] P = C + Bm
[0154] Substituting the specific values into the above formula, the target light sensitivity value is calculated to be 630.
[0155] When the first and second light-sensing values are 600 and 800 respectively, the second light-sensing value of 800 is used as the initial light value. Since both the first and second light-sensing values are greater than the preset light-sensing value, it can be determined that the light-sensing value compensation condition is met at the current moment. Therefore, the light-sensing compensation parameter m can be obtained, and the target light-sensing value can be calculated according to the following formula:
[0156] P = C + Zm + Bm
[0157] Substituting the specific values into the above formula, the target light sensitivity value is calculated to be 870.
[0158] It is understood that the technical solution described in this embodiment is applied in scenarios with high ambient brightness. For example, when using a mobile phone outdoors during the day, the ambient brightness is extremely high, causing both the first and second light sensitivity values to exceed a preset threshold. Therefore, the light sensitivity value used to determine the backlight brightness can be appropriately compensated. Since the target light sensitivity value is directly proportional to the backlight brightness, increasing the target light sensitivity value can increase the backlight brightness of the device.
[0159] In the technical solution disclosed in this embodiment, the second light-sensing value and the first light-sensing value are first compared, and a target light-sensing value is determined based on the comparison result. Finally, the target brightness value is determined based on the target light-sensing value. Since the initial light-sensing value can be compensated when the initial light-sensing value meets the compensation condition to obtain the target light-sensing value, the final light-sensing value of the terminal device can better adapt to the ambient brightness. This achieves the goal of improving the screen brightness adjustment effect.
[0160] Optionally, based on any of the above embodiments, as an optional implementation, step S22 further includes:
[0161] The initial light sensitivity value is determined based on the comparison results. Then, when the light sensitivity attenuation condition is met, the light sensitivity attenuation parameter is obtained, and the target light sensitivity value is determined based on the initial light sensitivity value and / or the attenuation parameter.
[0162] Specifically, when the second light-sensing value and the first light-sensing value are obtained, they can be compared. If the second light-sensing value is greater than the first light-sensing value, the second light-sensing value is used as the initial light-sensing value. If the first light-sensing value is greater than or equal to the second light-sensing value, the first light-sensing value is used as the initial light-sensing value.
[0163] Once the initial light sensitivity value is determined, it can be further determined whether the light sensitivity attenuation condition is met at the current moment. Optionally, the light sensitivity attenuation condition may include the fact that both the first light sensitivity value and the second light sensitivity value are less than the attenuation threshold, and / or the absolute value of the difference between the first light sensitivity value and the second light sensitivity value is greater than a preset value.
[0164] For example, the preset value can be set to 100 and the attenuation threshold can be set to 400. Then, when the absolute value of the difference between the first light-sensing value and the second light-sensing value is greater than 100, and / or both the first light-sensing value and the second light-sensing value are less than the attenuation threshold of 400, it is determined that the difference meets the brightness attenuation condition.
[0165] When the light sensitivity attenuation condition is not met, the initial light sensitivity value is used as the target light sensitivity value. When the light sensitivity attenuation condition is met, the light sensitivity attenuation parameter can be obtained. The target light sensitivity value P is then calculated based on the following formula:
[0166] P=Cr
[0167] Optionally, C is the initial light sensitivity value, and r is the attenuation parameter.
[0168] For example, the light sensitivity attenuation parameter can be set to 95%.
[0169] It is understood that in the technical solution disclosed in this embodiment, when the light sensitivity attenuation condition is met, the terminal device is in a relatively dim environment. The light sensitivity value detected may be high due to the point light source directly shining on the sensor, thus attenuating the light sensitivity value and consequently reducing the final determined screen brightness. This avoids damaging the user's eyesight due to excessive screen brightness, thereby achieving the effect of improving the rationality of screen brightness adjustment.
[0170] Reference Figure 5 Based on the above Figure 2 In another embodiment of the illustrated example, step S30 further includes the following:
[0171] Step S50: When the brightness attenuation condition is met, obtain the brightness attenuation parameters;
[0172] Step S30 includes:
[0173] Step S31: Determine the backlight brightness value based on the brightness attenuation parameter and / or the target brightness value, and adjust the screen brightness of the terminal device based on the backlight brightness value.
[0174] In this embodiment, when the brightness attenuation condition is met, the brightness attenuation parameter can be obtained. Optionally, the brightness attenuation condition includes at least one of the following:
[0175] Both the first light sensitivity value and the second light sensitivity value are less than the attenuation threshold;
[0176] The absolute value of the difference between the first light-sensing value and the second light-sensing value is greater than a preset value.
[0177] Optionally, before step S50, the following may also be included:
[0178] Step S40: Calculate the absolute value of the difference between the first light-sensing value and the second light-sensing value;
[0179] For example, the preset value can be set to 100 and the attenuation threshold can be set to 400. Then, when the absolute value of the difference between the first light-sensing value and the second light-sensing value is greater than 100, and / or both the first light-sensing value and the second light-sensing value are less than the attenuation threshold of 400, it is determined that the difference meets the brightness attenuation condition.
[0180] When the brightness attenuation condition is met, a preset attenuation parameter (e.g., 90%) can be obtained. Then, the target brightness value is calculated using the following formula:
[0181] L = Gs
[0182] Optionally, L is the backlight brightness value, G is the target brightness value, and s is the attenuation parameter.
[0183] Optionally, multiple attenuation parameters can be stored in the terminal device. When the brightness attenuation condition is met, the corresponding attenuation parameter is selected based on the absolute value of the difference, the first light-sensing value, and the second light-sensing value.
[0184] Specifically, a first attenuation parameter, a second attenuation parameter, and a third attenuation parameter can be set. The corresponding attenuation parameter is then determined based on the intervals in which the first and second light-sensing values lie and the relationship between the absolute value of the difference and a preset value. For example, when both the first and second light-sensing values are within a first light-sensing interval, and the absolute value of the difference is greater than a first preset value, the first attenuation parameter is obtained, and the target brightness value is calculated based on the first attenuation parameter; when both the first and second light-sensing values are within a second light-sensing interval, and the absolute value of the difference is greater than a second preset value, the second attenuation parameter is obtained, and the target brightness value is calculated based on the second attenuation parameter; when both the first and second light-sensing values are within a third light-sensing interval, and the absolute value of the difference is greater than a third difference, the third attenuation parameter is obtained, and the target brightness value is calculated based on the third attenuation parameter.
[0185] It should be noted that the numbers of the first, second, and third attenuation parameters can decrease sequentially. As they decrease sequentially, the corresponding differences and the values corresponding to the light-sensing ranges also decrease sequentially.
[0186] For example, when both the first and second light-sensing values are within the range of [400, 300), and the difference is greater than 100, the first attenuation parameter is obtained. Optionally, the first attenuation parameter can be set to 90%. When both the first and second light-sensing values are within the range of [300, 200), and the absolute value of the difference is greater than 90, the second attenuation parameter is obtained. Optionally, the second attenuation parameter can be set to 85%. When both the first and second light-sensing values are within the range of [200, 0), and the absolute value of the difference is greater than 80, the third attenuation parameter is obtained. Optionally, the third attenuation parameter can be set to 80%.
[0187] It is understood that when the brightness attenuation condition includes the fact that both the first light-sensing value and the second light-sensing value are less than the attenuation threshold, the corresponding attenuation parameter can be determined solely based on the front brightness and the back brightness.
[0188] Specifically, in the terminal device, only one attenuation parameter can be set. When the brightness attenuation condition is met, the unique attenuation parameter can be directly obtained, and the backlight brightness value can be calculated based on the attenuation parameter and the target brightness value.
[0189] Alternatively, multiple attenuation parameters can be set in the terminal device. When the brightness attenuation condition is met, the specific attenuation parameter can be determined based on the light sensitivity range corresponding to the first light sensitivity value and the second light sensitivity value.
[0190] In the technical solution disclosed in this embodiment, when the difference satisfies the brightness attenuation condition, the environment in which the terminal device is located is a relatively dark environment (for example, the usage environment corresponding to when both the first light sensitivity value and the second light sensitivity value are less than 400). Therefore, the screen brightness can be appropriately attenuated, which can avoid damaging the user's eyesight due to excessive screen brightness, thereby achieving the effect of improving the rationality of screen brightness adjustment.
[0191] Optionally, based on Figure 2 In the illustrated embodiment, as another implementation, the method further includes the following step before step S30:
[0192] When the brightness compensation conditions are met, obtain the brightness compensation parameters.
[0193] Specifically, the brightness compensation condition includes the second light sensitivity value being greater than a preset light sensitivity value and / or the first light sensitivity value being greater than a preset light sensitivity value. For example, the preset light sensitivity value can be set to 500.
[0194] When the brightness compensation conditions are met, step S30 may include: determining the backlight brightness value based on the brightness compensation parameters and the target brightness value, and then adjusting the screen brightness of the terminal device based on the backlight brightness value.
[0195] Specifically, when the brightness compensation parameter v is obtained, the backlight brightness value L can be calculated according to the following formula:
[0196] L = Gv
[0197] Optionally, G is the target brightness value. For example, the brightness compensation parameter v can be set to 105%.
[0198] In the technical solution disclosed in this embodiment, when the brightness compensation condition is met, it indicates that the ambient brightness of the usage environment of the terminal device is relatively high. To improve the observability of the terminal device screen, the target brightness can be compensated by brightness compensation parameters, thereby increasing the final output brightness of the terminal device. This allows the final light sensitivity value of the terminal device to better adapt to the ambient brightness, achieving the goal of improving the screen brightness adjustment effect.
[0199] Reference Figure 6 Based on any of the above embodiments, in another embodiment, the backlight adjustment method further includes the following steps:
[0200] Step S60: Upon receiving a brightness adjustment command, obtain the target brightness value corresponding to the brightness adjustment command;
[0201] Step S70: Determine the target light sensitivity value based on the current first light sensitivity value and the second light sensitivity value;
[0202] Step S80: Update the target brightness value associated with the target light sensitivity value to the backlight brightness value corresponding to the brightness adjustment command.
[0203] In this embodiment, when a brightness adjustment command is received from the user to manually adjust the brightness, the backlight brightness value corresponding to the brightness adjustment command can be obtained first, and the backlight brightness of the terminal device can be adjusted to the backlight brightness value.
[0204] Furthermore, the first light-sensing value and the second light-sensing value can be acquired, and the target light-sensing value corresponding to the current moment can be determined based on the first light-sensing value and the second light-sensing value. Then, the target brightness value corresponding to the target light-sensing value at the current moment is updated to the backlight brightness value included in the brightness adjustment command. This allows the backlight brightness to be automatically set to the brightness currently manually adjusted by the user when the ambient brightness is the same next time.
[0205] Optionally, the system can first save the number of times the user manually adjusts the brightness in the environment corresponding to the target light sensitivity value, and record the backlight brightness value corresponding to each manual adjustment. When the number of manual adjustments exceeds a preset number, the system obtains the backlight brightness value corresponding to each manual adjustment and calculates the average or weighted average of the backlight brightness values corresponding to each manual adjustment. Finally, the backlight brightness value corresponding to the target light sensitivity value at the current moment is updated to the average or weighted average of the brightness values.
[0206] In the solution disclosed in this embodiment, since the associated data of the target light sensing value corresponding to the current ambient brightness can be adjusted according to the backlight brightness value corresponding to the user's manual adjustment, the effect of updating the correspondence between light sensing value and brightness by saving the user's usage habits is achieved.
[0207] Based on any of the above embodiments, in one implementation, step S20 further includes:
[0208] When both the first and second light sensing values are less than a preset lock screen light sensing value, the backlight brightness is set to 0. Optionally, the preset lock screen light sensing value can be set to 10. When both the first and second light sensing values are less than the preset lock screen light sensing value, it can be determined that the device is currently in a stored state, and the user is not using the terminal device at this time. For example, when the terminal device is a mobile phone, this is a scenario where the phone is placed in a pocket. Therefore, the backlight brightness can be adjusted to 0.
[0209] Optionally, when both the first and second light-sensing values are less than a preset lock screen light-sensing value, the terminal device can be locked. This prevents accidental touches on the terminal device.
[0210] In the technical solution disclosed in this embodiment, when both the first light-sensing value and the second light-sensing value are less than a preset lock screen light-sensing value, the target brightness value is set to 0. Since the usage scenario corresponding to the terminal device at the current moment can be determined based on the first light-sensing value and the second light-sensing value, and the backlight of the terminal device can be turned off in the storage scenario, the effect of saving the power consumption of the terminal device is achieved.
[0211] Furthermore, this application also proposes a terminal device, which, as one embodiment, includes: a first light sensor and a second light sensor, both of which are disposed on the terminal device. The terminal device also includes a screen, and the backlight adjustment method includes the following steps:
[0212] Obtain the first light-sensing value detected by the first light sensor and the second light-sensing value detected by the second light sensor;
[0213] The target brightness value is determined based on the two light sensitivity values;
[0214] Adjust the screen brightness of the terminal device according to the target brightness value.
[0215] In this embodiment, the terminal device may be a mobile phone, tablet computer, or the like. The terminal device is equipped with a first light sensor and a second light sensor, which are used to detect the light sensitivity of the device to its surrounding environment. The terminal device also includes a screen, which is a screen with adjustable backlight brightness.
[0216] After acquiring the two light values collected by the first and second light sensors, the target brightness can be determined based on these two light values. The screen brightness is then adjusted according to the target brightness value.
[0217] Specifically, when the first light-sensing value and the second light-sensing value are collected, the first light-sensing value and the second light-sensing value can be compared. When the first light-sensing value is greater than the second light-sensing value, the target brightness value is obtained based on the first light-sensing value; otherwise, the target brightness value is obtained based on the second light-sensing value.
[0218] Then, the screen brightness is adjusted according to the target brightness value.
[0219] The location can be selected, and the light sensitivity value or screen brightness can be supplemented or attenuated based on the comparison results. Specifically, when the difference between the first light value and the second light sensitivity value is greater than a first value (e.g., 80), the first light sensitivity value is used as the initial light sensitivity value, and the initial light sensitivity value is attenuated. The target measurement value is then obtained based on the attenuated initial light sensitivity value. Alternatively, when the difference between the first light sensitivity value and the second light sensitivity value is less than a second value, the first light sensitivity value is used as the initial light sensitivity value, and the light sensitivity value is compensated. The target brightness value is then obtained based on the compensated light sensitivity value.
[0220] Optionally, after obtaining the target brightness value, the target brightness value can be compensated or attenuated according to the range in which the difference between the first light-sensing value and the second light-sensing value lies.
[0221] In the technical solution disclosed in this embodiment, the terminal device can obtain two light values through a first light sensor and a second light sensor, and adjust the screen brightness according to the two light values, thereby achieving the effect of improving the rationality of screen brightness adjustment.
[0222] Optionally, the terminal may include a first screen and a second screen, wherein the first screen is disposed on the front of the terminal device and the second screen is disposed on the back of the terminal device. The first photosensitive sensor is disposed on the same side of the terminal device as the first screen, and the second sensor is disposed on the same side of the terminal device as the second screen.
[0223] The target brightness value of the first screen is determined based on the light value collected by the first light sensor, and the target brightness value of the second screen is determined based on the light value collected by the second light sensor. The brightness of the first screen and the second screen are then adjusted according to their respective target brightness values.
[0224] It is understood that there is a one-to-one correspondence between the light-sensing value and the target brightness value, and the correspondence is stored in a storage medium that can be read by the terminal device. This allows the terminal device to determine the target brightness value corresponding to the light-sensing value when it acquires the light-sensing value.
[0225] Optionally, a first screen and a second screen may be provided on the same side of the terminal device, and the terminal may also be provided with a detachably connected cover. When the cover is closed, the terminal displays through the second screen; when the cover is open, the terminal displays through the first screen. The brightness of the first screen and / or the second screen of the terminal device can be adjusted according to the target brightness value.
[0226] Furthermore, this application also proposes a computer-readable storage medium storing a backlight adjustment program for a terminal device. When the backlight adjustment program for the terminal device is executed by a processor, it implements the steps of the backlight adjustment method described in the above embodiments.
[0227] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0228] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a smartphone, tablet computer, etc.) to execute the methods described in the various embodiments of this application.
[0229] This application also provides an apparatus comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method described above.
[0230] This application also provides a computer storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described above.
[0231] This application also provides a computer program product, which includes computer program code that, when run on a computer, causes the computer to perform the methods described in the various possible implementations above.
[0232] This application also provides a chip including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device equipped with the chip performs the methods described in the various possible embodiments described above.
[0233] In the description herein, the use of suffixes such as “module,” “part,” or “unit” to denote elements is solely for the purpose of illustration and has no specific meaning in itself. Therefore, “module,” “part,” or “unit” may be used interchangeably.
[0234] Terminal devices can be implemented in various forms. For example, the terminal devices described in this application may include terminal devices such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, and fixed terminals such as digital TVs and desktop computers.
[0235] This description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from components specifically designed for mobile purposes, the construction according to the embodiments of this application can also be applied to fixed-type terminals.
[0236] Please see Figure 7 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of this application. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 7 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0237] The following is combined Figure 7 A detailed introduction to each component of the mobile terminal:
[0238] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).
[0239] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 7 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0240] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0241] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0242] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0243] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0244] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.
[0245] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 7 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0246] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0247] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0248] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0249] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0250] although Figure 7 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0251] To facilitate understanding of the embodiments of this application, the communication network system on which the mobile terminal of this application is based is described below.
[0252] Please see Figure 8 , Figure 8 This application provides a communication network system architecture diagram. The communication network system is an LTE system based on the universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and the operator's IP services 204, which are connected in sequence.
[0253] Specifically, UE201 can be the aforementioned terminal 100, which will not be elaborated here.
[0254] E-UTRAN202 includes eNodeB2021 and other eNodeB2022s. Among them, eNodeB2021 can connect to other eNodeB2022s via backhaul (e.g., X2 interface), and eNodeB2021 connects to EPC203. eNodeB2021 can provide UE201 with access to EPC203.
[0255] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gateway) 2034, PGW (Packet Data Network Gateway) 2035, and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is the control node that handles signaling between UE201 and EPC203, providing bearer and connection management. HSS2032 provides registers to manage functions such as the Home Location Register (not shown in the diagram) and stores user-specific information such as service characteristics and data rates. All user data can be sent through SGW2034. PGW2035 can provide UE 201 IP address allocation and other functions. PCRF2036 is the policy and charging control decision point for service data flow and IP bearer resources. It selects and provides available policy and charging control decisions for the policy and charging enforcement function unit (not shown in the figure).
[0256] IP services 204 may include the Internet, intranet, IMS (IP Multimedia Subsystem), or other IP services.
[0257] Although the above description uses the LTE system as an example, those skilled in the art should understand that this application is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.
[0258] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A backlight adjustment method, applied to a terminal device, characterized in that, The terminal device includes a first light sensor and a second light sensor, and a screen is provided on one side of the terminal device. The backlight adjustment method includes the following steps: Obtain the first light-sensing value detected by the first light sensor and the second light-sensing value detected by the second light sensor; Compare the second light sensitivity value with the first light sensitivity value; Determine the initial light sensitivity value based on the comparison results; Determine whether the light sensitivity compensation condition is met based on the second light sensitivity value and the first light sensitivity value, wherein the light sensitivity compensation condition includes the second light sensitivity value being greater than a preset light sensitivity value and / or the first light sensitivity value being greater than a preset light sensitivity value; When the light sensitivity compensation condition is met, the target light sensitivity value is obtained in at least one of the following ways: obtaining light sensitivity compensation parameters, and when both the first light sensitivity value and the second light sensitivity value are greater than a preset light sensitivity value, calculating the target light sensitivity value based on the light sensitivity compensation parameters, the first light sensitivity value, the second light sensitivity value, and the initial light sensitivity value; When the first light-sensing value is greater than the preset light-sensing value and the second light-sensing value is less than or equal to the preset light-sensing value, the target light-sensing value is calculated based on the first light-sensing value, the initial light-sensing value, and the light-sensing compensation parameter. When the second light sensing value is greater than the preset light sensing value, and the first light sensing value is less than or equal to the preset light sensing value, the target light sensing value is calculated based on the second light sensing value, the initial light sensing value, and the light sensing compensation parameter. When the light sensitivity attenuation condition is met, the light sensitivity attenuation parameter is obtained, and the target light sensitivity value is determined based on the initial light sensitivity value and / or the light sensitivity attenuation parameter. Determine the target brightness value based on the target light sensitivity value; Adjust the screen brightness of the terminal device according to the target brightness value.
2. The backlight adjustment method as described in claim 1, characterized in that, The step of determining the initial light sensitivity value based on the comparison results includes: When the first light-sensing value is greater than or equal to the second light-sensing value, the first light-sensing value is used as the initial light-sensing value; and / or, When the first light sensitivity value is less than the second light sensitivity value, the second light sensitivity value is used as the initial light sensitivity value.
3. The backlight adjustment method as described in claim 1, characterized in that, When the first light-sensing value is greater than or equal to the second light-sensing value, the first light-sensing value is used as the initial light-sensing value; And / or, when the first light sensitivity value is less than the second light sensitivity value, the second light sensitivity value is used as the initial light sensitivity value.
4. The backlight adjustment method according to any one of claims 1 to 3, characterized in that, Before the step of adjusting the screen brightness of the terminal device according to the target brightness value, the method further includes: When the brightness decay condition is met, obtain the brightness decay parameters; The step of adjusting the screen brightness of the terminal device according to the target brightness value includes: The backlight brightness value is determined based on the brightness attenuation parameter and / or the target brightness value; The screen brightness of the terminal device is adjusted according to the backlight brightness value.
5. The backlight adjustment method as described in claim 4, characterized in that, Before the step of obtaining the brightness attenuation parameter when the brightness attenuation condition is met, the method further includes: Calculate the absolute value of the difference between the first light-sensing value and the second light-sensing value to determine whether the brightness decay condition is met at the current moment.
6. The backlight adjustment method according to any one of claims 1 to 3, characterized in that, Before the step of adjusting the screen brightness of the terminal device according to the target brightness value, the method further includes: When the brightness compensation conditions are met, obtain the brightness compensation parameters; The step of adjusting the screen brightness of the terminal device according to the target brightness value includes: The backlight brightness value is determined based on the brightness compensation parameters and the target brightness value; The screen brightness of the terminal device is adjusted according to the backlight brightness value.
7. The backlight adjustment method as described in claim 1, characterized in that, The backlight adjustment method further includes: Upon receiving a brightness adjustment command, the backlight brightness value corresponding to the brightness adjustment command is obtained; Determine the target light sensitivity value based on the current first light sensitivity value and second light sensitivity value; Update the target brightness value associated with the target light sensitivity value to the backlight brightness value corresponding to the brightness adjustment command.
8. The backlight adjustment method according to any one of claims 1 to 3, characterized in that, The step of determining the target brightness value based on the first light sensitivity value and the second light sensitivity value further includes: When both the first light sensing value and the second light sensing value are less than the preset lock screen light sensing value, the target brightness value is set to 0.
9. A terminal device, characterized in that, The terminal device includes: a memory, a processor, and a backlight adjustment program stored in the memory and executable on the processor, wherein the backlight adjustment program, when executed by the processor, implements the steps of the backlight adjustment method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a backlight adjustment program, which, when executed by a processor, implements the steps of the backlight adjustment method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Method for automatically locking mobile phone keypad or touch screen by utilizing photosensitive device
CN101937307A
Screen backlight brightness adjusting implementation method based on mobile terminal and mobile terminal
CN103327148A
Brightness adjusting method and electronic device
CN104732955A