Backlight brightness control method and electronic equipment
By introducing LTM enable identification and brightness queue mechanisms in electronic devices, the problem of backlight brightness changes caused by frequent crossing of brightness values by LTM units and binder units is solved, and stable backlight control is achieved, avoiding display flickering, and improving User experience.
Patent Information
- Application Number
- CN202310620454.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2024-11-29
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 store brightness values to avoid direct locking, ensuring that the display driver receives brightness values at the appropriate time, realizing frame-by-frame image Gradient brightness adjustment.
It effectively avoids the backlight brightness change caused by frequent triggering of power consumption control, prevents the display from flickering, improves the user experience, and ensures the stability of the display effect.
Smart Images

Figure CN119049422A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] Electronic devices can control the display backlight under the control of the user.
[0003] In addition, other backlight control strategies are also configured in some electronic devices. For example, a power consumption control measure of local tone mapping (LTM unit) can be configured in the electronic device. When the power consumption control is triggered, the LTM unit can process the brightness value sent to the display screen according to the preset discount coefficient, so that the display screen can control the backlight brightness according to the lower brightness value sent by the LTM unit, thereby achieving the purpose of saving power consumption.
[0004] 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. Summary of the invention
[0005] The present application provides a backlight brightness control method and electronic device to avoid sudden backlight brightness changes caused by frequent cross-transmission of brightness values by an LTM unit and a binder unit, thereby avoiding the resulting flickering of a display screen.
[0006] In order to achieve the above technical objectives, this application adopts the following technical solutions:
[0007] In a first aspect, a backlight brightness control method is provided, which is applied to an electronic device. The method comprises: receiving a brightness adjustment operation of 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 a display screen from a first brightness to a second brightness. The first brightness is the backlight brightness of a 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 less than the second brightness.
[0008] Based on this solution, an LTM enable flag can be configured in an electronic device. The LTM enable flag can be flexibly set by the electronic device according to actual conditions. In this way, when power consumption control is triggered and the backlight brightness needs to be adjusted using the power consumption control brightness, the electronic device can determine whether the current power consumption control is effective according to the configuration of the LTM enable flag. As a result, the electronic device can flexibly and accurately control the triggering of power consumption control through the LTM enable flag, thereby avoiding the flickering of the display screen due to the frequent triggering of power consumption control during the backlight adjustment process instructed by the user.
[0009] Optionally, when the number of times the power consumption control is continuously triggered 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 the 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 when the power consumption control is triggered next time, thereby achieving the effect of power consumption control.
[0010] Optionally, 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 the 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 the 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 when the power consumption control is triggered next time, thereby avoiding sudden changes in the backlight.
[0011] 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 running process 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 trigger power consumption control accordingly. It can be understood that even if the 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.
[0012] 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 in a certain gradient in subsequent multiple frames of images, so as to obtain the effect of the backlight gradually dimming or brightening. In this way, when the user inputs a brightness control instruction, the electronic device can generate corresponding target brightnesses 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.
[0013] Optionally, the electronic device is configured 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 configured with a display driver. In response to the brightness adjustment operation, the brightness of the display screen is adjusted from the first brightness to the second brightness, including: the display driver obtains the second brightness from the binder unit, and the display driver controls the display screen to control 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. Thus, a specific solution for adjusting the backlight brightness according to the target brightness is provided.
[0014] Optionally, a brightness queue is configured in the electronic device, 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 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.
[0015] Optionally, the electronic device is further configured with an LTM unit. The brightness of the display screen is adjusted from the first brightness to the third brightness, including: 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 display screen to control 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.
[0016] Optionally, the receiving of the user's brightness adjustment operation includes: the electronic device receives 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 generates first indication information according to the brightness control indication, and the first indication information is used to instruct the display screen to control the backlight brightness according to a fourth brightness during the process of displaying the Nth frame image, and the fourth brightness is included in the at least one target brightness. In this way, when receiving the user's indication to adjust the backlight brightness, the electronic device can generate and send the corresponding brightness value for the Nth frame image to adjust the backlight brightness.
[0017] Optionally, when the electronic device is displaying 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.
[0018] 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.
[0019] 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.
[0020] 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.
[0021] Optionally, when the electronic device is displaying the N+1th frame image, the method further includes: 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 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 display of the N+1th frame image, and the fifth brightness is included in the at least one target brightness.
[0022] Optionally, the method further includes: the electronic device adding 1 to the count value in the counting unit.
[0023] Optionally, when the electronic device is displaying the N+2th frame image, the method further includes: 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 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 adds 1 to the count value in the counting unit.
[0024] 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 the image is effective.
[0025] For example, if power consumption control is triggered from the N+1th frame image to the N+3th frame image, then when the N+3th frame image is displayed, the count value of the counting unit may be 3. Take the number threshold of 3 as an example. Then, after the N+3th frame image is displayed and before the N+4th frame image is displayed, the electronic device may configure the LTM enable flag to the first value, so that when the N+4th frame image continues to trigger power consumption control, the backlight brightness is adjusted using the power consumption control brightness.
[0026] In a second aspect, an electronic device is provided, the electronic device comprising: a memory, a display screen and one or more processors. The memory, the display screen and the processor are coupled. The memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the method provided in the first aspect and any possible design thereof, and controls the display screen to adjust the backlight brightness.
[0027] In a third aspect, the present application also 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 by a line, and the interface circuit is used to receive a signal from a memory of the electronic device and send the signal to the processor, where the signal includes a computer instruction stored in the memory. When the processor executes the above-mentioned computer instruction, the electronic device executes the method provided in the first aspect and any possible design thereof.
[0028] In a fourth aspect, the present application also provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method provided in the first aspect and any possible design thereof.
[0029] 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.
[0030] It can be understood that the solutions provided in the second aspect to the fifth aspect 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
[0031] Figure 1 A schematic diagram of an interface interaction for a user to instruct an electronic device to adjust backlight brightness;
[0032] Figure 2 A logic diagram for backlight adjustment;
[0033] Figure 3 It is a schematic diagram of the interaction of various modules in the backlight adjustment process;
[0034] Figure 4 A logic diagram of backlight adjustment in a case of trigger power consumption control based on an LTM unit;
[0035] Figure 5 A schematic diagram of the configuration and implementation of a backlight lock during the backlight brightness delivery process;
[0036] Figure 6 A schematic diagram of a binder and an LTM unit frequently cross-transmitting backlight brightness;
[0037] Figure 7 A schematic diagram of backlight brightness sent by each unit after the solution provided in the embodiment of the present application takes effect;
[0038] Figure 8 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application;
[0039] Fig. 9 A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0040] Fig.10 A schematic diagram of a software architecture of another electronic device provided in an embodiment of the present application;
[0041] Fig.11 A schematic diagram of module interaction of a backlight brightness control method provided in an embodiment of the present application;
[0042] Fig.12 A schematic diagram of module interaction of a backlight brightness control method provided in an embodiment of the present application;
[0043] Fig.13 A schematic diagram of module interaction of a backlight brightness control method provided in an embodiment of the present application;
[0044] Fig.14A A schematic diagram of module interaction of a backlight brightness control method provided in an embodiment of the present application;
[0045] Fig. 14B A schematic diagram showing changes in backlight brightness sent by each unit and count values of a counting unit and an LTM enable flag after the solution provided in an embodiment of the present application takes effect;
[0046] Fig.15 A schematic diagram of an interactive process of a backlight brightness control method provided in an embodiment of the present application;
[0047] Fig.16 A schematic diagram of the composition of another electronic device provided in an embodiment of the present application;
[0048] Fig.17 A schematic diagram of the composition of another chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, 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.
[0050] At present, 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 is adapted to the user's needs through a brighter or darker backlight.
[0051] Exemplary, reference Figure 1 , taking a mobile phone as an example, the user can instruct the mobile phone to adjust the backlight by operating the brightness adjustment control in the mobile phone.
[0052] In such Figure 1 In the example of FIG. 1 , the mobile phone may display a main interface 101. The user may input an operation 102 of sliding down from the top to the mobile phone. In response to the 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.
[0053] For example, in Figure 1 In the example, the quick function option set 103 may include a wifi switch control 104, a cellular communication switch control 105, and the like.
[0054] In this Figure 1 The shown quick function option set 103 may also include a brightness adjustment control 106 .
[0055] For example, the current backlight brightness is A1 and the right end of the brightness adjustment control 106 is located at position 11.
[0056] The user can input a left sliding operation 107 (or referred to as a brightness adjustment operation) to the brightness adjustment control 106, and drag the right end of the brightness adjustment control 106 to position 12. The position 12 corresponds to the backlight brightness A2. In this way, the user can instruct the mobile phone to reduce the backlight brightness from A1 to A2 through the left sliding operation 107.
[0057] Correspondingly, the mobile phone can respond to the left sliding operation 107 and gradually reduce the backlight brightness from A1 to A2.
[0058] It is understandable that in order to avoid a sudden change in display effect caused by too fast backlight brightness control, the mobile phone can gradually control the backlight brightness to decrease during the process of controlling the backlight brightness to decrease from A1 to A2.
[0059] For example, A1 is 1000 nits and A2 is 960 nits. When the user inputs operation 102, the frame image displayed by the mobile phone is the first frame image. In some implementations, the first frame image displayed by the mobile phone may be a frame image displayed when receiving the user's brightness adjustment operation. The corresponding A1 may be the first brightness.
[0060] refer to Figure 2, the electronic device can control the backlight to 1000 nits in the first frame image. Then, in the second frame image, the backlight is controlled to drop by 10 nits, that is, the backlight is controlled to 990 nits in the second frame image. By analogy, in the fifth frame image, the electronic device can reduce the brightness of the current backlight to 960 nits indicated by the user. In some embodiments, the second brightness can be 990 nits corresponding to the second frame.
[0061] In some other embodiments, the first brightness and the second brightness may also be used to indicate the brightness value after normalization.
[0062] In order to realize the control of backlight brightness, the electronic device may be equipped with corresponding functional modules. Each functional module cooperates with each other to realize the following Figure 2 The gradient decrease of backlight values is shown.
[0063] Exemplary, reference Figure 3 In the electronic device, 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.
[0064] When the user inputs an operation to adjust the backlight value (such as Figure 1 In the case of operation 102), the LocalDisplayAdapter in the electronic device can determine the backlight brightness required for the current frame image, and sequentially send down the backlight brightness control for the current frame image.
[0065] As an example, it is taken that LocalDisplayAdapter determines that the brightness of the current frame image needs to be B1.
[0066] like Figure 3 As shown, 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 according to the brightness B1.
[0067] SetDisplayBrighttness can send the brightness B2 to SetPanelBrightness. Correspondingly, SetPanelBrightness can send the brightness through the Binder unit according to the brightness B2. For example, the Binder unit in SetPanelBrightness can send the brightness B2 to the display driver. The display driver can control the display panel to perform backlight control based on the brightness B2 according to the brightness B2.
[0068] In such Figure 3 In the example of SetPanelBrightness, an LTM unit can also be configured.
[0069] In the present application, the LTM unit can be used for power consumption control. It is understandable that the higher the brightness of the backlight, the higher the corresponding power consumption. Under preset conditions, when the LTM unit triggers the work, the LTM unit can obtain the current brightness B2 from the Binder unit accordingly. 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 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 may also be referred to as Local Tone Mapping, that is, local tone mapping.
[0070] Similar to the description of gradually reducing the backlight brightness of the above electronic device, the LTM unit can also gradually send down the value of reducing the brightness according to the preset step size after determining the power consumption to control the brightness according to the discount coefficient.
[0071] For example, refer to Figure 4 Take the discount coefficient x as 95% and the preset step length as 20 as an example. The preset step length may be consistent with the unit of the normalized brightness B2. In the following description, unless otherwise specified, brightness without a unit is taken as an example of a normalized unit.
[0072] In the display of the first frame 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 according to the preset discount coefficient (95%). In this example, in order to avoid the sudden change in brightness after the power consumption control is triggered, similar to Figure 2According to the mechanism shown, 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.
[0073] For example, Figure 4 As shown, the LTM unit can send a brightness value of 980 in the current first frame image according to the preset step size. The brightness value of 960 is sent in the second frame image thereafter. The brightness value of 950 is sent in the third frame image thereafter. It can be understood that according to the preset step size of 20, 960-20=940 should be sent in the third frame. However, since the final brightness value to be reduced according to the discount coefficient is 950, the LTM unit can send a brightness value of 950 in the third frame to control the display screen to adjust the backlight.
[0074] Combined with the above description of the first brightness and the second brightness. In the case of triggering power consumption control, the electronic device can use 980 (third brightness) issued by the LTM unit to control the backlight brightness during the current display of the 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 achieving power consumption control.
[0075] It is understandable that if Figure 4 In the example, the binder unit triggers power consumption control when sending the brightness value corresponding to the first frame. In the subsequent backlight brightness sending process corresponding to other frame images, power consumption control may also be triggered. After the power consumption control is triggered, the operation performed by the LTM unit is the same as in the following example. Figure 4 The process shown is similar and will not be repeated here.
[0076] In an embodiment of the present application, when any one or more of the following conditions are met, power consumption control is triggered: the power consumption of the current 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.
[0077] In different implementations, the triggering mechanism of power consumption control may be different.
[0078] In some implementations, the electronic device may enter a power saving mode (or power saving mode) under the control of the user. In response to the user's control, the LTM unit may adjust the backlight brightness in the subsequent frame image display process according to the mechanism that triggers power consumption control.
[0079] In other implementations, an application configured on the upper layer of the LTM unit in the electronic device can independently determine to trigger power consumption control. The upper layer application can send instructions to the LTM unit to instruct the LTM unit to adjust the backlight brightness according to the mechanism of triggering power consumption control.
[0080] In some other implementations, the LTM unit has the ability to independently determine whether to trigger power consumption control. In this way, under the above-mentioned conditional restrictions, the LTM unit can adjust the backlight brightness according to the mechanism of triggering power consumption control.
[0081] In the following example, the LTM unit is used to determine and trigger power consumption control by itself.
[0082] It should be noted that, in a specific implementation process, the display driver may control the brightness of the display panel using one brightness.
[0083] As an implementation, the display driver can be configured with a backlight lock. The backlight lock can be implemented specifically by a flag bit with a value of 0 or 1. When controlling the backlight brightness of a frame of an 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 brightnesses at the same time (or in the same time period).
[0084] Exemplary, reference 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 display panel to control the brightness of the backlight according to the brightness B2 (such as the display duration of 1 frame of image), the backlight lock can always maintain the value of 1 unchanged. In this way, during the display process of the frame image, the backlight will no longer change. In this application, the case where the backlight lock is configured to 1 can be referred to as a 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, during 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 according to the brightness adjustment operation input by the user.
[0085] Correspondingly, in other cases, the power consumption control of the LTM unit is triggered. For example, if the electronic device does not receive the user's instruction to control the brightness, the binder unit does not perform brightness control. In this way, the LTM unit can obtain the current brightness (such as brightness B2) and based on the following example, Figure 4The logic shown is used to send brightness.
[0086] 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.
[0087] 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 perform accurate backlight brightness control according to the corresponding received brightness.
[0088] However, in some cases, the binder unit and the LTM unit may simultaneously send down brightness.
[0089] For example, when a user enters Figure 1 In the case of the left slide operation 107 shown in FIG. Figure 2 The logic shown is used to send the backlight brightness. In this process, the power consumption control of the LTM unit is triggered.
[0090] This will result in Figure 4 The binder unit and the LTM unit shown send brightness simultaneously in the first frame or the third frame.
[0091] Exemplary, reference Figure 6 . In the first frame, the binder unit sends a brightness of 1000. Correspondingly, in the first frame, the power consumption control of the LTM unit is triggered. In the first frame, the 1000 sent by the binder unit can be earlier than 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 to display the backlight brightness according to the 1000 sent by the binder unit.
[0092] In the second frame, the 980 sent by the LTM unit in the first frame is received by the display driver earlier than the 990 sent by the binder unit. In this way, the display driver controls the display panel to display the backlight brightness according to the 980 sent by the LTM unit. Correspondingly, the backlight dims from the first frame to the second frame. The dimming degree is equivalent to a brightness drop of 20.
[0093] In the third frame, the binder unit should have sent 990 in the second frame, but the LTM unit did not send it in the second frame because it was locked. Therefore, the binder unit continues to send a brightness of 980 in the third frame. In this way, the display driver controls the display panel to display the backlight brightness according to the 990 sent by the binder unit. Correspondingly, the backlight becomes brighter from the second frame to the third frame. The degree of brightening is equivalent to a brightness increase of 10.
[0094] In the 4th frame, the binder unit continues to send 980 after 990 to control the backlight to continue to decrease gradually. The power consumption control of the LTM unit is triggered in this frame. Then, based on the similar reason as the 1st frame, the 4th frame is locked by the binder unit, and the display driver controls the display panel to display the brightness of the backlight according to the 980 sent by the binder unit. Correspondingly, the backlight dims from the 3rd frame to the 4th frame. The dimming degree is equivalent to a brightness drop of 10.
[0095] In the fifth frame, based on the display situation similar to the second frame, the display driver controls the display panel to display the backlight brightness according to the 960 sent by the LTM unit. Correspondingly, the backlight from the fourth frame to the fifth frame becomes darker. The degree of darkening is equivalent to a brightness drop of 20.
[0096] In this way, the backlight brightness reaches the brightness indicated by the user, and the binder unit temporarily stops sending new brightness.
[0097] It can be seen that in this Figure 6 In the scenario shown, the power consumption control of the LTM unit is triggered multiple times, which makes the backlight brightness control different from the gradient descent, and the backlight is flickering. This is manifested as the flickering of the display screen. This will obviously reduce the display effect when the user is using it. This situation is particularly obvious when the refresh rate of the electronic device is 60Hz and the current main display interface is the SMS interface.
[0098] It should be noted that in the above example, after the power consumption control is triggered, the LTM unit can send it in the current frame image according to the discounted brightness value calculated when the power consumption control was triggered last time, 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, after the power consumption control is triggered, the LTM unit can also recalculate the discounted backlight brightness according to the brightness value sent by the binder unit corresponding to the current frame image, and send it to the display screen for corresponding power consumption control. In this scenario, there may also be a problem of screen flickering due to the frequent cross-sending of brightness values by the LTM unit and the binder unit, resulting in a sudden change in the control of the backlight brightness during the display of continuous frame images.
[0099] In order to solve the above problems, an embodiment of the present application provides a backlight brightness control method, so that after the power consumption control of the LTM unit is triggered, the electronic device can use the brightness sent by the LTM unit to control the backlight brightness only when the LTM unit repeatedly sends backlight requirements. As a result, when the binder unit and the LTM unit send brightness simultaneously and continuously for multiple times, the display driver can control the backlight brightness mainly based on the gradient-decreased brightness sent by the binder unit. Then, the effect of gradual increase or decrease in the backlight control process is obtained, avoiding the flickering and other problems in the above examples.
[0100] As an example, Figure 7 Provided is a solution based on the embodiments of the present application, and Figure 6 In the same scene, the backlight brightness ranges from 1000 to 960 in each frame image. Figure 7 As shown in , in the first frame to the third frame, the backlight brightness uses the brightness sent by the binder unit. For example, the first frame is 1000, and the gradient decreases by 10 each time, corresponding to the second frame is 990, and the third frame is 980. Figure 6 In the scenario example, the power consumption control function of the LTM unit is triggered in both the 1st and 3rd frames. In the 2nd frame, since the brightness of the LTM unit in the 1st frame is not sent down, there is a need for the LTM unit to send down the brightness in the 2nd frame. In this way, the LTM unit needs to send down the brightness in the first 3 frames. Based on the solution provided in the embodiment of the present application, when the LTM unit needs to send down the brightness for 3 consecutive frames, the electronic device uses the brightness sent down by the LTM unit to control the backlight brightness in the next frame (such as the 4th frame). That is, Figure 7 As shown, in the 4th frame, the backlight brightness is controlled using the brightness of 980 sent by the LTM unit for display. In this way, in the 1st to 3rd frames, the backlight brightness decreases gradually, and the backlight brightness in the 4th frame remains unchanged compared to the 3rd frame, and there is no flickering of the variable. In the 5th frame, the backlight brightness is continued to be controlled using the brightness sent by the binder, so that the backlight brightness reaches 960 indicated by the user. In this way, when the binder sends the backlight value and triggers the power consumption control of the LTM unit, the flickering problem in the backlight control process is avoided.
[0101] The solution provided in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0102] It should be noted that the electronic device in the embodiment 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, a vehicle-mounted device, a smart home device, or a smart city device. The embodiment of the present application does not impose any special restrictions on the specific type of the electronic device.
[0103] Exemplarily, the electronic device involved in the solution provided in the embodiment of the present application may be configured with a display screen. The electronic device may control the backlight brightness of the display screen under the instruction of the user. 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 embodiment of the present application, the electronic device can obtain a smoother backlight control effect during the backlight control process even if the power consumption control of the LTM unit is triggered, thereby avoiding problems such as flickering during the backlight control process.
[0104] As an example, Figure 8 A structural diagram of an electronic device 700 is shown.
[0105] 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 embodiment of the present application does not impose any special restrictions on the specific type of the electronic device 700.
[0106] 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, and the like.
[0107] The processor 710 may include one or more processing units, for example, the processor 710 may include an application processor (AP), a modem processor (Modem), a graphics processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0108] The processor can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0109] The processor 710 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 710 may be a cache memory. The memory may store instructions or data that have been used or are frequently used by the processor 710. If the processor 710 needs to use the instruction or data, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 710, and thus improves the efficiency of the system.
[0110] In some embodiments, the processor 710 may include one or more interfaces. The interface 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, etc. The processor 710 may be connected to a touch sensor, an audio module, a wireless communication module, a display, a camera, and other modules through at least one of the above interfaces.
[0111] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration 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 in the above embodiments, or a combination of multiple interface connection methods.
[0112] It should be noted that the structure illustrated in the embodiment 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0113] The electronic device 700 can realize the display function through a GPU, a display screen 794, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 794 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 710 may include one or more GPUs, which execute program instructions to generate or change display information.
[0114] The display screen 794 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 700 may include one or more display screens 794.
[0115] The 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 the electronic device 700. The external memory card communicates with the processor 710 through the external memory interface 720 to implement a data storage function. For example, files such as music and videos are stored in the external memory card. Or files such as music and videos are transferred from the electronic device to the external memory card.
[0116] The internal memory 721 can be used to store computer executable program codes, which include 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.
[0117] The pressure sensor 780A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 780A can be set on the display screen 794. There are many types of pressure sensors 780A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 780A, the capacitance between the electrodes changes. The electronic device 700 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 794, the electronic device 700 detects the touch operation intensity according to the pressure sensor 780A. The electronic device 700 can also calculate the touch position according to the detection signal of the pressure sensor 780A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0118] The touch sensor 780K is also called a "touch control device". The touch sensor 780K can be set on the display screen 794, and the touch sensor 780K and the display screen 794 form a touch screen, also called a "touch control screen". The touch sensor 780K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 794. In other embodiments, the touch sensor 780K can also be set on the surface of the electronic device 700, which is different from the position of the display screen 794.
[0119] The composition of the electronic device as shown in the figure above does not constitute a limitation on the electronic device provided in the embodiment of the present application.
[0120] In other embodiments, the electronic device may have more or fewer components.
[0121] In the embodiment of the present application, the electronic device may also be configured with a software module for communicating with Figure 8 One or more of the hardware components shown cooperate to implement various functions of the electronic device.
[0122] For example, Fig. 9 A schematic diagram of software partitioning of an electronic device provided in an embodiment of the present application is provided.
[0123] 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.
[0124] like Fig. 9 As shown in FIG. 1 , 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.
[0125] The application layer can include a series of application packages.
[0126] like Fig. 9 As shown, the application package may include applications such as gallery, calendar, map, WLAN, music, SMS, call, navigation, Bluetooth, settings, etc. Among them, the setting application may include one or more function options provided by the electronic device, for example, it may include a function option for brightness adjustment, etc.
[0127] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0128] like Fig. 9 As shown, 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.
[0129] 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.
[0130] Content providers are used to store and retrieve data and make it accessible to applications. This data can include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0131] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0132] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0133] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0134] The activity manager can provide activity management services (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.
[0135] The input manager can provide input management services (IMS), which can be used to manage system input, such as touch screen input, key input, sensor input, etc. IMS takes events from input device nodes and distributes them to appropriate windows through interaction with WMS.
[0136] The Android runtime includes the core library and the Android runtime. The Android runtime is responsible for converting source code into machine code. The Android runtime mainly uses the ahead of time (AOT) compilation technology and the just in time (JIT) compilation technology.
[0137] 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.
[0138] The native C / C++ library can include multiple functional modules, such as surface manager, media framework, libc, OpenGL ES, SQLite, Webkit, etc.
[0139] Among them, the surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media framework supports playback and recording of multiple common audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. OpenGL ES provides drawing and operation of 2D and 3D graphics in applications. SQLite provides a lightweight relational database for electronic device applications.
[0140] The hardware abstraction layer runs in user space, encapsulates the kernel layer driver, 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.
[0141] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and Bluetooth driver.
[0142] It should be noted that similar to the above Figure 8 In the description, the above Fig. 9 The software components shown do not constitute a limitation on the electronic device provided by the embodiments of the present application. In other embodiments, the electronic device may also have more or fewer software components.
[0143] As an example, refer to Fig.10 , is a schematic diagram of the software composition of another electronic device provided in an embodiment of the present application.
[0144] In such Fig.10 In the example, combined with Fig. 9 As described above, more modules or units may be included in each software layer to support the technical solutions provided in the embodiments of the present application.
[0145] like Fig.10 As shown, 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 and Brightness" function module of the settings application. When the user instructs the electronic device to control the backlight brightness through the "Display and Brightness" function module, the local display configuration module can determine, based on the operation input by the user, that the user needs to control the backlight brightness to, for example, Figure 1 Brightness A2 shown.
[0146] It is understandable that, combined with Figure 1The 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. Then correspondingly, in response to the user's operation on 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.
[0147] like Fig.10 As shown, 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 to obtain the brightness that can be directly recognized and used by other underlying modules of the electronic device. For example, refer to Figure 3 When the local display configuration module sends brightness B1, the backlight configuration module can determine that it is necessary to control the underlying module to perform backlight control according to brightness B2 based on brightness B1. Among them, brightness B2 corresponds to brightness B1 one by one. 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.
[0148] 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 send specific backlight values according to a preset strategy.
[0149] In some embodiments, the panel backlight configuration module may include a binder unit and an LTM unit. The binder unit is used to transmit the brightness from the framework layer. The LTM unit is used to trigger the backlight brightness control according to a preset power consumption control strategy. For example, a discount coefficient and a preset step size may be configured in the LTM unit. The discount coefficient is a positive number less than or equal to 1. The LTM unit may determine the discounted brightness according to the discount coefficient and the brightness from the upper layer when it is determined that the power consumption control is triggered. 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 power consumption of the current 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 in the electronic device is greater than a preset number threshold; the current electronic device is running at least one high-power consumption application, wherein the high-power consumption application can be determined according to the resource occupancy during the operation of the application and / or the list of high-power consumption applications configured in the electronic device.
[0150] A display driver may be configured in the core layer of the electronic device. The display driver is used to drive a display screen or other display components to display images. In the present application, the display driver may also be used to control the display screen / backlight unit to adjust the backlight brightness.
[0151] like Fig.10 As shown, a plurality of unit modules may be configured in the display driver to cooperate in realizing the backlight brightness adjustment function.
[0152] For example, Fig.10 As shown, 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.
[0153] The binder queue is used to receive and temporarily store the brightness sent by the binder unit.
[0154] 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 sent by the LTM unit is available. In some implementations, the LTM enable flag can be implemented by a global variable, so that each module in the electronic device can have the authority to read the LTM enable flag. In this way, when the LTM enable flag is configured as a first value, the corresponding indication that the brightness sent by the LTM unit is available, then the LTM unit can send the brightness after the power consumption control process to the display driver when the LTM unit triggers power consumption control according to a preset power consumption control strategy. Correspondingly, when the LTM enable flag is configured as a second value, the corresponding indication that the brightness sent by the LTM unit is unavailable. Then, even if the LTM unit triggers power consumption control according to a preset power consumption control strategy, the LTM unit may not execute the brightness. At this time, the display driver can obtain the brightness sent by the binder unit from the binder unit or through the binder queue to control the backlight brightness. As a possible example, the first value is 1 and the second value is 0. Or, 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.
[0155] like Fig.10 As shown, a counting unit may also be 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.
[0156] In the present application, when the LTM unit triggers the power consumption control for the first time, the counting unit starts counting, such as the count value is controlled from 0 to 1. Thereafter, when the LTM unit determines that the brightness needs to be continuously sent (such as continuously triggering the 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 the brightness again, and the count value changes from 1 to 2. Similarly, in the third frame, the LTM unit needs to send the brightness again, and the count value changes from 2 to 3.
[0157] When the count value of the timer reaches 3, the LTM enable flag changes from false to true. In this way, if the LTM unit still needs to send brightness in the fourth frame, since the LTM enable flag is true, the LTM unit can send the brightness that needs to be sent to the display driver, and then the display driver controls the backlight brightness according to the brightness sent by the LTM unit.
[0158] 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 brightness stored therein 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.
[0159] For example, in Fig.10 In the kernel layer shown, a control unit may also be configured in the display driver.
[0160] 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 the power consumption control of the LTM unit. The LTM unit has a need to send brightness.
[0161] The control unit may also control the backlight brightness using the brightness sent by the LTM unit when the LTM enable flag is a first value (such as true) and the LTM unit has a need to send down the brightness.
[0162] 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.
[0163] 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. Figure 8According to the description in , the display panel can perform backlight display with different brightness. The display panel can be integrated in the display screen of the electronic device, or the display panel can also be a light-emitting component independent of the display screen.
[0164] Combined with the above description of the counter and the LTM enable flag, in this example, the control unit in the display driver can also determine the brightness sent by the binder unit, and the control unit configures the LTM enable flag to the second value. In addition, the control unit can also configure the count value of the counting unit to 0. In this way, if it is determined to use the brightness sent by the LTM unit in the next frame, the control unit controls the count value of the counting unit to add 1. In the next frame thereafter, if it is determined to use the brightness sent by the LTM unit, the control unit continues to control the count value of the counting unit to add 1. Until the count value of the counting unit reaches 3. The control unit controls the configuration of the LTM enable flag to the first value, and the count value of the counter is reset to zero. In this way, in the next frame thereafter, if it is determined to use the brightness sent by the LTM unit, 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 as the first value, if it is determined to use the brightness sent by the binder unit, the control unit reconfigures the LTM enable flag to the second value and configures the count value of the counting unit to 0. In this way, the electronic device can control the backlight brightness mainly based on the brightness sent by the binder unit. When there is a continuous demand for brightness sent by the LTM unit, after three consecutive frames, the brightness sent by the LTM unit is used to control the backlight brightness in the fourth frame. This avoids the backlight flickering problem caused by repeated cross-use of the brightness sent by the binder unit and the LTM unit.
[0165] It is understandable that the above Fig.10 The composition and functions of the modules shown are only examples, and in other embodiments of the present application, the units or modules in the electronic device may be more or less, and their functions may be different from the above description. The embodiments of the present application are not limited to this.
[0166] In the following example, an electronic device has Fig.10 Taking the composition shown as an example, the technical solution provided in the embodiments of the present application is illustrated.
[0167] Exemplary, reference Fig.11 , is a schematic diagram of module interaction of a backlight brightness control method provided in an embodiment of the present application. Fig.11 In the illustrated solution, an example is taken in which an electronic device (such as a control unit deployed in a display driver) determines to use the brightness sent by a binder unit to control the backlight brightness during the display of a current frame image.
[0168] like Fig.11 As shown, the program may include:
[0169] S1101. The local display configuration module sends brightness C1 to the backlight configuration module.
[0170] For example, in combination with the above description, the local display configuration module can be based on the operation input by the user (such as Figure 1 Operation 107 is shown to determine the backlight brightness of each subsequent frame image. In this example, in the current frame image (such as the Nth frame image), the local display configuration module can determine that when the Nth frame image is displayed, the backlight brightness is controlled according to C1.
[0171] S1102: The backlight configuration module sends brightness C2 to the binder unit, wherein the brightness C2 is determined according to the brightness C1.
[0172] Similar to the above description, in this example, the backlight configuration module can normalize the brightness C1, thereby obtaining the brightness C2 that can be directly recognized and used by other modules. The brightness C2 can correspond to the brightness C1 one by one.
[0173] The backlight configuration module may obtain the brightness C2 according to the brightness C1 and then send the brightness C2 to the binder unit.
[0174] S1103. The Binder unit transmits brightness C2 to the Binder queue.
[0175] Combined with the above description about the binder queue, in this example, the binder unit can put the brightness C2 into the binder queue to facilitate subsequent control unit reading and calling.
[0176] S1104. The control unit obtains brightness C2 from the binder queue.
[0177] In the following description of this application, using a binder unit to send a brightness value to control the backlight brightness can also be referred to as using a binder to dim the backlight. Correspondingly, using an LTM unit to send a brightness value to control the backlight brightness can also be referred to as using an LTM unit to dim the backlight.
[0178] Exemplarily, in some embodiments, the control unit may obtain the brightness C2 from the binder queue when determining the binder dimming.
[0179] 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.
[0180] It is understandable that the control unit determines that the dimming of the LTM unit is not used in a variety of situations. For example, the control unit directly determines 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 the power consumption control of the LTM unit), the control unit determines not to use the LTM unit dimming according to the LTM enable flag being a second value (such as false).
[0181] 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.
[0182] 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 Nth frame image.
[0183] In some embodiments, during the execution of S1104-S1105, the control unit may also 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 current backlight lock is occupied and do not send the backlight brightness.
[0184] In the embodiment of the present application, after determining to execute S1104, the control unit may also execute the following S1106-S1107 to configure the LTM enable flag and the counting unit provided in the embodiment of the present application to facilitate reasonable control of the backlight brightness of other subsequent frame images.
[0185] S1106. The control unit configures the LTM enable flag to be a second value.
[0186] S1107: The control unit controls the count value of the counting unit to be configured as 0.
[0187] 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.
[0188] The control unit may also reset the count value of the counting unit to zero, i.e., configure it to 0, when determining that the display process of the current Nth frame image uses binder dimming or does not use LTM unit dimming. 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.
[0189] Thus, by Fig.11The implementation of the solution shown enables the backlight brightness to be controlled during the display of the Nth frame of image through binder dimming.
[0190] like Fig.11 This paper provides a solution to control the backlight brightness during the display of the Nth frame image. Fig.12 , is the solution for backlight brightness control during the display of the N+1 frame image. Fig.12 In the example, the LTM unit is used to trigger power consumption control.
[0191] like Fig.12 As shown, the program may include:
[0192] S1201. The local display configuration module sends brightness C3 to the backlight configuration module.
[0193] Exemplarily, according to an operation input by a 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.
[0194] 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.
[0195] S1202: The backlight configuration module sends brightness C4 to the binder unit, wherein the brightness C4 is determined according to the brightness C3.
[0196] Exemplarily, the execution of S1202 may refer to the aforementioned S1202, and the specific implementations are mutually referenced, which will not be described in detail here.
[0197] S1203 : When the LTM unit triggers power consumption control, the brightness C4 is obtained from the binder unit.
[0198] Exemplarily, the LTM unit may determine to trigger power consumption control according to a preset power consumption control strategy.
[0199] In combination with the foregoing description, in some embodiments, the preset power consumption control strategy includes at least one of the following: the power consumption of the current 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, wherein the high power consumption application can be determined based on the resource usage during the running of the application and / or the list of high power consumption applications configured in the electronic device.
[0200] 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.
[0201] 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.
[0202] In this example, the control unit may interact with the LTM unit to determine that the LTM unit triggers power consumption control.
[0203] 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 according to brightness C4).
[0204] 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+1th frame image, the LTM enable flag may be configured as the second value (false). In this way, the control unit may determine not to use the LTM unit dimming.
[0205] It can be understood that, in combination 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 the 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 triggers the power consumption control.
[0206] Therefore, in different implementations, the step of the control unit determining that the LTM unit triggers power consumption control may be performed in S1204. Alternatively, the control unit determining that the LTM unit triggers power consumption control may also be performed at any time before the subsequent S1207.
[0207] S1205. The control unit obtains the brightness C4 sent by the binder unit from the binder queue.
[0208] In this example, when the control unit determines not to use the LTM unit dimming, it obtains the brightness value sent by the binder unit from the binder queue.
[0209] 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+1th frame. Correspondingly, in the present application, there is a configuration of a binder queue, and 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.
[0210] For example, in the N+1th frame image, the binder unit may store the brightness C4 from the backlight configuration module in the binder queue. In this way, the control unit may 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.
[0211] 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.
[0212] In this way, the control unit can control the display panel to perform backlight control based on the brightness C4.
[0213] It is understandable that in this Fig.12 In the scenario shown, although the LTM unit power consumption control is triggered, due to the processing mechanism of S1204 in the present 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 triggered for the first time. In this way, the backlight changes of the N+1th frame image and the Nth frame image are both based on the binder unit control, which is reflected as a gradient linear change, thereby avoiding screen flickering caused by a sudden change in backlight brightness.
[0214] In this example, combined with the description of S1204, when the control unit determines to trigger the LTM unit power consumption control and the LTM enable flag is the second value, the control unit may further execute the following S1207. This implements the recording of the current LTM unit power consumption control trigger, so that after the LTM unit power consumption control is continuously triggered for a certain number of times, the brightness value sent by the LTM unit is used to control the backlight.
[0215] S1207: The control unit controls the counting value of the counting unit to increase by 1.
[0216] Exemplary, combined Fig.11In the example in , before the N+1th frame starts to be displayed, the count value (count) of the counting unit is 0. Thus, after the processing of S1207, after the N+1th frame is displayed, count can be 1.
[0217] Thus, by Fig.12 The solution shown in the figure can achieve that 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, thereby avoiding a sudden change in the backlight brightness control due to the triggering of the LTM unit power consumption control, thereby avoiding the screen flickering problem caused by this.
[0218] Understandably, Fig.12 The implementation of the solution shown is based on the implementation of the N+1th frame image as an example. Fig.11 In the description, in the Nth frame image, the electronic device can determine to use the brightness value sent by the binder unit to control the backlight brightness. That is to say, the N+1th frame image can be the first time to determine to trigger the LTM unit power consumption control. Then next, if the N+2th frame image is determined to trigger the LTM unit power consumption control again, the electronic device can use Fig.12 The implementation is similar to the scheme shown in the figure, and the brightness value sent by the binder unit is used 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+2th frame image is displayed, the count of the counting unit is 2.
[0219] The following takes the N+3 frame image still triggering the LTM unit power consumption control as an example, and gives an example of the backlight brightness control implementation of the N+3 frame image.
[0220] refer to Fig.13 , the control process of the backlight brightness of the N+3th frame image may include:
[0221] S1301. The local display configuration module sends brightness C5 to the backlight configuration module.
[0222] S1302: The backlight configuration module sends brightness C6 to the binder unit, wherein the brightness C6 is determined according to the brightness C5.
[0223] S1303 : When the LTM unit triggers power consumption control, the brightness C6 is obtained from the binder unit.
[0224] 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.
[0225] S1305. The control unit obtains the brightness C6 sent by the binder unit from the binder queue.
[0226] 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.
[0227] S1307: The control unit controls the counting value of the counting unit to increase by 1.
[0228] It is understandable that the execution of the above S1301-S1307 can correspond to the following respectively: Fig.12 The specific execution process of each step shown is similar and will not be repeated here.
[0229] Thus, after completing the execution of S1307, the count of the counting unit is 3.
[0230] In an embodiment of the present application, the control unit can determine whether the count of the counting unit reaches a preset number threshold after each operation of adding 1 to the count value of the counting unit (such as S1207, S1307, etc.). In the present application, the number threshold is 3 as an example. In this way, after determining that the count of the counting unit reaches 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 the LTM unit dimming is used when the next frame image is still determined to use the LTM unit dimming.
[0231] As an example, Fig.13 As shown, after completing S1307, the electronic device may execute S1308-S1309.
[0232] S1308: The control unit determines whether the count reaches a preset number threshold. In this example, the preset number threshold is 3.
[0233] 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.
[0234] It is understandable that, combined with Fig.11 as well as Fig.12 The count value of the counting unit can be used to indicate the number of consecutive frame images that trigger the power consumption control of the LTM unit. In this example, when 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 the subsequent consecutive frame images trigger the power consumption control of the LTM unit.
[0235] As an example, based on Fig.13The scheme shown in the figure is implemented, in the three consecutive frames from the N+1 frame to the N+3 frame, the LTM unit power consumption control is triggered. Then, if the LTM unit power consumption control is still triggered in the N+4 frame image, the electronic device can Fig.14A The solution shown is implemented using LTM unit dimming.
[0236] For example, Fig.14A As shown, the program may include:
[0237] S1401. The local display configuration module sends brightness C7 to the backlight configuration module.
[0238] S1402: The backlight configuration module sends brightness C8 to the binder unit, wherein the brightness C8 is determined according to the brightness C7.
[0239] S1403 : When the LTM unit triggers power consumption control, the brightness C8 is obtained from the binder unit.
[0240] For example, the specific implementation of S1401-S1403 can refer to Fig.12 S1201-S1203 as shown, or Fig.13 S1301-S1303 shown in the figure are not described in detail here.
[0241] S1404: The control unit determines that the LTM unit triggers power consumption control.
[0242] For example, the execution of this step can refer to Fig.12 In this way, the control unit can determine that the power consumption control of the LTM unit is still triggered in the current N+4th frame image.
[0243] S1405: The control unit obtains a value of the LTM enable flag. Exemplarily, the control unit may obtain a value of the LTM enable flag as a first value.
[0244] Combination Fig.13 In the description of S1308-S1309, when the number of consecutive triggering of power consumption control reaches a preset number threshold (such as 3), the value of the LTM enable flag is controlled from the second value (false) to the first value (true).
[0245] Thus, in S1405, the control unit can determine that during the display of the current N+4th frame image, the backlight brightness is controlled using the LTM unit dimming by acquiring the value of the LTM enable flag as the first value.
[0246] S1406: The control unit obtains brightness C9 from the LTM unit, wherein the brightness C9 is determined according to the brightness C8.
[0247] 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 according to the brightness C8, a preset discount coefficient, a preset step size and other parameters after acquiring the brightness C8 in S1403.
[0248] 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.
[0249] In this way, when the control unit determines that the power consumption control is still triggered and the LTM enable flag is the first value, it can obtain the brightness C9 after the power consumption control process from the LTM unit. Thus, the backlight brightness is controlled during the display of the current frame image based on the brightness C9.
[0250] Based on Fig.14A The solution shown in the figure is implemented, and 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 more urgent. Then, through this Fig.14A The solution shown can effectively control the power consumption during the backlight brightness control process.
[0251] In addition, if Fig.14A The processing of the 4th frame image that continuously triggers power consumption control is taken as an example. In the subsequent frame image display process (such as the N+5th frame), if the power consumption control is still triggered, since the count value is not modified in the backlight brightness control process during the display of the N+4th frame image, the electronic device still reads the count value of 3 when determining that the N+5th frame image triggers power consumption control. In this way, the electronic device can control the backlight brightness of the N+5th frame image according to the following example. Fig.14A A similar implementation to the scheme shown, using LTM unit dimming.
[0252] If the subsequent frame image is triggered for power consumption control, the corresponding trigger is as follows Fig.11 The solution shown is implemented. The electronic device can configure the LTM enable flag to false and the counting unit to 0. This cycle can avoid screen flickering caused by frequent triggering of the LTM unit power consumption control, and can also flexibly use the LTM unit dimming to effectively control power consumption when the power consumption control is triggered multiple times in a row.
[0253] Combination Figure 11-14A The solution shown is implemented, Fig. 14B An example of the effect of backlight brightness control based on the solution provided in an embodiment of the present application is shown.
[0254] like Fig. 14BAs shown, in the first frame, the binder unit sends a brightness value of 1000. Correspondingly, the power consumption control is triggered, the counting unit increases by 1, and the count value is 1. At this time, the LTM enable flag is false, and the electronic device continues to use 1000 sent by the binder unit to adjust the backlight brightness.
[0255] In the second frame, the binder unit sends a brightness value of 990. The corresponding power consumption control is triggered, and the counting unit increases by 1, and the count value is 2. At this time, the LTM enable flag is false, and the electronic device continues to use 990 sent by the binder unit to adjust the backlight brightness.
[0256] In the third frame, the binder unit sends a brightness value of 980. The corresponding power consumption control is triggered, and the counting unit adds 1, and the count value is 3. At this time, the LTM enable flag is false, and the electronic device continues to use the 980 sent by the binder unit to adjust the backlight brightness. Fig.13 The solution shown is implemented such that after the brightness adjustment is completed in the third frame and before the brightness adjustment is started in the fourth frame, the electronic device can adjust the LTM enable flag to true according to the count value reaching a preset number of times (eg, 3 times).
[0257] In the fourth frame, the corresponding power consumption control is continued. At this time, the LTM enable flag is true, and the electronic device confirms to use the brightness value sent by the LTM unit to adjust the backlight. Figure 4 In the example in FIG. 1 , since the power consumption control has been triggered in the first frame, the LTM unit can now send a brightness value of 980 after the power consumption control process based on the brightness value of 1000 sent by the binder unit. Fig. 14B In the example of FIG. 1 , the electronic device can adjust the backlight brightness using 980 sent by the LTM unit in the 4th frame.
[0258] In the 5th frame, the power consumption control is not triggered. Fig.11 The solution shown is implemented, and the electronic device uses the brightness value sent by the binder unit to adjust the backlight brightness. In addition, the electronic device can also set the count value of the counting unit to zero, and the LTM enable flag is configured to false.
[0259] From this you can get Figure 7 The effect shown in the figure avoids sudden changes or flickering of screen brightness caused by frequent triggering of power consumption adjustment.
[0260] Above Figure 11-14A In the example, the solution provided by the embodiment of the present application is described in detail from the perspective of interaction between various modules. Fig.15 The example of the embodiment of the present application is further described.
[0261] refer to Fig.15 , which is a flow chart of a backlight brightness control method provided in an embodiment of the present application.
[0262] like Fig.15 As shown, the program may include:
[0263] S1501. The local display configuration module determines the backlight brightness C1 of the Nth frame image.
[0264] Exemplarily, the local display configuration module may trigger the execution of S1501 after receiving the backlight brightness control instruction input by the user. The backlight brightness control instruction may include multiple specific implementations. For example, the backlight brightness control instruction may be implemented as follows: Figure 1 Operation 107 is shown as input. For another example, the backlight brightness control instruction can be input by the user through other controls with backlight adjustment function provided in the electronic device.
[0265] S1502. The local display configuration module sends brightness C1 to the backlight configuration module.
[0266] S1503. The backlight configuration module determines brightness C2 according to brightness C1.
[0267] Combination Fig.11 As described in , brightness C2 corresponds to brightness C1 one by one. In some implementations, brightness C2 can be obtained by normalizing brightness C1.
[0268] S1504. The backlight configuration module sends the brightness C2 to the Binder unit.
[0269] S1505. The Binder unit sends brightness C2 to the Binder queue.
[0270] S1506. The Binder queue stores brightness C2.
[0271] S1507: The control unit determines to use binder dimming.
[0272] S1508. The control unit obtains brightness C2 from the Binder queue.
[0273] S1509. The control unit sends brightness C2 to the display panel.
[0274] S1510. The display panel controls the backlight brightness value according to the brightness C2.
[0275] In this way, through the above S1501-S1510, the electronic device can realize the control of the backlight brightness based on binder dimming.
[0276] In the present application, the electronic device may also execute S1511 - S1512 during the display of the Nth frame image.
[0277] 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 is used to indicate that the LTM unit dimming is unavailable.
[0278] S1512: The control unit clears the count value of the counting unit.
[0279] The execution of each step of S1501-S1512 can correspond to the following respectively: Fig.11 The specific implementation of each step shown will not be repeated here.
[0280] 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.
[0281] 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.
[0282] S1513. The local display configuration module determines the backlight brightness C3 of the N+1th frame image.
[0283] S1514. The local display configuration module sends brightness C3 to the backlight configuration module.
[0284] S1515. The backlight configuration module determines brightness C4 according to brightness C3.
[0285] S1516. The backlight configuration module sends brightness C4 to the Binder unit.
[0286] S1517. The Binder unit sends brightness C4 to the Binder queue.
[0287] S1518. The Binder queue stores brightness C4.
[0288] S1519: The control unit determines to trigger power consumption control.
[0289] S1520. The control unit obtains an LTM enable flag.
[0290] S1521. The control unit determines that the LTM enable flag is false.
[0291] S1522. The control unit obtains brightness C4 from the Binder queue.
[0292] S1523. The control unit sends brightness C4 to the display panel.
[0293] S1524. The display panel controls the backlight brightness value according to the brightness C4.
[0294] S1525: The control unit instructs the counting unit to add 1 to the count value.
[0295] Exemplarily, the execution of each step of S1513-S1525 may correspond to the following steps: Fig.12 The scheme shown is implemented. The specific implementation can be referenced by each other and will not be repeated here.
[0296] 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 record the number of consecutive triggering of power consumption control through a counting unit. Based on this number, it is determined whether to use LTM unit dimming to control the backlight brightness in the future.
[0297] Combination Fig.12 In this example, the backlight control of the N+2th frame image can refer to the N+1th frame image. In this way, after the backlight control of the N+2th frame image, the count value can be configured as 2.
[0298] The following S1526-S1540 can be used to support the electronic device in controlling the backlight brightness of the N+3th frame.
[0299] S1526. The local display configuration module determines the backlight brightness C5 of the N+3th frame image.
[0300] S1527. The local display configuration module sends brightness C5 to the backlight configuration module.
[0301] S1528. The backlight configuration module determines brightness C6 according to brightness C5.
[0302] S1529. The backlight configuration module sends the brightness C6 to the Binder unit.
[0303] S1530. The Binder unit sends brightness C6 to the Binder queue.
[0304] S1531, the Binder queue stores brightness C6.
[0305] S1532: The control unit determines to trigger power consumption control.
[0306] S1533. The control unit obtains an LTM enable flag.
[0307] S1534: The control unit determines that the LTM enable flag is false.
[0308] S1535. The control unit obtains brightness C6 from the Binder queue.
[0309] S1536. The control unit sends brightness C6 to the display panel.
[0310] S1537. The display panel controls the backlight brightness value according to the brightness C6.
[0311] S1538. The control unit instructs the counting unit to count up by 1.
[0312] S1539: The control unit determines that the count value of the counting unit reaches a times threshold.
[0313] S1540: The control unit configures the LTM enable flag to be true.
[0314] For example, the implementation of S1526-S1540 can refer to Fig.13 In this example, the control of the backlight brightness corresponding to the N+3th frame image may be the power consumption control of the LTM unit triggered for the third time in a row. Then correspondingly, in S1539, the control unit may 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 time in a row, the electronic device can use the LTM unit dimming to control the brightness value of the backlight.
[0315] 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.
[0316] S1541. The local display configuration module determines the backlight brightness C7 of the N+4th frame image.
[0317] S1542. The local display configuration module sends brightness C7 to the backlight configuration module.
[0318] S1543. The backlight configuration module determines brightness C8 according to brightness C7.
[0319] S1544. The backlight configuration module sends brightness C8 to the Binder unit.
[0320] S1545. The Binder unit sends brightness C8 to the Binder queue.
[0321] S1546, Binder queue stores brightness C8.
[0322] 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:
[0323] S1547. The LTM unit obtains brightness C8 from the Binder unit.
[0324] S1548. The LTM unit obtains the brightness C9 after power consumption control according to the brightness C8.
[0325] In addition, the control unit may also execute S1549 and subsequent processing to achieve corresponding backlight brightness control.
[0326] S1549: The control unit determines to trigger power consumption control.
[0327] S1550. The control unit obtains an LTM enable flag.
[0328] S1551. The control unit determines that the LTM enable flag is true.
[0329] S1552. The control unit obtains the brightness C9 from the LTM unit.
[0330] S1553. The control unit sends brightness C9 to the display panel.
[0331] S1554. The display panel controls the backlight brightness value according to the brightness C9.
[0332] 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.
[0333] In summary, based on the above Figure 11-Figure 15 With the solutions provided in the corresponding embodiments, the electronic device can effectively avoid sudden changes in backlight brightness control caused by frequent effectiveness of binder dimming and LTM unit dimming, thereby avoiding the corresponding screen flickering problem.
[0334] Corresponding to Figure 7 For example, the Nth frame is the first frame. Then, from the first frame to the third frame, the electronic device can follow the following steps: Figure 11-Figure 12 or Fig.15 In S1501-S1540, binder dimming is used. In the process of backlight brightness control corresponding to the three frames from the first frame to the third frame, if power consumption control is triggered, the electronic device can use LTM unit dimming when controlling the backlight brightness of the fourth frame. Figure 7 The backlight brightness control effect is shown.
[0335] It is understandable that the electronic device provided in the embodiment of the present application includes a hardware structure and / or software module corresponding to each function in order to realize the above functions. Those skilled in the art should easily realize that, in conjunction 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 the form of hardware or computer software driving hardware 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.
[0336] 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.
[0337] For example, Fig.16 FIG. 1 is a schematic diagram showing the composition of an electronic device 1600. Fig.16 As shown, the electronic device 1600 may include: a processor 1601 and a memory 1602. The memory 1602 is used to store computer-executable instructions.
[0338] like Fig.16 As shown, the electronic device 1600 may also be provided with a display screen 1603. The display screen 1603 may control the backlight brightness under the control of the processor 1601.
[0339] Exemplarily, in some embodiments, when the processor 1601 executes the instructions stored in the memory 1602 , the electronic device 1600 can execute any of the methods shown in the above embodiments to reasonably control the backlight brightness of the display screen 1603 .
[0340] 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.
[0341] Fig.17A schematic diagram of the composition of a chip system 1700 is shown. 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 a possible design, the chip system also includes a memory for storing necessary program instructions and data for electronic devices. The chip system may be composed of chips, or may 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.
[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] The functions or actions or operations or steps 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, it 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 process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or may include one or more servers, data centers and other data storage devices 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)).
[0344] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious 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 exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered 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, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for controlling backlight brightness, 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, 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, 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, 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, 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, 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, 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, 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, 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 when 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, 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, 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, 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, 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, characterized in that The method further comprises: In the case where the electronic device determines that the power consumption control is triggered, the electronic device adds 1 to the count value in the counting unit.
15. The method according to claim 11 or 12, 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, 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, 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, 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, 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.
Citation Information
Cited By
Backlight brightness control method and electronic device
EP4648041A1
Backlight brightness control method and electronic device
WO2024244602A1
