Brightness adjustment method and related device
By setting up multiple ambient light sensors on foldable electronic devices to collect and fuse light intensity, the problem of inaccurate screen brightness adjustment under different lighting conditions is solved, improving user experience and reducing power consumption.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-11-15
- Publication Date
- 2026-05-01
AI Technical Summary
Existing technologies struggle to accurately adjust the screen brightness of electronic devices under different lighting conditions, resulting in a poor user experience.
The device employs at least one first front ambient light sensor and one second front ambient light sensor on a foldable electronic device. The two sensors collect the ambient light intensity and perform fusion processing through a software module to determine control parameters to adjust the screen brightness.
It enables more accurate adjustment of screen brightness under different lighting conditions, improves user experience, reduces brightness instability, and lowers power consumption.
Smart Images

Figure CN120431886B_ABST
Abstract
Description
Brightness adjustment methods and related equipment Technical Field
[0001] This application belongs to the field of terminal devices, and in particular relates to a brightness adjustment method and related equipment. Background Technology
[0002] Users frequently use electronic devices under varying lighting conditions. To ensure a good user experience in different lighting scenarios, electronic devices can sense the intensity of ambient light and flexibly adjust screen brightness accordingly, matching the screen brightness to the ambient light level. This improves the user's visual experience when viewing the displayed content and reduces power consumption by lowering screen brightness in low-light conditions.
[0003] How to more precisely adjust the screen brightness of electronic devices to improve user experience is a problem that needs to be considered. Summary of the Invention
[0004] This application provides a brightness adjustment method and related device, which can more accurately adjust the screen brightness to a state that matches the ambient light, thereby improving the user experience.
[0005] A first aspect provides a brightness adjustment method applied to a foldable electronic device. The foldable electronic device includes a display screen, which includes a first screen and a second screen, which are two display areas of the display screen. When the electronic device is in a folded state, the display directions of the first screen and the second screen are opposite. When the foldable electronic device is in an unfolded state, the display directions of the first screen and the second screen are the same. At least one first front ambient light sensor is disposed on the foldable electronic device on the same side as the first screen, and at least one second front ambient light sensor is disposed on the foldable electronic device on the same side as the second screen. The method includes: when the foldable electronic device is detected to be in an unfolded state and the first screen is in a lit state, acquiring a first illuminance of ambient light through the first front ambient light sensor and acquiring a second illuminance of ambient light through the second front ambient light sensor; synchronously reporting the first illuminance and the second illuminance to a software module of the foldable electronic device through a single channel, the software module being used to determine control parameters based on the first illuminance and the second illuminance; and adjusting the brightness of the first screen based on the control parameters.
[0006] In the above solution, when the foldable electronic device is in its unfolded or hovered state, two front-facing ambient light sensors are used to collect ambient light from multiple angles. This eliminates the need for additional components, and existing devices can achieve the functionality of this solution through software upgrades, thus maximizing component utilization and scalability. Furthermore, because lux acquisition occurs in the low-power region of the sensor hub, a full-scene solution design can be implemented via software, enabling automatic brightness adjustment across all scenarios and improving the user experience.
[0007] On the other hand, by utilizing the sensor reporting channel originally located in the low-power area of the sensor hub, multiple measurement data can be reported synchronously in a single channel. This solution reduces the instability of the first frame brightness caused by timing issues in ambient light acquisition and transmission. Because due to device or software reasons, the dual channels cannot guarantee that their respective ambient light values are uploaded simultaneously at the moment the screen is turned on, the screen may be bright before dark or dark before bright during the screen-on process.
[0008] In one possible implementation, the method further includes: fusing the first light intensity and the second light intensity to obtain a fused light intensity; and determining control parameters based on the fused light intensity.
[0009] For example, fusion of light intensity can better reflect the ambient light conditions around the electronic device and the user, making the final adjustment result (i.e. the brightness of the first screen after adjustment) more compatible with the ambient light and improving the user experience.
[0010] In one possible implementation, the method further includes: fusing the first light intensity and the second light intensity to obtain a fused light intensity, including: when the first light intensity is greater than the second light intensity, determining the first light intensity as the fused light intensity.
[0011] When the first light intensity is greater than the second light intensity, it means the light intensity on the side of the foldable electronic device facing the user is greater than the light intensity on the side facing away from the user. In this case, the foldable electronic device may be in a near-light scenario; for example, the light source may be behind the user or between the user and the foldable electronic device. Since the user is currently using the first screen (i.e., the first screen is facing the user), the light intensity collected by the first front ambient light sensor corresponding to the first screen is greater than the light intensity collected by the second front ambient light sensor corresponding to the second screen. Therefore, the first light intensity has a greater impact on the visual effect of the first screen than the second light intensity. In this case, the first light intensity can be used as the fused light intensity. Based on this solution, the screen brightness adjusted according to the fused light intensity better matches the current ambient light conditions, thereby improving the user experience.
[0012] In one possible implementation, the first light intensity and the second light intensity are fused to obtain a fused light intensity, which includes: when the first light intensity is less than or equal to the second light intensity, the larger of the first light intensity and the auxiliary light intensity is determined as the fused light intensity, the auxiliary light intensity is the smaller of the second light intensity and the auxiliary threshold, the auxiliary threshold is the sum of the first light intensity and the change amount, and the change amount is the maximum value of the allowable difference between the second light intensity and the first light intensity.
[0013] When the first light intensity is less than or equal to the second light intensity, it indicates that the light intensity on the side of the foldable electronic device facing away from the user is greater than the light intensity on the side facing the user. In this situation, the foldable electronic device may be in a backlit scenario. For example, the light source may be shining from behind the foldable electronic device onto the user. Since the user is currently using the first screen (facing the user), the light intensity collected by the first front ambient light sensor corresponding to the first screen is less than or equal to the light intensity collected by the second front ambient light sensor corresponding to the second screen. However, if the second light intensity is used as the fused light intensity in this case, it may lead to inaccurate screen brightness adjustment. For example, in a backlit scenario, the user is using the foldable electronic device, and the light source (desk lamp) is opposite the user and the foldable electronic device. In this case, the ambient light distribution is uneven, meaning the second light intensity may be too high and the first light intensity may be too low. If the screen brightness is adjusted according to the second light intensity, the brightness of the first screen may be adjusted too high, affecting the user experience. Therefore, the above solution introduces auxiliary lighting intensity, which can limit the blended lighting intensity from being too high. In other words, this solution can reduce the situation where the first screen is adjusted to be too bright due to excessive blended lighting intensity in backlit scenes.
[0014] In one possible implementation, the method further includes: determining the amount of change based on a first illumination intensity and preset parameters.
[0015] In the above scheme, the change amount is determined based on the first illumination intensity; that is, the auxiliary illumination intensity is related to the first illumination intensity. This is because whether the brightness of the first screen is too bright for the user largely depends on the first illumination intensity. Therefore, determining the auxiliary illumination intensity based on the first illumination intensity allows for more accurate control over the magnitude of the blended illumination intensity. This reduces the likelihood of users under ambient light of the first illumination intensity perceiving the screen as too bright after adjusting the brightness of the first screen according to the blended illumination intensity, thus improving the user experience.
[0016] In one possible implementation, the method further includes: determining the deflection angle of the electronic device; determining the field of view influence factor based on the deflection angle; and correcting the first illumination intensity and the second illumination intensity based on the field of view influence factor, wherein the control parameters are specifically determined based on the corrected data.
[0017] The above solution can mitigate the deviation in measurement results caused by hardware structure and ambient light incident angle, making the final adjusted screen brightness more consistent with the actual environment and improving the user experience.
[0018] In one possible implementation, the deflection angle includes the pitch angle and roll angle of the foldable electronic device; determining the field of view influence factor based on the deflection angle includes: determining the first ambient light offset corresponding to the pitch angle and the second ambient light offset corresponding to the roll angle based on a preset mapping relationship; and determining the field of view influence factor based on the first ambient light offset and the second ambient light offset.
[0019] Pitch and roll angles affect the angle at which light enters the ambient light sensor. Therefore, determining the corresponding ambient light offset based on the pitch and roll angles, and then determining the field of view influence factor for correcting the illumination intensity based on this ambient light offset, can improve the accuracy of the correction.
[0020] In one possible implementation, the first ambient light offset, the second ambient light offset, and the field of view influence factor satisfy the following relationship: fovRatio=(1+N)×(1+m); where N represents the first ambient light offset, m represents the second ambient light offset, and fovRatio represents the field of view influence factor.
[0021] In one possible implementation, before acquiring the first ambient light intensity through the first front ambient light sensor and the second ambient light intensity through the second front ambient light sensor, the method further includes: initiating a registration process when the first screen is switched to a screen-on state and the second screen is in a screen-off state, the registration process being used to simultaneously activate the first and second front ambient light sensors.
[0022] In the above scheme, the first front ambient light sensor and the second front ambient light sensor can be registered simultaneously through a single registration process. This can trigger the first and second front ambient light sensors to report measurement parameters synchronously, reducing the instability of the first frame brightness caused by timing issues in ambient light acquisition and transmission.
[0023] In a second aspect, an electronic device is provided, including a memory and a processor, the memory storing a computer program executable on the processor, wherein when the processor executes the computer program, the electronic device performs the steps of the method as described in any of the first aspects above.
[0024] Thirdly, a computer-readable storage medium is provided that stores a computer program, which, when executed by a processor, implements the steps of the method as described in any of the first aspects above.
[0025] Fourthly, a computer program product is provided that, when run on an electronic device, causes the electronic device to perform the method described in any one of the first aspects.
[0026] Fifthly, a chip system is provided, the chip system including a processor coupled to a memory, the processor executing a computer program stored in the memory to implement the method described in any one of the first aspects above.
[0027] The chip system can be a single chip or a chip module composed of multiple chips.
[0028] It is understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant descriptions in the first aspect mentioned above, and will not be repeated here. Attached Figure Description
[0029] Figure 1 shows a structural diagram of a foldable mobile phone provided in an embodiment of this application;
[0030] Figure 2 is a diagram illustrating the effect of automatically adjusting screen brightness according to an embodiment of this application.
[0031] Figure 3 shows a user interface diagram for setting the automatic brightness adjustment mode;
[0032] Figure 4 shows an exemplary flowchart of a brightness adjustment method 300 provided in an embodiment of this application;
[0033] Figure 5 shows an exemplary flowchart of a brightness adjustment method 400 provided in an embodiment of this application;
[0034] Figure 6 shows an exemplary flowchart of a brightness adjustment method 500 provided in an embodiment of this application;
[0035] Figure 7 shows an exemplary flowchart of a brightness adjustment method 600 provided in an embodiment of this application;
[0036] Figure 8 shows a schematic diagram of a registration and deregistration process.
[0037] Figure 9 shows an exemplary flowchart of the method for determining the fused illumination intensity provided in an embodiment of this application;
[0038] Figure 10 shows a schematic diagram of an application scenario;
[0039] Figure 11 shows an exemplary flowchart of a method for determining auxiliary illumination intensity provided in an embodiment of this application;
[0040] Figure 12 shows a schematic diagram of the effect of aperture size and aperture width on the amount of light entering the camera;
[0041] Figure 13 shows a schematic diagram of three deflection angles;
[0042] Figure 14 shows an exemplary flowchart of a brightness adjustment method 900 provided in an embodiment of this application;
[0043] Figure 15 shows a software architecture diagram of an electronic device provided in an embodiment of this application;
[0044] Figure 16 shows a hardware architecture diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0045] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0046] This application provides a brightness adjustment method for automatically adjusting the screen brightness of a foldable electronic device. To facilitate understanding of the solution provided in this application, a foldable electronic device related to this application is first described below.
[0047] Foldable electronic devices refer to electronic devices with foldable characteristics. For example, foldable electronic devices are equipped with flexible screens. By folding or unfolding the flexible screens, the electronic devices can be transformed into different forms, thereby providing users with diversified services.
[0048] The following uses a foldable mobile phone as an example of a foldable electronic device, and illustrates various forms of foldable mobile phones in conjunction with Figure 1.
[0049] Figure 1(a) shows a schematic diagram of a foldable phone 100. As shown in Figure 1(a), the foldable phone 100 includes at least three sides: side A, side B, and side C. Side A consists of a foldable screen (shown as the shaded area in Figure 1(a)), which can be bent inward along the central axis MM. It can be understood that the foldable screen is a foldable and bendable display made of flexible materials, such as a flexible screen made of organic light-emitting diodes (OLEDs).
[0050] When folded, side A is inside the foldable phone 100. Therefore, the foldable screen corresponding to side A can also be called the inner screen of the foldable phone 100.
[0051] The angle formed by bending surface A is represented by angle α, which is the angle formed by the inward flipping of the left and right halves of the screen corresponding to surface A. The size of angle α determines the physical state of the foldable phone 100 (or foldable screen), which includes a folded state and an unfolded state. As an example, the unfolded state includes an unfolded state and a hovering state. The following examples illustrate several physical states of the foldable phone 100 with reference to Figures 1(b) to 1(f).
[0052] Please refer to Figure 1(b) and Figure 1(c): When angle α is 180° (or greater than a preset angle, such as greater than 178°) and remains unchanged, that is, when side A is fully unfolded to an almost flat state, the foldable phone 100 is in the unfolded state. Figure 1(b) shows a front view of the foldable phone 100 in the unfolded state. Figure 1(c) shows a rear view of the foldable phone 100 in the unfolded state. As shown in Figure 1(c), side B consists of another screen (shown as the shaded area in Figure 1(c)). When folded, side B is outside the foldable phone 100; therefore, the screen corresponding to side B can also be called the outer screen of the foldable phone 100. Side C is the back panel, which usually houses a camera, typically used as a logical rear camera.
[0053] Please refer to Figure 1(d): When angle α is between 0° and 180° and remains constant, that is, when surface A is bent inward at a certain angle (not yet folded) and hovered, the foldable phone 100 is in a hovering state (or a support state or a semi-open state). The hovering state is a state between the open state and the folded state. In the hovering state, surface A is bent inward. The specific shape can be seen in the example given in Figure 1(d). It should be noted that due to process limitations, manufacturing errors, special design, and other factors, the range of angle α corresponding to the hovering state may vary. The above "0° to 180°" is just an example, and this application is not limited to it. For example, some foldable phones do not support stepless hovering, and their hovering range is only 60° to 120°. In this case, when the α angle is between 60° and 120°, the foldable phone 100 is in a hovering state. As another example, due to process limitations or manufacturing errors, the maximum angle of the A-side when unfolded is only 178° and the minimum angle is only 2°. In this case, when the α angle is between 2° and 178°, the foldable phone 100 is in a hovering state.
[0054] Please refer to (e) and (f) in Figure 1:
[0055] When angle α is 0° (or less than a preset angle, such as less than 1°) and remains unchanged, that is, side A is completely closed, the folding phone 100 is in the folded state. In the folded state, side A is not visible, and sides B and C are the front and back of the folding phone 100, respectively. For example, Figure 1(e) shows a schematic diagram of the back of the folding phone 100 in the folded state. Figure 1(f) shows a schematic diagram of the front of the folding phone 100 in the folded state.
[0056] It is understandable that by unfolding and bending the foldable screen corresponding to side A, the foldable phone 100 can switch between the three physical states mentioned above. During the switching process, the state of the foldable phone 100 can be called a transition state or a switching state. Once the α angle remains fixed for a preset duration (e.g., 1 second), the foldable phone 100 can be considered to have left the transition state and reached one of the three physical states mentioned above. For example, if the α angle is switched to 120° and fixed for more than 1 second, the foldable phone 100 is in a hovering state; or if the α angle is switched to 180° and fixed for more than 1 second, the foldable phone 100 is in an unfolded state; or if the α angle is switched to 0° and fixed for more than 1 second, the foldable phone 100 is in a folded state.
[0057] It is understood that the structure and form of the aforementioned foldable phone 100 are only an example. In other embodiments, the foldable phone 100 may also be other forms of foldable electronic devices. For example, a foldable electronic device may also be a device that folds along the MM line shown in Figure 1(a) toward the B / C surface, which is not limited here.
[0058] Users frequently use foldable electronic devices under varying lighting conditions. When entering areas with high light intensity, users may find it difficult to see the content displayed on the screen, so they manually increase the screen brightness to improve the visual experience. It is understood that the screen brightness mentioned in this application refers to the backlight brightness of the foldable electronic device's screen. When entering areas with low light intensity, users may find the screen's light glaring, so they manually decrease the screen brightness to reduce eye strain and lower device power consumption. However, as users move between different areas, the ambient light intensity may constantly change, requiring frequent manual adjustments to the screen brightness, resulting in a poor user experience. Therefore, the foldable electronic device in this embodiment introduces automatic brightness adjustment technology, which adaptively adjusts the screen brightness based on the ambient light intensity to improve the user experience.
[0059] The automatic brightness adjustment technology in this application refers to the foldable electronic device automatically adjusting the screen brightness according to the ambient light intensity of the environment.
[0060] Foldable electronic devices can utilize automatic brightness adjustment technology to automatically change screen brightness in response to changes in ambient light. This automatic brightness adjustment technology ensures that the screen brightness of foldable electronic devices is positively correlated with changes in the intensity (or luminance) of ambient light.
[0061] Figure 2 is an illustration of an automatic screen brightness adjustment method provided in an embodiment of this application. As shown in Figure 2(a), the screen brightness of the foldable electronic device is relatively low in environments with weak ambient light at night. As shown in Figure 2(b), the screen brightness of the foldable electronic device is relatively high in environments with strong ambient light during the day.
[0062] Users can set the brightness adjustment mode of the foldable electronic device to automatic adjustment mode as shown in Figures 3(a) and (b). After setting the brightness adjustment mode of the foldable electronic device to automatic adjustment mode, the electronic device can automatically adjust the screen brightness based on the ambient light intensity. It is understood that Figure 3 uses the foldable electronic device in an unfolded state as an example, but this application is not limited to this. Referring to Figure 3(a), the foldable electronic device displays interfaces 201 and 202. Interface 201 includes icons for various applications, such as clock, calendar, gallery, memo, files, email, music, settings, etc. In response to a click operation on the icon of the settings application, the foldable electronic device displays interface 202. Interface 102 includes multiple clickable controls, such as login account, WLAN, Bluetooth, applications, screen off and unlock, display and brightness, and security, etc. In response to the user clicking the control 203 corresponding to display and brightness, the foldable electronic device displays interface 204 as shown in Figure 3(b). Interface 204 includes controls 205 corresponding to the automatic brightness adjustment function. The control 203 has two states: on and off. When the control 203 is in the off state, in response to the user's click operation on the control 205, the foldable electronic device switches the control 205 from the off state to the on state and switches the brightness adjustment mode from the manual adjustment mode to the automatic adjustment mode.
[0063] Users can also set the brightness adjustment mode of the foldable electronic device to automatic adjustment mode using the methods shown in Figures 3(c) and (d). Referring to Figure 3(c), in response to the user's swipe-down operation on the current interface, the foldable electronic device displays the control bar 206 shown in Figure 3(d). The control bar 206 includes switches for functions such as WLAN, Bluetooth, and mobile data. The control bar 206 also includes a control 207, which has two states: on and off. When the control 207 is in the off state, in response to the user's click operation on the control 207, the foldable electronic device switches the control 207 from the off state to the on state and switches the brightness adjustment mode from manual adjustment mode to automatic adjustment mode.
[0064] The brightness adjustment method provided in the embodiments of this application is described in detail below. The brightness adjustment method in this application is used to support foldable electronic devices to automatically adjust the screen brightness according to the ambient light intensity.
[0065] In one possible implementation, the foldable electronic device is equipped with a front ambient light sensor. The foldable electronic device collects the light intensity of the surrounding environment through the front ambient light sensor, and then automatically adjusts the screen brightness based on the collected light intensity.
[0066] It is understood that the ambient light sensor involved in the embodiments of this application can also be called a light sensor, used to detect the light information of the environment in which the electronic device is located, such as detecting the ambient light intensity. An ambient light sensor mainly utilizes the light transmission characteristics of optical fibers to convert the measured quantity into light characteristics (intensity, phase, polarization state, frequency, wavelength). For example, an ambient light sensor applicable to the embodiments of this application may include a photodiode, an analog-to-digital converter (ADC), and a memory, etc. The photodiode is used to convert the received light signal into current, and the ADC is used to integrate the current from the photodiode and convert the integrated current into light-sensing data represented by a digital signal.
[0067] It's also understandable that the aforementioned front ambient light sensor is a conceptual sensor defined for a specific usage scenario; there is also a rear ambient light sensor. Ambient light sensors on electronic devices are typically categorized as front-facing or rear-facing based on their directional relationship to the screen. For example, if an ambient light sensor is located on the same side as a screen, it is a front-facing ambient light sensor for that screen; conversely, if an ambient light sensor is located on the same side as the back panel corresponding to a screen, it is a rear-facing ambient light sensor for that screen.
[0068] The front ambient light sensor in method 300 is illustrated below using the foldable phone 100 in Figure 1 as an example.
[0069] Please refer to Figures 1(a), 1(b), and 1(d): The foldable phone 100 includes an ambient light sensor 110, which is located on the same side as the A-side screen. Therefore, when the foldable phone 100 is in its open state, the ambient light sensor 110 is the front-facing ambient light sensor corresponding to the A-side screen. As an example, the ambient light sensor 110 may be located at the bottom of the A-side screen or on the logical front-facing camera module of the A-side screen.
[0070] Please refer to (c) in Figure 1: The foldable phone 100 includes an ambient light sensor 130, and the ambient light sensor 130 is located on the same side as the C-side back panel. When the foldable phone 100 is in the unfolded state, the C-side is the back panel corresponding to the A-side. Therefore, in the unfolded state, the ambient light sensor 130 is the rear ambient light sensor corresponding to the A-side screen.
[0071] Please refer to (f) in Figure 1: The foldable phone 100 includes an ambient light sensor 120, and the ambient light sensor 120 is located on the same side as the B-side screen. Therefore, when the foldable phone 100 is in the folded state, the ambient light sensor 120 is the front ambient light sensor corresponding to the B-side.
[0072] Please refer to Figure 1(e): When the foldable phone 100 is in the folded state, side C is the back panel corresponding to side B. Therefore, in the folded state, the ambient light sensor 130 is the rear ambient light sensor corresponding to side B. Thus, it can be seen that for the same ambient light sensor, it can function as the rear ambient light sensor for different screens depending on the foldable phone's state.
[0073] It is understood that the distribution of the ambient light sensors in the aforementioned foldable phone 100 is only an example. In other embodiments, the foldable phone 100 may include more or fewer ambient light sensors, and the ambient light sensors may also be set in other locations of the foldable phone 100, which is not limited here.
[0074] Figure 4 shows an exemplary flowchart of a brightness adjustment method 300 provided in an embodiment of this application. This method 300 is executed by a foldable electronic device, which is equipped with a front ambient light sensor. This application does not limit the location of the front ambient light sensor. Taking the foldable phone 100 in Figure 1 as an example, the front ambient light sensor in method 400 can be an ambient light sensor 110.
[0075] In addition to the front ambient light sensor, the foldable electronic device in method 300 also includes software modules such as an automatic brightness adjustment module, a processing module, and a sensor monitoring module. The execution flow of each module will be described below.
[0076] S301, The automatic brightness adjustment module executes a registration or deregistration process for the front ambient light sensor.
[0077] For example, after the screen corresponding to the front ambient light sensor enters the on state, the automatic brightness adjustment module executes a registration process for the front ambient light sensor. This registration process enables the front ambient light sensor to report data such as the detected light intensity when the sensor data changes. The specific registration method is not limited here.
[0078] It is understood that the screen corresponding to the front ambient light sensor refers to the screen on the foldable electronic device that is located on the same side as the front ambient light sensor. For example, referring to the example in Figure 1(b), assuming that the front ambient light sensor in method 300 is ambient light sensor 110, then the screen on side A is the screen corresponding to the front ambient light sensor.
[0079] It is also understood that the screen corresponding to the front ambient light sensor entering the on-screen state refers to the state when the screen is turned on from the off-screen state. When the screen corresponding to the front ambient light sensor is in the off-screen state, the foldable electronic device can respond to the user pressing the power button to switch the screen to the on-screen state, or the foldable electronic device can respond to the user's voice command to switch the screen to the on-screen state, or the foldable electronic device can switch the screen to the on-screen state when receiving notification messages from certain applications, and this application does not limit this.
[0080] After the registration process for the front ambient light sensor is completed, the foldable electronic device can use the front ambient light sensor to detect the intensity of ambient light at preset time intervals.
[0081] It should be noted that, in this embodiment, ambient light refers to the superposition of light waves emitted, refracted, and reflected by all light sources in the environment that propagate to the screen of the foldable electronic device. The light sources here can be natural or artificial. Light sources can include many types, such as direct sunlight, refraction or reflection of sunlight by buildings, incandescent lamps, LED lights, etc., and this embodiment does not limit the types.
[0082] Illuminance, also known as light intensity, indicates the luminous flux of visible light received per unit area, or in other words, the strength of light. The unit of illuminance is lux (1ux or 1x).
[0083] On the other hand, after the screen corresponding to the front ambient light sensor enters the off-screen state, the automatic brightness adjustment module executes a deregistration process for the front ambient light sensor. This deregistration process causes the front ambient light sensor to enter a sleep state, meaning it no longer detects the intensity of ambient light. Because the screen corresponding to the front ambient light sensor is in the off-screen state, there is no need to adjust the screen brightness. By controlling the front ambient light sensor to enter a sleep state, the power consumption of the device can be reduced.
[0084] S302, The front ambient light sensor reports lux1 to the sensor monitoring module.
[0085] For example, after the registration process for the front ambient light sensor is completed, the front ambient light sensor enters the working state. The foldable electronic device can use the front ambient light sensor to detect the light intensity of the surrounding ambient light at preset time intervals. When the light intensity of the ambient light detected by the front ambient light sensor changes, or when the change in light intensity exceeds a preset threshold, the front ambient light sensor reports the current ambient light intensity (denoted as the first light intensity lux1) to the sensor monitoring module. The specific reporting method is not limited here.
[0086] Optionally, S303, the sensor monitoring module reports lux1 to the processing module.
[0087] For example, after the sensor monitoring module obtains the lux1 reported by the front ambient light sensor, it reports the lux1 to the processing module. It should be understood that the sensor monitoring module may also directly report lux1 to the automatic brightness module, and this application does not limit this.
[0088] The processing module can perform some preprocessing operations, such as filtering, on the data reported by the sensor monitoring module. Then, it determines the control parameter based on lux1 and a preset brightness or dimming threshold. This control parameter is the adjustment parameter for the screen backlight brightness. For example, if lux1 is greater than or equal to the brightness threshold, this control parameter is used to instruct the automatic brightness adjustment module to increase the screen brightness and by how much (the specific method for determining this value is not limited in this application); or, if lux1 is less than the dimming threshold, this control parameter is used to instruct the automatic brightness adjustment module to decrease the screen brightness and by how much.
[0089] Optionally, in S304, the processing module reports control parameters to the automatic brightness adjustment module.
[0090] For example, after the automatic brightness adjustment module obtains the control parameters from the processing module, it sends the target brightness value to the backlight driver according to the control parameters, and the backlight driver controls the screen to adjust the brightness to the target brightness.
[0091] Based on the above solution, foldable electronic devices can dynamically adjust screen brightness according to the ambient light intensity to achieve a better display effect. Therefore, accurately obtaining the ambient light intensity of the environment in which the foldable electronic device is located is crucial for adjusting screen brightness and improving display quality. However, in complex lighting environments, such as backlit, low-light, or diffused light sources, the front-facing sensor's inaccurate or limited light source identification can lead to inaccurate screen brightness adjustment. This can result in either excessively low brightness (making the screen difficult to see) or excessively high brightness (causing glare), resulting in a poor user experience.
[0092] In another possible implementation, the foldable electronic device is equipped with two ambient light sensors, one front-facing and one rear-facing. The foldable electronic device uses both sensors to collect data on the ambient light intensity and then automatically adjusts the screen brightness based on the collected light intensity.
[0093] Figure 5 shows an exemplary flowchart of a brightness adjustment method 400 provided in an embodiment of this application. The method 400 is executed by a foldable electronic device, which is provided with at least one front ambient light sensor and at least one rear ambient light sensor. It is understood that the two ambient light sensors involved in method 400 are the front and rear ambient light sensors for the same screen. This application does not limit the location of the front and rear ambient light sensors. Taking the foldable phone 100 in Figure 1 as an example (see Figure 1(b) and Figure 1(c)): when the foldable phone 100 is in the unfolded state, the front and rear ambient light sensors in method 400 can be ambient light sensor 110 and ambient light sensor 130, which are the front and rear ambient light sensors corresponding to the A-side screen, respectively.
[0094] In addition to the front and rear ambient light sensors, the foldable electronic device in method 400 also includes software modules such as an automatic brightness adjustment module, a processing module, a fusion module, and a sensor monitoring module. The following section describes the dry method 400 in conjunction with the execution flow of each module.
[0095] S401a The automatic brightness adjustment module executes a registration or deregistration process for the front ambient light sensor.
[0096] For example, after the screen corresponding to the front ambient light sensor enters the on state, the automatic brightness adjustment module executes a registration process for the front ambient light sensor (the specific registration method is not limited here). This registration process enables the front ambient light sensor to report the monitored light intensity and other data when the collected light intensity changes (or when the change is greater than a preset threshold).
[0097] After the registration process for the front ambient light sensor is completed, the foldable electronic device can use the front ambient light sensor to detect the intensity of ambient light at preset time intervals.
[0098] On the other hand, after the screen corresponding to the front ambient light sensor enters the off-screen state, the automatic brightness adjustment module executes a deregistration process for the front ambient light sensor. This deregistration process causes the front ambient light sensor to enter a sleep state, meaning it no longer detects the intensity of ambient light. Because the screen corresponding to the front ambient light sensor is in the off-screen state, there is no need to adjust the screen brightness. By controlling the front ambient light sensor to enter a sleep state, the power consumption of the device can be reduced.
[0099] S401b, the automatic brightness adjustment module executes a registration or deregistration process for the rear ambient light sensor.
[0100] For example, after the screen corresponding to the rear ambient light sensor enters the on state, the automatic brightness adjustment module executes a registration process for the rear ambient light sensor (the specific registration method is not limited here). This registration process enables the rear ambient light sensor to report the monitored light intensity and other data when the collected light intensity changes (or when the change is greater than a preset threshold).
[0101] After the registration process for the rear ambient light sensor is completed, the foldable electronic device can use the rear ambient light sensor to detect the intensity of ambient light at preset time intervals.
[0102] On the other hand, after the screen corresponding to the rear ambient light sensor enters the off-screen state, the automatic brightness adjustment module executes a deregistration process for the rear ambient light sensor. This deregistration process causes the rear ambient light sensor to enter a sleep state, meaning it no longer detects the intensity of ambient light. Because the screen corresponding to the rear ambient light sensor is in the off-screen state, there is no need to adjust the brightness of that screen. By controlling the rear ambient light sensor to enter a sleep state, the power consumption of the device can be reduced.
[0103] It should be noted that steps S401a and S401b are two independent processes. That is, after the screen of the foldable electronic device is lit up, the automatic brightness adjustment module needs to activate the front ambient light sensor and the rear ambient light sensor through two separate registration processes.
[0104] S402a, The front ambient light sensor reports lux1 to the sensor monitoring module.
[0105] For example, after the registration process for the front ambient light sensor is completed, the front ambient light sensor enters the working state. The foldable electronic device can use the front ambient light sensor to detect the light intensity of the surrounding ambient light at preset time intervals. When the light intensity of the ambient light detected by the front ambient light sensor changes, or when the change in light intensity exceeds a preset threshold, the front ambient light sensor reports the current ambient light intensity (denoted as the first light intensity lux1) to the sensor monitoring module. The specific reporting method is not limited here.
[0106] S402b, the rear ambient light sensor reports lux2 to the sensor monitoring module.
[0107] For example, after the registration process for the rear ambient light sensor is completed, the rear ambient light sensor enters the working state. The foldable electronic device can use the rear ambient light sensor to detect the light intensity of the surrounding ambient light at preset time intervals. When the light intensity of the ambient light detected by the rear ambient light sensor changes, or when the change in light intensity exceeds a preset threshold, the rear ambient light sensor reports the current ambient light intensity (denoted as the second light intensity lux2) to the sensor monitoring module. The specific reporting method is not limited here.
[0108] It should be noted that the front ambient light sensor and the rear ambient light sensor report the monitored light intensity to the sensor detection module through two different channels. In other words, steps S402a and S402b are two independent steps.
[0109] S403, The sensor monitoring module reports lux1 and lux2 to the processing module.
[0110] For example, after the sensor monitoring module obtains lux1 reported by the front ambient light sensor and lux2 reported by the rear ambient light sensor, it reports lux1 and lux2 to the fusion module.
[0111] After acquiring lux1 and lux2, the fusion module fuses the data of lux1 and lux2 to obtain a fused illumination intensity (fused lux), which is used to comprehensively reflect the ambient light intensity around the foldable electronic device.
[0112] This application does not limit the method by which the fusion module performs data fusion. As an example, the fusion module can use a normalization algorithm to perform data fusion on lux1 and lux2. The specific process is not limited here.
[0113] Optionally, S404, the fusion module reports the fusion lux to the processing module.
[0114] Optionally, S405, the processing module reports control parameters to the automatic brightness adjustment module.
[0115] For example, after acquiring the fused lux, the fusion module reports the fused lux to the processing module. It should be understood that the fusion module may also report other parameters reported by the sensor monitoring module to the processing module, which is not limited here. It is also understood that the fusion module may directly report the fused lux to the automatic brightness module, which is not limited in this application.
[0116] The processing module can perform some preprocessing operations, such as filtering, on the data reported by the fusion module. Then, it determines the control parameter based on the fusion lux and the preset brightness or dimming threshold. This control parameter is the adjustment parameter for the screen backlight brightness. For example, if the fusion lux is greater than or equal to the brightness threshold, this control parameter is used to instruct the automatic brightness adjustment module to increase the screen brightness and by how much (the specific method for determining this value is not limited in this application); or, if the fusion lux is less than the dimming threshold, this control parameter is used to instruct the automatic brightness adjustment module to decrease the screen brightness and by how much.
[0117] After the automatic brightness adjustment module obtains the control parameters from the processing module, it sends the target brightness value to the backlight driver based on the control parameters. The backlight driver then controls the screen to adjust the brightness to the target brightness.
[0118] Compared to method 300, method 400 enables foldable electronic devices to collect ambient light from multiple angles based on front and rear ambient light sensors, thereby obtaining more accurate ambient light data and achieving more precise screen brightness adjustment. However, in the above scheme, the front and rear ambient light sensors report values through two independent channels, that is, steps S402a and S402b are two independent steps. Therefore, there will be a time difference in the time when the sensor listening module acquires lux1 and lux2. Consequently, timing errors may occur when performing the first frame data fusion, resulting in the screen potentially brightening before dimming or dimming before brightening.
[0119] Understandably, the rear ambient light sensor in method 400 could be replaced with a rear camera CCT, which would reduce the hardware on the device and thus lower costs. However, detecting light intensity with a rear camera CCT would increase the device's power consumption, making it impossible to enable the rear camera CCT in all scenarios.
[0120] In another possible implementation, the foldable electronic device can use front-facing ambient light sensors corresponding to different screens to jointly detect the intensity of ambient light, and then automatically adjust the screen brightness based on the detected intensity. Specifically, due to its special form factor, the foldable electronic device typically has at least two screens, which are positioned in opposite directions when the foldable electronic device is in its unfolded state. For example, in the foldable phone 100 in Figure 1, there are at least an A-side screen and a B-side screen, which are positioned in opposite directions when the foldable phone 100 is in its unfolded state (refer to Figure 1(b) and Figure 1(c)). To enable automatic brightness adjustment in different forms, each screen has a corresponding front-facing ambient light sensor. For example, in the foldable phone 100 in Figure 1, there are ambient light sensors 110 and 120, where ambient light sensor 110 is the front-facing ambient light sensor corresponding to the A-side screen, and ambient light sensor 120 is the front-facing ambient light sensor corresponding to the B-side screen.
[0121] Based on the above analysis, when the foldable electronic device is in the unfolded state, it has two screens facing opposite directions. Each of these two screens has a corresponding front ambient light sensor. Therefore, since the two ambient light sensors face opposite directions, they can be used for multi-angle ambient light collection.
[0122] Figure 6 shows an exemplary flowchart of a brightness adjustment method 500 provided in an embodiment of this application. The method 500 is executed by a foldable electronic device, which has at least two front ambient light sensors, denoted as the first front ambient light sensor and the second front ambient light sensor, respectively. When the foldable electronic device is in its unfolded state, the screens corresponding to these two front ambient light sensors are located in opposite directions. This application does not limit the positions of the first and second front ambient light sensors. Taking the foldable phone 100 in Figure 1 as an example (see Figure 1(b) and Figure 1(c)): when the foldable phone 100 is in its unfolded state, the front ambient light sensor and the rear ambient light sensor in method 500 can be ambient light sensor 110 and ambient light sensor 120, respectively, which are the front ambient light sensor corresponding to the A-side screen and the rear ambient light sensor corresponding to the B-side screen.
[0123] In addition to the first and second front ambient light sensors, the foldable electronic device in method 500 also includes software modules such as an automatic brightness module, a fusion module, and a sensor monitoring module. The execution flow of each module will be described below.
[0124] S501, the automatic brightness module executes a registration or deregistration process for the front ambient light sensor.
[0125] For example, assuming that the screen corresponding to the first front ambient light sensor (referred to as the first screen) is the inner screen of the foldable electronic device, the first screen is in the on state when it is not folded (unfolded state or hovered state), and the screen corresponding to the second front ambient light sensor (referred to as the second screen) is in the off state.
[0126] When the first screen switches from off state to on state, the automatic brightness module executes a registration process for the front ambient light sensor. It can be understood that step S501 involves the registration process for both the first and second front ambient light sensors simultaneously. Through the registration process in step S501, the first and second front ambient light sensors are enabled to report detected data when the detected light intensity changes (or the change exceeds a preset threshold).
[0127] In other words, unlike method 400, method 500 allows for the simultaneous activation of two ambient light sensors used for ambient light detection through a single registration process.
[0128] After the registration process for the front ambient light sensor is completed, the foldable electronic device can use the first and second front ambient light sensors to detect the intensity of ambient light at preset time intervals.
[0129] Method 600 in Figure 7 is a specific implementation of method 500. The following example, using step S601 of method 600, illustrates one implementation of the above registration process.
[0130] The architecture shown in Figure 7 includes a sensor manager, which manages the sensors in the foldable electronic device, including a first front ambient light sensor and a second front ambient light sensor. The automatic brightness controller is a class provided by the operating system of the foldable electronic device for adjusting screen brightness, specifically used to process sensor data or perform some logical processing based on sensor data. In step S601 of method 600, the automatic brightness controller calls the registerListener() function of the sensor manager to register the ambient light sensor; the specific registration method is not limited in this application. The FoldScreenManager can use the hinge sensor to sense the folding behavior of the device, and the sensor manager determines the state of the foldable electronic device through the FoldScreenManager. When the foldable electronic device is currently in an open state, such as an unfolded or hovered state, and the first screen is on (i.e., the screen currently used by the user is the first screen), the sensor manager responds to the registration request message from the automatic brightness controller and activates the first and second front ambient light sensors.
[0131] Understandably, in related technologies, sensorManager typically only activates the front ambient light sensor corresponding to the screen currently in the on state, because there is no need to adjust the brightness for the screen in the off state. However, in methods 500 and 600, it is desirable to perform multi-angle ambient light detection using the first and second front ambient light sensors. Therefore, unlike related technologies, when sensorManager determines that the foldable electronic device is currently in the foldable state, it activates not only the first front ambient light sensor but also the second front ambient light sensor.
[0132] On the other hand, after the first screen enters the screen-off state, the automatic brightness module executes a deregistration process for the front ambient light sensor. This deregistration process causes the first and second front ambient light sensors to enter a sleep state, meaning they no longer detect the ambient light intensity. Because the first screen enters the screen-off state, there is no need to adjust the brightness of the first screen. By controlling the first and second front ambient light sensors to enter a sleep state, the power consumption of the device can be reduced. In one specific implementation, the automatic brightness module can initiate the deregistration process to the sensorManager through the automatic brightness control module (refer to step S601 in method 600); the specific process is not limited here.
[0133] The process corresponding to the above steps can be referred to the scenario illustrated in Figure 8. As shown in Figure 8(b), the foldable phone 100 is currently in the unfolded state and also in the off-screen state. In response to the press of the power button, the inner screen of the foldable phone 100 switches from the off-screen state to the on-screen state as shown in Figure 8(a). After detecting that the screen is lit, the system triggers the automatic brightness control module to synchronously register the first front ambient light sensor and the second front ambient light sensor with the sensorManager. After the registration process is completed, the first front ambient light sensor and the second front ambient light sensor detect the light intensity of the surrounding ambient light at preset time intervals. Then, in response to the press of the power button, the inner screen of the foldable phone 100 switches from the on-screen state back to the off-screen state. After detecting that the screen is turned off again, the system triggers the automatic brightness control module to synchronously register the first front ambient light sensor and the second front ambient light sensor with the sensorManager. After the deregistration process is completed, the first front ambient light sensor and the second front ambient light sensor stop detecting the light intensity of the surrounding ambient light.
[0134] S502, Report lux1 and lux2 to the sensor monitoring module.
[0135] For example, after the registration process for the front ambient light sensor is completed, the first front ambient light sensor and the second front ambient light sensor enter the working state. The foldable electronic device can use these two front ambient light sensors to detect the light intensity of the surrounding ambient light at preset time intervals and transmit the detected data to the sensor monitoring module.
[0136] The following example illustrates a specific implementation method using step S602 in Figure 7: The sensorManager enables the first and second front ambient light sensors to collect the illumination intensity of the surrounding ambient light, and performs algorithm processing in the sensorHub to establish parameter transmission rules.
[0137] The sensor listening module can obtain sensor data from the sensorManager in the onSensorChanged() function through the event.value() function and / or the event.sensor.getType() function. Correspondingly, the sensorManager sends the sensor data to the sensor listening module based on the above parameter transmission rules.
[0138] It should be noted that the aforementioned sensor data includes the light intensity collected by the first front ambient light sensor (denoted as the first light intensity lux1) and the light intensity collected by the second front ambient light sensor. The sensorManager can synchronously report lux1 and lux2 through the same channel. Compared to the scheme of reporting two values through dual channels in method 400 (i.e., method 400 requires reporting lux1 and lux2 separately through steps S402a and S402b), method 500 adopts single-channel reporting of two values (i.e., method 500 can simultaneously report lux1 and lux2 through step S502). This can reduce the phenomenon of unstable brightness in the first frame caused by timing issues in ambient light acquisition and transmission. Because due to device or software reasons, the dual channels cannot guarantee that their respective ambient light values are uploaded simultaneously at the moment of screen lighting, the screen lighting process may exhibit the phenomenon of brightening first and then darkening or darkening first and then brightening.
[0139] It should also be noted that the above parameter transmission rules are used to indicate the method of parameter transmission, including the order of parameter transmission. Taking the sensor listening module obtaining sensor data from sensorManager through the event.value() function in the onSensorChanged() function as an example: the reported data includes eventValues[0] and eventValues[1], where eventValues[0] is mainLux and eventValues[1] is assistantLux. Here, mainLux and assistantLux are used to distinguish lux1 and lux2. For example, sensorManager can determine the screen currently used by the user as the first screen (i.e., the screen currently facing the user is the first screen) based on the folding table management module. Based on this, the data collected by the first front ambient light sensor corresponding to the first screen (i.e., lux1) is determined as mainLux, while the data collected by the second front ambient light sensor corresponding to the second screen (i.e., lux2) is determined as assistantLux. Reporting sensor data (i.e., lux1 and lux2) according to the established parameter transmission rules allows other modules to determine which data was collected by the first front ambient light sensor and which data was collected by the second front ambient light sensor. This enables more targeted processing based on these two data points, improving the accuracy of screen brightness adjustment. For details, please refer to the subsequent solutions, which will not be elaborated here.
[0140] S503, the sensor monitoring module reports lux1 and lux2 to the fusion module.
[0141] For example, after the sensor monitoring module obtains lux1 reported by the first front ambient light sensor and lux2 reported by the second front ambient light sensor, it reports lux1 and lux2 to the fusion module.
[0142] Step S603 in Figure 7 is one possible specific implementation. As can be seen from Figure 7, the sensor monitoring module reports lux1 and lux2 to the fusion module in the format of "mainLux = eventValues[0]; assistantLux = eventValues[1]", where mainLux is lux1 and assistantLux is lux2. That is, the parameter transmission rule adopted by the sensor monitoring module when reporting data is consistent with the parameter transmission rule determined by sensorManager in step S602.
[0143] S504. The fusion module reports the fused illumination intensity (fusion lux) to the automatic brightness module.
[0144] For example, after the fusion module obtains lux1 and lux2, it fuses these two data to obtain the fused illumination intensity (mFusedData), or simply fused lux.
[0145] The reason for data fusion is that lux1 and lux2 reflect the light intensity of ambient light from different directions. In complex ambient light scenarios such as backlight and proximity light, the distribution of ambient light is uneven. Therefore, it is necessary to determine the fusion lux based on the actual situation so as to adjust the screen brightness more accurately and avoid the screen being too bright or too dark.
[0146] The following example illustrates an ambient light fusion scheme using method 700 in Figure 9.
[0147] S710. Determine if mainLux is greater than assistantLux.
[0148] For example, after obtaining mainLux (i.e., lux1) and assistantLux (i.e., lux2), the fusion module determines whether mainLux is greater than assistantLux.
[0149] S720, Determine mainLux as fused lux.
[0150] For example, when mainLux is greater than assistantLux, it means that the illumination intensity on the side of the foldable electronic device facing the user is greater than the illumination intensity on the side facing away from the user. In this case, the foldable electronic device may be in a near-light scenario; for example, the light source may be located behind the user or between the user and the foldable electronic device. Since the user is currently using the first screen (i.e., the first screen is facing the user), the illumination intensity collected by the first front ambient light sensor corresponding to the first screen is greater than the illumination intensity collected by the second front ambient light sensor corresponding to the second screen. Therefore, mainLux has a greater impact on the visual effect of the first screen than assistantLux, and in this case, mainLux can be used as the fused lux.
[0151] S730, Determine the larger of mainLux and auxiliary illumination intensity as the fusion lux.
[0152] For example, if mainLux is less than or equal to assistantLux, it means that the light intensity on the side of the foldable electronic device facing away from the user is greater than the light intensity on the side facing the user. At this time, the foldable electronic device may be in a backlighting scenario. For example, the light source may be shining on the user from the back of the foldable electronic device. Since the user is currently using the first screen, that is, the first screen is facing the user, the light intensity collected by the first front ambient light sensor corresponding to the first screen is less than or equal to the light intensity collected by the second front ambient light sensor corresponding to the second screen.
[0153] However, using `assistLux` as the fused lux in this scenario could lead to inaccurate screen brightness adjustment. For example, in a backlit scene as shown in Figure 10, the user is using a foldable electronic device with the light source (desk lamp) opposite both the user and the device. The ambient light distribution is uneven, meaning `assistLux` might be too high and `mainLux` too low. Adjusting the screen brightness according to `assistLux` could result in the primary screen being over-brightened, negatively impacting the user experience.
[0154] In view of this, this application proposes the concept of auxiliary illumination intensity, which is determined based on mainLux and assistantLux. A method for determining the auxiliary illumination intensity is described below with reference to method 800 in Figure 11.
[0155] S810. Determine the change amount corresponding to mainLux.
[0156] For example, since mainLux reflects the ambient light intensity between the foldable electronic device and the user, the comfort level of the adjusted screen brightness is significantly related to mainLux. For instance, if the fused lux is much larger than mainLux, adjusting the brightness of the first screen according to the fused lux might make the first screen feel too bright, resulting in a poor user experience.
[0157] In view of this, this application introduces the concept of a change amount (delta), the value of which is related to the size of mainLux, and this change amount is used to determine an auxiliary threshold (for a description of the auxiliary threshold, see the description of subsequent step S830).
[0158] In one possible implementation, the change in mainLux is determined based on mainLux and a preset boundary value. Table 1 shows an exemplary relationship between mainLux and delta.
[0159] Table 1
[0160] mainLuxdelta0<=mainLux<=Adelta=aA<=mainLux<=Bdelta=linear interpolation a→b B <= mainLux <= Cdelta = linear interpolation b→c C <= mainLux <= Ddelta = linear interpolation c→assistLux-mainLux mainLux>Ddelta=assistLux-mainLux surface
[0161] In the example given in Table 1, five intervals are set. The calculation method of delta can be determined by looking up the table according to the interval in which mainLux is located.
[0162] For example, in the case that 0 <= mainLux <= A, delta = a.
[0163] For example, when A <= mainLux <= B, delta is determined by linear interpolation, with the range of linear interpolation being a to b. That is, when mainLux = A, delta = a; when mainLux = B, delta = b; and when mainLux lies between A and B, delta lies between a and b. The specific value can be determined by linear interpolation. For example, assuming mainLux is X and the corresponding delta is x, then x = (ba)(XA) / (BA) + a.
[0164] For example, when B <= mainLux <= C, delta is still determined by linear interpolation, with the range of linear interpolation being from b to c. That is, when mainLux = B, delta = b; when mainLux = C, delta = c; and when mainLux lies between B and C, delta lies between b and c. The specific value can be determined by linear interpolation. For example, assuming mainLux is X and the corresponding delta is x, then x = (cb)(XB) / (CB) + b.
[0165] For example, when C <= mainLux <= D, delta is still determined by linear interpolation, with the range of linear interpolation from c to assistantLux - mainLux. That is, when mainLux = C, delta = c; when mainLux = D, delta = assistantLux - mainLux; when mainLux lies between C and D, delta lies between c and assistantLux - mainLux, and the specific value can be determined by linear interpolation. For example, assuming mainLux is X and the corresponding delta is x, then x = (assistLux - mainLux - c)(XC) / (DC) + c.
[0166] For example, when mainLux > D, delta = assistantLux - mainLux.
[0167] It is understandable that A, B, C, D, a, b, and c in Table 1 are all preset values. The magnitude of each value can be determined in advance through testing or user surveys.
[0168] It is also understandable that Table 1 uses the division of mainLux into five intervals as an example, but this application is not limited to this. In other possible implementations, mainLux can be divided into more or fewer intervals.
[0169] Alternatively, in one possible implementation, the delta value can be compensated using the field-of-view influence factor (fovRatio) to improve the accuracy of the delta value. See Table 2 for specific examples.
[0170] Table 2
[0171] mainLuxdelta0<=mainLux<=Adelta=a×fovRatioA<=mainLux<=Bdelta=linear interpolation a→b ×fovRatioB<=mainLux<=Cdelta=linear interpolationb→c ×fovRatioC<=mainLux<=Ddelta=linear interpolation c→assistLux-mainLux ×fovRatiomainLux>Ddelta=(assistLux-mainLux)×fovRatio surface
[0172] The fovRatio mentioned above is a parameter used to characterize the effect of angular deviation on ambient light. Its specific meaning and determination method will be discussed later, and will not be elaborated upon here.
[0173] S820. The sum of mainLux and the change is determined as the auxiliary threshold.
[0174] For example, after determining the change delta based on mainLux, an auxiliary threshold is determined. This auxiliary threshold characterizes the maximum assistantLux allowed to ensure user experience under the current mainLux. In other words, as long as assistantLux does not exceed this auxiliary threshold, even if the brightness of the first screen is adjusted as a fused lux, the brightness of the first screen will not be too bright in the environment corresponding to mainLux, thus ensuring user experience.
[0175] In this embodiment of the application, the auxiliary threshold is the sum of mainLux and the change.
[0176] S830, The smaller value between assistantLux and the auxiliary threshold is determined as the auxiliary illumination intensity.
[0177] For example, after determining the assistance threshold, an assistance light intensity is determined, which is the smaller value between assistLux and the assistance threshold.
[0178] The following section will continue with the introduction of method 500.
[0179] S504, The fusion module reports the fusion lux to the automatic brightness module.
[0180] For example, after acquiring the fused lux, the fusion module reports the fused lux to the automatic brightness module. It is understood that before reporting the fused lux and other data to the automatic brightness module, other modules can also process the data to be reported, such as filtering, etc., and this application does not limit this.
[0181] S604 and S605 in Figure 7 represent one possible specific implementation. As can be seen from Figure 7, the fusion module can use the sensor monitoring module to report the fused light intensity to the automatic brightness control module.
[0182] Optionally, the automatic brightness control module can determine the brightness adjustment parameters based on the fused light intensity, and then the automatic brightness adjustment module adjusts the screen brightness of the first screen based on the brightness adjustment parameters. The specific process is not limited in this application.
[0183] In the above solution, when the foldable electronic device is in its unfolded or hovered state, two front-facing ambient light sensors are used to collect ambient light from multiple angles. This eliminates the need for additional components, and existing devices can achieve the functionality of this solution through software upgrades, thus maximizing component utilization and scalability. Furthermore, because lux acquisition occurs in the low-power region of the sensor hub, a full-scene solution design can be implemented via software, enabling automatic brightness adjustment across all scenarios and improving the user experience.
[0184] On the other hand, by utilizing the sensor reporting channel originally located in the low-power area of the sensor hub, multiple measurement data can be reported synchronously in a single channel. This solution reduces the instability of the first frame brightness caused by timing issues in ambient light acquisition and transmission. Because due to device or software reasons, the dual channels cannot guarantee that their respective ambient light values are uploaded simultaneously at the moment the screen is turned on, the screen may be bright before dark or dark before bright during the screen-on process.
[0185] The above describes a brightness adjustment method in which the foldable electronic device, in its foldable state, uses a first front ambient light sensor and a second front ambient light sensor to collect ambient light from multiple angles. However, traditional methods for collecting ambient light intensity may suffer from low accuracy.
[0186] Specifically, when placing an ambient light sensor on a foldable electronic device, an opening is typically made at the top of the screen, and the sensor is then placed within this opening. Even with the same incident angle, different opening sizes and widths will result in varying amounts of light entering the device, as illustrated in the three diagrams in Figure 12. Furthermore, in actual user scenarios of foldable electronic devices, the position of the light source is uncertain; that is, light may strike the ambient light sensor from various angles. The larger the angle between the incident light direction and the normal direction of the plane containing the ambient light sensor, the smaller the light intensity collected by the sensor will be compared to the actual light intensity due to the field of view (FOV) attenuation characteristic of a single ambient light sensor. In other words, the traditional method of using an ambient light sensor on a foldable electronic device results in a deviation in the ambient light intensity collected. The FOV attenuation characteristic of a single ambient light sensor refers to the characteristic that the light intensity collected by the sensor decreases as the angle between the incident light direction and the normal direction of the plane containing the sensor increases.
[0187] Based on the above analysis, it is evident that due to differences in hardware construction (sensor specifications and hardware layout) and the ambient light incident angle, the light intensity collected by the ambient light sensor exhibits a certain degree of deviation. For the same ambient light sensor, compared to the case of perpendicular light incidence, the greater the angle of light tilt, the greater the deviation in the measured light intensity, thus rendering the measurement results unreliable. Therefore, this application provides a method for compensating for the attenuation characteristics of the field of view (FOV) based on the deflection angle of the electronic device.
[0188] For example, in this embodiment, the foldable electronic device can sense its deflection angle using angle sensors (such as tilt sensors, gyroscopes, etc.). Taking a gyroscope as an example, based on a preset spatial polar coordinate system, the foldable electronic device determines the angles yaw, pitch, and roll in this spatial polar coordinate system using the gyroscope. Here, yaw represents the yaw angle, pitch represents the pitch angle, and roll represents the roll angle, all with a value range of 0–360 degrees. A detailed illustration of each angle can be found in Figure 13. Furthermore, the angle values can be converted based on a preset precision. For example, if the preset precision is 3, and the gyroscope determines the angle of the foldable electronic device on one axis of the spatial polar coordinate system to be 3.15159, then based on the preset precision, the angle value on that axis is converted to 3. This embodiment mainly considers the influence of the pitch and roll angles on the ambient light offset rate.
[0189] Furthermore, the foldable electronic device determines a first ambient light offset rate corresponding to pitch and a second ambient light offset rate corresponding to roll, respectively. In one possible implementation, the first and second ambient light offset rates can be determined based on a pre-stored mapping table, which, as an example, can be shown in Table 3.
[0190] Table 3
[0191]
[0192] It is understood that the mapping relationships given in Table 3 are related to the light intensity measured by the ambient light sensor. For example, the light intensity can be divided into several intervals. For each ambient light interval, there exists a mapping relationship between pitch and the first ambient light offset rate, and a mapping relationship between roll and the second ambient light offset rate. Assume that the ambient light interval corresponding to the mapping relationships shown in Table 3 is the W interval. It is understood that the mapping relationships in Table 3 can be obtained by comparing the results with the viewing angle in a standard laboratory environment; the specific method is not limited in this application.
[0193] Assuming that the light intensity measured by a certain ambient light sensor is in the W range, and the pitch angle of the foldable electronic device is 33° and the roll angle is 19°, then by looking up the table, we can determine that the first ambient light offset rate is N and the second ambient light offset rate is m. Based on the first ambient light offset rate and the second ambient light offset, we determine the field of view influence factor: fovRatio=(1+N)×(1+m).
[0194] Once fovRatio is determined, the ambient light intensity measured by the ambient light sensor can be corrected based on fovRatio: lux' = lux × fovRatio, that is, lux' = lux × (1 + N) × (1 + m), where lux represents the light intensity measured by the ambient light sensor and lux' represents the corrected light intensity.
[0195] In this embodiment, the field-of-view influence factor fovRatio can be used to correct the ambient light intensity collected by the first and second front ambient light sensors. It is understood that lux1 and lux2 can be corrected by a dedicated module before being reported to the fusion module, and then the corrected data can be reported to the fusion module. Alternatively, the fusion module can correct lux1 and lux2, and then perform fusion processing based on the corrected data. Furthermore, the ambient light intensity can be corrected after the data fusion processing; this application does not limit this approach.
[0196] Based on the above solution, the data measured by the ambient light sensor can be calibrated to simulate a more realistic user environment. This makes the screen brightness adjusted based on the measurement data more comfortable for users, improves visibility, and enhances the user experience.
[0197] Figure 14 shows an exemplary block diagram of method 900 provided in an embodiment of this application. Method 900 is used in a foldable electronic device, which includes a display screen. The display screen includes a first screen and a second screen, which are two display areas of the display screen. When the foldable electronic device is in a folded state, the display directions of the first screen and the second screen are opposite. At least one first front ambient light sensor is disposed on the foldable electronic device on the same side as the first screen, and at least one second front ambient light sensor is disposed on the foldable electronic device on the same side as the second screen. The method 900 is described below with reference to specific steps. It is understood that methods 500 to 800 can all be considered as specific implementations of method 900, and therefore the solutions described in methods 500 to 800 can all be used as examples of method 900.
[0198] S910. When it is detected that the foldable electronic device is in an open state and the first screen is in a lit state, the first ambient light intensity of the surrounding light is collected by the first front ambient light sensor, and the second ambient light intensity of the surrounding light is collected by the second front ambient light sensor.
[0199] For example, due to their unique form factor, foldable electronic devices typically have at least two screens, namely a first screen and a second screen. When the foldable electronic device is in its unfolded state, these two screens are positioned in opposite directions. Each of these screens has a corresponding front-facing ambient light sensor, namely a first front-facing ambient light sensor and a second front-facing ambient light sensor. Therefore, since these two ambient light sensors are oriented in opposite directions, when the foldable electronic device is in its unfolded or hovered state, the first and second front-facing ambient light sensors can be used to collect ambient light from multiple angles. No additional device costs are required; existing devices can achieve the functionality of this solution through software upgrades, thereby maximizing device utilization and scalability. Furthermore, because ambient light collection occurs in the low-power region of the sensor hub, a full-scene solution design can be implemented via software, enabling automatic brightness adjustment across all scenarios and improving the user experience.
[0200] Optionally, before step S910, when the first screen is switched to the on state and the second screen is in the off state, the foldable electronic device initiates a registration process, which is used to simultaneously activate the first front ambient light sensor and the second front ambient light sensor.
[0201] S920, The first light intensity and the second light intensity are simultaneously reported to the software module of the foldable electronic device through a single channel.
[0202] For example, after acquiring the first light intensity and the second light intensity, the first light intensity and the second light intensity can be synchronously reported to the software module of the foldable electronic device through a single channel. Here, the single channel refers to a single transmission channel between the software module and the hardware sensor, that is, the sensor reporting channel in the low-power area of the sensor hub.
[0203] This single channel enables simultaneous reporting of multiple measurement data (first ambient light intensity and second ambient light intensity). This solution reduces the instability of the first frame brightness caused by timing issues in ambient light acquisition and transmission. Due to device or software reasons, the dual channels cannot guarantee that their respective ambient light values are uploaded simultaneously at the moment the screen is turned on. Therefore, the screen may turn on first and then off or off and then on.
[0204] S930, Adjust the brightness of the first screen based on the control parameters.
[0205] For example, the software module can determine control parameters based on the first light intensity and the second light intensity, and then adjust the brightness of the first screen based on the control parameters.
[0206] In one alternative implementation, the first light intensity and the second light intensity can be fused to obtain a fused light intensity. Then, the control parameter can be determined based on the fused light intensity. The fused light intensity can better reflect the ambient light conditions of the electronic device and the user's surroundings, making the final adjustment result (i.e., the brightness of the adjusted first screen) more compatible with the ambient light and improving the user experience.
[0207] Optionally, if the first light intensity is greater than the second light intensity, the first light intensity is determined as the fused light intensity.
[0208] Optionally, if the first illumination intensity is less than or equal to the second illumination intensity, the larger of the first illumination intensity and the auxiliary illumination intensity is determined as the fused illumination intensity. The auxiliary illumination intensity is the smaller of the second illumination intensity and an auxiliary threshold, where the auxiliary threshold is the sum of the first illumination intensity and a variation amount, and the variation amount is the maximum allowable difference between the second illumination intensity and the first illumination intensity. The aforementioned variation amount is determined based on the first illumination intensity and preset parameters.
[0209] It is understood that the above-mentioned method for determining the intensity of the fused illumination can be referred to the descriptions in method 700 and method 800, and will not be repeated here.
[0210] Optionally, in one possible implementation, due to differences in hardware construction (sensor specifications and hardware layout) and ambient light incidence angle, the light intensity collected by the ambient light sensor may have a certain deviation. Therefore, compensation can be made for the detected ambient light intensity. For example, the deflection angle of the foldable electronic device is determined, then a field-of-view influence factor is determined based on this deflection angle, and finally, the first and second light intensities are corrected based on this field-of-view influence factor. It should be understood that the above control parameters are specifically determined based on the corrected data.
[0211] The following is an illustrative example of a possible method for determining the field of view influence factor: Based on the preset mapping relationship, determine the first ambient light offset corresponding to the pitch angle and the second ambient light offset corresponding to the roll angle; then determine the field of view influence factor based on the first ambient light offset and the second ambient light offset. As an example, the first ambient light offset, the second ambient light offset, and the field of view influence factor satisfy the following relationship: fovRatio=(1+N)×(1+m); where N represents the first ambient light offset, m represents the second ambient light offset, and fovRatio represents the field of view influence factor.
[0212] It is understandable that the schemes corresponding to Table 3 are specific examples of light intensity compensation schemes. Therefore, the schemes here can be further explained in conjunction with the descriptions in Table 3, which will not be repeated here.
[0213] Figure 15 is a block diagram of a layered architecture 1000 corresponding to an electronic device provided in an embodiment of this application. The steps performed by the foldable electronic device in the method provided in this embodiment of the application can be implemented by the software and hardware modules shown in Figure 15.
[0214] The layered architecture 1000 includes a software layer and a hardware layer. The software layer is further divided into several sublayers, each with a clear role and function. Layers communicate with each other through software interfaces. In the example shown in Figure 15, the software layer of the electronic device includes at least an application layer, an application framework layer, a native service layer, a hardware abstraction layer (HAL), and a kernel layer.
[0215] It is understood that Figure 15 is only an example. That is, the layers in an electronic device are not limited to those shown in Figure 15. For example, between the application framework layer and the HAL layer, there may also be Android runtime and system library layers.
[0216] Electronic devices can perform ambient light acquisition processes through the hardware and software modules in the layered architecture 1000. The functions of each module are illustrated below.
[0217] The hardware layer includes at least two ambient light sensors, namely a first ambient light sensor and a second ambient light sensor.
[0218] Referring to Figure 15, the first and second front ambient light sensors in the hardware layer can collect ambient light information in real time. In one embodiment, when the first or second front ambient light sensor detects a change in ambient light, it can calculate the ambient light illuminance (in lux) using the noise-removed RGBC channel values. Here, R (red) represents the red channel, G (green) represents the green channel, B (blue) represents the blue channel, and C (clear) represents transparent light.
[0219] The sensor manager in the application framework layer manages the various sensors in the hardware layer. The sensor manager can obtain the first and second light intensities collected by the first ambient light sensor through the ambient light sensor driver in the kernel layer and the sensor hardware abstraction layer service module in the hardware abstraction layer.
[0220] The sensor manager can report the first light intensity and the second light intensity to the fusion module, which then performs a fusion process on the first light intensity and the second light intensity to obtain the fused light intensity.
[0221] The application layer may include a series of application packages. For example, these application packages may include applications such as a backlight control application, camera, gallery, WLAN, Bluetooth, call, calendar, map, navigation, music, video, and SMS. The backlight control application can be used to set the screen brightness adjustment mode and to set the screen brightness, as shown in Figure 3. Exemplarily, the backlight control application can be set independently or integrated into the settings application; this embodiment does not limit this.
[0222] When a user sets the screen brightness adjustment mode of an electronic device to automatic adjustment mode through a backlight control application, the backlight control application can send the corresponding adjustment mode information to the display management service module of the application framework layer.
[0223] In one possible example, the application framework layer can set up a settingsProvider (settings storage) that connects to both the backlight control application and the display management service module. The settingsProvider is a process in the Android system that provides data storage, storing Android's default initial values and allowing the retrieval of specified settings.
[0224] It is understandable that the backlight control application in the application layer can also be used to set manual brightness adjustment and send the set brightness to the display management service module. The specific implementation process is not limited in this application.
[0225] The display management service module can obtain the blended light intensity from the blending module and map it to the backlight brightness.
[0226] The sensor service module in the application framework layer can sense the intensity of ambient light in the environment where the electronic device is located, and send the corresponding backlight intensity mapped from this to the display management service module. The determined backlight brightness is then sent to the backlight control module in the local service layer.
[0227] For example, the brightness values obtained from the three dimming methods can be sent to the backlight control module within the Surface Flinger (layer submitter) service module in the local service layer. Conversely, the brightness values obtained from the three dimming methods can be sent to the display management service module, and then uniformly distributed to the Surface Flinger service module. The Surface Flinger service can be used to draw the user interface (UI) of the Android application.
[0228] The backlight control module can send the received backlight brightness to the brightness distribution module in the hardware abstraction layer. The brightness distribution module can then send the received backlight brightness to the display engine driver in the kernel layer.
[0229] In one embodiment, the display engine driver can be an SDE driver (Qualcomm Display Engine driver). SDE stands for Snapdragon Display Engine.
[0230] In one feasible implementation, the backlight brightness can be sent to the backlight driver (BLdriver) in the SDE driver. Here, BL stands for backlight.
[0231] The display engine driver can send the received backlight brightness to the screen in the hardware layer, such as a liquid crystal display (LCD), via the display processing unit (DPU) in the hardware layer, thereby achieving the purpose of sending backlight brightness to the screen of electronic devices.
[0232] It should be understood that the display management service module, backlight control module, and brightness distribution module in Figure 15 can correspond to the automatic brightness module in methods 300 to 600.
[0233] Figure 16 is a schematic diagram of the hardware structure of the foldable electronic device 1100 provided in an embodiment of this application. As shown in Figure 16, the foldable electronic device 1100 may include a processor 1110, a first screen 1120a, a second screen 1120b, a sensor module 1130, and a memory 1140.
[0234] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the foldable electronic device 1100. In other embodiments, the foldable electronic device 1100 may include more or fewer components than illustrated, or combine some components, or separate some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0235] Processor 1110 may include one or more processing units, such as: processor 1010 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU), etc. The different processing units may be independent devices or integrated into one or more processors.
[0236] The memory 1140 can be used to store computer-executable program code, which includes instructions. The processor 1110 executes various functional applications and data processing of the foldable electronic device 1100 by running the instructions stored in the memory 11400.
[0237] The first screen 1120a and the second screen 1120b are used to display images, videos, etc. Taking the first screen 1120a as an example, the first screen 1120a includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 1000 may include one or N displays 1060, where N is a positive integer greater than 1.
[0238] In this embodiment, the first screen 1120a is a foldable screen. In one example, the first screen 1120a is the inner screen of the foldable electronic device 1100. The second screen 1120b is the outer screen of the foldable electronic device 1100.
[0239] The sensor module 1130 is used to collect various information such as environmental data and distance data. Specifically, it may include a first front ambient light sensor and a second front ambient light sensor, and optionally, it may also include an angle sensor and a rotation axis sensor.
[0240] The first and second front ambient light sensors are used to detect the intensity of ambient light.
[0241] In one exemplary scenario, the first front ambient light sensor is located on the same side as the first screen 1120a, meaning the first front ambient light sensor is the front ambient light sensor corresponding to the first screen 1120a. The second front ambient light sensor is located on the same side as the second screen 1120b, meaning the second front ambient light sensor is the front ambient light sensor corresponding to the second screen 1120b.
[0242] An angle sensor, such as a tilt sensor or a gyroscope, is used to sense the deflection angle of the foldable electronic device 1100. Specifically, it can be used to sense the pitch angle and roll angle of the foldable electronic device 1100, thereby enabling the foldable electronic device 1100 to determine the field of view influence factor based on the pitch angle and roll angle, and further correct the first illumination intensity and the second illumination intensity based on the field of view influence factor.
[0243] The pivot sensor is used to sense the shape of the foldable electronic device 1100 so as to execute the solution provided in this application when the foldable electronic device 1100 is detected to be in an unfolded state or a hovering state.
[0244] The methods described in this application can all be implemented in an electronic device 1000 having the above-described hardware structure.
[0245] This concludes the introduction to the hardware structure of the electronic device. It is understood that the components included in the hardware structure shown in Figure 8 do not constitute a specific limitation on the electronic device. The electronic device may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits (ASICs).
[0246] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps described in the various method embodiments above.
[0247] This application provides a computer program product that, when run on a device, enables the device to perform the steps described in the various method embodiments above.
[0248] This application provides a chip for executing instructions. When the chip is running, it executes the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0249] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DWDs)), or semiconductor media (e.g., solid-state disks (SSDs)).
[0250] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying the computer program code to a photographic device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0251] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0252] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0253] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0254] It should be understood that the term "embodiment" used throughout the specification means that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, various embodiments throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0255] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
[0256] Furthermore, it should be noted that the various numerical designations used in this application (such as the terms "first," "second," "third," "fourth," and other terminology used in the specification, claims, and accompanying drawings, if any) are merely for descriptive convenience and are not intended to limit the scope of this application. The order of the process numbers does not imply the sequence of execution; the execution order of each process should be determined by its function and internal logic.
[0257] The terms “comprising” and “having”, and any variations thereof, mean “including, but not limited to”, unless otherwise specifically emphasized, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.
[0258] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0259] In the various embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments are consistent and can be referenced mutually. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships. The specific operational methods in the method embodiments of this application can also be applied to the device embodiments or system embodiments.
Claims
1. A brightness adjustment method, characterized in that, The method is applied to a foldable electronic device, which includes a display screen comprising a first screen and a second screen, the first screen and the second screen being two display areas of the display screen. When the foldable electronic device is in a folded state, the display directions of the first screen and the second screen are opposite; when the foldable electronic device is in an unfolded state, the display directions of the first screen and the second screen are the same. At least one first front ambient light sensor is disposed on the foldable electronic device on the same side as the first screen, and at least one second front ambient light sensor is disposed on the foldable electronic device on the same side as the second screen. The method includes: detecting the foldable electronic device... When the device is in an open state and the first screen is on, the first ambient light intensity is collected by the first front ambient light sensor, and the second ambient light intensity is collected by the second front ambient light sensor; the first and second light intensities are synchronously reported to the software module of the foldable electronic device through a single channel, and the software module is used to determine control parameters based on the first and second light intensities; the brightness of the first screen is adjusted based on the control parameters; wherein, the method further includes: fusing the first and second light intensities to obtain a fused light intensity; and determining the control parameters based on the fused light intensity.
2. The method according to claim 1, characterized in that, The step of fusing the first light intensity and the second light intensity to obtain the fused light intensity includes: when the first light intensity is greater than the second light intensity, determining the first light intensity as the fused light intensity.
3. The method according to claim 1 or 2, characterized in that, The step of fusing the first light intensity and the second light intensity to obtain the fused light intensity includes: when the first light intensity is less than or equal to the second light intensity, determining the larger of the first light intensity and the auxiliary light intensity as the fused light intensity, wherein the auxiliary light intensity is the smaller of the second light intensity and the auxiliary threshold, the auxiliary threshold is the sum of the first light intensity and the change amount, and the change amount is the maximum allowable difference between the second light intensity and the first light intensity.
4. The method according to claim 3, characterized in that, The method further includes: determining the amount of change based on the first light intensity and preset parameters.
5. The method according to any one of claims 1, 2, and 4, characterized in that, The deflection angle of the electronic device is determined; the field of view influence factor is determined based on the deflection angle; the first illumination intensity and the second illumination intensity are corrected based on the field of view influence factor, and the control parameters are specifically determined based on the corrected data.
6. The method according to claim 5, characterized in that, The deflection angle includes the pitch angle and roll angle of the foldable electronic device; determining the field of view influence factor based on the deflection angle includes: determining the first ambient light offset corresponding to the pitch angle and the second ambient light offset corresponding to the roll angle according to a preset mapping relationship; and determining the field of view influence factor based on the first ambient light offset and the second ambient light offset.
7. The method according to claim 6, characterized in that, The first ambient light offset, the second ambient light offset, and the field of view influence factor satisfy the following relationship: fovRatio=(1+N)×(1+m); where N represents the first ambient light offset, m represents the second ambient light offset, and fovRatio represents the field of view influence factor.
8. The method according to any one of claims 1, 2, 4, 6, and 7, characterized in that, Before collecting the first ambient light intensity through the first front ambient light sensor and the second ambient light intensity through the second front ambient light sensor, the method further includes: initiating a registration process when the first screen is switched to a screen-on state and the second screen is in a screen-off state, the registration process being used to simultaneously activate the first front ambient light sensor and the second front ambient light sensor.
9. A foldable electronic device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, the electronic device performs the method as described in any one of claims 1-8.
10. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1-8.
11. A computer program product, characterized in that, Includes a computer program, which, when run, causes the method as described in any one of claims 1-8 to be performed.
Citation Information
Patent Citations
Screen display control method, foldable terminal and computer-readable storage medium
CN109639879A
Ambient light detection method, device and equipment and storage medium
CN117714591A