Backlight adjustment method, electronic equipment, chip system and readable storage medium
By combining PWM and DC dimming modes, the backlight brightness is adjusted according to the ambient light intensity and the display brightness, solving the problems of high power consumption and leakage in electronic devices and achieving low-power stable power supply.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-11-12
- Publication Date
- 2026-05-19
AI Technical Summary
In current power supply strategies for displays, electronic devices consume a lot of power and are prone to leakage due to changes in ambient temperature.
By employing a combination of pulse width modulation (PWM) and DC dimming in electronic devices, the backlight brightness of the display screen is adjusted according to the ambient light intensity and the display screen brightness value, selecting the power supply method with the lowest power consumption and avoiding leakage caused by excessively high or low ambient temperatures.
It effectively reduces the power consumption of electronic devices, avoids leakage of current in the display screen during power supply, and improves the user experience.
Smart Images

Figure CN122067489A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, specifically to a backlight adjustment method, electronic device, chip system, and readable storage medium. Background Technology
[0002] With the development of display technology and the widespread application of display devices, organic electroluminescent display (OLED) devices are widely used in the displays of electronic devices such as smartphones, laptops, and tablets due to their low power consumption, high response speed, and flexible performance.
[0003] Currently, the display driver integrated circuit (DDIC) chip of the display can control the conduction state of the gate of the thin-film transistor (TFT) in the OLED, thereby controlling the current through the OLED to power the display and enable each pixel in the display to reach the required brightness; however, in the current strategy of powering the display, the power consumption of the electronic device is relatively large. Summary of the Invention
[0004] This application provides a backlight adjustment method, an electronic device, a chip system, and a readable storage medium, which can ensure that the electronic device is in a low-power state as much as possible.
[0005] In a first aspect, this application provides a backlight adjustment method applied to an electronic device, the electronic device including a display screen, the method comprising:
[0006] While the electronic device is in a screen-on state, a first backlight brightness value is acquired. This first backlight brightness value is the backlight brightness value of the i-th frame displayed by the electronic device, where the i-th frame refers to the next frame corresponding to the currently displayed frame. If the first backlight brightness value is greater than or equal to a first threshold, the backlight brightness value of the display screen is adjusted to the first backlight brightness value through a first dimming mode. The first dimming mode is a pulse width modulation (PWM) mode, which includes providing analog voltage and common interface voltage (AVDD+VCI) to the display screen through the display driver integrated circuit to enable the backlight of the display screen. The brightness value is adjusted to the first backlight brightness value; if the first backlight brightness value is less than the first threshold, the backlight brightness value of the display screen is adjusted to the first backlight brightness value through the second dimming mode. The second dimming mode is a DC dimming mode. The second dimming mode includes providing analog voltage and digital input / output voltage (AVDD+VDDIO) to the display screen through the display driver integrated circuit of the display screen, so that the backlight brightness value of the display screen is adjusted to the first backlight brightness value. When the backlight brightness value is adjusted using the second dimming mode, the power consumption of the electronic device is less than the power consumption of the electronic device when the backlight brightness value is adjusted using the first dimming mode.
[0007] In the above method, considering that the power consumption of the electronic device is low when the electronic device obtains the first backlight brightness value, the magnitude of the first backlight brightness value can be determined. If the first backlight brightness value is less than the first threshold, it usually indicates that the current user environment is likely indoors with a low ambient temperature. The electronic device's display screen will not leak current due to excessively high ambient temperature. In this case, DC mode can be used to power the display screen through the AVDD+VDDIO boost method. Thus, using DC mode to power the display screen through the AVDD+VDDIO boost method can reduce the power consumption of the electronic device.
[0008] If the first backlight brightness value is greater than or equal to the first threshold, it usually indicates that the current user's environment is likely outdoors, where the ambient temperature is high. If the PWM mode is used to power the display through the AVDD+VCI boost method, the electronic device will not leak current due to excessively high ambient temperature. In this way, the electronic device can use the PWM mode to power the display through the AVDD+VCI boost method, which can avoid the electronic device leaking current during the power supply process due to excessively high ambient temperature, thus ensuring the user's experience.
[0009] In conjunction with the first aspect, in certain implementations of the first aspect, if the first backlight brightness value is less than the first threshold, the backlight brightness value of the display screen is adjusted to the first backlight brightness value through a second dimming mode, including:
[0010] If the first backlight brightness value is greater than or equal to the second threshold, the dimming mode of the electronic device is kept in the second dimming mode. Through the second dimming mode, the backlight brightness value of the display screen is adjusted to the first backlight brightness value, and the second backlight brightness value is monitored. The second backlight brightness value is the backlight brightness value of the image displayed after the i-th frame. The second threshold is less than the first threshold. If the second backlight brightness value is greater than or equal to the first threshold, the backlight brightness value of the display screen is adjusted to the second backlight brightness value through the first dimming mode.
[0011] In the above method, if the first backlight brightness value is greater than or equal to the second threshold, the dimming mode of the electronic device is kept in DC mode, which can reduce the power consumption of the electronic device; until the second backlight brightness value detected later is greater than or equal to the first threshold, it is possible that the current user is in an outdoor environment with a high ambient temperature, so the dimming mode can be switched to PWM mode. In this way, the electronic device can use PWM mode to power the display screen through the boost method of AVDD+VCI, which can avoid leakage of the display screen during power supply due to the high ambient temperature, and can ensure the user experience.
[0012] In conjunction with the first aspect, in certain implementations of the first aspect, monitoring the second backlight brightness value includes:
[0013] According to the first cycle, the second backlight brightness value is periodically monitored at the first moment. The duration of the first cycle is the first duration, which is the duration for the display to display one frame. The first moment is the moment in the display that is displaying one frame. Furthermore, the first moment is determined based on the performance related to the speed at which the display adjusts the backlight brightness value.
[0014] In the above method, if the first backlight brightness value is greater than or equal to the second threshold, it means that the difference between the first backlight brightness value and the first threshold is small. The electronic device can start monitoring the backlight brightness value every first time interval, so as to make it easy to determine in time whether the second backlight brightness value is greater than or equal to the first threshold. When the second backlight brightness value is detected to be greater than or equal to the first threshold, the PWM dimming mode can be adopted.
[0015] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:
[0016] If the first backlight brightness value is less than the second threshold, the electronic device maintains the dimming mode of the second dimming mode, adjusts the backlight brightness value of the display screen to the first backlight brightness value through the second dimming mode, and periodically monitors the second backlight brightness value according to the second cycle, the duration of the second cycle being the second duration, which is greater than the first duration; if the second backlight brightness value is less than the first threshold, the electronic device maintains the dimming mode of the second dimming mode, and adjusts the backlight brightness value of the display screen to the second backlight brightness value through the second dimming mode.
[0017] In the above method, if the first backlight brightness value is less than the second threshold, it indicates a large difference between the first backlight brightness value and the first threshold. The electronic device can monitor the backlight brightness value every second time interval, maintain the dimming mode of the electronic device in DC mode, and use DC mode to power the display screen via AVDD+VDDIO boost method, adjusting the backlight brightness value of the display screen to the first backlight brightness value. Since the second time interval is longer than the first time interval, monitoring the backlight brightness value at a longer time interval can reduce the power consumption of the electronic device. Furthermore, using DC mode to power the display screen via AVDD+VDDIO boost method can further reduce the power consumption of the electronic device. If the second backlight brightness value is less than the first threshold, it indicates that the conditions for switching the dimming mode to PWM dimming mode are not yet met. The electronic device can continue to maintain the dimming mode of the electronic device in DC mode and continue to use DC mode to power the display screen via AVDD+VDDIO boost method. In this way, using DC mode to power the display screen via AVDD+VDDIO boost method can reduce the power consumption of the electronic device.
[0018] In conjunction with the first aspect, in some implementations of the first aspect, if the first backlight brightness value is greater than or equal to the first threshold, the backlight brightness value of the display screen is adjusted to the first backlight brightness value through the first dimming mode, including: if the first backlight brightness value is less than the third threshold, keeping the dimming mode of the electronic device in the first dimming mode, adjusting the backlight brightness value of the display screen to the first backlight brightness value through the first dimming mode, and monitoring the second backlight brightness value, the second backlight brightness value being the backlight brightness value of the image displayed after the i-th frame, the third threshold being greater than the first threshold; if the second backlight brightness value is less than the first threshold, adjusting the backlight brightness value of the display screen to the second backlight brightness value through the second dimming mode.
[0019] In the above method, if the first backlight brightness value is less than the third threshold, the dimming mode of the electronic device is kept in PWM mode, which can prevent leakage of the display screen during power supply due to excessive ambient temperature; until the second backlight brightness value is less than the first threshold, the electronic device can use DC mode to supply power to the display screen, thereby reducing the power consumption of the electronic device.
[0020] Similar to the above scheme, monitoring the second backlight brightness value includes: periodically monitoring the second backlight brightness value at a first moment according to a first cycle, the duration of the first cycle being a first duration, the first duration being the duration of displaying one frame on the screen, the first moment being the moment in displaying one frame on the screen, and the first moment being determined based on the performance related to the speed at which the display adjusts the backlight brightness value.
[0021] In this method, if the first backlight brightness value is less than the third threshold, it means that the difference between the first backlight brightness value and the first threshold is small. The electronic device can start monitoring the backlight brightness value every first time interval, so as to be able to determine in time whether the second backlight brightness value is less than the first threshold. When the second backlight brightness value is less than the first threshold, the PWM dimming mode can continue to be used.
[0022] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:
[0023] If the first backlight brightness value is greater than or equal to the third threshold, the dimming mode of the electronic device is kept in the first dimming mode. The backlight brightness value of the display screen is adjusted to the first backlight brightness value through the first dimming mode, and the second backlight brightness value is monitored periodically according to the second cycle (that is, the second backlight brightness value is monitored every second time interval). If the second backlight brightness value is greater than or equal to the first threshold, the dimming mode of the electronic device is kept in the first dimming mode, and the backlight brightness value of the display screen is adjusted to the second backlight brightness value through the first dimming mode.
[0024] In the above method, if the first backlight brightness value is greater than or equal to the third threshold, it indicates that the difference between the first backlight brightness value and the first threshold is large. The electronic device can monitor the backlight brightness value every second time interval, maintain the dimming mode of the electronic device in PWM mode, and use PWM mode to power the display screen through AVDD+VCI boost method, adjusting the backlight brightness value of the display screen to the first backlight brightness value. Since the second time interval is longer than the first time interval, monitoring the backlight brightness value at a longer time interval can reduce the power consumption of the electronic device. Furthermore, using PWM mode to power the display screen through AVDD+VCI boost method can avoid the occurrence of display screen leakage, ensuring the stability of the display screen power supply and guaranteeing the user experience. If the second backlight brightness value is greater than or equal to the first threshold, it indicates that the conditions for switching the dimming mode to DC dimming mode are not yet met. The electronic device can continue to maintain the dimming mode of the electronic device in PWM mode and continue to use PWM mode to power the display screen through AVDD+VCI boost method. In this way, using PWM mode to power the display screen through AVDD+VCI boost method can avoid the display screen leakage during power supply.
[0025] In conjunction with the first aspect, in certain implementations of the first aspect, obtaining the first backlight brightness value includes:
[0026] Obtain the first ambient light intensity value of the environment in which the electronic device is located; determine the first backlight brightness value based on the first ambient light intensity value.
[0027] In the above method, the electronic device can determine the first backlight brightness value by using the first ambient light intensity value of the environment in which the electronic device is located, thereby determining the magnitude of the first backlight brightness value.
[0028] In one implementation, the electronic device stores a correspondence between multiple ambient light intensity values and multiple backlight brightness values. After obtaining a first ambient light intensity value, the electronic device can determine the backlight brightness value corresponding to the first ambient light intensity value based on the aforementioned correspondence, and then define the backlight brightness value corresponding to the first ambient light intensity value as the first backlight brightness value. In another implementation, the electronic device can generate a backlight brightness value corresponding to the first ambient light intensity value, and then define the backlight brightness value corresponding to the first ambient light intensity value as the first backlight brightness value.
[0029] Method 2: The electronic device can generate a backlight brightness value corresponding to the first ambient light intensity value based on the first ambient light intensity value, and determine the backlight brightness value corresponding to the first ambient light intensity value as the first backlight brightness value.
[0030] In conjunction with the first aspect, in certain implementations of the first aspect, obtaining the first backlight brightness value includes:
[0031] Display a first interface, which can be any interface of the electronic device; during the display of the first interface, obtain the screen brightness information of the second interface to be displayed on the electronic device, which is the interface of the first application in the electronic device, which can be any one of the multiple applications in the electronic device, and the screen brightness information is used to indicate the average brightness of the screen; determine the backlight brightness value corresponding to the screen brightness information as the first backlight brightness value.
[0032] In the above method, the electronic device can determine the first backlight brightness value based on the brightness information of the screen, thereby judging the magnitude of the first backlight brightness value.
[0033] In conjunction with the first aspect, in certain implementations of the first aspect, the backlight brightness value corresponding to the screen brightness information is determined as the first backlight brightness value, including:
[0034] Obtain the second ambient light intensity value of the environment in which the electronic device is located; determine the first backlight brightness value based on the second ambient light intensity value and the backlight brightness value corresponding to the screen brightness information.
[0035] In the above method, the electronic device can combine the brightness information of the screen and the ambient light intensity value to determine the first backlight brightness value, thereby judging the magnitude of the first backlight brightness value.
[0036] In conjunction with the first aspect, in certain implementations of the first aspect, obtaining the first backlight brightness value includes:
[0037] The third interface is displayed, which includes a brightness adjustment control for adjusting the brightness of the display screen. In response to a first operation on the brightness adjustment control, a first backlight brightness value is obtained. The first operation is used to adjust the backlight brightness value of the display screen from the original backlight brightness value to the first backlight brightness value.
[0038] The brightness adjustment control can be a brightness bar, and the first operation can be a drag operation or a slide operation.
[0039] In the above method, the electronic device can determine the first backlight brightness value by the user's operation on the brightness adjustment control, thereby determining the magnitude of the first backlight brightness value.
[0040] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:
[0041] When an electronic device switches from a screen-on state to a screen-off state, it stores the target backlight brightness value and target dimming mode of the electronic device at the current moment. The target dimming mode is either the first dimming mode or the second dimming mode. When the electronic device switches from a screen-off state to a screen-on state, it adjusts the backlight brightness value of the display screen to the target backlight brightness value through the target dimming mode.
[0042] In the above method, by storing the backlight brightness value and dimming mode when the electronic device switches from the screen-on state to the screen-off state, the electronic device can more quickly restore the original backlight brightness value and dimming mode when switching from the screen-off state to the screen-on state. This ensures that the brightness of the display screen remains consistent before and after the screen is turned on again, thus guaranteeing the user's visual experience.
[0043] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes:
[0044] Each time the electronic device is powered on, the backlight brightness of the display screen is adjusted to a second backlight brightness value through a first dimming mode. The second backlight brightness value is a backlight brightness value pre-stored in the electronic device.
[0045] In the above method, it should be understood that each time the electronic device is powered on (usually when the boot animation is displayed), the ambient light sensor has not yet started working, and various applications have not yet started. Therefore, it is impossible to determine the backlight brightness value based on factors such as ambient light intensity and the brightness information of the application interface.
[0046] Based on this, electronic devices can pre-store the backlight brightness value for power-on (second backlight brightness value), so that each time the electronic device is powered on, the backlight brightness value of the display screen can be adjusted to the power-on backlight brightness value. In this way, the display screen can be lit normally and at a stable brightness when the electronic device is powered on, thus ensuring the user's visual experience.
[0047] Furthermore, considering the uncertainty of the environment in which electronic devices are powered on each time, which may be in a high-temperature environment or a low-temperature environment, adjusting the backlight brightness of the display screen through PWM mode each time the electronic device is powered on can prevent leakage of current in the display screen during power supply due to excessively high ambient temperature, thereby ensuring the stable power-on process of the electronic device.
[0048] In conjunction with the first aspect, in certain implementations of the first aspect, the electronic device includes a first module and a backlight driver, the first module including any application program in the electronic device; the method includes:
[0049] During the process of the electronic device being in a screen-on state, the first module acquires a first backlight brightness value. The first backlight brightness value is the backlight brightness value of the i-th frame displayed by the electronic device, where the i-th frame refers to the next frame corresponding to the currently displayed frame. If the backlight driver determines that the first backlight brightness value is greater than or equal to a first threshold, it adjusts the backlight brightness value of the display screen to the first backlight brightness value through a first dimming mode. The first dimming mode is a pulse width modulation mode, which includes providing analog voltage and common interface voltage to the display screen through the display driver integrated circuit to adjust the backlight brightness value of the display screen to the first backlight brightness value. If the backlight driver determines that the first backlight brightness value is less than the first threshold, it adjusts the backlight brightness value of the display screen to the first backlight brightness value through a second dimming mode. The second dimming mode is a DC dimming mode, which includes providing analog voltage and digital input / output voltage to the display screen through the display driver integrated circuit to adjust the backlight brightness value of the display screen to the first backlight brightness value. The power consumption of the electronic device when adjusting the backlight brightness value using the second dimming mode is less than the power consumption of the electronic device when adjusting the backlight brightness value using the first dimming mode.
[0050] In conjunction with the first aspect, in some implementations of the first aspect, if the backlight driver determines that the first backlight brightness value is greater than or equal to the second threshold, it maintains the dimming mode of the electronic device as the second dimming mode, adjusts the backlight brightness value of the display screen to the first backlight brightness value through the second dimming mode, and monitors the second backlight brightness value, wherein the second backlight brightness value is the backlight brightness value of the image displayed after the i-th frame, and the second threshold is less than the first threshold; if the backlight driver determines that the second backlight brightness value is greater than or equal to the first threshold, it adjusts the backlight brightness value of the display screen to the second backlight brightness value through the first dimming mode.
[0051] In conjunction with the first aspect, in some implementations of the first aspect, the backlight driver periodically monitors the second backlight brightness value at a first moment according to a first cycle, the duration of the first cycle is the first duration, the first duration is the duration of the display screen displaying one frame, the first moment is the moment in the display screen displaying one frame, and the first moment is determined based on the performance related to the speed at which the display screen adjusts the backlight brightness value.
[0052] In conjunction with the first aspect, in some implementations of the first aspect, if the backlight driver determines that the first backlight brightness value is less than the second threshold, it maintains the dimming mode of the electronic device in the second dimming mode, adjusts the backlight brightness value of the display screen to the first backlight brightness value through the second dimming mode, and periodically monitors the second backlight brightness value according to the second cycle, the duration of the second cycle being the second duration, which is greater than the first duration; if it determines that the second backlight brightness value is less than the first threshold, it maintains the dimming mode of the electronic device in the second dimming mode, and adjusts the backlight brightness value of the display screen to the second backlight brightness value through the second dimming mode.
[0053] In conjunction with the first aspect, in some implementations of the first aspect, if the backlight driver determines that the first backlight brightness value is less than the third threshold, it maintains the dimming mode of the electronic device as the first dimming mode, adjusts the backlight brightness value of the display screen to the first backlight brightness value through the first dimming mode, and monitors the second backlight brightness value, wherein the third threshold is greater than the first threshold; if the backlight driver determines that the second backlight brightness value is less than the first threshold, it adjusts the backlight brightness value of the display screen to the second backlight brightness value through the second dimming mode.
[0054] In conjunction with the first aspect, in some implementations of the first aspect, if the backlight driver determines that the first backlight brightness value is greater than or equal to the third threshold, it maintains the dimming mode of the electronic device in the first dimming mode, adjusts the backlight brightness value of the display screen to the first backlight brightness value through the first dimming mode, and periodically monitors the second backlight brightness value according to the second cycle; if the backlight driver determines that the second backlight brightness value is greater than or equal to the first threshold, it maintains the dimming mode of the electronic device in the first dimming mode, and adjusts the backlight brightness value of the display screen to the second backlight brightness value through the first dimming mode.
[0055] In a second aspect, this application provides an electronic device comprising: one or more processors, and a memory; the memory is coupled to one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, and the one or more processors invoking the computer instructions to cause the electronic device to perform the methods of the first aspect and any possible implementation thereof.
[0056] Thirdly, this application provides a chip system applied to an electronic device. The chip system includes one or more processors, which are used to invoke computer instructions to cause the electronic device to perform the methods in the first aspect and any possible implementation thereof.
[0057] Fourthly, this application provides a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the methods of the first aspect and any possible implementation thereof.
[0058] Fifthly, this application provides a computer program product that, when run on a computer, causes the computer to perform the methods of the first aspect and any possible implementation thereof.
[0059] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0060] Figure 1 A schematic diagram illustrating a PWM and DC dimming mode according to an embodiment of this application;
[0061] Figure 2 A schematic diagram of a leakage current scenario for an electronic device provided in an embodiment of this application;
[0062] Figure 3 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application;
[0063] Figure 4 A schematic diagram of the software architecture of an electronic device provided in an embodiment of this application;
[0064] Figure 5 A schematic flowchart illustrating a backlight adjustment method provided in an embodiment of this application;
[0065] Figure 6 A human-computer interaction interface diagram provided in one embodiment of this application;
[0066] Figure 7A schematic flowchart illustrating a backlight adjustment method provided in an embodiment of this application;
[0067] Figure 8 This is a schematic diagram of the monitoring time of the second backlight brightness value provided in an embodiment of this application;
[0068] Figure 9 A schematic flowchart illustrating a backlight adjustment method provided in an embodiment of this application;
[0069] Figure 10 This is a schematic flowchart of a backlight adjustment method provided in an embodiment of this application. Detailed Implementation
[0070] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the first transformation relationship of the related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c alone can mean: a alone, b alone, c alone, a combination of a and b, a combination of a and c, a combination of b and c, or a, b, and c, where a, b, and c can be single or multiple. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0071] For ease of understanding, the examples provided are for reference only and are related to the concepts in the embodiments of this application.
[0072] 1. Backlight brightness value
[0073] Backlight brightness values indicate the brightness level of the display's backlight. A higher backlight brightness value indicates a brighter display, while a lower value indicates a brighter display. The unit for backlight brightness is nits.
[0074] 2. Organic electroluminescent display devices
[0075] Organic electroluminescence display (OLED) devices are the core component of displays in electronic devices such as mobile phones, responsible for emitting light to display images. A display consists of multiple OLED devices, each capable of emitting light independently. An OLED device is a current-driven semiconductor light-emitting device made from organic materials. When a voltage is applied across the terminals of an OLED device, electrons are injected from the cathode and holes from the anode, migrating through the electron transport layer and hole transport layer respectively to the emissive layer, where they meet to form excitons. These excitons release energy during de-excitation, thus producing visible light.
[0076] 3. Display driver integrated circuit chip
[0077] Display driver integrated circuit (DDIC) chips adjust the brightness of each OLED by precisely controlling the magnitude and duration of the voltage applied across the OLED devices, thereby enabling image display.
[0078] 4. Analog voltage, common interface voltage, digital input / output voltage
[0079] Analog voltage for display (AVDD) is typically used to drive the pixel circuitry of OLEDs, providing the necessary voltage to control the luminous intensity of the pixels.
[0080] The voltage for common interface (VCI) is typically used in interface circuits that drive OLEDs, such as communication interfaces like I2C and SPI.
[0081] Digital input / output voltage (VDDIO) is typically used in digital circuits that drive OLEDs, such as control signals and data signals.
[0082] The DDIC chip in the display can provide two boost methods to the OLED: AVDD+VCI and AVDD+VDDIO.
[0083] When the electronic device uses pulse width modulation (PWM) dimming mode, the DDIC chip of the display screen can provide the OLED with the following boost method: AVDD+VCI; when the electronic device uses direct current (DC) dimming mode, the DDIC chip of the display screen can provide the OLED with the following boost method: AVDD+VDDIO.
[0084] The DDIC chip of the display can provide AVDD+VCI voltage to the OLED, or the DDIC chip of the display can provide AVDD+VDDIO voltage to the OLED, thereby providing a high-level gate voltage (VGH) / high-level gate output voltage (VGHO) to the OLED, control the conduction state of the gate of the thin-film transistor (TFT) in the OLED, and thus control the current through the OLED, realize the power supply of the display, and enable each pixel in the display to reach the required brightness.
[0085] Of the two boost methods, the AVDD+VDDIO boost method has lower power consumption. Compared to the AVDD+VCI boost method, the AVDD+VDDIO boost method consumes about 15mW less power.
[0086] Under different boost methods, such as Figure 1 As shown, the VGH / VGHO generated by the topology differs from the set voltage. Compared to the boost method of AVDD+VCI, the boost method of AVDD+VDDIO differs more significantly from the set voltage.
[0087] from Figure 1 It can be seen that if the voltage is set to 9V, the VGH voltage generated by the topology through the AVDD+VCI boost method is around 8.3V; the VGHO voltage generated by the topology through the AVDD+VCI boost method is around 7.8V.
[0088] If the voltage is set to 9V, the VGH voltage generated by the topology using the AVDD+VDDIO boost method is around 7.3V; the VGHO voltage generated by the topology using the AVDD+VDDIO boost method is around 6.8V.
[0089] Continue to combine Figure 1 It can be seen that the AVDD+VDDIO boost method is easily affected by temperature. Compared with the AVDD+VCI boost method, the AVDD+VDDIO boost method is more affected by temperature.
[0090] Under conditions of low brightness and high refresh rate, when the display uses the AVDD+VCI boost converter, the screen load is relatively high. Using a high-frequency PWM mode of 3840Hz, and further influenced by ambient temperature, the voltage drop of VGH / VGHO generated by the topology is even greater. At this point, the voltage is insufficient to keep the TFT transistors off, leading to leakage and the formation of evenly spaced horizontal lines on the display screen. Figure 2 As shown.
[0091] Currently, the boost method provided by the DDIC chip to the OLED is AVDD+VCI. By providing AVDD+VCI to the OLED through the DDIC, the conduction state of the gate of the thin-film transistor (TFT) in the OLED can be controlled, thereby controlling the current through the OLED, realizing the power supply of the display, and enabling each pixel in the display to reach the required brightness.
[0092] However, in the current strategy of powering the display screen through AVDD+VCI boost, the power consumption of electronic devices is relatively high.
[0093] To address the aforementioned issues, this application provides a backlight adjustment method, an electronic device, a chip system, a computer-readable storage medium, and a computer program product. Considering that the power consumption of the electronic device is low in the strategy of powering the display screen through the AVDD+VDDIO boost method, the backlight brightness value can be determined when the electronic device obtains the backlight brightness value. If the backlight brightness value is less than the inflection point threshold, it usually indicates that the current user environment is likely indoors with a low ambient temperature, and the electronic device will not leak current due to excessively high ambient temperature. Therefore, DC mode can be used to power the display screen through the AVDD+VDDIO boost method, thereby reducing the power consumption of the electronic device. Meanwhile, in the strategy of powering the display through the AVDD+VCI boost method, the AVDD+VCI boost method is less affected by high temperatures. If the backlight brightness value is greater than or equal to the inflection point threshold, it usually indicates that the current user's environment is likely outdoors with a high ambient temperature. In this case, the PWM mode can still be used to power the display through the AVDD+VCI boost method. This avoids the display's power supply being affected by high ambient temperatures, which could lead to leakage during the power supply process. Therefore, by adopting the above method of powering the display, the power consumption of electronic devices can be reduced without being affected by ambient temperature.
[0094] Among them, the aforementioned electronic devices can be electronic devices with display screen hardware and corresponding software support.
[0095] Among them, the aforementioned electronic devices can be mobile phones, tablets, in-vehicle devices, laptops, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), smart cars, smart TVs, robots, and other devices.
[0096] It should be noted that in some possible implementations, the electronic device may also be referred to as a terminal device (station), user equipment (UE), etc., and the embodiments of this application do not limit this.
[0097] For ease of explanation, Figure 3 In the example below, we will use a mobile phone as an example of electronic device 100.
[0098] like Figure 3 As shown, in some embodiments, the electronic device 100 may include a processor 101, a communication module 102, a display screen 103, a camera 104, a sensor 105, an internal memory 106, a USB interface 107, an external memory interface 108, a charging management module 109, a power management module 110, and a battery 111, etc.
[0099] The processor 101 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processor, an image signal processor (ISP), a controller, a memory, a video stream codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors 101.
[0100] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0101] The processor 101 may also include a memory for storing instructions and data.
[0102] The communication module 102 may include antenna 1 and antenna 2, a mobile communication module, and / or a wireless communication module.
[0103] The display screen 103 is used to display images, videos, etc. The display screen 103 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 103, where N is a positive integer greater than 1.
[0104] The sensor 105 may include an ambient light sensor, which is used to collect the light intensity of the environment in which the electronic device is located.
[0105] Specifically, the ambient light sensor is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 103 according to the sensed ambient light brightness. The ambient light sensor can also be used to automatically adjust the white balance when taking pictures.
[0106] Optionally, the electronic device 100 may also include peripheral devices, such as a mouse, buttons, indicator lights, keyboard, speaker, microphone, etc.
[0107] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100.
[0108] In other embodiments, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0109] Please refer to Figure 4 This is a schematic diagram of the software architecture of an electronic device provided in an embodiment of this application. The backlight adjustment method provided in this embodiment is applied to... Figure 3 When the electronic device 100 is shown, the software in the electronic device 100 can be divided as follows: Figure 4 The application layer 201, application framework layer (FWK) 202, hardware abstraction layer (HAL) 203, and kernel layer 204 are shown.
[0110] Multiple applications can be installed in application layer 201.
[0111] The applications in the application layer 201 may include video applications, camera applications, QR code software, desktop applications, etc.
[0112] The video application can be a system application on the electronic device or a third-party application. This application does not limit the scope of the application.
[0113] When a video application plays a video, the display needs to be in a high-brightness state to show some images in the video and in a low-brightness state to show other images. Each frame of the video can carry image brightness information. When displaying each frame, the electronic device can obtain the image brightness information and determine the backlight brightness value corresponding to that image brightness information. Alternatively, it can obtain the image brightness information and the ambient light intensity value, and determine the backlight brightness value based on the image brightness information and the ambient light intensity value.
[0114] The camera application can be a system application in the electronic device or a third-party application. This application does not limit the scope of the application.
[0115] In order to ensure the clarity of image capture, when the camera application is displaying the interface, the camera application can obtain the pre-stored image brightness information and determine the corresponding backlight brightness value; or, the camera application can obtain the pre-stored image brightness information and ambient light intensity value, and determine the corresponding backlight brightness value based on the image brightness information and ambient light intensity.
[0116] The QR code software can be a system application in an electronic device or a third-party application. This application does not limit the scope of the application.
[0117] To ensure scanning accuracy, QR code software can obtain pre-stored screen brightness information and determine the corresponding backlight brightness value when displaying the interface; alternatively, it can obtain pre-stored screen brightness information and ambient light intensity value, and determine the backlight brightness value based on these parameters.
[0118] In desktop applications, there may be variations in desktop wallpapers. To ensure optimal desktop display, the desktop application can determine the backlight brightness value based on the brightness required to display the wallpaper. Alternatively, QR code software can determine the backlight brightness value based on the wallpaper and ambient light intensity.
[0119] In addition, electronic devices contain applications. When displaying the user interface (UI) of these applications, the backlight brightness value can be determined based on the brightness required by the user interface to ensure the display effect.
[0120] After obtaining the backlight brightness value, the application layer 201 can send the backlight brightness value to the power management framework of the application framework layer 202.
[0121] The application framework layer 202 provides a set of basic functions and services for the application layer 201 to call and use.
[0122] The application framework layer 202 may include a power management framework, which receives backlight brightness values and sends them to the hardware abstraction layer.
[0123] In one possible scenario, the backlight brightness value obtained by the power management framework can be the backlight brightness value sent by multiple applications in the aforementioned application layer 201.
[0124] In another possible scenario, the electronic device includes a brightness adjustment control, also known as a brightness bar, on which the user can manually adjust the brightness. When the power management framework receives the user's operation on the brightness adjustment control (usually a drag / slide operation), it can obtain the backlight brightness value corresponding to the user's operation on the brightness adjustment control.
[0125] In another possible scenario, the electronic device has an automatic brightness adjustment function and includes an ambient light sensor. The ambient light sensor can monitor the ambient light intensity value of the environment in which the electronic device is located in real time, determine the backlight brightness value based on the ambient light intensity value, and send the backlight brightness value to the power management framework. In other words, the power management framework can obtain the backlight brightness value through the automatic brightness adjustment function of the electronic device.
[0126] The Hardware Abstraction Layer 203 is a software located between the operating system kernel and the hardware circuitry. It is typically used to abstract the hardware to enable interaction between the operating system and the hardware circuitry at the logic layer.
[0127] The hardware abstraction layer 203 includes a display hardware abstraction sublayer, which is used to receive backlight brightness values sent by the power management framework and send them to the kernel layer 204.
[0128] Multiple drivers can be installed in kernel layer 204 to drive the hardware.
[0129] The kernel layer 204 includes a backlight driver, which can use a boost algorithm to select the dimming mode for powering the display screen 203.
[0130] Specifically, the backlight driver is used to determine the magnitude of the backlight brightness value. When the backlight brightness value is greater than or equal to the inflection point threshold, the PWM dimming mode is adopted according to the backlight brightness value, that is, the power is supplied to the display screen through the boost method of AVDD+VCI. When the backlight brightness value is less than the inflection point threshold, the DC dimming mode is adopted according to the backlight brightness value, that is, the power is supplied to the display screen 103 of the hardware layer through the boost method of AVDD+VDDIO.
[0131] It should be noted that the application layer 201, application framework layer 202, hardware abstraction layer 203, and kernel layer 204 may also include other content, which is not specifically limited here.
[0132] Based on the above description, the backlight adjustment method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings and application scenarios.
[0133] Please see Figure 5 , Figure 5 A schematic flowchart of a backlight adjustment method provided in an embodiment of this application is shown.
[0134] like Figure 5 As shown, the backlight adjustment method provided in this application may include:
[0135] S301. During the process of the electronic device being in the screen-on state, a first backlight brightness value is obtained. The first backlight brightness value is the backlight brightness value of the i-th frame of the electronic device. The i-th frame refers to the next frame of the current frame.
[0136] Among them, electronic devices can obtain the first backlight brightness value through various methods.
[0137] In other embodiments, obtaining the first backlight brightness value includes:
[0138] Obtain the first ambient light intensity value of the environment in which the electronic device is located; determine the first backlight brightness value based on the first ambient light intensity value.
[0139] The electronic device includes an ambient light sensor. The electronic device has the function of automatically adjusting the brightness of the display screen according to the ambient light intensity. If this function is enabled, the ambient light sensor can collect the ambient light intensity value in real time while the electronic device is in the screen-on state. Each backlight brightness value collected by the ambient light sensor can be used as the first backlight brightness value.
[0140] The electronic device includes an automatic brightness adjustment setting interface, which includes an automatic adjustment control. When the user operates the automatic adjustment control, the electronic device can activate the function of automatically adjusting the screen brightness according to the ambient light intensity.
[0141] The automatic brightness adjustment interface and the third interface can be the same interface or different interfaces. When the third interface is a drop-down menu and the automatic brightness adjustment interface and the third interface are the same, the specific implementation of the automatic adjustment control can be found in [link to documentation]. Figure 6 The interface shown contains control 1002. Operations on the auto-adjustment control can include clicking, swiping, double-clicking, or long-pressing.
[0142] This application does not limit the specific implementation method of the automatic brightness adjustment interface. This application does not limit the display position, display style, display size, or other parameters of the automatic adjustment control. This application does not limit the specific implementation method of the operation of the automatic adjustment control.
[0143] Specifically, the ambient light sensor can collect the ambient light intensity of the current usage scenario of the electronic device according to a preset sampling frequency, obtaining multiple ambient light intensity values. The electronic device can then calculate a weighted average of these multiple ambient light intensity values to obtain a processed ambient light intensity value. Alternatively, the electronic device can first filter the multiple ambient light intensity values and then calculate a weighted average to obtain a processed ambient light intensity value, which is also known as the first ambient light intensity value.
[0144] After obtaining the first ambient light intensity value, the electronic device can determine the first backlight brightness value in the following manner.
[0145] Method 1: The electronic device stores a correspondence between multiple ambient light brightness values and multiple backlight brightness values. After obtaining the first ambient light intensity value, the electronic device can determine the backlight brightness value corresponding to the first ambient light intensity value according to the aforementioned correspondence, and determine the backlight brightness value corresponding to the first ambient light intensity value as the first backlight brightness value.
[0146] Method 2: The electronic device can generate a backlight brightness value corresponding to the first ambient light intensity value based on the first ambient light intensity value, and determine the backlight brightness value corresponding to the first ambient light intensity value as the first backlight brightness value.
[0147] This application does not limit the specific implementation method of determining the first backlight brightness value based on the first ambient light intensity value.
[0148] In other embodiments, obtaining the first backlight brightness value includes:
[0149] Display a first interface, which can be any interface of the electronic device; during the display of the first interface, obtain the screen brightness information of the second interface to be displayed on the electronic device, which is the interface of the first application in the electronic device, which can be any one of the multiple applications in the electronic device, and the screen brightness information is used to indicate the average brightness of the screen; determine the backlight brightness value corresponding to the screen brightness information as the first backlight brightness value.
[0150] The first interface and the second interface can be interfaces of the same application or interfaces of different applications. This application does not limit this.
[0151] For example, both the first interface and the second interface are interfaces of a video application. The first interface is the interface of image i in the video played by the aforementioned video application, and the second interface is the interface of image i+1 in the video played by the aforementioned video application; image i+1 is the frame image after image i.
[0152] For example, the first interface is the interface of a desktop application, and the second interface is the interface of a video application; the first interface is the interface of a desktop application, and the second interface is the interface of a camera application; the first interface is the interface of a desktop application, and the second interface is the interface of a QR code software.
[0153] The image brightness information can be the average pixel level (AVL). APL reflects the average grayscale level of the displayed image content, i.e., the brightness of the content. APL can be the average pixel brightness of the grayscale of the interface to be displayed, or it can be the average pixel brightness of the largest component among the RGB components of the interface to be displayed, or it can be the average pixel brightness of the G component among the RGB components of the interface to be displayed.
[0154] The following example illustrates how both the first and second interfaces are interfaces of a video application. The first interface represents image i in the video being played by the video application, and the second interface represents image i+1 in the video being played by the video application.
[0155] During the process of displaying the first interface corresponding to image i, the electronic device can obtain the screen brightness information of the second interface corresponding to image i+1, determine the backlight brightness value corresponding to the screen brightness information based on the screen brightness information of the second interface corresponding to image i+1, and determine the backlight brightness value as the first backlight brightness value.
[0156] In other embodiments, obtaining the first backlight brightness value includes:
[0157] Display a first interface, which can be any interface of the electronic device; during the display of the first interface, obtain the screen brightness information of the second interface to be displayed on the electronic device, which is the interface of the first application in the electronic device, and the first application can be any one of the multiple applications in the electronic device; obtain the second ambient light intensity value of the environment in which the electronic device is located; determine the first backlight brightness value based on the second ambient light intensity value and the backlight brightness value corresponding to the screen brightness information.
[0158] The following example illustrates how both the first and second interfaces are interfaces of a video application. The first interface represents image i in the video being played by the video application, and the second interface represents image i+1 in the video being played by the video application.
[0159] During the process of displaying the first interface corresponding to image i, the electronic device can obtain the screen brightness information of the second interface corresponding to image i+1, determine the backlight brightness value based on the screen brightness information of the second interface corresponding to image i+1 and the ambient light brightness value of the environment in which the electronic device is located at the current moment, and determine the backlight brightness value as the first backlight brightness value.
[0160] In other embodiments, obtaining the first backlight brightness value includes:
[0161] The third interface is displayed, which includes a brightness adjustment control for adjusting the brightness of the display screen. In response to a first operation on the brightness adjustment control, a first backlight brightness value is obtained. The first operation is used to adjust the backlight brightness value of the display screen from the original backlight brightness value to the first backlight brightness value.
[0162] The third interface can be a drop-down menu on the electronic device or a brightness adjustment interface. This application does not limit the specific implementation of the third interface.
[0163] When the third interface is a drop-down interface, the electronic device can display the third interface when it receives a user instruction to open the drop-down interface. The operation to open the drop-down interface can be a swipe down or a swipe up. This application does not limit the specific implementation method of the drop-down interface operation.
[0164] When the third interface is the brightness adjustment interface of the electronic device, the electronic device may include a settings interface, which may include display and brightness controls. Upon receiving user input on the display and brightness controls, the electronic device may display the third interface. This application does not limit the specific implementation of the settings interface. This application also does not limit the display position, display style, display size, or other parameters of the display and brightness controls.
[0165] The third interface includes a brightness adjustment control. When the user performs a first operation on the brightness adjustment control, the electronic device can obtain a first backlight brightness value. The first operation can be a drag operation, a slide operation, or a click operation. This application does not limit the specific implementation of the first operation.
[0166] The brightness adjustment control can also be called a brightness bar. The length of the brightness bar is used to represent multiple backlight brightness values. When the first operation is a drag operation, the first backlight brightness value is the backlight brightness value corresponding to the position where the user drags the brightness bar.
[0167] For example, when the third interface is a drop-down interface, the specific implementation method of the third interface can be found in [reference needed]. Figure 6 For details on the implementation of the brightness adjustment controls shown in the interface, please refer to [link / reference]. Figure 6 The brightness bar shown in the interface is 1001.
[0168] S302. Determine whether the first backlight brightness value is greater than or equal to the first threshold.
[0169] The first threshold can also be called the inflection point threshold.
[0170] When the first backlight brightness value is determined to be greater than or equal to the first threshold, the electronic device may execute S303; when the first backlight brightness value is determined to be less than the first threshold, the electronic device may execute S304.
[0171] S303. If the first backlight brightness value is greater than or equal to the first threshold, the backlight brightness value of the display screen is adjusted to the first backlight brightness value through the first dimming mode. The first dimming mode is a pulse width modulation mode. The first dimming mode includes providing analog voltage and common interface voltage to the display screen through the display driver integrated circuit of the display screen, so that the backlight brightness value of the display screen is adjusted to the first backlight brightness value.
[0172] Combination Figure 1 It can be seen that the boost method of analog voltage AVDD + common interface voltage VCI is less affected by ambient temperature. If the backlight brightness value is greater than or equal to the first threshold, it usually indicates that the current user is in an outdoor environment with a high ambient temperature. Pulse width modulation mode (PWM) can be used to power the display screen through the boost method of AVDD + VCI, so that the power supply of the display screen is not affected by the ambient temperature.
[0173] Specifically, if the dimming mode adopts PWM mode, the electronic device can provide AVDD to the OLED device through the DDIC chip of the display screen, drive the pixel circuit of the OLED device, and drive the interface circuit of the OLED device through VCI, so as to control the conduction state (on and off) of the gate of the TFT in the OLED device through the boost method of AVDD+VCI, thereby controlling the current through the OLED device, so that the backlight brightness value of the display screen is adjusted to the first backlight brightness value.
[0174] S304. If the first backlight brightness value is less than the first threshold, the backlight brightness value of the display screen is adjusted to the first backlight brightness value through the second dimming mode. The second dimming mode is a DC dimming mode. The second dimming mode includes providing analog voltage and digital input / output voltage to the display screen through the display driver integrated circuit of the display screen to adjust the backlight brightness value of the display screen to the first backlight brightness value. When the backlight brightness value is adjusted using the second dimming mode, the power consumption of the electronic device is less than the power consumption of the electronic device when the backlight brightness value is adjusted using the first dimming mode.
[0175] Combination Figure 1 It is known that the boost method of analog voltage AVDD + digital input / output voltage VDDIO can reduce the power consumption of electronic devices. If the backlight brightness value is less than the first threshold, it usually indicates that the current user's environment is likely indoors with a low ambient temperature. Using DC mode to power the display screen via the boost method of AVDD + VDDIO will prevent the display screen from leaking current due to excessively high ambient temperature. Thus, DC mode can be used to power the display screen via the boost method of AVDD + VDDIO, thereby reducing the power consumption of the display screen during power supply.
[0176] Specifically, if the dimming mode adopts DC mode, the electronic device can provide AVDD to the OLED device through the DDIC chip of the display screen, drive the pixel circuit of the OLED device, and drive the digital circuit of the device through VDDIO, so as to control the conduction state (on and off) of the gate of the TFT in the OLED device through the boost method of AVDD+VDDIO, thereby controlling the current through the OLED device, so that the backlight brightness value of the display screen is adjusted to the first backlight brightness value.
[0177] Considering that users spend most of their time indoors, where the ambient light intensity of electronic devices is usually low, the display screen of the electronic device can be powered by DC mode through AVDD+VDDIO boost method. This will prevent leakage of the display screen due to excessively high ambient temperature. At the same time, using DC mode to power the display screen through AVDD+VDDIO boost method can reduce the power consumption of the electronic device.
[0178] Based on the above description, the backlight brightness adjustment method of this application may further include:
[0179] When an electronic device switches from a screen-on state to a screen-off state, it stores the target backlight brightness value and target dimming mode of the electronic device at the current moment. The target dimming mode is either the first dimming mode or the second dimming mode. When the electronic device switches from a screen-off state to a screen-on state, it adjusts the backlight brightness value of the display screen to the target backlight brightness value through the target dimming mode.
[0180] For example, when an electronic device switches from a screen-on state to a screen-off state, the target backlight brightness value of the electronic device is 100 nits, the target dimming mode is DC mode, and the boost method is AVDD+VDDIO boost method; when the electronic device switches from a screen-off state to a screen-on state, the electronic device can use DC mode to power the display screen through AVDD+VDDIO boost method, so that the backlight brightness value of the display screen becomes 100 nits.
[0181] Therefore, by storing the backlight brightness value and dimming mode when the electronic device switches from the screen-on state to the screen-off state, the electronic device can more quickly restore the original backlight brightness value and dimming mode when switching from the screen-off state to the screen-on state. This ensures that the brightness of the display screen remains consistent before and after the screen is turned on again, thus guaranteeing the user's visual experience.
[0182] Based on the above description, the backlight brightness adjustment method of this application may further include:
[0183] Each time the electronic device is powered on, the backlight brightness of the display screen is adjusted to a second backlight brightness value through a first dimming mode. The second backlight brightness value is a backlight brightness value pre-stored in the electronic device.
[0184] It should be understood that when an electronic device is powered on (usually when the boot animation is displayed), the ambient light sensor has not yet started working, and various applications have not yet started. Therefore, it is impossible to determine the backlight brightness value based on factors such as ambient light intensity and the brightness information of the application interface.
[0185] Based on this, electronic devices can pre-store the backlight brightness value for power-on (second backlight brightness value), so that each time the electronic device is powered on, the backlight brightness value of the display screen can be adjusted to the power-on backlight brightness value. In this way, the display screen can be lit normally and at a stable brightness when the electronic device is powered on, thus ensuring the user's visual experience.
[0186] Furthermore, considering the uncertainty of the environment in which electronic devices are powered on each time, which may be in a high-temperature environment or a low-temperature environment, adjusting the backlight brightness of the display screen through PWM mode each time the electronic device is powered on can prevent leakage of current in the display screen during power supply due to excessively high ambient temperature, thereby ensuring the stable power-on process of the electronic device.
[0187] The backlight brightness adjustment method of this application considers that the power consumption of the electronic device is low in the strategy of powering the display screen through the AVDD+VDDIO boost method. When the electronic device obtains the first backlight brightness value, it can determine the magnitude of the first backlight brightness value. If the first backlight brightness value is less than a first threshold, it usually indicates that the current user environment is likely indoors with a low ambient temperature, and the display screen of the electronic device will not leak current due to excessively high ambient temperature. In this case, DC mode can be used to power the display screen through the AVDD+VDDIO boost method, thus reducing the power consumption of the electronic device. If the first backlight brightness value is greater than or equal to the first threshold, it usually indicates that the current user environment is likely outdoors with a high ambient temperature. If PWM mode is used to power the display screen through the AVDD+VCI boost method, the electronic device will not leak current due to excessively high ambient temperature. Thus, the electronic device can use PWM mode to power the display screen through the AVDD+VCI boost method, which can avoid leakage of the display screen during power supply due to excessively high ambient temperature, thus ensuring the user experience.
[0188] Based on the above Figure 5 As described in the illustrated embodiment, the backlight brightness value can gradually increase from small to large, or it can gradually decrease from large to small. The electronic device can monitor the backlight brightness value every second time interval, that is, every second time interval, the backlight brightness value is compared with the third threshold and the second threshold respectively, until the backlight brightness value is greater than or equal to the second threshold, at which point the electronic device can execute S402.
[0189] Below, taking the example of the backlight brightness value increasing from small to large, combined with... Figure 7 This paper details the backlight adjustment method of this application.
[0190] Please see Figure 7 , Figure 7 A schematic flowchart of a backlight adjustment method provided in an embodiment of this application is shown.
[0191] like Figure 7 As shown, the backlight adjustment method provided in this application may include:
[0192] S401. While the electronic device is in a screen-on state, obtain the first backlight brightness value.
[0193] Among them, S401 and Figure 5 The implementation of S301 in the illustrated embodiment is similar and will not be repeated here.
[0194] S402. Determine whether the first backlight brightness value is greater than or equal to the second threshold, and the second threshold is less than the first threshold.
[0195] If the first backlight brightness value is less than the second threshold, the electronic device can execute S403; if the first backlight brightness value is greater than or equal to the second threshold, the electronic device can execute S404.
[0196] For example, the second threshold is 80 and the first threshold is 90. That is to say, if the first backlight brightness value is 75, the electronic device can execute S403, and if the first backlight brightness value is 81, the electronic device can execute S404.
[0197] S403. If the first backlight brightness value is less than the second threshold, keep the dimming mode of the electronic device in the second dimming mode, adjust the backlight brightness value of the display screen to the first backlight brightness value through the second dimming mode, and keep monitoring the second backlight brightness value periodically according to the second cycle. The duration of the second cycle is the second duration, which is greater than the first duration.
[0198] Typically, when the first backlight brightness value is less than the second threshold, the electronic device monitors the backlight brightness value every second time interval, and the dimming mode of the electronic device is the second dimming mode (DC mode). Based on this, if the first backlight brightness value is less than the second threshold, it means that the difference between the first backlight brightness value and the first threshold is large, and the electronic device can continue to monitor the backlight brightness value every second time interval.
[0199] For example, the second duration is 2 seconds, the second threshold is 80, and the first threshold is 90. That is to say, if the first backlight brightness value is less than 80, the electronic device can monitor the backlight brightness value every 2 seconds and keep the dimming mode of the electronic device in DC mode, and supply power to the display screen through the boost method of AVDD+VDDIO.
[0200] If the first backlight brightness value is less than the second threshold, it usually indicates that the current user's environment is likely indoors with a low ambient temperature. The electronic device's display screen will not leak current due to excessively high ambient temperature. DC mode can be used to power the display screen through AVDD+VDDIO boost method, thereby reducing the power consumption of the electronic device and ensuring the user's experience.
[0201] S404. If the first backlight brightness value is greater than or equal to the second threshold, the dimming mode of the electronic device is kept in the second dimming mode. Through the second dimming mode, the backlight brightness value of the display screen is adjusted to the first backlight brightness value. The second backlight brightness value is monitored periodically at the first moment according to the first cycle. The duration of the first cycle is the first duration, which is the duration of the display screen displaying one frame. The first moment is the moment in the display screen displaying one frame. The first moment is determined based on the performance related to the speed at which the display screen adjusts the backlight brightness value. The second backlight brightness value is the backlight brightness value of the image displayed after the i-th frame.
[0202] In this case, the second duration is longer than the first duration. If the first backlight brightness value is less than the second threshold, the electronic device monitors the backlight brightness value every second duration, which can reduce the power consumption of the electronic device.
[0203] If the first backlight brightness value is greater than or equal to the second threshold, it means that the difference between the first backlight brightness value and the first threshold is small. The electronic device can start monitoring the backlight brightness value every first time interval, so as to be able to determine in time whether the second backlight brightness value is greater than or equal to the first threshold. When the second backlight brightness value is greater than or equal to the first threshold, the PWM dimming mode can be used.
[0204] For example, the second duration is 2 seconds, the frame rate of the image displayed by the electronic device is 60 frames per second, and the first duration is the duration for the display screen to display one frame, that is, the first duration is 16.7 ms.
[0205] Based on the above description, if the first backlight brightness value is greater than or equal to the second threshold, it is also necessary to determine the time point at which the monitoring of the second backlight brightness value is activated every first time interval, that is, the time point at which the second backlight brightness value is determined to be greater than or equal to the first threshold. Specifically:
[0206] If the first backlight brightness value is greater than or equal to the second threshold, a third time point is determined based on the first time point, the second time point, and the first coefficient. The first time point is the current time, the duration between the first and second time points is the first duration, the first duration is the duration for the display to display one frame, the third time point is the time point between the first and second time points, and the first coefficient is determined based on the performance related to the speed at which the display adjusts the backlight brightness value. At the third time point, monitoring of the backlight brightness value is initiated every first duration. At the third time point, it is determined whether the second backlight brightness value is greater than or equal to the first threshold.
[0207] The electronic device can read the backlight brightness value (first backlight brightness value and second backlight brightness value) from the backlight register each time. The backlight register is used to store the backlight brightness value.
[0208] The first coefficient is determined based on the performance related to the speed at which the display adjusts the backlight brightness value. Specifically, some displays adjust the backlight brightness value faster through the first dimming mode or the second dimming mode, while others adjust the backlight brightness value slower through the first dimming mode or the second dimming mode. Therefore, the value of the first coefficient can be determined based on the performance related to the speed at which the display adjusts the backlight brightness value.
[0209] Based on the above description, for a display screen that adjusts its backlight brightness value quickly, the value of the first coefficient can be set to be small, so that the third time point is far from the second time point. Thus, the electronic device can adjust the backlight brightness value of the display screen to the first backlight brightness value while displaying a new interface at the third time point. For a display screen that adjusts its backlight brightness value slowly, the value of the first coefficient can be set to be large, so that the third time point is close to the second time point. Thus, the electronic device can adjust the backlight brightness value of the display screen to the first backlight brightness value while displaying a new interface at the third time point.
[0210] like Figure 8 As shown, the first time point can be T0, the second time point can be T1, and the third time point can be Tup. The formula for calculating Tup is (Tnext-Tstart)*α, where Tnext represents the time point at time T0, Tstart represents the time point at time T1, and α represents the first coefficient. Through the aforementioned formula, the electronic device can calculate the third time point at which the first monitoring of the second backlight brightness value is turned on to determine whether it is greater than or equal to the first threshold. In this way, the electronic device can monitor the backlight brightness value every first time interval starting from the third time point.
[0211] For example, the first duration is 2 seconds. The electronic device monitors the backlight brightness value every 2 seconds. T0 is the start time of a monitoring cycle. T0 is the end time of the previous frame display of the electronic device and the start time of the current frame display. If the monitoring of the backlight brightness value determines that the first backlight brightness value is greater than or equal to the second threshold, the electronic device can determine Tup at T0, that is, determine the time point to start monitoring the backlight brightness value every first duration.
[0212] Among them, electronic devices can determine the time when each frame of the image on the display screen is turned on by the vertical synchronization (VSync) signal. In other words, electronic devices can notify the display screen to display each frame of the image by the VSync signal, and can determine the time point T0 by the VSync signal.
[0213] S405. Determine whether the second backlight brightness value is greater than or equal to the first threshold.
[0214] When the second backlight brightness value is determined to be less than the first threshold, the electronic device may execute S406; when the second backlight brightness value is determined to be greater than or equal to the first threshold, the electronic device may execute S407.
[0215] S406. If the second backlight brightness value is less than the first threshold, keep the dimming mode of the electronic device in the second dimming mode, and adjust the backlight brightness value of the display screen to the second backlight brightness value through the second dimming mode.
[0216] If the second backlight brightness value is less than the first threshold, it means that the conditions for switching the dimming mode to PWM dimming mode are not yet met. The electronic device can continue to maintain the dimming mode of the electronic device as DC mode and continue to use DC mode to power the display screen through the boost method of AVDD+VDDIO. In this way, using DC mode to power the display screen through the boost method of AVDD+VDDIO can reduce the power consumption of the electronic device.
[0217] S407. If the second backlight brightness value is greater than or equal to the first threshold, the backlight brightness value of the display screen is adjusted to the second backlight brightness value through the first dimming mode.
[0218] Among them, S407 and Figure 5 The implementation of S303 in the illustrated embodiment is similar and will not be described again here.
[0219] It should be noted that if the second backlight brightness value obtained in the next monitoring is greater than the third threshold, the electronic device can perform actions such as... Figure 9 As shown in S503, the dimming mode can remain in the first dimming mode, and the monitoring method can be switched to monitor the backlight brightness value every second interval; if the second backlight brightness value obtained in the next monitoring is less than or equal to the third threshold, the following can be executed: Figure 9 The S504 shown can maintain the dimming mode as the first dimming mode and maintain the monitoring method as monitoring the backlight brightness value every first time interval.
[0220] In this application, if the first backlight brightness value is less than the second threshold, it indicates that the difference between the first backlight brightness value and the first threshold is large. The electronic device can monitor the backlight brightness value every second time interval, keep the dimming mode of the electronic device in DC mode, and use DC mode to power the display screen through AVDD+VDDIO boost method to adjust the backlight brightness value of the display screen to the first backlight brightness value. Since the second time interval is longer than the first time interval, monitoring the backlight brightness value at a longer time interval can reduce the power consumption of the electronic device. Furthermore, using DC mode to power the display screen through AVDD+VDDIO boost method can further reduce the power consumption of the electronic device.
[0221] If the first backlight brightness value is greater than or equal to the second threshold, it indicates that the difference between the first backlight brightness value and the first threshold is small. The electronic device can then monitor the backlight brightness value every first time interval to promptly determine whether the second backlight brightness value is greater than or equal to the first threshold. When the second backlight brightness value is detected to be greater than or equal to the first threshold, PWM dimming mode can be adopted. If the second backlight brightness value is less than the first threshold, it indicates that the conditions for switching the dimming mode to PWM dimming mode are not yet met. The electronic device can continue to maintain the dimming mode of the electronic device in DC mode and continue to use DC mode to power the display screen through the AVDD+VDDIO boost method. In this way, using DC mode to power the display screen through the AVDD+VDDIO boost method can reduce the power consumption of the electronic device.
[0222] Based on the above Figure 5 As described in the illustrated embodiment, the backlight brightness value can increase from small to large or decrease from large to small. The electronic device can monitor the backlight brightness value every second time interval, that is, every second time interval, the backlight brightness value is compared with the third threshold and the second threshold respectively, until the backlight brightness value is less than or equal to the third threshold, at which point the electronic device can execute S502.
[0223] Below, taking the example of changing the backlight brightness value from large to small, combined with... Figure 8 This paper details the backlight adjustment method of this application.
[0224] Please see Figure 9 , Figure 9 A schematic flowchart of a backlight adjustment method provided in an embodiment of this application is shown.
[0225] like Figure 9 As shown, the backlight adjustment method provided in this application may include:
[0226] S501. While the electronic device is in a screen-on state, obtain the first backlight brightness value.
[0227] Among them, S401 and Figure 5 The implementation of S301 in the illustrated embodiment is similar and will not be repeated here.
[0228] S502. Determine whether the first backlight brightness value is less than the third threshold, and the third threshold is greater than the first threshold.
[0229] If the first backlight brightness value is greater than or equal to the third threshold, the electronic device may execute S503; if the first backlight brightness value is less than the third threshold, the electronic device may execute S504.
[0230] For example, the third threshold is 100 and the first threshold is 90. That is, if the first backlight brightness value is 110, the electronic device can execute S503, and if the first backlight brightness value is 95, the electronic device can execute S504.
[0231] S503. If the first backlight brightness value is greater than or equal to the third threshold, keep the dimming mode of the electronic device in the first dimming mode, adjust the backlight brightness value of the display screen to the first backlight brightness value through the first dimming mode, and periodically monitor the second backlight brightness value according to the second cycle.
[0232] Typically, when the first backlight brightness value is greater than or equal to the third threshold, the electronic device monitors the backlight brightness value every second time interval, and the dimming mode of the electronic device is the first dimming mode (PWM mode). Based on this, if the first backlight brightness value is greater than or equal to the third threshold, it indicates that the difference between the first backlight brightness value and the first threshold is large, and the electronic device can continue to monitor the backlight brightness value every second time interval.
[0233] In this case, the second duration is longer than the first duration. When the first backlight brightness value is greater than or equal to the third threshold, the electronic device monitors the backlight brightness value every second duration, which can reduce the power consumption of the electronic device.
[0234] For example, the second duration is 2 seconds, the third threshold is 100, and the first threshold is 90. That is to say, if the first backlight brightness value is greater than or equal to 100, the electronic device can monitor the backlight brightness value every 2 seconds and keep the dimming mode of the electronic device in DC mode, and supply power to the display screen through the boost method of AVDD+VDDIO.
[0235] If the first backlight brightness value is greater than or equal to the third threshold, it usually indicates that the current user is in an outdoor environment with a high ambient temperature. Using PWM mode to power the display will not cause leakage. PWM mode can still be used to power the display through AVDD+VCI boost method. In this way, the stability of the display power supply can be guaranteed, ensuring the user experience.
[0236] S504. If the first backlight brightness value is less than the third threshold, the dimming mode of the electronic device is kept in the first dimming mode. The backlight brightness value of the display screen is adjusted to the first backlight brightness value through the first dimming mode. The second backlight brightness value is monitored periodically at the first moment according to the first cycle. The duration of the first cycle is the first duration, which is the duration of the display screen displaying one frame. The first moment is the moment in the display screen displaying one frame. The first moment is determined based on the performance related to the speed at which the display screen adjusts the backlight brightness value. The second backlight brightness value is the backlight brightness value of the image displayed after the i-th frame.
[0237] For example, the second duration is 2 seconds, the frame rate of the image displayed by the electronic device is 60 frames per second, and the first duration is the duration for the display screen to display one frame, that is, the first duration is 16.7 ms.
[0238] If the first backlight brightness value is less than the third threshold, it means that the difference between the first backlight brightness value and the first threshold is small. The electronic device can start monitoring the backlight brightness value every first time interval, so as to make it easy to determine whether the second backlight brightness value is less than the first threshold in a timely manner. When the second backlight brightness value is less than the first threshold, DC dimming mode can be used.
[0239] S505. Determine whether the second backlight brightness value is less than the first threshold.
[0240] When the second backlight brightness value is determined to be greater than or equal to the first threshold, the electronic device may execute S506; when the second backlight brightness value is determined to be less than the first threshold, the electronic device may execute S507.
[0241] S506. If the second backlight brightness value is greater than or equal to the first threshold, the dimming mode of the electronic device is kept in the first dimming mode, and the backlight brightness value of the display screen is adjusted to the second backlight brightness value through the first dimming mode.
[0242] If the second backlight brightness value is greater than or equal to the first threshold, it means that the conditions for switching the dimming mode to DC dimming mode are not yet met. The electronic device can continue to keep the dimming mode of the electronic device in PWM mode and continue to use PWM mode to power the display screen through the boost method of AVDD+VCI. In this way, using PWM mode to power the display screen through the boost method of AVDD+VCI can avoid leakage of the display screen during the power supply process.
[0243] S507. If the second backlight brightness value is less than the first threshold, the backlight brightness value of the display screen is adjusted to the second backlight brightness value through the second dimming mode.
[0244] Among them, S507 and Figure 5 The implementation of S302 in the illustrated embodiment is similar and will not be described again here.
[0245] Based on the above description, if the first backlight brightness value is less than or equal to the third threshold, it is also necessary to determine the time point at which the backlight brightness value is monitored every first time interval, that is, the time point at which the second backlight brightness value is determined to be less than the first threshold. Specifically:
[0246] If the first backlight brightness value is less than the third threshold, a sixth time point is determined based on the fourth time point, the fifth time point, and the first coefficient. The fourth time point is the current time point, the duration between the fourth time point and the sixth time point is the first duration, which is the duration for the display to display one frame, the sixth time point is the time point between the fourth and fifth time points, and the sixth time point is the time point at which backlight brightness value monitoring is enabled every first duration. The first coefficient is related to the performance of the display. At the sixth time point, backlight brightness value monitoring is enabled every first duration. At the sixth time point, it is determined whether the second backlight brightness value is greater than or equal to the first threshold.
[0247] Among them, the above steps and Figure 5 The implementation of determining the sixth time point in S404 in the illustrated embodiment is similar and will not be described again here.
[0248] It should be noted that if the second backlight brightness value obtained in the next monitoring is less than the second threshold, the electronic device can perform actions such as... Figure 7 As shown in S403, the dimming mode can be kept in the second dimming mode, and the monitoring method can be switched to monitor the backlight brightness value every second time interval; if the second backlight brightness value obtained in the next monitoring is greater than or equal to the second threshold, the following can be executed: Figure 7 The S404 shown can maintain the dimming mode as the second dimming mode and maintain the monitoring method of monitoring the backlight brightness value every first time interval.
[0249] In this application, if the first backlight brightness value is greater than or equal to the third threshold, it indicates that the difference between the first backlight brightness value and the first threshold is large. The electronic device can monitor the backlight brightness value every second time interval, keep the dimming mode of the electronic device in PWM mode, and use PWM mode to power the display screen through AVDD+VCI boost method to adjust the backlight brightness value of the display screen to the first backlight brightness value. Since the second time interval is longer than the first time interval, monitoring the backlight brightness value at a longer time interval can reduce the power consumption of the electronic device. Furthermore, using PWM mode to power the display screen through AVDD+VCI boost method can avoid the occurrence of display screen leakage, ensure the stability of the display screen power supply, and guarantee the user experience.
[0250] If the first backlight brightness value is less than the third threshold, it indicates that the difference between the first backlight brightness value and the first threshold is small. The electronic device can then monitor the backlight brightness value every first time interval to promptly determine whether the second backlight brightness value is less than the first threshold. If the second backlight brightness value is less than the first threshold, the PWM dimming mode can continue to be used. If the second backlight brightness value is greater than or equal to the first threshold, it indicates that the conditions for switching the dimming mode to DC dimming mode are not yet met. The electronic device can continue to maintain the dimming mode of the electronic device as PWM mode and continue to use PWM mode to power the display screen through the AVDD+VCI boost method. In this way, using PWM mode to power the display screen through the AVDD+VCI boost method can avoid leakage current in the display screen during power supply, ensure the stability of the display screen power supply, and guarantee the user experience.
[0251] Based on the above description, in one specific embodiment, the electronic device includes a first application, a power management framework, a display hardware abstraction sublayer, a backlight driver, and a display screen. The first application belongs to the application layer of the electronic device, the power management framework belongs to the application framework layer of the electronic device, the display hardware abstraction sublayer belongs to the hardware abstraction layer of the electronic device, the backlight driver belongs to the kernel layer of the electronic device, and the display screen belongs to the hardware layer of the electronic device.
[0252] Below, in conjunction with Figure 10 This paper details the backlight adjustment method of this application.
[0253] Please see Figure 10 , Figure 10 A schematic flowchart of a backlight adjustment method provided in an embodiment of this application is shown.
[0254] like Figure 10 As shown, the backlight adjustment method provided in this application may include:
[0255] S11. The first application obtains the first backlight brightness value while the electronic device is in a screen-on state.
[0256] Among them, S11 and Figure 5 The implementation of S301 in the illustrated embodiment is similar and will not be repeated here.
[0257] S12, The first application sends the first backlight brightness value to the backlight driver through the power management framework and the display hardware abstraction sublayer.
[0258] In one possible scenario, the first backlight brightness value obtained by the power management framework can be sent by the first application in the application layer 201.
[0259] The first application can be a video application, a camera application, a QR code software, a desktop application, etc. The first application can be a system application in an electronic device, or it can be a third-party application. This application does not limit the specific implementation method of the first application.
[0260] In another possible scenario, the electronic device includes a brightness adjustment control, also known as a brightness bar, on which the user can manually adjust the brightness. When the power management framework receives an operation (usually a drag / slide) on the brightness adjustment control, it can obtain the first backlight brightness value corresponding to the user's operation on the brightness adjustment control from the display module that received the operation.
[0261] In another possible scenario, the electronic device has an automatic brightness adjustment function and includes an ambient light sensor. The ambient light sensor can monitor the ambient light intensity value of the environment in which the electronic device is located in real time, determine a first backlight brightness value based on the ambient light intensity value, and send the first backlight brightness value to the power management framework. That is, the power management framework can obtain the first backlight brightness value through the automatic brightness adjustment function of the electronic device.
[0262] The backlight brightness value can gradually increase or gradually decrease. Based on this, the backlight driver can monitor the backlight brightness value every second time interval to determine the change in the first backlight brightness value. If the first backlight brightness value is greater than or equal to a second threshold, the backlight driver can start monitoring the backlight brightness value every first time interval to determine the change in the second backlight brightness value. If the second backlight brightness value is greater than or equal to the first threshold, it belongs to the scenario where the backlight brightness value gradually increases. See the description of Scenario 1 for details. Scenario 1 may include, for example... Figure 10 The description of steps S13-S18 shown.
[0263] Similarly, if the first backlight brightness value is less than the third threshold, the backlight brightness value can be monitored every first time interval to determine the change in the second backlight brightness value. If the second backlight brightness value is less than the first threshold, it belongs to a scenario where the backlight brightness value gradually decreases. For details, please refer to the description of scenario 2. Scenario 2 may include, for example... Figure 10 The description of steps S19-S24 shown.
[0264] S13. The backlight driver determines whether the first backlight brightness value is greater than or equal to the second threshold, and the second threshold is less than the first threshold.
[0265] If the first backlight brightness value is less than the second threshold, the electronic device can execute S14; if the first backlight brightness value is greater than or equal to the second threshold, the electronic device can execute S15.
[0266] S14. If the backlight driver determines that the first backlight brightness value is less than the second threshold, it keeps the dimming mode of the electronic device in the second dimming mode, adjusts the backlight brightness value of the display screen to the first backlight brightness value through the second dimming mode, and keeps periodically monitoring the second backlight brightness value according to the second cycle. The duration of the second cycle is the second duration, which is greater than the first duration.
[0267] S15. If the backlight driver determines that the first backlight brightness value is greater than or equal to the second threshold, it keeps the dimming mode of the electronic device in the second dimming mode, adjusts the backlight brightness value of the display screen to the first backlight brightness value through the second dimming mode, and monitors the second backlight brightness value. The second backlight brightness value is the backlight brightness value of the image displayed after the i-th frame.
[0268] S16. Backlight driver determines whether the second backlight brightness value is greater than or equal to the first threshold.
[0269] When the second backlight brightness value is determined to be less than the first threshold, the electronic device may execute S17; when the second backlight brightness value is determined to be greater than or equal to the first threshold, the electronic device may execute S18.
[0270] S17. If the backlight driver detects that the second backlight brightness value is less than the first threshold, it keeps the dimming mode of the electronic device in the second dimming mode and adjusts the backlight brightness value of the display screen to the second backlight brightness value through the second dimming mode.
[0271] S18. If the backlight driver detects that the second backlight brightness value is greater than or equal to the first threshold, it adjusts the backlight brightness value of the display screen to the second backlight brightness value through the first dimming mode.
[0272] Among them, S13, S14, S15, S16, S17 and S18 are respectively with Figure 7 The implementation methods of S401, S402, S403, S404, S405 and S406 in the illustrated embodiment are similar, and will not be described again here.
[0273] S19. The backlight driver determines whether the first backlight brightness value is less than the third threshold, and the third threshold is greater than the first threshold.
[0274] If the first backlight brightness value is greater than or equal to the third threshold, the electronic device may execute S20; if the first backlight brightness value is less than the third threshold, the electronic device may execute S21.
[0275] S20. If the backlight driver determines that the first backlight brightness value is greater than or equal to the third threshold, it keeps the dimming mode of the electronic device in the first dimming mode, adjusts the backlight brightness value of the display screen to the first backlight brightness value through the first dimming mode, and periodically monitors the second backlight brightness value according to the second cycle.
[0276] S21. If the backlight driver determines that the first backlight brightness value is less than the third threshold, it keeps the dimming mode of the electronic device in the first dimming mode, adjusts the backlight brightness value of the display screen to the first backlight brightness value through the first dimming mode, and monitors the second backlight brightness value. The second backlight brightness value is the backlight brightness value of the image displayed after the i-th frame.
[0277] S22. Backlight driver determines whether the second backlight brightness value is less than the first threshold.
[0278] When the second backlight brightness value is determined to be greater than or equal to the first threshold, the electronic device may execute S23; when the second backlight brightness value is determined to be less than the first threshold, the electronic device may execute S24.
[0279] S23. If the backlight driver detects that the second backlight brightness value is greater than or equal to the first threshold, it keeps the dimming mode of the electronic device in the first dimming mode and adjusts the backlight brightness value of the display screen to the second backlight brightness value through the first dimming mode.
[0280] S24. If the backlight driver detects that the second backlight brightness value is less than the first threshold, it adjusts the backlight brightness value of the display screen to the second backlight brightness value through the second dimming mode.
[0281] Among them, S19, S20, S21, S22, S23 and S24 are respectively with Figure 9 The implementation methods of S501, S502, S503, S504, S505 and S506 in the illustrated embodiment are similar, and will not be described again here.
[0282] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithmic steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.
[0283] This embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0284] When functional modules are divided according to their respective functions, the electronic device 100 involved in the above embodiments may further include: a first application program, a power management framework, a display hardware abstraction sublayer, and a backlight driver. The first application program, power management framework, display hardware abstraction sublayer, and backlight driver can be used to support the electronic device in performing the above steps, and / or other processes related to the technology described herein.
[0285] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0286] It should be noted that all relevant content in each step of the above method embodiments can be referenced from the functional description of the corresponding functional module, and can be found in the following documents: Figure 10 The description will not be repeated here.
[0287] The electronic device provided in this embodiment is used to perform the backlight adjustment method described above, and therefore can achieve the same effect as the above implementation method.
[0288] For example, this application provides an electronic device including a processor; when the processor executes computer code or instructions in memory, it causes the electronic device to perform the backlight adjustment method in the preceding embodiments.
[0289] For example, this application provides an electronic device, including: a memory and a processor; the memory is coupled to the processor, and the memory is used to store program code or instructions; the processor is used to call the program code or instructions in the memory to cause the electronic device to execute the backlight adjustment method in the preceding embodiments.
[0290] For example, this application provides a chip system applied to an electronic device including a memory, a display screen, and sensors; the chip system includes: one or more interface circuits and one or more processors; the interface circuits and processors are interconnected via lines; the interface circuits are used to receive signals from the memory and send signals to the processors, the signals including computer code or instructions stored in the memory; when the processor executes the computer code or instructions, the electronic device executes the backlight adjustment method in the preceding embodiments.
[0291] For example, this application provides a computer-readable storage medium storing code or instructions that, when executed on an electronic device, cause the electronic device to implement the backlight adjustment method described in the preceding embodiments.
[0292] For example, this application provides a computer program product that, when run on a computer, enables an electronic device to implement the backlight adjustment method described in the preceding embodiments.
[0293] In the above embodiments, all or part of the functionality can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented wholly or partially in the form of a computer program product. A computer program product includes one or more computer codes or instructions. When the computer program code or instructions are loaded and executed on a computer, all or part of the flow or functionality according to this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer code or instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0294] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A backlight adjustment method, characterized in that, Applied to an electronic device, the electronic device including a display screen, the method includes: During the process of the electronic device being in a screen-on state, a first backlight brightness value is obtained. The first backlight brightness value is the backlight brightness value of the i-th frame of the electronic device, where the i-th frame refers to the next frame of the currently displayed frame. If the first backlight brightness value is greater than or equal to the first threshold, the backlight brightness value of the display screen is adjusted to the first backlight brightness value through the first dimming mode. The first dimming mode is a pulse width modulation mode. The first dimming mode includes providing analog voltage and common interface voltage to the display screen through the display driver integrated circuit of the display screen, so that the backlight brightness value of the display screen is adjusted to the first backlight brightness value. If the first backlight brightness value is less than the first threshold, the backlight brightness value of the display screen is adjusted to the first backlight brightness value through the second dimming mode. The second dimming mode is a DC dimming mode, which includes providing the analog voltage and digital input / output voltage to the display screen through the display driver integrated circuit of the display screen, so that the backlight brightness value of the display screen is adjusted to the first backlight brightness value. When the backlight brightness value is adjusted using the second dimming mode, the power consumption of the electronic device is less than the power consumption of the electronic device when the backlight brightness value is adjusted using the first dimming mode.
2. The method according to claim 1, characterized in that, If the first backlight brightness value is less than the first threshold, adjusting the backlight brightness value of the display screen to the first backlight brightness value through a second dimming mode includes: If the first backlight brightness value is greater than or equal to the second threshold, the dimming mode of the electronic device is kept in the second dimming mode. Through the second dimming mode, the backlight brightness value of the display screen is adjusted to the first backlight brightness value, and the second backlight brightness value is monitored. The second backlight brightness value is the backlight brightness value of the screen displayed after the i-th frame. The second threshold is less than the first threshold. If the second backlight brightness value is greater than or equal to the first threshold, the backlight brightness value of the display screen is adjusted to the second backlight brightness value through the first dimming mode.
3. The method according to claim 2, characterized in that, The monitoring of the second backlight brightness value includes: According to the first cycle, the second backlight brightness value is periodically monitored at the first moment. The duration of the first cycle is the first duration, which is the duration for the display screen to display one frame. The first moment is the moment in the display screen displaying one frame. Furthermore, the first moment is determined based on the performance related to the speed at which the display screen adjusts the backlight brightness value.
4. The method according to claim 3, characterized in that, The method further includes: If the first backlight brightness value is less than the second threshold, the dimming mode of the electronic device is kept at the second dimming mode. Through the second dimming mode, the backlight brightness value of the display screen is adjusted to the first backlight brightness value, and the second backlight brightness value is monitored periodically according to the second cycle. The duration of the second cycle is the second duration, which is greater than the first duration. If the second backlight brightness value is less than the first threshold, the dimming mode of the electronic device is kept at the second dimming mode, and the backlight brightness value of the display screen is adjusted to the second backlight brightness value through the second dimming mode.
5. The method according to claim 4, characterized in that, If the first backlight brightness value is greater than or equal to the first threshold, adjusting the backlight brightness value of the display screen to the first backlight brightness value through a first dimming mode includes: If the first backlight brightness value is less than the third threshold, the dimming mode of the electronic device is kept at the first dimming mode. Through the first dimming mode, the backlight brightness value of the display screen is adjusted to the first backlight brightness value, and the second backlight brightness value is monitored. The third threshold is greater than the first threshold. If the second backlight brightness value is less than the first threshold, the backlight brightness value of the display screen is adjusted to the second backlight brightness value through the second dimming mode.
6. The method according to claim 5, characterized in that, The method further includes: If the first backlight brightness value is greater than or equal to the third threshold, the dimming mode of the electronic device is kept at the first dimming mode. Through the first dimming mode, the backlight brightness value of the display screen is adjusted to the first backlight brightness value, and the second backlight brightness value is periodically monitored according to the second cycle. If the second backlight brightness value is greater than or equal to the first threshold, the dimming mode of the electronic device is kept at the first dimming mode, and the backlight brightness value of the display screen is adjusted to the second backlight brightness value through the first dimming mode.
7. The method according to any one of claims 1 to 6, characterized in that, The process of obtaining the first backlight brightness value includes: Obtain the first ambient light intensity value of the environment in which the electronic device is located; The first backlight brightness value is determined based on the first ambient light intensity value.
8. The method according to any one of claims 1 to 6, characterized in that, The process of obtaining the first backlight brightness value includes: Display a first interface, which can be any interface of the electronic device; During the process of displaying the first interface, the screen brightness information of the second interface to be displayed by the electronic device is obtained. The second interface is the interface of the first application in the electronic device. The first application is any one of the multiple applications in the electronic device. The screen brightness information is used to indicate the average brightness of the screen. The backlight brightness value corresponding to the image brightness information is determined as the first backlight brightness value.
9. The method according to claim 8, characterized in that, The step of determining the backlight brightness value corresponding to the image brightness information as the first backlight brightness value includes: Obtain the second ambient light intensity value of the environment in which the electronic device is located; The first backlight brightness value is determined based on the second ambient light intensity value and the backlight brightness value corresponding to the screen brightness information.
10. The method according to any one of claims 1 to 6, characterized in that, The process of obtaining the first backlight brightness value includes: A third interface is displayed, which includes a brightness adjustment control for adjusting the brightness of the display screen. In response to a first operation on the brightness adjustment control, a first backlight brightness value is obtained, wherein the first operation is used to adjust the backlight brightness value of the display screen from the original backlight brightness value to the first backlight brightness value.
11. The method according to any one of claims 1 to 10, characterized in that, The method further includes: When the electronic device switches from a screen-on state to a screen-off state, the target backlight brightness value and target dimming mode of the electronic device at the current moment are stored, wherein the target dimming mode is either the first dimming mode or the second dimming mode. When the electronic device switches from the screen-off state to the screen-on state, the backlight brightness of the display screen is adjusted to the target backlight brightness value through the target dimming mode.
12. The method according to any one of claims 1 to 11, characterized in that, The method further includes: Each time the electronic device is powered on, the backlight brightness of the display screen is adjusted to a second backlight brightness value through the first dimming mode. The second backlight brightness value is a backlight brightness value pre-stored in the electronic device.
13. The method according to any one of claims 1 to 12, characterized in that, The electronic device includes a first module and a backlight driver, the first module including any application program in the electronic device; the method includes: During the process when the electronic device is in a screen-on state, the first module obtains a first backlight brightness value. The first backlight brightness value is the backlight brightness value of the i-th frame of the electronic device. The i-th frame refers to the next frame of the current frame. If the backlight driver determines that the first backlight brightness value is greater than or equal to a first threshold, it adjusts the backlight brightness value of the display screen to the first backlight brightness value through a first dimming mode. The first dimming mode is a pulse width modulation mode, which includes providing analog voltage and common interface voltage to the display screen through the display driver integrated circuit of the display screen to adjust the backlight brightness value of the display screen to the first backlight brightness value. If the backlight driver determines that the first backlight brightness value is less than the first threshold, it adjusts the backlight brightness value of the display screen to the first backlight brightness value through a second dimming mode. The second dimming mode is a DC dimming mode, which includes providing analog voltage and digital input / output voltage to the display screen through the display driver integrated circuit of the display screen to adjust the backlight brightness value of the display screen to the first backlight brightness value. The power consumption of the electronic device when adjusting the backlight brightness value using the second dimming mode is less than the power consumption of the electronic device when adjusting the backlight brightness value using the first dimming mode.
14. An electronic device, characterized in that, The electronic device includes: one or more processors, and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 13.
15. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 13.
17. A computer program product, characterized in that, The computer program product includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 13.