Backlight brightness control method and electronic equipment
Patent Information
- Application Number
- CN202480012226.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-29
- Filing Date
- 2024-03-12
- Publication Date
- 2025-09-19
AI Technical Summary
In electronic devices, the frequent crossing of the LTM unit and the binder unit cause a sudden change in the brightness of the backlight, causing the problem of flickering the display screen.
By introducing the LTM enable identification mechanism, the power consumption controls the trigger of brightness flexibly, avoids frequent brightness adjustments, and uses a brightness queue to temporarily store the brightness value to avoid direct locking, ensuring that the display driver accurately receives the brightness value when needed, thereby avoiding backlighting Brightness changes suddenly.
It effectively avoids display flickering due to frequent triggering of power consumption control, realizes smooth adjustment of backlight brightness, and improves user experience.
Smart Images

Figure CN120677523A_ABST
Abstract
Description
Backlight brightness control method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on May 29, 2023, with application number 202310620454.8 and invention name “A backlight brightness control method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the technical field of electronic devices, and in particular to a backlight brightness control method and an electronic device. Background Art
[0003] Electronic devices can control the backlight of the display screen under the control of the user.
[0004] In addition, some electronic devices are also equipped with other backlight control strategies. For example, local tone mapping (LTM unit) power control measures can be configured in electronic devices. When power control is triggered, the LTM unit can process the brightness value sent to the display according to a preset discount factor, so that the display can control the backlight brightness according to the lower brightness value sent by the LTM unit, thereby achieving the purpose of saving power.
[0005] When an electronic device controls the backlight brightness according to a user's control, if the power consumption control of the LTM unit is triggered, a sudden change in the backlight brightness may cause screen flickering.
[0006] Summary of the Invention
[0007] The present application provides a backlight brightness control method and electronic device to avoid sudden changes in backlight brightness caused by frequent cross-transmission of brightness values by an LTM unit and a binder unit, thereby avoiding the resulting flickering of the display screen.
[0008] To achieve the above technical objectives, this application adopts the following technical solutions:
[0009] In a first aspect, a method for controlling backlight brightness is provided, which is applied to an electronic device. The method includes: receiving a brightness adjustment operation from a user and obtaining a value of an LTM enable flag. When the LTM enable flag is a second value, in response to the brightness adjustment operation, adjusting the brightness of the display screen from a first brightness to a second brightness. The first brightness is the backlight brightness of the display screen of the electronic device before receiving the user's brightness adjustment operation. When the LTM enable flag is a first value, adjusting the brightness of the display screen from the first brightness to a third brightness to control power consumption of the display screen. The third brightness is lower than the second brightness.
[0010] Based on this solution, an LTM enable flag can be configured in an electronic device. This LTM enable flag can be flexibly set by the electronic device based on actual circumstances. Thus, when power consumption control is triggered and backlight brightness adjustment is required using power consumption control brightness, the electronic device can determine whether the current power consumption control is in effect based on the configuration of the LTM enable flag. This allows the electronic device to flexibly and accurately control the triggering of power consumption control using the LTM enable flag, thereby avoiding display flickering caused by frequent triggering of power consumption control during backlight adjustment instructions from the user.
[0011] Optionally, when the number of times the power consumption control is continuously triggered reaches a preset threshold, the electronic device configures the LTM enable flag to be a first value, which is used to indicate that the power consumption control triggered during the display of the next frame of image is effective. This provides a specific implementation of a solution for configuring the LTM enable flag. For example, when the power consumption control is triggered multiple times in a row, the LTM enable flag is configured to be a first value (such as true) so that a smaller brightness value can be used for backlight adjustment the next time the power consumption control is triggered, thereby achieving the effect of power consumption control.
[0012] Optionally, when the power consumption control is not triggered, the electronic device configures the LTM enable flag to a second value, indicating that the power consumption control triggered during the display of the next frame of image is not effective. In this way, when there is no need to trigger the power consumption control during the display of a frame of image, the electronic device can reconfigure the LTM enable flag to the second value (such as false) so that the second brightness determined according to the user operation can still be used to adjust the backlight the next time the power consumption control is triggered, thereby avoiding a sudden change in the backlight.
[0013] Optionally, power consumption control is triggered when at least one of the following conditions is met: the power consumption of the electronic device is greater than a preset power consumption threshold. The remaining power of the electronic device is less than a preset power threshold. The number of applications running on the electronic device is greater than a preset number threshold. The electronic device is running at least one high-power consumption application, and the high-power consumption application is determined based on the resource occupancy during the application operation and / or the list of high-power consumption applications configured in the electronic device. Therefore, when any one or more of the above conditions are met, the electronic device can determine that the power consumption control strategy is effective, and correspondingly trigger power consumption control. It can be understood that even if power consumption control is triggered, the electronic device can still determine whether the triggering of the power consumption control is effective based on the LTM enable flag involved in the above example.
[0014] Optionally, the method further includes: the electronic device generates at least one target brightness according to the brightness adjustment operation, and each of the at least one target brightness is used to control the backlight brightness during the display of a frame image. In this example, after the user inputs a brightness control instruction, the electronic device can adjust the backlight brightness according to a certain gradient in subsequent multiple frames of images, so as to obtain the effect of the backlight gradually darkening or brightening. In this way, when the user inputs a brightness control instruction, the electronic device can generate corresponding target brightness for subsequent multiple frame images, and the difference between each target brightness is the same or similar. Therefore, when the corresponding frame image is subsequently displayed, the electronic device can adjust the brightness according to the corresponding target brightness of the frame image.
[0015] Optionally, the electronic device is configured with a binder unit, which is used to control the backlight brightness of the display screen according to the corresponding target brightness. The electronic device is also configured with a display driver. In response to the brightness adjustment operation, the brightness of the display screen is adjusted from a first brightness to a second brightness, including: the display driver obtains the second brightness from the binder unit, and the display driver controls the backlight brightness of the display screen according to the second brightness when displaying the current frame image, and the second brightness is included in the at least one target brightness. This provides a specific solution for adjusting the backlight brightness according to the target brightness.
[0016] Optionally, the electronic device is configured with a brightness queue, which is used to store the at least one target brightness. The display driver obtains the second brightness from the binder unit, including: the binder unit obtains the second brightness generated by the electronic device. The binder unit stores the second brightness in the brightness queue. The display driver obtains the second brightness from the brightness queue. In this example, by adding a brightness queue (or called a binder queue), the brightness value issued by the binder unit will not be directly received by the display driver, causing the binder to be locked. Through the temporary storage of the binder queue, the display driver can determine whether it is necessary to use the brightness value in the current binder queue for backlight brightness control by querying the LTM enable flag.
[0017] Optionally, the electronic device is further configured with an LTM unit. Adjusting the brightness of the display screen from the first brightness to the third brightness includes: when the LTM enable flag is the first value, the LTM unit obtains the second brightness from the binder unit. The LTM unit obtains the third brightness based on the second brightness. The display driver obtains the third brightness from the LTM unit, and the display driver controls the backlight brightness of the display screen according to the third brightness when displaying the current frame image. Thus, a specific implementation of a backlight brightness adjustment mechanism based on power consumption control brightness is provided.
[0018] Optionally, the receiving of the user's brightness adjustment operation includes: the electronic device receiving the brightness adjustment operation before displaying the Nth frame image. The electronic device generates at least one target brightness according to the brightness adjustment operation, including: the electronic device generating first indication information according to the brightness control instruction, the first indication information being used to instruct the display screen to control the backlight brightness according to a fourth brightness during the display of the Nth frame image, the fourth brightness being included in the at least one target brightness. In this way, when receiving the user's instruction to adjust the backlight brightness, the electronic device can generate and send a corresponding brightness value for the Nth frame image to adjust the backlight brightness.
[0019] Optionally, when the electronic device is displaying the Nth frame image, the method further includes: the electronic device determines not to trigger the power consumption control, and the electronic device controls the backlight brightness according to the fourth brightness included in the first indication information.
[0020] Optionally, the method further includes: when the electronic device determines not to trigger the power consumption control, the electronic device configures the LTM enable flag to a second value to indicate that the power consumption control triggered during the display of the next frame of image is not effective.
[0021] Optionally, the electronic device is further configured with a counting unit, and the method further includes: when the electronic device determines not to trigger the power consumption control, the electronic device configures the count value in the counting unit to 0.
[0022] In this way, during the display of a frame image that does not trigger power consumption control, the electronic device can initialize the LTM enable flag and count value (such as configuring it to false, clearing it to zero, etc.) to facilitate the subsequent accurate triggering or non-triggering of the use of the corresponding brightness value of power consumption control. In this example, the count value of the counting unit can be used to indicate the number of consecutive triggering of power consumption control. In this way, when power consumption control is not triggered during the display of the Nth frame image, the electronic device can reset the count value of the counting unit to zero.
[0023] Optionally, when the electronic device is displaying the (N+1)th frame of image, the method further includes: when the electronic device determines that the power consumption control is triggered, and when the LTM enable flag is configured as the second value, the electronic device controls the backlight brightness according to a fifth brightness included in the second indication information. The second indication information is used to instruct the display screen to control the backlight brightness according to the fifth brightness during the display of the (N+1)th frame of image, where the fifth brightness is included in the at least one target brightness.
[0024] Optionally, the method further includes: the electronic device adding 1 to the count value in the counting unit.
[0025] Optionally, when the electronic device is displaying the N+2th frame image, the method further includes: the electronic device determining that the power consumption control is triggered, and when the LTM enable flag is configured as the second value, the electronic device controls the backlight brightness according to the sixth brightness included in the third indication information. The third indication information is used to instruct the display screen to control the backlight brightness according to the sixth brightness during the display of the N+2th frame image, and the sixth brightness is included in the at least one target brightness. The electronic device increases the count value in the counting unit by 1.
[0026] Optionally, the method further includes: when the count value in the counting unit reaches a preset number threshold, the electronic device configures the LTM enable flag to a first value, which is used to indicate that the power consumption control triggered during the display of the next frame of image is effective.
[0027] For example, if power consumption control is triggered from the N+1th frame to the N+3th frame, then when the N+3th frame is displayed, the count value of the counting unit may be 3. Taking the number threshold of 3 as an example, after the N+3th frame is displayed and before the N+4th frame begins to be displayed, the electronic device may configure the LTM enable flag to the first value so that when the N+4th frame continues to trigger power consumption control, the backlight brightness can be adjusted using the power consumption control brightness.
[0028] In a second aspect, an electronic device is provided, comprising: a memory, a display, and one or more processors. The memory, the display, and the processor are coupled. The memory is configured to store computer program code, the computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device performs the method provided in the first aspect and any possible design thereof, controlling the display to adjust backlight brightness.
[0029] In a third aspect, the present application further provides a chip system, which is applied to an electronic device. The chip system may include one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected via a line, and the interface circuit is used to receive a signal from the memory of the electronic device and send the signal to the processor. The signal includes computer instructions stored in the memory. When the processor executes the above-mentioned computer instructions, the electronic device performs the method provided in the first aspect and any possible design thereof.
[0030] In a fourth aspect, the present application also provides a computer-readable storage medium comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute the method provided in the first aspect and any possible design thereof.
[0031] In a fifth aspect, the present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the method provided in the first aspect and any possible design thereof.
[0032] It can be understood that the solutions provided in the second to fifth aspects of the present application can respectively correspond to the first aspect and any possible design thereof, so the beneficial effects that can be achieved are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] FIG1 is a schematic diagram of an interface interaction in which a user instructs an electronic device to adjust backlight brightness;
[0034] FIG2 is a logic diagram of backlight adjustment;
[0035] FIG3 is a schematic diagram of the interaction between various modules during a backlight adjustment process;
[0036] FIG4 is a logic diagram of backlight adjustment in a case of trigger power consumption control based on an LTM unit;
[0037] FIG5 is a schematic diagram of the configuration and implementation of a backlight lock during the backlight brightness delivery process;
[0038] FIG6 is a schematic diagram of a binder and an LTM unit frequently cross-delivering backlight brightness;
[0039] FIG7 is a schematic diagram showing backlight brightness distribution by each unit after the solution provided in an embodiment of the present application takes effect;
[0040] FIG8 is a schematic diagram of the composition of an electronic device provided in an embodiment of the present application;
[0041] FIG9 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0042] FIG10 is a schematic diagram of a software architecture of another electronic device provided in an embodiment of the present application;
[0043] FIG11 is a schematic diagram of module interaction of a backlight brightness control method provided in an embodiment of the present application;
[0044] FIG12 is a schematic diagram of module interaction of a backlight brightness control method provided in an embodiment of the present application;
[0045] FIG13 is a schematic diagram of module interaction of a backlight brightness control method provided in an embodiment of the present application;
[0046] FIG14A is a schematic diagram of module interaction of a backlight brightness control method provided in an embodiment of the present application;
[0047] FIG14B is a schematic diagram showing changes in backlight brightness, count values of counting units, and LTM enable flags issued by various units after the solution provided in an embodiment of the present application takes effect;
[0048] FIG15 is a schematic diagram of an interactive flow of a backlight brightness control method provided in an embodiment of the present application;
[0049] FIG16 is a schematic diagram of the composition of another electronic device provided in an embodiment of the present application;
[0050] FIG17 is a schematic diagram showing the composition of another chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0052] Currently, most electronic devices with display screens can provide users with a backlight adjustment function. By adjusting the backlight, the electronic device can provide users with a display experience that suits their needs through brighter or darker backlight.
[0053] For example, referring to FIG1 , taking a mobile phone as an example, a user can instruct the mobile phone to adjust the backlight by operating a brightness adjustment control in the mobile phone.
[0054] In the example shown in FIG1 , a mobile phone may display a main interface 101. A user may input a swipe down operation 102 on the mobile phone. In response to operation 102, the mobile phone may display a set of shortcut function options 103 at the top. The set of shortcut function options 103 may include multiple different function controls.
[0055] For example, in the example shown in FIG. 1 , the quick function option set 103 may include a wifi switch control 104 , a cellular communication switch control 105 , and the like.
[0056] The quick function option set 103 shown in FIG. 1 may also include a brightness adjustment control 106 .
[0057] For example, the current backlight brightness is A1 and the right end of the brightness adjustment control 106 is located at position 11.
[0058] The user can input a left swipe operation 107 (also known as a brightness adjustment operation) on the brightness adjustment control 106, dragging the right end of the brightness adjustment control 106 to position 12. Position 12 corresponds to the backlight brightness of A2. In this way, the user can instruct the phone to reduce the backlight brightness from A1 to A2 through the left swipe operation 107.
[0059] Correspondingly, the mobile phone can respond to the left sliding operation 107 by gradually reducing the backlight brightness from A1 to A2.
[0060] It is understandable that in order to avoid a sudden change in display effect caused by overly rapid backlight brightness control, the mobile phone can gradually control the backlight brightness to decrease during the process of controlling the backlight brightness from A1 to A2.
[0061] For example, assuming A1 is 1000 nits and A2 is 960 nits, when the user inputs operation 102, the frame image displayed on the mobile phone is the first frame image. In some implementations, the first frame image displayed on the mobile phone may be the frame image displayed when the user's brightness adjustment operation is received. The corresponding A1 may be the first brightness.
[0062] Referring to Figure 2, the electronic device may control the backlight to 1000 nits in the first frame. Then, in the second frame, the backlight may be reduced by 10 nits, that is, the backlight is controlled to 990 nits in the second frame. Similarly, in the fifth frame, the electronic device may reduce the current backlight brightness to 960 nits indicated by the user. In some embodiments, the second brightness may be 990 nits corresponding to the second frame.
[0063] In other embodiments, the first brightness and the second brightness may also be used to indicate normalized brightness values.
[0064] In order to control the backlight brightness, the electronic device may be equipped with corresponding functional modules, which cooperate with each other to achieve a gradient decrease in the backlight value as shown in FIG2 .
[0065] Exemplarily, referring to FIG3 , a local display configuration module (LocalDisplayAdapter), a backlight configuration module (setDisplayBrighttness), a panel backlight configuration module (SetPanelBrightness), a display driver, and a display panel (Panel) may be configured in the electronic device.
[0066] When the user inputs an operation to adjust the backlight value (operation 102 shown in FIG1 ), the LocalDisplayAdapter in the electronic device can determine the backlight brightness required for the current frame image and sequentially send it down to implement brightness control of the current frame image.
[0067] As an example, it is taken that LocalDisplayAdapter determines that the brightness of the current frame image needs to be B1.
[0068] As shown in Figure 3, LocalDisplayAdapter can send down the brightness B1. In some implementations, the brightness B1 can be a brightness in nits. setDisplayBrighttness can receive the brightness B1 and process the brightness B1. For example, setDisplayBrighttness can convert the brightness B1 so that the converted brightness can be directly recognized and called by other underlying modules. In this example, setDisplayBrighttness can determine that the underlying layer can control the backlight according to the brightness B2 based on the received brightness B1. In some implementations, the brightness B2 can be the brightness obtained after unit conversion and / or normalization based on the brightness B1.
[0069] SetDisplayBrighttness can send brightness B2 to SetPanelBrightness. In return, SetPanelBrightness can use the Binder unit to send brightness based on B2. For example, the Binder unit in SetPanelBrightness can send brightness B2 to the display driver. The display driver can then control the display panel backlight based on brightness B2.
[0070] In the example shown in FIG3 , an LTM unit may also be configured in SetPanelBrightness.
[0071] In the present application, the LTM unit can be used for power consumption control. It can be understood that the higher the brightness of the backlight, the higher the corresponding power consumption. Under preset conditions, when the LTM unit is triggered to work, the LTM unit can obtain the current brightness B2 from the Binder unit. One or more discount coefficients can be pre-configured in the LTM unit. The value of the discount coefficient can be included in the range of (0, 1). Take the discount coefficient as x as an example. In this way, the LTM unit can determine the brightness that needs to be used after power consumption control based on the brightness B2 and the discount coefficient x. For example, the brightness after power consumption control (such as called power consumption control brightness) can be equal to x*B2. In an embodiment of the present application, the LTM unit can also be called Local Tone Mapping, that is, local tone mapping.
[0072] Similar to the description of gradually reducing the backlight brightness of the above electronic device, the LTM unit can also gradually send down the brightness reduction value according to the preset step size after determining the power consumption control brightness according to the discount coefficient.
[0073] For example, refer to Figure 4. For example, a discount factor x of 95% and a preset step size of 20 are used. This preset step size can be consistent with the unit of the normalized brightness B2. In the following description, unless otherwise specified, brightness without a unit is assumed to be in the normalized unit.
[0074] In the display of the first frame of the image, the power consumption control of the LTM unit is triggered. Then, the brightness sent by the binder unit can be 1000. Correspondingly, the LTM unit can obtain the brightness 1000 of the current frame (such as the first frame) from the binder unit when the power consumption control is triggered. The LTM unit can determine that the brightness 1000 needs to be reduced to 950 based on the preset discount coefficient (95%). In this example, in order to avoid a sudden change in brightness after the power consumption control is triggered, similar to the mechanism shown in Figure 2, the LTM unit can instruct the display screen of the electronic device to reduce the brightness multiple times until the brightness value is reduced to 950.
[0075] For example, as shown in FIG4 , the LTM unit can issue a brightness value of 980 in the first frame of the current image, based on a preset step size. It then issues a brightness value of 960 in the second frame of the current image. And then, it issues a brightness value of 950 in the third frame of the subsequent image. It is understood that, based on the preset step size of 20, the brightness value that should be issued in the third frame is 960-20=940. However, since the final brightness value to be reduced, as determined by the discount factor, is 950, the LTM unit can issue a brightness value of 950 in the third frame to control the display backlight adjustment.
[0076] Combined with the above description of the first brightness and the second brightness. When power consumption control is triggered, the electronic device can use 980 (third brightness) issued by the LTM unit to control the backlight brightness during the display of the current first frame of the image. It can be understood that the third brightness can be determined by the second brightness based on the discount coefficient and the preset step size, so the third brightness is less than the second brightness. When the third brightness is used instead of the second brightness to adjust the backlight brightness, the effect of reducing the backlight brightness can be achieved, thereby reducing power consumption overhead and realizing power consumption control.
[0077] It is understood that, as shown in the example of Figure 4, the binder unit triggers power consumption control when delivering the brightness value corresponding to the first frame. Power consumption control may also be triggered during the subsequent delivery of the backlight brightness corresponding to other frames. After power consumption control is triggered, the LTM unit performs operations similar to those shown in Figure 4 and will not be further described.
[0078] In an embodiment of the present application, when any one or more of the following conditions are met, power consumption control is triggered: the current power consumption of the electronic device is greater than a preset power consumption threshold; the remaining power of the current electronic device is less than a preset power threshold; the number of applications running on the current electronic device is greater than a preset number threshold; the current electronic device is running at least one high-power consumption application, where the high-power consumption application can be determined based on the resource usage during the operation of the application and / or the list of high-power consumption applications configured in the electronic device.
[0079] The triggering mechanism for power consumption control may vary in different implementations.
[0080] In some implementations, the electronic device can enter a power saving mode (or power saving mode) under user control. In response to the user's control, the LTM unit can adjust the backlight brightness according to the mechanism that triggers power consumption control during subsequent frame image display.
[0081] In other implementations, an application configured above the LTM unit in the electronic device can independently determine whether to trigger power consumption control. The application can send an instruction to the LTM unit to instruct the LTM unit to adjust the backlight brightness according to the mechanism for triggering power consumption control.
[0082] In other implementations, the LTM unit has the ability to independently determine whether to trigger power consumption control. In this way, under the above-mentioned conditions and restrictions, the LTM unit can adjust the backlight brightness according to the mechanism of triggering power consumption control.
[0083] In the following example, the LTM unit is used to determine and trigger power consumption control.
[0084] It should be noted that, in a specific implementation process, the display driver may control the brightness of the display panel using a brightness control.
[0085] As an implementation, the display driver can be configured with a backlight lock. The backlight lock can be implemented specifically through a flag bit with a value of 0 or 1. When controlling the backlight brightness of a certain frame of image, the display driver can configure the backlight lock to 1 after receiving a brightness. When the backlight lock is configured to 1, other units will not send the backlight brightness. This ensures that the display driver will not receive multiple brightness levels at the same time (or in the same time period).
[0086] For example, refer to Figure 5. After receiving the brightness B2 sent by the binder unit, the display driver can configure the backlight lock to 1. Correspondingly, the display driver can control the display panel to control the brightness of the backlight according to the brightness B2. In the process of the display driver controlling the brightness of the backlight according to the brightness B2 (such as the display duration of 1 frame image), the backlight lock can always maintain the value of 1 unchanged. In this way, the backlight will no longer change during the display of the frame image. In this application, the case where the backlight lock is configured to 1 can be referred to as the unit lock that sends the corresponding brightness. For example, in this example, the binder unit sends the brightness B2, triggering the display driver to configure the backlight lock to 1 after receiving the brightness B2. Then, within the current duration of the backlight brightness control according to the brightness B2, the binder unit is locked. In this application, the brightness value sent by the binder unit can also be referred to as the target brightness. The target brightness can be generated based on the brightness adjustment operation input by the user.
[0087] Correspondingly, in other cases, the LTM unit's power consumption control is triggered. For example, if the electronic device does not receive a user instruction to control brightness, the binder unit will not perform brightness control. In this way, the LTM unit can obtain the current brightness (such as brightness B2) and send the brightness based on the logic shown in Figure 4.
[0088] For example, the LTM unit can send a brightness of B3, and the corresponding display driver can configure the backlight lock to 1. The display driver can also control the display panel to display the backlight corresponding to the brightness of B3. During this process, the LTM unit is locked.
[0089] It can be seen that in the scenario where the binder unit performs backlight control according to the user's instructions, or the LTM unit performs backlight control based on power consumption control after being triggered, the display driver can control the display panel to accurately control the backlight brightness according to the corresponding received brightness.
[0090] However, in some cases, the binder unit and the LTM unit may simultaneously send brightness.
[0091] For example, when the user inputs the left swipe operation 107 as shown in Figure 1, the binder unit can issue the backlight brightness according to the logic shown in Figure 2. In this process, the power consumption control of the LTM unit is triggered.
[0092] As a result, the binder unit and the LTM unit will send brightness at the same time in the first frame or the third frame as shown in FIG4 .
[0093] For example, refer to Figure 6. In the first frame, the binder unit sends a brightness of 1000. Correspondingly, in this first frame, the LTM unit's power consumption control is triggered. In the first frame, the 1000 sent by the binder unit may occur before the brightness sent by the LTM unit. As a result, the binder unit is locked, and the LTM unit no longer sends the corresponding brightness of 980. The display driver controls the display panel's backlight brightness based on the 1000 sent by the binder unit.
[0094] In the second frame, the 980 signal sent by the LTM unit in the first frame is received by the display driver before the 990 signal sent by the binder unit. Therefore, the display driver controls the backlight brightness of the display panel based on the 980 signal sent by the LTM unit. This results in a dimming of the backlight from the first frame to the second frame, equivalent to a 20 degree decrease in brightness.
[0095] In the third frame, the binder unit should have issued a brightness of 990 in the second frame, but the LTM unit held the lock and did not issue it. Therefore, the binder unit continues to issue a brightness of 980 in the third frame. The display driver then controls the backlight brightness of the display panel based on the 990 issued by the binder unit. This results in a brighter backlight from the second frame to the third frame. The brightness increase is equivalent to a brightness increase of 10.
[0096] In the fourth frame, the binder unit continues to send 980 after 990, controlling the backlight to continue its gradient decrease. This frame triggers the LTM unit's power consumption control. For similar reasons as the first frame, the binder unit holds the fourth frame. The display driver controls the display panel's backlight brightness based on the 980 sent by the binder unit. This results in a dimming of the backlight from the third to the fourth frame. The dimming is equivalent to a brightness drop of 10.
[0097] In frame 5, based on a display similar to frame 2, the display driver controls the display panel's backlight brightness according to the 960 signal from the LTM unit. This results in a dimming of the backlight from frame 4 to frame 5, equivalent to a 20% decrease in brightness.
[0098] In this way, the backlight brightness reaches the brightness indicated by the user, and the binder unit temporarily stops issuing new brightness.
[0099] As can be seen in the scenario shown in Figure 6, the LTM unit's power consumption control is triggered multiple times, causing the backlight brightness to be controlled differently than with gradient descent, resulting in flickering. This manifests as a flickering display, which significantly degrades the user's viewing experience. This is particularly noticeable when the electronic device has a 60Hz refresh rate and the main display is a text message interface.
[0100] It should be noted that in the above example, after the power consumption control is triggered, the LTM unit can send the discounted brightness value calculated when the power consumption control was last triggered in the current frame image, so as to control the display screen to reduce the backlight brightness and achieve the purpose of reducing the corresponding power consumption. In other cases, the LTM unit can also recalculate the discounted backlight brightness based on the brightness value sent by the binder unit corresponding to the current frame image after the power consumption control is triggered, and send it to the display screen for corresponding power consumption control. In this scenario, there may also be a problem of sudden changes in the backlight brightness control during the display of continuous frame images due to the frequent cross-sending of brightness values by the LTM unit and the binder unit, which in turn causes the screen to flicker.
[0101] In order to solve the above problems, an embodiment of the present application provides a backlight brightness control method, which enables the electronic device to use the brightness issued by the LTM unit for backlight brightness control only when the LTM unit repeatedly issues backlight brightness requirements after triggering the power consumption control of the LTM unit. As a result, when the binder unit and the LTM unit simultaneously and continuously issue brightness multiple times, the display driver can mainly control the backlight brightness based on the gradient-decreasing brightness issued by the binder unit. This can then achieve the effect of gradually increasing or decreasing the backlight control process, avoiding problems such as flickering in the above example.
[0102] As an example, FIG7 provides a solution based on an embodiment of the present application, showing the corresponding backlight brightness from 1000 to 960 in each frame image under the same scenario as shown in FIG6 . As shown in FIG7 , in frames 1 to 3, the backlight brightness uses the brightness issued by the binder unit. For example, the first frame is 1000, and the gradient decreases by 10 each time, corresponding to the second frame being 990 and the third frame being 980. As in the scenario example of FIG6 , the power consumption control function of the LTM unit is triggered in both frames 1 and 3. In frame 2, since the LTM unit did not issue the brightness in frame 1, there is also a need for the LTM unit to issue brightness in frame 2. In this way, the LTM unit needs to issue brightness in the first three frames. Based on the solution provided by an embodiment of the present application, if the LTM unit needs to issue brightness for three consecutive frames, the electronic device uses the brightness issued by the LTM unit to control the backlight brightness in the next frame (such as frame 4). That is, as shown in Figure 7, in the fourth frame, the backlight brightness is controlled using the brightness of 980 sent by the LTM unit. Thus, from the first to the third frame, the backlight brightness gradually decreases, and the backlight brightness in the fourth frame remains unchanged compared to the third frame, without any variable flicker. In the fifth frame, the backlight brightness is controlled again using the brightness sent by the binder, thereby achieving the user-indicated backlight brightness of 960. This prevents flickering during backlight control when the binder sends the backlight value and triggers the power consumption control of the LTM unit.
[0103] The solution provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0104] It should be noted that the electronic device in the embodiments of the present application may include at least one of a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, or a smart city device. The embodiments of the present application do not impose any particular restrictions on the specific type of the electronic device.
[0105] For example, the electronic device involved in the solution provided in the embodiments of the present application may be configured with a display screen. The electronic device can control the brightness of the display screen backlight under user instructions. The electronic device may also be configured with an LTM unit for controlling the power consumption of the backlight display. Based on the technical solution provided in the embodiments of the present application, the electronic device can achieve a relatively smooth backlight control effect during backlight control, even if the power consumption control of the LTM unit is triggered, avoiding problems such as flickering during the backlight control process.
[0106] As an example, FIG8 shows a schematic structural diagram of an electronic device 700 .
[0107] The electronic device 700 may include at least one of a mobile phone, a foldable electronic device, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, or a smart city device. The embodiments of the present application do not impose any particular restrictions on the specific type of the electronic device 700.
[0108] The electronic device 700 may include a processor 710, an external memory interface 720, an internal memory 721, a universal serial bus (USB) connector 730, a charging management module 740, a power management module 741, a battery 742, an antenna 1, an antenna 2, a mobile communication module 750, a wireless communication module 760, an audio module 770, a speaker 770A, a receiver 770B, a microphone 770C, an earphone interface 770D, a sensor module 780, a button 790, a motor 791, an indicator 792, a camera module 793, a display screen 794, and a subscriber identification module (SIM) card interface 795, etc. The sensor module 780 may include a pressure sensor 780A, a gyroscope sensor 780B, an air pressure sensor 780C, a magnetic sensor 780D, an acceleration sensor 780E, a distance sensor 780F, a proximity light sensor 780G, a fingerprint sensor 780H, a temperature sensor 780J, a touch sensor 780K, an ambient light sensor 780L, a bone conduction sensor 780M, etc.
[0109] The processor 710 may include one or more processing units, for example, an application processor (AP), a modem processor (Modem), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor (BP or BBP), and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0110] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0111] Processor 710 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 710 may be a cache memory. This memory can store instructions or data that have been used or are frequently used by processor 710. When processor 710 needs to use the instruction or data, it can directly access it from this memory. This avoids duplicate accesses, reduces processor 710 latency, and thus improves system efficiency.
[0112] In some embodiments, the processor 710 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface. The processor 710 may be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display, and a camera through at least one of the above interfaces.
[0113] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely illustrative and does not constitute a structural limitation on the electronic device 700. In other embodiments of the present application, the electronic device 700 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0114] It should be noted that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 700. In other embodiments of the present application, the electronic device 700 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0115] Electronic device 700 can implement display functions using a GPU, display screen 794, and an application processor. A GPU is a microprocessor for image processing that connects display screen 794 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 710 may include one or more GPUs that execute program instructions to generate or modify display information.
[0116] Display screen 794 is used to display images, videos, and the like. Display screen 794 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, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 700 may include one or more display screens 794.
[0117] External memory interface 720 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of electronic device 700. The external memory card communicates with processor 710 via external memory interface 720 to implement data storage. For example, files such as music and videos can be stored on the external memory card or transferred from the electronic device to the external memory card.
[0118] The internal memory 721 can be used to store computer executable program code, which includes instructions. The internal memory 721 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 700 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 721 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 710 executes various functional methods or data processing of the electronic device 700 by running instructions stored in the internal memory 721, and / or instructions stored in a memory provided in the processor.
[0119] Pressure sensor 780A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 780A can be located on display screen 794. There are many types of pressure sensors 780A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force is applied to pressure sensor 780A, the capacitance between the electrodes changes. Electronic device 700 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 794, electronic device 700 detects the intensity of the touch operation based on pressure sensor 780A. Electronic device 700 can also calculate the location of the touch based on the detection signal from pressure sensor 780A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.
[0120] The touch sensor 780K is also referred to as a "touch device." The touch sensor 780K can be disposed on the display screen 794. The touch sensor 780K and the display screen 794 form a touch screen, also referred to as a "touch screen." The touch sensor 780K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 794. In other embodiments, the touch sensor 780K can also be disposed on the surface of the electronic device 700, at a location different from that of the display screen 794.
[0121] The composition of the electronic device shown in the above figure does not constitute a limitation on the electronic device provided in the embodiments of the present application.
[0122] In other embodiments, the electronic device may have more or fewer components.
[0123] In an embodiment of the present application, the electronic device may further be configured with a software module for cooperating with one or more hardware components as shown in FIG. 8 to implement various functions of the electronic device.
[0124] For example, FIG9 provides a schematic diagram of software partitioning of an electronic device provided in an embodiment of the present application.
[0125] In this example, the software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device is illustrated.
[0126] As shown in Figure 9, the layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The system is divided into five layers, from top to bottom: application layer, application framework layer, Android runtime (ART) and native C / C++ library, hardware abstraction layer (HAL) and kernel layer.
[0127] The application layer can include a series of application packages.
[0128] As shown in FIG9 , the application package may include applications such as gallery, calendar, map, WLAN, music, SMS, call, navigation, Bluetooth, and settings. The settings application may include one or more function options provided by the electronic device, such as a function option for brightness adjustment.
[0129] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0130] As shown in FIG9 , the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, an activity manager, an input manager, and the like.
[0131] The window manager provides window management services (WMS). WMS can be used for window management, window animation management, surface management, and as a transfer station for the input system.
[0132] Content providers are used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0133] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0134] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0135] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0136] The Activity Manager can provide Activity Management Service (AMS), which can be used to start, switch, and schedule system components (such as activities, services, content providers, and broadcast receivers) as well as manage and schedule application processes.
[0137] The Input Manager provides Input Management Service (IMS), which manages system inputs, such as touch screen input, key input, and sensor input. The IMS retrieves events from input device nodes and, through interaction with the WMS, distributes the events to the appropriate window.
[0138] The Android runtime consists of the core libraries and the Android runtime. The Android runtime is responsible for converting source code into machine code. It primarily utilizes ahead-of-time (AOT) and just-in-time (JIT) compilation technologies.
[0139] The core library is mainly used to provide basic Java class library functions, such as basic data structures, mathematics, IO, tools, databases, networks, etc. The core library provides an API for users to develop Android applications.
[0140] Native C / C++ libraries can include multiple functional modules, such as surface manager, media framework, libc, OpenGL ES, SQLite, Webkit, etc.
[0141] The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media framework supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library supports a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. OpenGL ES provides 2D and 3D graphics drawing and manipulation within applications. SQLite provides a lightweight relational database for electronic device applications.
[0142] The hardware abstraction layer runs in user space, encapsulates kernel layer drivers, and provides a calling interface to the upper layer. Exemplarily, the hardware abstraction layer may include a display module, an audio module, a camera module, a Bluetooth module, etc.
[0143] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and Bluetooth driver.
[0144] It should be noted that, similar to the description in Figure 8 above, the software components shown in Figure 9 above do not constitute a limitation on the electronic device provided in the embodiments of the present application. In other embodiments, the electronic device may also have more or fewer software components.
[0145] As an example, refer to FIG10 , which is a schematic diagram of software composition of another electronic device provided in an embodiment of the present application.
[0146] In the example of FIG. 10 , combined with the description of FIG. 9 , more modules or units may be included in each software layer to support the technical solutions provided in the embodiments of the present application.
[0147] As shown in Figure 10, the application layer of the electronic device can be provided with a local display configuration module (such as LocalDisplayAdapter). In some implementations, the local display configuration module can be integrated into the settings application installed in the electronic device. For example, the local display configuration module can be integrated into the "Display & Brightness" function module of the settings application. When the user instructs the electronic device to control the backlight brightness through the "Display & Brightness" function module, the local display configuration module can determine that the user needs to control the backlight brightness to brightness A2 as shown in Figure 1 based on the operation input by the user.
[0148] It is understood that, in conjunction with the description of FIG1 , the electronic device can also instruct the electronic device to control the backlight brightness through the brightness adjustment control 106 included in the quick function option set 103 in the electronic device drop-down menu. Correspondingly, in response to the user's operation of the brightness adjustment control 106, the local display configuration module can also determine that the user needs to control the backlight brightness to brightness A2.
[0149] As shown in Figure 10, a backlight configuration module (such as setDisplayBrighttness) can be configured in the framework layer of the electronic device. The backlight configuration module can be used to perform normalization processing and other operations based on the brightness sent by the local display configuration module, and obtain the brightness that other underlying modules of the electronic device can directly recognize and use. For example, refer to the description of Figure 3. When the local display configuration module sends brightness B1, the backlight configuration module can determine the need to control the underlying module to perform backlight control based on brightness B2 based on brightness B1. Among them, brightness B2 corresponds one to one with brightness B1. It can be understood that when the brightness sent by the local display configuration module is different from brightness B1, the brightness determined by the corresponding backlight configuration module is also different from brightness B2.
[0150] A panel backlight configuration module (such as SetPanelBrightness) may be configured in the HAL layer of the electronic device. The panel backlight configuration module may be used to issue specific backlight values according to a preset strategy.
[0151] In some embodiments, the panel backlight configuration module may include a binder unit and an LTM unit. The binder unit is used to transparently transmit the brightness from the framework layer. The LTM unit is used to trigger backlight brightness control according to a preset power consumption control strategy. For example, the LTM unit may be configured with a discount coefficient and a preset step size. The discount coefficient is a positive number less than or equal to 1. When determining that power consumption control is triggered, the LTM unit may determine the discounted brightness based on the discount coefficient and the brightness from the upper layer. The LTM unit may also send the brightness in batches according to the preset step size until the last brightness sent reaches the discounted brightness. In some implementations, the preset power consumption control strategy includes at least one of the following: the current power consumption of the electronic device is greater than a preset power consumption threshold; the current remaining power of the electronic device is less than a preset power threshold; the number of applications currently running on the electronic device is greater than a preset number threshold; the current electronic device is running at least one high-power consumption application, where the high-power consumption application can be determined based on the resource usage of the application during operation and / or the list of high-power consumption applications configured in the electronic device.
[0152] A display driver may be configured in the core layer of an electronic device. The display driver is used to drive a display screen or other display component to display an image. In this application, the display driver may also be used to control the display screen / backlight unit to adjust the backlight brightness.
[0153] As shown in FIG10 , a plurality of unit modules may be configured in the display driver to cooperate in realizing the backlight brightness adjustment function.
[0154] Exemplarily, as shown in FIG10 , in an embodiment of the present application, a display driver may be configured with a binder queue, a control unit, an LTM enable flag storage unit, a counting unit, and the like.
[0155] The binder queue is used to receive and temporarily store the brightness sent by the binder unit.
[0156] The LTM enable flag storage unit is used to store the LTM enable flag. The LTM enable flag is used to indicate whether the brightness issued by the LTM unit is usable. In some implementations, the LTM enable flag can be implemented as a global variable, thereby allowing each module in the electronic device to have access to the LTM enable flag. Thus, when the LTM enable flag is configured to a first value, indicating that the brightness issued by the LTM unit is usable, the LTM unit can issue the brightness after power consumption control processing to the display driver when power consumption control is triggered according to a preset power consumption control policy. Conversely, when the LTM enable flag is configured to a second value, indicating that the brightness issued by the LTM unit is unusable. Therefore, even if the LTM unit triggers power consumption control according to the preset power consumption control policy, the LTM unit may not issue the brightness. In this case, the display driver can obtain the brightness issued by the binder unit from the binder unit or through a binder queue to control the backlight brightness. As one possible example, the first value is 1 and the second value is 0. Alternatively, the first value is true and the second value is false. In the following example, the first value corresponding to the LTM enable flag is true, and the second value is false.
[0157] As shown in Figure 10, a counting unit may be further configured in the display driver. The counting unit may have a counting function. In a specific implementation, the display driver may implement the counting function of the counting unit by initializing a counter.
[0158] In this application, when the LTM unit triggers power consumption control for the first time, the counting unit starts counting, such as the count value being controlled from 0 to 1. Thereafter, when the LTM unit determines that it needs to continuously send brightness (such as continuously triggering power consumption control), the count value of the counting unit is increased by 1 each time it is triggered. For example, in the first frame, the power consumption control of the LTM unit is triggered, and the count value changes from 0 to 1. In the second frame, the LTM unit needs to send brightness again, and the count value changes from 1 to 2. Similarly, in the third frame, the LTM unit needs to send brightness again, and the count value changes from 2 to 3.
[0159] When the timer reaches 3, the LTM enable flag changes from false to true. Therefore, if the LTM unit still needs to send brightness in the fourth frame, the LTM enable flag is true. Therefore, the LTM unit can send the required brightness to the display driver, which then controls the backlight brightness based on the brightness sent by the LTM unit.
[0160] It can be seen that the LTM enable flag and counting unit configured in the display driver need to be controlled and adjusted in different situations, and the binder queue can also directly or indirectly send the stored brightness when it meets the requirements. In this application, the control unit configured in the display driver can realize the above-mentioned control and adjustment functions of each module.
[0161] Exemplarily, in the kernel layer as shown in FIG10 , a control unit may also be configured in the display driver.
[0162] In some embodiments, the control unit may be used to determine the brightness sent by the binder unit when displaying the current frame image, or to trigger power consumption control of the LTM unit. The LTM unit has a need to send brightness.
[0163] The control unit may also use the brightness sent by the LTM unit to control the backlight brightness when the LTM enable flag is the first value (such as true) and the LTM unit has a demand to send brightness.
[0164] The control unit may also use the brightness sent by the binder unit to control the backlight brightness when the LTM enable flag is a second value (such as false). For example, the control unit may obtain the brightness sent by the binder unit from the binder queue.
[0165] As a specific implementation, the control unit can send the brightness from the binder unit or the LTM unit to the display panel in the hardware layer, so as to control the display panel to control the backlight brightness according to the brightness sent by the control unit. In conjunction with the description in Figure 8, the display panel can display backlights of different brightness. The display panel can be integrated into the display screen of the electronic device, or the display panel can also be a light-emitting component independent of the display screen.
[0166] In conjunction with the above description of the counter and the LTM enable flag, in this example, the control unit in the display driver can further configure the LTM enable flag to a second value upon determining to use the brightness sent by the binder unit. Furthermore, the control unit can configure the count value of the counter unit to 0. Thus, in the next frame, if the brightness sent by the LTM unit is determined to be used, the control unit controls the count value of the counter unit to increment by 1. In the next frame thereafter, if the brightness sent by the LTM unit is determined to be used, the control unit controls the count value of the counter unit to increment by 1 until the count value of the counter unit reaches 3. The control unit then controls the LTM enable flag to the first value, and the count value of the counter is reset to 0. Thus, in the next frame thereafter, if the brightness sent by the LTM unit is determined to be used, since the LTM enable flag is the first value, the control unit can obtain the brightness sent by the LTM unit to control the backlight brightness. Correspondingly, in the next frame after the LTM enable flag is configured to the first value, if the brightness sent by the binder unit is determined to be used, the control unit reconfigures the LTM enable flag to the second value and sets the count value of the counter unit to 0. This cycle allows the electronic device to control backlight brightness primarily based on the brightness sent by the binder unit. If there is a continuous demand for brightness from the LTM unit, after three consecutive frames, the brightness sent by the LTM unit will be used to control backlight brightness in the fourth frame. This avoids backlight flickering caused by the repeated use of brightness sent by the binder unit and the LTM unit.
[0167] It is understood that the composition and functions of the modules shown in FIG10 are merely examples, and in other embodiments of the present application, the electronic device may include more or fewer units or modules, and their functions may differ from those described above. The present application does not limit this.
[0168] In the following example, an electronic device having the composition shown in FIG10 is taken as an example to illustrate the technical solution provided in the embodiment of the present application.
[0169] For example, refer to Figure 11, which is a schematic diagram of the module interaction of a backlight brightness control method provided in an embodiment of the present application. In the scheme shown in Figure 11, an electronic device (such as a control unit deployed in a display driver) determines the brightness sent by the binder unit to control the backlight brightness during the display of the current frame image.
[0170] As shown in Figure 11, the solution may include:
[0171] S1101 : The local display configuration module sends brightness C1 to the backlight configuration module.
[0172] For example, in combination with the above description, the local display configuration module can determine the backlight brightness of each subsequent frame image based on the user input operation (operation 107 shown in Figure 1). In this example, for the current frame image (such as the Nth frame image), the local display configuration module can determine that the backlight brightness of the Nth frame image is controlled according to C1 when the Nth frame image is displayed.
[0173] S1102: The backlight configuration module sends brightness C2 to the binder unit, where brightness C2 is determined based on brightness C1.
[0174] Similar to the above description, in this example, the backlight configuration module can normalize the brightness C1 to obtain a brightness C2 that can be directly recognized and used by other modules. The brightness C2 can correspond one-to-one with the brightness C1.
[0175] The backlight configuration module may obtain the brightness C2 according to the brightness C1 and then send the brightness C2 to the binder unit.
[0176] S1103. The Binder unit transmits the brightness C2 to the Binder queue.
[0177] Combined with the above description on the binder queue, in this example, the binder unit can put the brightness C2 into the binder queue to facilitate subsequent reading and calling by the control unit.
[0178] S1104: The control unit obtains brightness C2 from the binder queue.
[0179] In the following description of this application, using a binder unit to send a brightness value to control backlight brightness is also referred to as using a binder to dim. Correspondingly, using an LTM unit to send a brightness value to control backlight brightness is also referred to as using an LTM unit to dim.
[0180] Exemplarily, in some embodiments, the control unit may obtain the brightness C2 from the binder queue when determining that the binder is dimming.
[0181] In some other embodiments, the control unit may obtain the brightness C2 from the binder queue when determining not to use the LTM unit dimming.
[0182] It is understandable that the control unit may determine not to use LTM unit dimming in a variety of situations. For example, the control unit may directly determine to use binder dimming, which corresponds to not using LTM unit dimming. For another example, when the control unit determines that there is a dimming demand for the LTM unit (i.e., triggering power consumption control of the LTM unit), the control unit determines not to use LTM unit dimming based on the LTM enable flag being the second value (e.g., false).
[0183] S1105 : The control unit sends the brightness C2 to the display panel so that the display panel controls the backlight brightness according to the brightness C2. As an example, the control unit may send the brightness C2 to the display panel by calling a dsi_panel_update_backlight function.
[0184] In this way, the control unit can send the brightness C2 to the display panel, so that the display panel controls the backlight brightness corresponding to the brightness C2 when displaying the current N-th frame image.
[0185] In some embodiments, during the execution of S1104-S1105, the control unit may further configure the backlight lock to 1, corresponding to the binder unit holding the lock, so that other units (such as the LTM unit) know that the backlight lock is currently occupied and do not issue the backlight brightness.
[0186] In an embodiment of the present application, after determining to execute S1104, the control unit may further execute the following S1106-S1107 to configure the LTM enable flag and counting unit provided in the embodiment of the present application to facilitate reasonable control of the backlight brightness of subsequent other frame images.
[0187] S1106: The control unit configures the LTM enable flag to be a second value.
[0188] S1107: The control unit controls the count value of the counting unit to be configured as 0.
[0189] Exemplarily, the control unit may configure the LTM enable flag to be a second value (such as false) when determining whether binder dimming is used or LTM unit dimming is not used during the display process of the current Nth frame image.
[0190] The control unit may also reset the count value of the counting unit to zero, i.e., configure it to 0, when determining whether binder dimming is used or LTM unit dimming is not used during the display process of the current N-th frame image. For example, if the count value of the counting unit is identified by count, then based on S1107, the control unit may configure count to 0.
[0191] In this way, by implementing the solution shown in FIG11 , the backlight brightness is controlled during the display of the Nth frame image through binder dimming.
[0192] Figure 11 shows an implementation of backlight brightness control during the display of the Nth frame image. Figure 12 shows an implementation of backlight brightness control during the display of the N+1th frame image. In this example, the LTM unit triggering power consumption control is used as an example.
[0193] As shown in Figure 12, the solution may include:
[0194] S1201. The local display configuration module sends brightness C3 to the backlight configuration module.
[0195] For example, according to an operation input by the user (such as operation 107 ), the local display module may determine to control the backlight brightness to display according to the brightness C3 in the N+1th frame.
[0196] In this example, the local display configuration module sends the brightness C3 to the backlight configuration module so that other modules can perform correct backlight display according to the brightness C3.
[0197] S1202: The backlight configuration module sends brightness C4 to the binder unit, where brightness C4 is determined based on brightness C3.
[0198] Exemplarily, the execution of S1202 may refer to the aforementioned S1202, and the specific implementations may be mutually referenced, which will not be described in detail here.
[0199] S1203 : When the LTM unit triggers power consumption control, the brightness C4 is obtained from the binder unit.
[0200] Exemplarily, the LTM unit may determine to trigger power consumption control according to a preset power consumption control strategy.
[0201] In combination with the foregoing description, in some embodiments, the preset power consumption control strategy includes at least one of the following: the current power consumption of the electronic device is greater than a preset power consumption threshold; the remaining power of the current electronic device is less than a preset power threshold; the number of applications currently running on the electronic device is greater than a preset number threshold; the current electronic device is running at least one high-power consumption application, where the high-power consumption application can be determined based on the resource usage during the operation of the application and / or the list of high-power consumption applications configured in the electronic device.
[0202] In this way, the LTM unit can determine the brightness value after power consumption control to be issued according to the brightness C4, the preset discount coefficient and the preset step size.
[0203] S1204: The control unit determines that the LTM unit triggers power consumption control, and determines not to use LTM unit dimming according to the LTM enable flag being the second value.
[0204] In this example, the control unit may interact with the LTM unit to determine whether the LTM unit triggers power consumption control.
[0205] For example, the control unit determines that the LTM unit triggers power consumption control when it is determined that the LTM unit obtains brightness C4 from the binder unit. For another example, the control unit may determine that the LTM unit triggers power consumption control when the LTM unit generates a brightness value different from brightness C4 (i.e., a brightness value obtained after power consumption control is performed based on brightness C4).
[0206] The control unit may also obtain the current value from the LTM enable flag. For example, in conjunction with the description of S1106, during the display of the N+1 frame image, the LTM enable flag may be configured to be the second value (false). In this way, the control unit may determine not to use LTM unit dimming.
[0207] It can be understood that, in conjunction with the above description of the LTM enable flag, when the LTM unit flag is the second value, the control unit can determine not to use LTM unit dimming regardless of whether the LTM unit power consumption control is triggered. In this example, the control unit can perform subsequent operations including counter configuration by determining that the LTM unit has triggered power consumption control.
[0208] Therefore, in different implementations, the control unit may determine whether the LTM unit triggers power consumption control in step S1204. Alternatively, the control unit may determine whether the LTM unit triggers power consumption control at any time before step S1207.
[0209] S1205. The control unit obtains the brightness C4 sent by the binder unit from the binder queue.
[0210] In this example, when the control unit determines not to use the LTM unit for dimming, it obtains the brightness value sent by the binder unit from the binder queue.
[0211] It should be noted that in the existing solution, since there is no binder queue, when the power consumption control of the LTM unit is triggered, the display driver will not obtain the brightness value sent by the binder unit during the display of the N+1 frame. Correspondingly, in the present application, there is a configuration of the binder queue. The binder unit can send the brightness value corresponding to each frame image and store it in the binder queue when the LTM unit dimming is needed or not. This makes it convenient for the control unit to obtain the brightness value sent by the binder unit corresponding to the current frame image from the binder queue when the brightness value sent by the binder unit is needed to control the backlight brightness.
[0212] For example, in the N+1th frame image, the binder unit can store the brightness C4 from the backlight configuration module in the binder queue. In this way, the control unit can obtain the brightness C4 from the binder queue after determining in S1204 that the LTM unit dimming is not used, thereby facilitating the control of the backlight brightness of the current frame image.
[0213] S1206 . The control unit sends the brightness C4 to the display panel, so that the display panel controls the backlight brightness according to the brightness C4 .
[0214] In this way, the control unit can control the display panel to perform backlight control based on the brightness C4.
[0215] It is understandable that in the scenario shown in Figure 12, although the LTM unit power consumption control is triggered, due to the processing mechanism of S1204 in this application, the brightness value sent by the binder unit is still used to control the backlight brightness when the LTM unit power consumption control is first triggered. This allows the backlight changes of the N+1th frame image and the Nth frame image to be based on the binder unit control, thus reflecting a gradient linear change, thereby avoiding screen flickering caused by sudden changes in backlight brightness.
[0216] In this example, combined with the description of S1204, if the control unit determines that the LTM unit power consumption control is triggered and the LTM enable flag is the second value, the control unit may further execute the following S1207. This implements recording of the current LTM unit power consumption control trigger, so that after the LTM unit power consumption control is continuously triggered a certain number of times, the brightness value sent by the LTM unit is used to control the backlight.
[0217] S1207: The control unit controls the counting value of the counting unit to increase by 1.
[0218] 11 , before the N+1 frame starts to be displayed, the count value (count) of the counting unit is 0. Thus, after the processing of S1207 , the count value can be 1 after the N+1 frame is displayed.
[0219] In this way, through the solution shown in Figure 12, even if the LTM unit power consumption control is triggered, the electronic device can continue to use the brightness value sent by the binder unit to control the backlight brightness value. This avoids the triggering of the LTM unit power consumption control, which causes a sudden change in the backlight brightness control and thus avoids the problem of screen flickering.
[0220] It can be understood that the implementation of the scheme shown in Figure 12 is based on the implementation of the N+1 frame image as an example. Combined with the description in Figure 11, in the N frame image, the electronic device can determine to use the brightness value sent by the binder unit to control the backlight brightness. In other words, the N+1 frame image can be the first time to determine to trigger the LTM unit power consumption control. Then next, if the N+2 frame image is determined to trigger the LTM unit power consumption control again, the electronic device can use an implementation similar to the scheme shown in Figure 12, and use the brightness value sent by the binder unit to control the backlight brightness. At the same time, the electronic device can add 1 to the count of the counting unit again. In this way, after the N+2 frame image is displayed, the count of the counting unit is 2.
[0221] The following example uses the case where the N+3 frame image still triggers the LTM unit power consumption control, and illustrates the implementation of backlight brightness control for the N+3 frame image.
[0222] Referring to FIG13 , the backlight brightness control process of the N+3 frame image may include:
[0223] S1301. The local display configuration module sends brightness C5 to the backlight configuration module.
[0224] S1302: The backlight configuration module sends brightness C6 to the binder unit, where brightness C6 is determined based on brightness C5.
[0225] S1303 : When the LTM unit triggers power consumption control, it obtains brightness C6 from the binder unit.
[0226] S1304: The control unit determines that the LTM unit triggers power consumption control, and determines not to use LTM unit dimming according to the LTM enable flag being the second value.
[0227] S1305. The control unit obtains the brightness C6 sent by the binder unit from the binder queue.
[0228] S1306 . The control unit sends the brightness C6 to the display panel, so that the display panel controls the backlight brightness according to the brightness C6 .
[0229] S1307: The control unit controls the counting value of the counting unit to increase by 1.
[0230] It can be understood that the execution of the above S1301-S1307 can correspond to the steps shown in Figure 12 respectively, and the specific execution process is similar, which will not be repeated here.
[0231] Thus, after completing the execution of S1307, the count of the counting unit is 3.
[0232] In an embodiment of the present application, the control unit can determine whether the count of the counting unit has reached a preset number threshold after each operation of adding 1 to the count value of the counting unit (such as S1207, S1307, etc.). In this application, a number threshold of 3 is taken as an example. In this way, after determining that the count of the counting unit has reached the preset number threshold (such as 3), the control unit can be triggered to control the configuration of the LTM enable flag to be the first value, so that when the LTM unit dimming is still determined to be used in the next frame image, the LTM unit dimming is used.
[0233] As an example, as shown in FIG13 , after completing S1307 , the electronic device may execute S1308 - S1309 .
[0234] S1308: The control unit determines whether the count reaches a preset number threshold. In this example, the preset number threshold is 3.
[0235] S1309: The control unit configures the LTM enable flag to be a first value. Exemplarily, the control unit configures the LTM enable flag to be true.
[0236] It can be understood that, in conjunction with the description of Figures 11 and 12, the count value of the counting unit can be used to represent the number of consecutive frame images that trigger the power consumption control of the LTM unit. In this example, if the backlight brightness control of three consecutive frame images triggers the power consumption control of the LTM unit, the electronic device can use the LTM unit dimming when subsequent consecutive frame images trigger the power consumption control of the LTM unit.
[0237] As an example, based on the solution shown in FIG13 , LTM unit power consumption control is triggered in three consecutive frames, from frame N+1 to frame N+3. If LTM unit power consumption control is still triggered in frame N+4, the electronic device can use LTM unit dimming according to the solution shown in FIG14A .
[0238] Exemplarily, as shown in FIG14A , the solution may include:
[0239] S1401. The local display configuration module sends brightness C7 to the backlight configuration module.
[0240] S1402: The backlight configuration module sends brightness C8 to the binder unit, where brightness C8 is determined based on brightness C7.
[0241] S1403 : When the LTM unit triggers power consumption control, the brightness C8 is obtained from the binder unit.
[0242] For example, the specific implementation of S1401-S1403 may refer to S1201-S1203 shown in FIG12 or S1301-S1303 shown in FIG13. Detailed description is omitted here.
[0243] S1404: The control unit determines that the LTM unit triggers power consumption control.
[0244] Exemplarily, the execution of this step may refer to the description of S1204 in Figure 12. In this way, the control unit may determine that the power consumption control of the LTM unit is still triggered in the current N+4th frame image.
[0245] S1405: The control unit obtains a value of the LTM enable flag. Exemplarily, the control unit may obtain a first value of the value of the LTM enable flag.
[0246] In conjunction with the description of S1308-S1309 in FIG13 , when the number of consecutive triggering of power consumption control reaches a preset threshold (eg, 3), the value of the LTM enable flag is controlled from the second value (false) to the first value (true).
[0247] Thus, in S1405 , the control unit can determine that the backlight brightness is controlled using LTM unit dimming during the display of the current (N+4)th frame image by obtaining the value of the LTM enable flag as the first value.
[0248] S1406: The control unit obtains brightness C9 from the LTM unit, wherein brightness C9 is determined based on brightness C8.
[0249] In this example, the brightness C9 may be the brightness value after power consumption control of the current frame image first sent down, determined by the LTM unit based on the brightness C8, a preset discount coefficient, a preset step size and other parameters after obtaining the brightness C8 in S1403.
[0250] S1407 . The control unit sends the brightness C9 to the display panel, so that the display panel controls the backlight brightness according to the brightness C9 .
[0251] Thus, when the control unit determines that power consumption control is still triggered and the LTM enable flag is the first value, it can obtain the brightness C9 after power consumption control from the LTM unit, and thus control the backlight brightness during the current frame image display process based on the brightness C9.
[0252] Based on the implementation of the solution shown in Figure 14A, the electronic device can use the LTM unit to dim the light when the LTM unit triggers the power consumption control multiple times in a row. It can be understood that when the LTM unit triggers the power consumption control multiple times in a row, it indicates that the current demand for power consumption control is stable and relatively urgent. Therefore, by implementing the solution shown in Figure 14A, the power consumption during the backlight brightness control process can be effectively controlled.
[0253] In addition, FIG14A shows the processing of the fourth frame of an image that continuously triggers power consumption control as an example. During the display of subsequent frames (e.g., frame N+5), if power consumption control is still triggered, then since the count value was not modified during the backlight brightness control process during the display of frame N+4, when the electronic device determines that frame N+5 triggered power consumption control, the count value read is still 3. In this way, the electronic device can use LTM unit dimming to control the backlight brightness of frame N+5, in accordance with an implementation similar to that shown in FIG14A.
[0254] If power consumption control is triggered in subsequent frames, the corresponding implementation is triggered as shown in Figure 11. The electronic device can configure the LTM enable flag to false and the counter to 0. This cycle can prevent screen flickering caused by frequent triggering of the LTM unit power consumption control. It also allows for flexible use of LTM unit dimming to effectively control power consumption even when power consumption control is triggered multiple times in a row.
[0255] In combination with the implementation of the solutions shown in Figures 11 to 14A, Figure 14B shows an example of the effect of backlight brightness control based on the solution provided in an embodiment of the present application.
[0256] As shown in Figure 14B, in the first frame, the binder unit sends a brightness value of 1000. This triggers power consumption control, and the counting unit increments by 1, resulting in a count of 1. At this point, the LTM enable flag is false, and the electronic device continues to use the value 1000 sent by the binder unit to adjust the backlight brightness.
[0257] In the second frame, the binder unit sends a brightness value of 990. This triggers power consumption control, and the counter unit increments by 1, bringing the count value to 2. At this point, the LTM enable flag is false, and the electronic device continues to use the 990 sent by the binder unit to adjust the backlight brightness.
[0258] In the third frame, the binder unit sends a brightness value of 980. This triggers power consumption control, and the counter increments by 1, bringing the count to 3. At this point, the LTM enable flag is false, and the electronic device continues to adjust the backlight brightness using the value 980 sent by the binder unit. Based on the implementation shown in Figure 13, after brightness adjustment is completed in the third frame and before brightness adjustment begins in the fourth frame, the electronic device can adjust the LTM enable flag to true based on the count reaching a preset number of times (e.g., 3).
[0259] In the fourth frame, the corresponding power consumption control is triggered. At this time, the LTM enable flag is true, and the electronic device confirms that the brightness value issued by the LTM unit is used for backlight adjustment. In conjunction with the example in Figure 4, since the power consumption control has been triggered in the first frame, in this example, the LTM unit can now issue a brightness value of 980 after power consumption control processing based on the brightness value of 1000 issued by the binder unit. In this way, in the example of Figure 14B, the electronic device can use the 980 issued by the LTM unit to adjust the backlight brightness in the fourth frame.
[0260] In frame 5, power consumption control is not triggered. Therefore, corresponding to the solution implementation shown in Figure 11, the electronic device uses the brightness value sent by the binder unit to adjust the backlight brightness. Furthermore, the electronic device can also reset the count value of the counting unit to zero and configure the LTM enable flag to false.
[0261] This can achieve the effect shown in Figure 7. This avoids sudden changes or flickering of screen brightness caused by frequent triggering of power consumption adjustments.
[0262] In the examples of Figures 11 to 14A above, the solution provided in the embodiment of the present application is described in detail from the perspective of interaction between various modules. The solution provided in the embodiment of the present application is further described below in conjunction with the example of Figure 15.
[0263] Refer to FIG15 , which is a flow chart of a backlight brightness control method provided in an embodiment of the present application.
[0264] As shown in Figure 15, the solution may include:
[0265] S1501. The local display configuration module determines the backlight brightness C1 of the Nth frame image.
[0266] Exemplarily, the local display configuration module may trigger execution of S1501 upon receiving a backlight brightness control instruction input by the user. The backlight brightness control instruction may include various specific implementations. For example, the backlight brightness control instruction may be input through operation 107 as shown in FIG1 . For another example, the backlight brightness control instruction may be input through other controls with backlight adjustment functions provided by the user on the electronic device.
[0267] S1502: The local display configuration module sends brightness C1 to the backlight configuration module.
[0268] S1503: The backlight configuration module determines brightness C2 according to brightness C1.
[0269] 11 , the brightness C2 corresponds to the brightness C1 in a one-to-one manner. In some implementations, the brightness C2 can be obtained by normalizing the brightness C1.
[0270] S1504: The backlight configuration module sends the brightness C2 to the Binder unit.
[0271] S1505. The Binder unit sends the brightness C2 to the Binder queue.
[0272] S1506. The Binder queue stores brightness C2.
[0273] S1507: The control unit determines to use binder dimming.
[0274] S1508. The control unit obtains brightness C2 from the Binder queue.
[0275] S1509: The control unit sends brightness C2 to the display panel.
[0276] S1510: The display panel controls the backlight brightness value according to the brightness C2.
[0277] In this way, through the above S1501-S1510, the electronic device can implement the control of the backlight brightness based on binder dimming.
[0278] In the present application, the electronic device may also execute S1511-S1512 during the display process of the Nth frame image.
[0279] S1511: The control unit configures the LTM enable flag to be false. Exemplarily, false may be false, or false may be 0. The LTM enable flag being false indicates that the LTM unit dimming is unavailable.
[0280] S1512: The control unit clears the count value of the counting unit.
[0281] The execution of each step S1501-S1512 can correspond to each step shown in FIG11 respectively, and the specific implementation will not be repeated here.
[0282] It is understandable that, for any frame image in the backlight control process, if it is determined to use binder dimming, the electronic device can control the backlight brightness and configure related parameters based on the implementation of S1501-S1512.
[0283] The following steps S1513-S1524 may be used by an electronic device to control the backlight brightness during the display of the N+1th frame image.
[0284] S1513. The local display configuration module determines the backlight brightness C3 of the N+1th frame image.
[0285] S1514. The local display configuration module sends brightness C3 to the backlight configuration module.
[0286] S1515. The backlight configuration module determines brightness C4 according to brightness C3.
[0287] S1516. The backlight configuration module sends the brightness C4 to the Binder unit.
[0288] S1517. The Binder unit sends brightness C4 to the Binder queue.
[0289] S1518. The Binder queue stores brightness C4.
[0290] S1519: The control unit determines to trigger power consumption control.
[0291] S1520: The control unit obtains an LTM enable flag.
[0292] S1521: The control unit determines that the LTM enable flag is false.
[0293] S1522. The control unit obtains brightness C4 from the Binder queue.
[0294] S1523. The control unit sends brightness C4 to the display panel.
[0295] S1524: The display panel controls the backlight brightness value according to the brightness C4.
[0296] S1525: The control unit instructs the counting unit to add 1 to the count value.
[0297] For example, the execution of each step of S1513-S1525 may correspond to the implementation of the solution shown in Figure 12. The specific implementations can be referenced to each other and will not be described in detail.
[0298] Through S1513-S1525, the electronic device can still use binder dimming when power consumption control is triggered. This avoids screen flickering caused by frequent switching between LTM unit dimming and binder dimming. In addition, in this example, the electronic device can also use a counting unit to record the number of consecutive power consumption control triggers. Based on this number, it is determined whether to subsequently use LTM unit dimming to control the backlight brightness.
[0299] 12 , in this example, the backlight control status of the N+2 frame image can refer to the N+1 frame image. Thus, after the backlight control of the N+2 frame image, the count value can be configured as 2.
[0300] The following S1526-S1540 may be used to support the electronic device in controlling the backlight brightness of the N+3th frame.
[0301] S1526. The local display configuration module determines the backlight brightness C5 of the N+3th frame image.
[0302] S1527. The local display configuration module sends brightness C5 to the backlight configuration module.
[0303] S1528. The backlight configuration module determines brightness C6 according to brightness C5.
[0304] S1529: The backlight configuration module sends the brightness C6 to the Binder unit.
[0305] S1530. The Binder unit sends brightness C6 to the Binder queue.
[0306] S1531. The Binder queue stores brightness C6.
[0307] S1532: The control unit determines to trigger power consumption control.
[0308] S1533: The control unit obtains the LTM enable flag.
[0309] S1534: The control unit determines that the LTM enable flag is false.
[0310] S1535. The control unit obtains brightness C6 from the Binder queue.
[0311] S1536. The control unit sends brightness C6 to the display panel.
[0312] S1537. The display panel controls the backlight brightness value according to the brightness C6.
[0313] S1538: The control unit instructs the counting unit to count up by 1.
[0314] S1539: The control unit determines whether the count value of the counting unit reaches a number threshold.
[0315] S1540: The control unit configures the LTM enable flag to be true.
[0316] Exemplarily, the implementation of S1526-S1540 can refer to the description in FIG13. In this example, the control of the backlight brightness corresponding to the N+3 frame image can be the power consumption control of the LTM unit triggered for the third consecutive time. Then correspondingly, in S1539, the control unit can determine that the count value of the counting unit reaches a preset number threshold (such as 3), and trigger the execution of S1540. In this way, when the power consumption control is triggered for the fourth consecutive time, the electronic device can use the LTM unit dimming to control the brightness value of the backlight.
[0317] Take the case where the backlight brightness control of the N+4th frame image still triggers the power consumption control of the LTM unit as an example.
[0318] S1541. The local display configuration module determines the backlight brightness C7 of the N+4th frame image.
[0319] S1542. The local display configuration module sends brightness C7 to the backlight configuration module.
[0320] S1543. The backlight configuration module determines brightness C8 according to brightness C7.
[0321] S1544. The backlight configuration module sends brightness C8 to the Binder unit.
[0322] S1545. The Binder unit sends the brightness C8 to the Binder queue.
[0323] S1546. The Binder queue stores brightness C8.
[0324] In this example, the LTM unit may determine to trigger power consumption control, and correspondingly execute S1547-S1548 to process the current brightness value based on a preset discount coefficient and a preset step size. Specifically:
[0325] S1547. The LTM unit obtains brightness C8 from the Binder unit.
[0326] S1548. The LTM unit obtains the brightness C9 after power consumption control based on the brightness C8.
[0327] In addition, the control unit may also execute S1549 and subsequent processing to achieve corresponding backlight brightness control.
[0328] S1549: The control unit determines to trigger power consumption control.
[0329] S1550: The control unit obtains an LTM enable flag.
[0330] S1551: The control unit determines that the LTM enable flag is true.
[0331] S1552. The control unit obtains brightness C9 from the LTM unit.
[0332] S1553. The control unit sends brightness C9 to the display panel.
[0333] S1554: The display panel controls the backlight brightness value according to the brightness C9.
[0334] In this way, when the power consumption control of the LTM unit is triggered for the fourth time in a row, the electronic device can use the LTM unit dimming to control the brightness of the backlight.
[0335] In summary, based on the solutions provided in the various embodiments corresponding to Figures 11 to 15 above, electronic devices can effectively avoid sudden changes in backlight brightness control caused by frequent binder dimming and LTM unit dimming, thereby avoiding the corresponding screen flickering problem.
[0336] Corresponding to the effect shown in Figure 7, take the Nth frame as the 1st frame as an example. Then, in the 1st to 3rd frames, the electronic device can use binder dimming according to S1501-S1540 in Figures 11-12 or Figure 15. In the backlight brightness control process corresponding to the three frames from the 1st to the 3rd frame, if the power consumption control is triggered, then when controlling the backlight brightness of the 4th frame, the electronic device can use the LTM unit dimming. In this way, the backlight brightness control effect shown in Figure 7 can be achieved through the solution provided in the embodiment of the present application.
[0337] It is understandable that the electronic device provided in the embodiment of the present application includes a hardware structure and / or software module for performing each function in order to realize the above functions. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiment of the present application.
[0338] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0339] For example, Figure 16 shows a schematic diagram of the composition of an electronic device 1600. As shown in Figure 16, the electronic device 1600 may include: a processor 1601 and a memory 1602. The memory 1602 is used to store computer-executable instructions.
[0340] As shown in FIG16 , the electronic device 1600 may further be configured with a display screen 1603 . The display screen 1603 may control backlight brightness under the control of the processor 1601 .
[0341] Illustratively, in some embodiments, when the processor 1601 executes the instructions stored in the memory 1602 , the electronic device 1600 may execute any of the methods shown in the above embodiments to reasonably control the backlight brightness of the display screen 1603 .
[0342] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0343] Figure 17 shows a schematic diagram of the composition of a chip system 1700. The chip system 1700 may include: a processor 1701 and a communication interface 1702, which are used to support related devices to implement the functions involved in the above embodiments. In one possible design, the chip system also includes a memory for storing program instructions and data necessary for electronic devices. The chip system can be composed of chips, or it can include chips and other discrete devices. It should be noted that in some implementations of the present application, the communication interface 1702 may also be referred to as an interface circuit.
[0344] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0345] The functions, actions, operations, steps, etc. in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).
[0346] Although the present application has been described with reference to specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely illustrative of the present application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, the present application is intended to include such modifications and variations as fall within the scope of the claims of the present application and their equivalents.
Claims
1. A method for controlling backlight brightness, It is characterized in that The method is applied in an electronic device; the method comprises: Receive the user's brightness adjustment operation and obtain the value of the LTM enable flag; When the LTM enable flag is a second value, in response to the brightness adjustment operation, the brightness of the display screen is adjusted from a first brightness to a second brightness; the first brightness is the backlight brightness of the display screen of the electronic device before receiving the user's brightness adjustment operation; When the LTM enable flag is a first value, the brightness of the display screen is adjusted from a first brightness to a third brightness to control power consumption of the display screen; wherein the third brightness is smaller than the second brightness.
2. The method according to claim 1, It is characterized in that The method further comprises: When the number of times the power consumption control is continuously triggered by the electronic device reaches a preset number threshold, the LTM enable flag is configured to be a first value, which is used to indicate that the power consumption control triggered during the display of the next frame of image is effective.
3. The method according to claim 2, It is characterized in that The method further comprises: When the power consumption control is not triggered, the electronic device configures the LTM enable flag to be a second value, which is used to indicate that the power consumption control triggered during the display of the next frame of image is not effective.
4. The method according to any one of claims 1 to 3, It is characterized in that Power consumption control is triggered when at least one of the following conditions is met: The power consumption of the electronic device is greater than a preset power consumption threshold; The remaining power of the electronic device is less than a preset power threshold; The number of applications running on the electronic device is greater than a preset number threshold; The electronic device is running at least one high power consumption application, and the high power consumption application is determined according to resource occupation during the application running process and / or a list of high power consumption applications configured in the electronic device.
5. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: The electronic device generates at least one target brightness according to the brightness adjustment operation, and each of the at least one target brightness is used to control the backlight brightness during the display of a frame image.
6. The method according to claim 5, It is characterized in that The electronic device is provided with a binder unit, and the binder unit is used to control the backlight brightness of the display screen according to the corresponding target brightness; the electronic device is also provided with a display driver; In response to the brightness adjustment operation, adjusting the brightness of the display screen from a first brightness to a second brightness includes: The display driver obtains the second brightness from the binder unit, The display driver controls the display screen to control the backlight brightness of the display screen according to the second brightness when the display screen displays the current frame image, and the second brightness is included in the at least one target brightness.
7. The method according to claim 6, It is characterized in that The electronic device is provided with a brightness queue, and the brightness queue is used to store the at least one target brightness; The display driver obtains the second brightness from the binder unit, including: The binder unit acquires the second brightness generated by the electronic device; The binder unit stores the second brightness into the brightness queue; The display driver obtains the second brightness from the brightness queue.
8. The method according to claim 6 or 7, It is characterized in that The electronic device is also provided with an LTM unit; The step of adjusting the brightness of the display screen from the first brightness to the third brightness includes: When the LTM enable flag is a first value, the LTM unit acquires the second brightness from the binder unit; The LTM unit acquires the third brightness according to the second brightness; The display driver obtains the third brightness from the LTM unit, The display driver controls the display screen to control the backlight brightness of the display screen according to the third brightness when the display screen displays the current frame image.
9. The method according to claim 8, It is characterized in that The receiving a brightness adjustment operation of a user includes: The electronic device receives the brightness adjustment operation before displaying the Nth frame of image; The electronic device generates at least one target brightness according to the brightness adjustment operation, including: The electronic device generates first indication information according to the brightness control indication, wherein the first indication information is used to instruct the display screen to control the backlight brightness according to a fourth brightness during displaying the Nth frame image, and the fourth brightness is included in the at least one target brightness.
10. The method according to claim 9, It is characterized in that When the electronic device displays the Nth frame of image, the method further includes: The electronic device determines not to trigger the power consumption control, and the electronic device controls the backlight brightness according to the fourth brightness included in the first indication information.
11. The method according to claim 10, It is characterized in that The method further comprises: In the case where the electronic device determines not to trigger the power consumption control, the electronic device configures the LTM enable flag to be a second value, which is used to indicate that the power consumption control triggered during the display of the next frame of image is not effective.
12. The method according to claim 10 or 11, It is characterized in that The electronic device is also provided with a counting unit, and the method further comprises: In a case where the electronic device determines not to trigger the power consumption control, the electronic device configures the count value in the counting unit to be 0.
13. The method according to any one of claims 9 to 12, It is characterized in that When the electronic device displays the N+1th frame of image, the method further includes: The electronic device determines to trigger the power consumption control, When the LTM enabling flag is configured as the second value, the electronic device controls the backlight brightness according to the fifth brightness included in the second indication information; The second indication information is used to instruct the display screen to control the backlight brightness according to the fifth brightness during the process of displaying the N+1th frame image, and the fifth brightness is included in the at least one target brightness.
14. The method according to claim 13, It is characterized in that The method further comprises: When the electronic device determines that the power consumption control is triggered, the electronic device The count value in the element is increased by 1.
15. The method according to claim 11 or 12, It is characterized in that When the electronic device displays the N+2th frame of image, the method further includes: The electronic device determines to trigger the power consumption control, When the LTM enabling flag is configured as the second value, the electronic device controls the backlight brightness according to the sixth brightness included in the third indication information; The third indication information is used to instruct the display screen to control the backlight brightness according to the sixth brightness during the process of displaying the N+2th frame image, and the sixth brightness is included in the at least one target brightness; The electronic device adds 1 to the count value in the counting unit.
16. The method according to claim 12 or 13, It is characterized in that The method further comprises: When the count value in the counting unit reaches a preset number threshold, the electronic device configures the LTM enable flag to be a first value, which is used to indicate that the power consumption control triggered during the display of the next frame of image is effective.
17. An electronic device, It is characterized in that The electronic device comprises: a memory, a display screen and one or more processors; the memory, the display screen and the processor are coupled; Wherein, the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1 to 16 to control the display screen to adjust the backlight brightness.
18. A chip system, It is characterized in that The chip system is applied to an electronic device; the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through lines; the interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including a computer instruction stored in the memory; when the processor executes the computer instruction, the electronic device executes the method as described in any one of claims 1-16.
19. A computer-readable storage medium, It is characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 16.