A display control method and electronic device

By adjusting the backlight brightness of the display screen and optimizing the display mode switching process, the problem of the display screen not being able to power down normally after the electronic device failed to unlock was solved, thus improving the operational stability and energy consumption management of the device.

CN119314411BActive Publication Date: 2026-11-17HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410938883.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-12
Publication Date
2026-11-17
Estimated Expiration
2043-07-12

AI Technical Summary

Technical Problem

When an electronic device fails to unlock, its display screen cannot power off properly, resulting in ineffective energy consumption reduction.

Method used

By adjusting the backlight brightness of the display after an unlock failure, and combining this with changes in ambient light, the display mode switching process is optimized to avoid the backlight brightness adjustment process blocking the screen-off control, thus ensuring device stability.

Benefits of technology

It improves the operational stability of the display screen of electronic devices after unlocking failure and reduces device power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119314411B_ABST
    Figure CN119314411B_ABST
Patent Text Reader

Abstract

This application provides a display control method and electronic device, relating to the field of terminal technology. It addresses the problem that the display screen may not turn off after a failed unlock. The specific solution is as follows: At a first time point, the electronic device turns off its screen, and at this first time point, the ambient light brightness of the space where the electronic device is located is a first ambient brightness value; at a second time point, in response to the user's first unlock operation, a first display interface is displayed, and at this second time point, the ambient light brightness of the space where the electronic device is located is a second ambient brightness value; if the first unlock operation fails, a second display interface is displayed; at a third time point, the display screen is powered down, and during a first time period between the second and third time points, the electronic device continuously adjusts the backlight brightness of the display screen. After an unlock failure, the continuous adjustment of the backlight brightness can be stopped in advance to ensure automatic screen off.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number 202310861873.0 and the original application date is July 12, 2023. The entire contents of the original application are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technology, and in particular to a display control method and electronic device. Background Technology

[0003] Always-on display (AOD) refers to a display mode where a portion of the screen of an electronic device is illuminated when the screen is off, or when the screen illuminates in a portion of the display when a touch operation is detected. Electronic devices with AOD enabled can switch between various display modes (ON mode, Doze mode, OFF mode, or DozeSuspend) to reduce device power consumption while still meeting user needs. For example, in a scenario where unlocking fails, switching to Doze mode first, then OFF mode, reduces device power consumption.

[0004] However, during the actual operation of electronic devices, there may be situations where the display screen fails to power off properly, resulting in the inability to effectively reduce the energy consumption of the electronic devices. Summary of the Invention

[0005] In view of this, this application provides a display control method and electronic device to improve the problem that the display screen may not be able to power down normally after unlocking failure, thereby improving the operational stability of the device.

[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0007] In a first aspect, this application provides a display control method applied to an electronic device, the electronic device including a display screen. After the electronic device enables an always-on display function, the method includes: at a first time point, the electronic device turns off its screen, and at the first time point, the ambient light brightness of the space where the electronic device is located is a first ambient light value. At a second time point, in response to a first unlocking operation by a user, a first display interface is displayed, the first display interface being an unlocking waiting interface, and at the second time point, the ambient light brightness of the space where the electronic device is located is a second ambient light value. Based on the unlocking failure of the first operation, a second display interface is displayed, wherein the second display interface is used to indicate unlocking failure. At a third time point, the display screen is powered off, and during a first time period between the second time point and the third time point, the electronic device continuously adjusts the backlight brightness of the display screen, and between the second time point and the third time point, the ambient light brightness of the space where the electronic device is located remains unchanged.

[0008] After the third time point, the electronic device turns on its screen in response to the user's operation. At the fourth time point, the electronic device turns off its screen. At the fourth time point, the ambient light brightness of the space where the electronic device is located is the first ambient light value.

[0009] At the fifth time point, in response to the user's second unlocking operation, the first display interface is displayed. At the fifth time point, the ambient light brightness of the space where the electronic device is located is the second ambient light brightness value. Based on the successful unlocking of the second operation, the main interface is displayed. After the fifth time point, the ambient light brightness of the space where the electronic device is located remains unchanged. During the second time period after the fifth time point, the electronic device continuously adjusts the backlight brightness of the display screen. The duration of the second time period is longer than that of the first time period.

[0010] The process of continuously adjusting the display backlight described above can be to periodically send different backlight brightness values ​​to the display. Each time the display receives a backlight brightness value, it adjusts the backlight brightness once, and the time interval between two adjacent adjustments is the same.

[0011] Understandably, the greater the change in ambient light brightness in the space surrounding an electronic device from screen off to screen on—for example, the greater the absolute difference between the ambient light values ​​collected at the first (or fourth) time point and the second (or fifth) time point—the longer the time required to continuously adjust the backlight brightness after the screen is turned on. Conversely, if the change in ambient light brightness is the same, the time required to continuously adjust the backlight brightness after the screen is turned on will also be the same.

[0012] In the above embodiments, under the same ambient light changes, the duration of continuous backlight brightness adjustment after successful unlocking is longer than the duration of continuous backlight brightness adjustment after unlocking failure. Therefore, if unlocking fails after the electronic device's screen is turned on, the continuous adjustment of backlight brightness can be stopped earlier.

[0013] Understandably, the aforementioned continuous adjustment of backlight brightness, switching of display modes, and control of the screen to turn off are all processes controlled by the power manager service (PMS) according to a time sequence. In the above embodiment, by stopping the adjustment of backlight brightness in advance, the backlight brightness adjustment process can be prevented from blocking the process of controlling the screen to turn off, ensuring that the electronic device can successfully control the screen to power off afterward, thus improving the operational stability of the device.

[0014] In some embodiments, the above method further includes: at a sixth time point, the electronic device turns off its screen, and at the sixth time point, the ambient light brightness of the space where the electronic device is located is a third ambient light value; at a seventh time point, in response to a third user unlocking operation, the first display interface is displayed, and at the seventh time point, the ambient light brightness of the space where the electronic device is located is a fourth ambient light value; the absolute difference between the fourth ambient light value and the third ambient light value is less than the absolute difference between the second ambient light value and the first ambient light value; based on the third unlocking operation failing, a second display interface is displayed; at an eighth time point, the display screen is powered off, and during a third time period between the seventh time point and the eighth time point, the electronic device continuously adjusts the backlight brightness of the display screen, and at the seventh time point and the... Between the eighth and ninth time points, the ambient light brightness of the space where the electronic device is located remains constant. After the eighth time point, the electronic device lights up in response to user operation. At the ninth time point, the electronic device turns off its screen. At the ninth time point, the ambient light brightness of the space where the electronic device is located is the third ambient light value. At the tenth time point, in response to the fourth user unlocking operation, the first display interface is displayed. At the tenth time point, the ambient light brightness of the space where the electronic device is located is the fourth ambient light value. Based on the successful unlocking of the fourth operation, the main interface is displayed. After the tenth time point, the ambient light brightness of the space where the electronic device is located remains constant. During the fourth time period after the tenth time point, the electronic device continuously adjusts the backlight brightness of the display screen. The duration of the third time period is equal to that of the fourth time period.

[0015] Understandably, the smaller the change in ambient light brightness in the space surrounding the electronic device from screen off to screen on—for example, the smaller the absolute difference between the ambient brightness values ​​collected at the sixth (or ninth) and seventh (or tenth) time points—the shorter the time required to continuously adjust the backlight brightness after the screen is turned on. A shorter time for continuous backlight brightness adjustment—for example, completing the backlight brightness adjustment before detecting unlock failure—means that, under the same ambient light brightness changes, the actual time for continuously adjusting the display backlight brightness is the same in both successful and failed unlock scenarios. In these scenarios, it can be ensured that the backlight brightness adjustment after the screen is turned on achieves the expected effect.

[0016] In some embodiments, the backlight brightness of the display after the third time period is equal to the backlight brightness of the display after the fourth time period.

[0017] In some embodiments, after the first time period, the backlight brightness of the display screen is a first backlight brightness value; after the second time period, the backlight brightness of the display screen remains at a second backlight brightness value, wherein the first backlight brightness value is less than the second backlight brightness value.

[0018] In some embodiments, the method further includes: before the third time point, after displaying the second display interface, sending first information to the display screen to instruct the display screen to configure the display mode of the display screen to Doze mode; based on sending the first information to the display screen, stopping the adjustment of the backlight brightness of the display screen; and configuring the display mode of the display screen to Doze mode.

[0019] In the above embodiments, when the time required to continuously adjust the backlight brightness of the display screen is too long, the process of continuously adjusting the backlight brightness of the display screen is prevented from blocking the pre-configured display mode switching process, ensuring that the switching of different display modes is completed at the expected time point, thereby reducing the energy consumption of electronic devices.

[0020] In some embodiments, the electronic device is configured with a flag bit. After displaying the first display interface in response to a first user unlocking operation, the method further includes: configuring the value of the flag bit to a first value; periodically sending a backlight brightness value to the display screen based on the flag bit being configured to the first value, instructing the display screen to adjust the backlight brightness; sending the first information to the display screen includes: sending the first information to the display screen in response to an unlocking failure; stopping the adjustment of the backlight brightness of the display screen based on sending the first information to the display screen includes: modifying the value of the flag bit to a second value; stopping sending the backlight brightness value to the display screen based on the flag bit being configured to the second value.

[0021] In the above embodiments, when it is determined that a switch to Doze mode is required, the backlight brightness adjustment process is de-emphasized by the PMS by modifying the flag bit, allowing the PMS to immediately execute the process of switching the display mode to Doze mode. This instantaneous switching of the display mode to Doze mode further reduces the power consumption of electronic devices.

[0022] In some embodiments, before configuring the value of the flag bit to a first value, the method further includes: determining a target brightness value, wherein the target brightness value is an evaluated backlight brightness value that the display screen needs to achieve, and the target brightness value increases as the absolute difference between the second ambient brightness value and the first ambient brightness value increases; creating a backlight animation model, wherein multiple backlight brightness values ​​in the backlight animation model are arranged in ascending order, the multiple backlight brightness values ​​include the target brightness value, and the target brightness value is arranged in the last position; and periodically sending the backlight brightness value to the display screen includes: in each period, sequentially sending one of the backlight brightness values ​​to the display screen according to the backlight animation model.

[0023] In some embodiments, the electronic device is configured with a flag bit. After displaying the first display interface in response to a second user unlocking operation, the method further includes: configuring the value of the flag bit to a first value; periodically sending a backlight brightness value to the display screen based on the flag bit being configured to the first value, instructing the display screen to adjust the backlight brightness; modifying the value of the flag bit to a second value based on the backlight brightness of the display screen reaching a target brightness value, wherein the target brightness value is an estimated backlight brightness value that the display screen needs to achieve, and the target brightness value increases as the absolute difference between the first ambient brightness value and the second ambient brightness value increases; and stopping sending the backlight brightness value to the display screen based on the flag bit being configured to the second value.

[0024] In the above embodiments, in response to the display screen's backlight brightness reaching the target brightness value, the process of continuously adjusting the display screen's backlight brightness can also be triggered to achieve the expected backlight brightness adjustment effect.

[0025] In some embodiments, before the second time point, the method further includes: configuring the display mode of the display screen to ON mode in response to the first operation; after the display mode of the display screen is configured to Doze mode, the method further includes: configuring the display mode of the display screen to OFF mode.

[0026] In the above embodiments, in the case of unlocking failure, by switching between multiple display modes with different energy consumption, the energy consumption required for device operation can be reduced while meeting the user's needs.

[0027] In some embodiments, the second display interface includes a pre-selected always-on display image.

[0028] Secondly, this application provides a display control method applied to an electronic device, the electronic device including a display screen. The method includes: at an eleventh time point, displaying an always-on display interface, the ambient light brightness of the space where the electronic device is located being a fifth ambient light value; at a twelfth time point, in response to a fifth user unlocking operation, displaying a first display interface, the first display interface being an unlocking waiting interface, the ambient light brightness of the space where the electronic device is located being a sixth ambient light value at the twelfth time point, the eleventh and twelfth time points being two adjacent time points; based on the unlocking failure of the fifth operation, displaying a second display interface; wherein the second display interface is an interface used to indicate unlocking failure; at a thirteenth time point, displaying the always-on display interface, during a fifth time period between the twelfth and thirteenth time points, the electronic device continuously adjusting the always-on display interface. Between the twelfth and thirteenth time points, the ambient light brightness of the space where the electronic device is located remains constant. At the fourteenth time point, in response to the sixth user unlocking operation, the first display interface is displayed. At the fifteenth time point before the fourteenth time point, the ambient light brightness of the space where the electronic device is located is the fifth ambient light value. At the fourteenth time point, the ambient light brightness of the space where the electronic device is located is the sixth ambient light value. The fourteenth and fifteenth time points are two adjacent time points. Based on the successful unlocking of the sixth operation, the main interface is displayed. After the fourteenth time point, the ambient light brightness of the space where the electronic device is located remains constant. During the sixth time period after the fourteenth time point, the electronic device continuously adjusts the backlight brightness of the display screen. The duration of the sixth time period is longer than that of the fifth time period.

[0029] Thirdly, an electronic device is provided in the embodiments of this application. The electronic device includes one or more processors and a memory; the processor includes a modem processor, the memory is coupled to the processor, and the memory is used to store computer program code, the computer program code including computer instructions. When one or more processors execute the computer instructions, the one or more processors are used to perform the methods of the first aspect, the second aspect, and their possible embodiments.

[0030] Fourthly, an embodiment of this application provides a computer storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the methods described in the first aspect, the second aspect, and their possible embodiments.

[0031] Fifthly, this application provides a computer program product that, when run on the aforementioned electronic device, causes the electronic device to perform the methods described in the first aspect, the second aspect, and their possible embodiments.

[0032] Sixthly, this application provides a chip system applied to an electronic device, which stores a computer program that, when executed, causes the electronic device to perform the methods described in the first aspect, the second aspect, and their possible embodiments.

[0033] Understandably, the electronic devices, computer storage media, and computer program products provided in the above aspects are all applied to the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Attached Figure Description

[0034] Figure 1 One of the example diagrams of the display interface after enabling the AOD function of the touch display mode on the electronic device provided in the embodiment of this application;

[0035] Figure 2 A second example of the display interface after enabling the AOD function of the touch display mode on the electronic device provided in this application embodiment;

[0036] Figure 3 One of the example diagrams of the display interface after enabling the Always-On Display (AOD) function of the electronic device provided in the embodiments of this application;

[0037] Figure 4 Example diagram 2 of the display interface after enabling the Always-On Display (AOD) function of the electronic device provided in the embodiments of this application;

[0038] Figure 5 This is one of the example diagrams illustrating the switching scenarios between display modes provided in the embodiments of this application;

[0039] Figure 6 This is the second example diagram illustrating the switching scenario between display modes provided in the embodiments of this application.

[0040] Figure 7 Example diagram of the hardware structure of the electronic device provided in the embodiments of this application;

[0041] Figure 8 Example diagrams of the software and hardware structure of the electronic device provided in the embodiments of this application;

[0042] Figure 9 This is a flowchart of the steps of the display control method in some embodiments;

[0043] Figure 10 To adopt Figure 9 The method shown illustrates the execution timing diagram between various software modules when unlocking fails in scenarios with minimal changes in ambient light.

[0044] Figure 11 To adopt Figure 9 The method shown illustrates the interface changes of an electronic device when unlocking fails in scenarios with minimal changes in ambient light.

[0045] Figure 12 To adopt Figure 9 The method shown is an execution timing diagram of various software modules when unlocking fails in scenarios with large changes in ambient light.

[0046] Figure 13 To adopt Figure 9 The method shown is an example of how the interface of an electronic device changes when unlocking fails in scenarios with large changes in ambient light.

[0047] Figure 14 This is a flowchart of the display control method provided in the embodiments of this application;

[0048] Figure 15 To adopt Figure 14 The method shown is an execution timing diagram of various software modules when unlocking fails in scenarios with large changes in ambient light.

[0049] Figure 16 To adopt Figure 14 The method shown is an example of how the screen backlight of an electronic device changes when unlocking fails in scenarios with large changes in ambient light. Detailed Implementation

[0050] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. In the description of this application, unless otherwise stated, "at least one" refers to one or more, and "more than one" refers to two or more. Furthermore, to facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first," "second," etc., are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.

[0051] Always-on display (AOD) is a feature that allows users to display at least one type of information in a portion of the screen without turning on the entire screen. This could include the time, an animation, or a fingerprint icon. This allows users to quickly access information such as the date and time, and to determine the location for fingerprint recognition, all without illuminating the entire screen.

[0052] In some embodiments, electronic devices that support AOD (Action-On Demand) functionality may have screens that support multiple display modes, or may be referred to as supporting multiple power modes.

[0053] For example, multiple display modes may include ON mode, Doze mode, DozeSuspend mode, OFF mode, etc.

[0054] The differences between the various display modes mentioned above include at least the following:

[0055] 1) When the AOD function is not enabled on an electronic device, the display mode can only be switched between ON and OFF modes. After enabling the AOD function, the screen of the electronic device can also switch to Doze mode and DozeSuspend mode.

[0056] 2) Different display modes have different power consumption. ON mode consumes more power than Doze mode, Doze mode consumes more power than DozeSuspend mode, and DozeSuspend mode consumes more power than OFF mode. 3) The backlight brightness adjustment varies across different display modes. In ON mode, the screen backlight brightness can be linearly adjusted within a first brightness range based on ambient light information. In Doze mode, the screen backlight brightness can switch between multiple selected brightness values ​​based on ambient light information. These multiple selected brightness values ​​can be values ​​selected from the first brightness range, and the maximum value among the multiple selected brightness values ​​is less than the upper threshold of the first brightness range, while the minimum value among the multiple selected brightness values ​​is not less than the lower threshold of the first brightness range. In DozeSuspend mode, the screen backlight brightness can also switch between multiple selected brightness values ​​based on ambient light information. In OFF mode, the screen is powered off and there is no backlight.

[0057] 4) When Doze mode or DozeSuspend mode is enabled, the electronic device can display the AOD interface. The AOD interface includes an AOD animation layer and a fingerprint layer. Apart from the areas displaying the AOD animation layer and fingerprint layer, other areas of the AOD interface are empty and do not need to be activated.

[0058] In Doze mode, a portion of the screen is illuminated, and the content displayed in this illuminated area can be continuously refreshed. Dynamic content, such as dynamic AOD (Away From Head) animation layers, can be displayed on this illuminated area. In this scenario, the AOD interface displayed on the screen can be referred to as a dynamic AOD interface.

[0059] In DozeSuspend mode, a portion of the screen can also be illuminated, but the content displayed within that illuminated area does not refresh. Only static images, such as static AOD animation layers, are displayed on the illuminated area. In this scenario, the AOD interface displayed on the screen can be referred to as a static AOD interface.

[0060] In ON mode, the electronic device can display any interface, such as the lock screen or an interface with the same content as the AOD (Always On Demand) interface. In OFF mode, the screen is off and displays no content. Furthermore, the number of processes running and the amount of resources used by the electronic device may differ depending on the display mode. Generally speaking, ON mode has the highest number of running processes and the highest resource usage, followed by Doze mode, DozeSuspend mode, and then OFF mode.

[0061] In addition, the AOD function can also be called the always-on display function, which can include touch display mode, timed display mode and all-day display mode.

[0062] For example, when the AOD function in touch display mode is enabled, the electronic device can control the screen display mode to switch between ON mode, Doze mode, and OFF mode according to the application scenario.

[0063] For example, such as Figure 1 As shown, during the screen-off period of the electronic device, the display mode is OFF mode, the screen is powered off, and no content is displayed. During this period, the electronic device can respond to a user's touch on the screen to power on, enable Doze mode, and display a dynamic AOD interface. This AOD interface includes a dynamic puppy graphic (i.e., a dynamic AOD animation layer) and a fingerprint icon. The fingerprint icon is displayed at the fingerprint recognition operation location. Of course, in this embodiment, the content displayed on the AOD interface is not limited, and the content displayed on the AOD interface can be different at different times. When the electronic device times out and the screen turns off, it can power off the screen, enable OFF mode, and not display any content. For example, as... Figure 2As shown, during the OFF display mode, the electronic device can respond to a user's touch on the screen by powering it on, enabling Doze mode, and displaying a dynamic AOD interface. Subsequently, in response to the user's touch on the fingerprint recognition area, the ON mode is enabled, and a first display interface is displayed. The content displayed in this first display interface can be the same as the AOD interface or it can differ. For example, the first display interface can also display an AOD animation layer. Unlike the AOD interface, the fingerprint recognition area in the first display interface can display a bright circle icon to facilitate supplemental lighting during fingerprint acquisition, improving the reliability of fingerprint collection. Alternatively, the first display interface can simply display a bright circle layer.

[0064] Once unlocked, the electronic device can display the main interface. During the display of the main interface, in response to the user pressing the power button, OFF mode can be activated, controlling the screen to power off and not display any content.

[0065] For example, when the AOD function is enabled in all-day display mode, the electronic device can control the screen display mode to switch between ON mode, Doze mode, and DozeSuspend mode according to the application scenario.

[0066] For example, such as Figure 3 As shown, during screen-off operation, the electronic device operates in DozeSuspend mode, displaying a static AOD (Away From Home) interface. This AOD interface includes a static puppy graphic (i.e., a static AOD animation layer). While displaying the static AOD interface, the electronic device can respond to a user's touch on the screen, enabling Doze mode and displaying a dynamic AOD interface. After a timeout, the screen turns off, DozeSuspend mode is re-enabled, and the static AOD interface is displayed again.

[0067] For example, such as Figure 4 As shown, during DozeSuspend display mode, the electronic device can display a static AOD interface. In response to a user's touch on the screen, the electronic device can activate Doze mode and display a dynamic AOD interface. Subsequently, in response to a user's touch on the fingerprint recognition area, ON mode is activated, and the first display interface is displayed. Upon successful unlocking, the electronic device can display the main interface. While displaying the main interface, in response to a user pressing the power button, DozeSuspend mode can be activated, and a static AOD interface can be displayed.

[0068] For another example, when the AOD function in timed display mode is enabled, within a pre-configured time period, the electronic device can control the screen display mode to switch between ON mode, Doze mode, and DozeSuspend mode according to the application scenario. Outside the pre-configured time period, the electronic device can control the screen display mode to switch between ON mode, Doze mode, and OFF mode according to the application scenario.

[0069] In some embodiments, under the AOD function of the touch display mode, the following display mode switching scenarios may also exist:

[0070] like Figure 5 As shown, when the display mode of the screen in an electronic device (also referred to as the display mode of the electronic device) is OFF, in response to the user pressing the power button, the ON mode is enabled, the screen of the electronic device is powered on, and the corresponding interface (such as the lock screen) is displayed.

[0071] For example Figure 5 As shown, when the electronic device's display mode is ON, it switches to OFF mode in response to the user pressing the power button, a timeout screen-off event, or a screen-off event triggered by the proximity sensor. The aforementioned timeout screen-off event can be triggered by recorded user activity time. The electronic device can generate a timeout screen-off event if the user has not used the device for an extended period.

[0072] like Figure 5 As shown, when the electronic device's display mode is OFF, the device switches to Doze mode in response to a user's touch on the screen. Conversely, when the electronic device's display mode is Doze mode, it switches to OFF mode in response to a timeout screen-off event. Figure 5 As shown, when the display mode of the electronic device is in Doze mode, the display mode can be switched to ON mode in response to the user pressing the power button or double-tapping the screen.

[0073] In some embodiments, under the always-on AOD function, the following display mode switching scenarios may also exist:

[0074] like Figure 6 As shown, when the electronic device's display mode is in DozeSuspend mode, it switches to ON mode in response to the user pressing the power button. The electronic device can also switch to Doze mode in response to detecting a change in location, a user touch on the screen, or an update event. For example... Figure 6As shown, when the electronic device's display mode is Doze mode, it can switch to ON mode in response to the user pressing the power button or double-tapping the screen. If no change in the electronic device's position or user interaction is detected within a specified time period, the display mode can also switch to DozeSuspend mode.

[0075] certainly, Figure 5 and Figure 6 Only some of the conditions that trigger the switching of different display modes are shown. In some specific application scenarios, the display modes of electronic devices can also be switched according to business logic.

[0076] This application provides a display control method for electronic devices with AOD (Awake-On Display) functionality.

[0077] For example, the electronic device in the embodiments of this application may be a portable computer (such as a mobile phone), a tablet computer, a desktop computer, a laptop computer, a handheld computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), a media player, or other devices with a screen (or display screen). The embodiments of this application do not impose any special restrictions on the specific form of the electronic device.

[0078] Please refer to Figure 7 , Figure 7 A schematic diagram of a possible hardware structure for an electronic device is shown:

[0079] like Figure 7 As shown, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0080] The aforementioned sensor module 180 may include sensors such as pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, and bone conduction sensors.

[0081] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0082] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0083] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0084] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0085] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0086] It is understood that the interface connection relationships between the modules illustrated in this embodiment are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0087] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0088] Display screen 194 is used to display images, videos, etc. Display screen 194 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 LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In subsequent embodiments, display screen 194 (also referred to as a screen) is mainly used as an example of an LCD. Therefore, it can be understood that in subsequent embodiments, the LCD mentioned can be equivalently replaced with other types of display screens.

[0089] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0090] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element (image sensor). The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0091] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include N cameras 193, where N is a positive integer greater than 1.

[0092] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0093] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0094] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0095] Figure 8 This is a block diagram of the hardware and software architecture of the electronic device 100 provided in this application embodiment. A layered architecture divides the software structure into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the electronic device may include an application layer, an application framework layer, a hardware abstraction layer (HAL), a kernel layer, etc. Of course, the software layers in the electronic device may also include... Figure 8 Layers not shown in the diagram, such as system libraries, Android... TM Runtime (Android Runtime), etc.

[0096] For example, the application layer described above may include a series of applications.

[0097] like Figure 8 As shown, the application layer described above may include AOD. AOD may run as a system service at the application layer, and this embodiment of the application does not impose any restrictions on this.

[0098] In addition, the above application layer also includes Figure 8 Applications not shown include, for example, Notes, Browser, Contacts, Camera, Gallery, Calendar, Maps, Bluetooth, Music, Video, and SMS applications.

[0099] For example, the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0100] like Figure 8 As shown, the application framework layer mentioned above may include a fingerprint framework, power management service (PMS), surface flinger (SF), display module, and input manager, etc.

[0101] The fingerprint framework provides the capability for fingerprint-related business processing, such as fingerprint recognition. It also indicates whether to switch display modes according to the fingerprint unlocking requirements.

[0102] Power Management System (PMS) is a core service of power management. Its main functions include controlling the system's standby state, controlling the display screen's on / off state and brightness adjustment, and querying and controlling the light sensor and proximity sensor. In this embodiment, the AOD (Ambient Occurrence) can be indicated by the PMS to select the display mode.

[0103] SF is a special service used to process graphics data (such as compositing view data drawn by the application layer into display data) and pass the processed display data to the screen, instructing the screen to display that data. Additionally, SF can perform a "set power mode" operation during display mode switching, that is, passing the power mode identifier to the display screen.

[0104] The Display Manager, also known as the Display, is used to access and interact with the display screen, obtain relevant information, and manage display functions. Furthermore, the display mode of the main screen can be synchronized with the Display. For example, the Display Manager (SF) can configure the display mode of the main screen, and it can also configure the status information of the Display. After configuration, the display mode indicated by the Display's status information will be the same as the display mode of the main screen.

[0105] The INPUT manager, also known as INPUT, can translate and encapsulate raw input events collected by various hardware modules to obtain input events containing more information, and then pass them to applications or services that subscribe to the events reported by the hardware module. For example, the aforementioned hardware modules can be displays, fingerprint sensors, ambient light sensors, buttons, etc. When the aforementioned hardware modules are available, corresponding device nodes can be created for each hardware module. When a hardware module detects a corresponding raw input event, such as a fingerprint sensor detecting a user touching the fingerprint sensor, a screen detecting a user click, an ambient light sensor detecting ambient light, or a button detecting a user clicking a button, the raw input event can be passed to the corresponding device node. The device node then translates and encapsulates the raw input event. Finally, the encapsulated event is passed to applications and services that subscribe to events from the hardware module. For example, in this embodiment, the fingerprint frame and AOD can subscribe to events from the fingerprint sensor via INPUT.

[0106] For example, the HAL layer described above can encapsulate drivers for various hardware modules (such as fingerprint sensors, ambient light sensors, and displays) and provide interfaces for calling these modules to the application framework layer, thus shielding the implementation details of the underlying hardware. Figure 8 As shown, the HAL layer can include a display HAL, which can be an interface provided by the application framework layer for calling the display driver. Thus, when the application framework layer's frameworks and services need to manage the display (e.g., switching display modes, adjusting display backlight brightness, controlling the content displayed on the display), they can do so by calling the display HAL.

[0107] For example, the kernel layer is located below the HAL and is the layer between hardware and software. In addition to the aforementioned display driver and fingerprint sensor driver, the kernel layer may also include camera driver, audio driver, various sensor drivers, etc., and this application embodiment does not impose any limitations on this.

[0108] In some embodiments, the hardware layer described above may include various hardware modules integrated into the electronic device, such as... Figure 8 The image shows an ambient light sensor, a fingerprint sensor, and a display screen. Of course, the hardware layer can also include... Figure 8 Hardware modules not shown.

[0109] The following description, with reference to the accompanying drawings, illustrates how electronic devices, during the unlocking process, follow the unlocking workflow (using fingerprint unlocking as an example in subsequent embodiments), and coordinate... Figure 8 The multiple software and hardware modules shown complete the switching of display modes.

[0110] Please refer to Figure 9 Taking the AOD (Awake-On Display) function of an electronic device in touch mode as an example, the steps for the electronic device to switch display modes after the user presses or lightly touches the fingerprint sensor are as follows:

[0111] S101, INPUT receives the first input event reported by the fingerprint sensor.

[0112] In some embodiments, prior to S101, the electronic device is in a locked state. In a locked state, the display screen may operate in OFF mode or Doze mode. In subsequent embodiments, the example is an electronic device in a locked state with the display screen operating in OFF mode.

[0113] In some embodiments, the fingerprint sensor is available while the electronic device is in a locked state. During this period, the fingerprint sensor can acquire data, which can be referred to as sensing data. After the fingerprint sensor acquires sensing data, the fingerprint sensor driver can be used to determine whether the acquired sensing data is fingerprint data. If the acquired sensing data is fingerprint data, the fingerprint sensor can report a first input event to INPUT.

[0114] S102, INPUT sends a first notification to AOD, indicating that a first input event has been detected.

[0115] In some embodiments, INPUT may, in response to the first input event, notify the software or hardware modules subscribed to the first input event, such as AOD. For example, the aforementioned INPUT may send a first notification to AOD to inform AOD that fingerprint input has been detected.

[0116] S103, in response to the first notification, AOD transmits the first view to SF.

[0117] Understandably, when the screen is locked, the first input event can instruct AOD to configure the display mode to ON mode.

[0118] In some embodiments, before the display mode is configured to ON mode, AOD may also draw a view required to be displayed on the screen in response to a first notification, such as a first view. For example, the first view includes a layer for displaying the bright circle icon, an AOD animation layer for displaying the AOD animation, and a black layer. Of course, in other possible embodiments, the first view may only contain the layer for displaying the bright circle icon (referred to as the bright circle layer), and this application embodiment does not specifically limit this.

[0119] In some embodiments, the AOD can pass the first view to the SF via inter-process communication. For example, the AOD can write the first view to a shared memory area between the AOD and the SF, so that the SF can read the first view drawn by the AOD from the shared memory area.

[0120] S104, SF obtains the first display data based on the first view.

[0121] In some embodiments, SF can calculate the display position and display depth of each layer in the first view on the interface to obtain first display data. The obtained first display data includes not only the layers in the first view, but also information such as the display position and display depth of each layer on the interface.

[0122] In some embodiments, the first display data indicates that a black layer occludes the AOD animation layer, and a bright circle layer is located above the black layer. This first display data needs to be passed to the display screen and displayed by the display screen, as detailed in S112 and S113. The interface displayed on the display screen according to the first display data can be called the first display interface. In this first display interface, only the bright circle icon is visible.

[0123] S105, INPUT sends the first notification to the fingerprint framework.

[0124] In some embodiments, the fingerprint framework can also register to listen for the first input event from the fingerprint sensor via INPUT, also known as subscribing to the first input event from the fingerprint sensor. In response to the first input event, INPUT can send a first notification to the fingerprint framework in addition to sending a first notification to the AOD.

[0125] In this embodiment, the first input event in S101 can trigger S102 and S105 as described above. Furthermore, there is no necessary order between S102 and S105. For example, S102 can be executed first, followed by S105; alternatively, S105 can be executed first, followed by S102. Even more exemplarily, S102 and S105 can be executed simultaneously; this embodiment does not specifically limit the execution of these actions.

[0126] In addition, after the fingerprint framework determines that the fingerprint sensor has reported the first input event, such as after receiving the first notification, the fingerprint framework can analyze the fingerprint data collected by the fingerprint sensor and can also instruct the AOD to configure the display screen to ON mode.

[0127] In some embodiments, after the fingerprint framework receives the first input event, it can notify the AOD (Action on Demand), as detailed in S106, or it can trigger the fingerprint framework to perform fingerprint recognition based on the fingerprint data collected by the fingerprint sensor, as detailed in S118. Exemplarily, there is no necessary order between S106 and S118.

[0128] S106, the fingerprint frame sends a second notification to the AOD, instructing the display mode to be configured to ON mode.

[0129] In some embodiments, AOD can instruct the display driver to call the set power mode function through modules such as PMS and SF to configure the display screen to ON mode. The implementation process is shown in S107 to S109 below:

[0130] S107, in response to the second notification, AOD instructs PMS to configure the display mode of the screen to ON mode.

[0131] In some embodiments, the second notification may carry a flag indicating the ON mode, such as a first mode identifier. For example, the electronic device may pre-configure mode identifiers corresponding to different display modes. For instance, the mode identifier corresponding to the ON mode (e.g., referred to as the first mode identifier) ​​may be 1, the mode identifier corresponding to the Doze mode (e.g., referred to as the second mode identifier) ​​may be 2, and the mode identifier corresponding to the OFF mode (e.g., referred to as the third mode identifier) ​​may be 3. Thus, in the second notification, the field indicating the display mode may carry 0.

[0132] In some embodiments, in response to the second notification, AOD may transmit a first instruction carrying a first mode identifier to PMS, instructing PMS to configure the display mode of the display screen to ON mode through modules such as SF.

[0133] S108, PMS instructs SF to configure the display mode of the screen to ON mode.

[0134] In some embodiments, in response to the first instruction, the PMS can transmit an instruction indicating the configuration of the ON mode to the SF via inter-process communication. This instruction indicating the configuration of the ON mode may carry an identifier corresponding to the ON mode, such as a first mode identifier.

[0135] S109, SF calls the display HAL to instruct the display to be configured to ON mode.

[0136] In some embodiments, the SF can pass a first mode identifier to the display driver by calling the display HAL, instructing the display driver to call the set power mode function based on the first mode identifier. The set power mode function is a function used to configure the display mode of the display screen. It is understood that after receiving the first mode identifier, the display driver can determine that the display screen needs to operate in ON mode. If the display screen is currently powered off (e.g., in a scenario where the display mode of the electronic device is OFF before S101), the display driver controls the display screen to power on, and then configures the flag corresponding to the power mode in the display screen to the first mode identifier through the set power mode function.

[0137] S110, display is in ON mode.

[0138] In some embodiments, after the flag corresponding to power mode in the display screen is configured as a first mode identifier, the display screen can load the configuration parameters corresponding to ON mode. For example, the display driver can be reconfigured according to the configuration parameters corresponding to ON mode, so that the display driver can control the operation of the display screen according to the operating rules of ON mode. Afterwards, the display screen can enable ON mode until the flag corresponding to power mode is configured as another mode identifier.

[0139] For example, before S101, the electronic device's display mode is OFF, and the power mode flag on the display indicates that the display is in OFF mode. After S107 to S109, the electronic device's display mode switches from OFF to ON mode, and correspondingly, the power mode flag on the display changes from indicating OFF mode to indicating OFF mode. Afterward, the display is in ON mode.

[0140] In other embodiments, the SF can respond to the PMS's instruction by configuring the display mode of the screen to ON mode via the display HAL. The SF can also respond to the PMS's instruction by configuring the content of the display status information to a first mode identifier indicating ON mode, thus indicating that the display is enabled in ON mode. Exemplarily, the SF's instruction to configure the display to ON mode and the SF's configuration of the display status information to the first mode identifier can be performed simultaneously. Of course, they can also be performed sequentially; this application embodiment does not specifically limit this. The actual display mode enabled by the display is consistent with the display mode indicated by the display status information.

[0141] For example, the SF can also send a first mode identifier to the display, instructing the display to configure the content of the status information to the first mode identifier. Understandably, the application-layer AOD cannot directly obtain the actual display mode of the display from the display itself, but it can communicate inter-process with the display in the application framework layer to obtain display-related information from the display. Furthermore, the display mode indicated by the display's status information is synchronized with the display's display mode; the AOD can determine the display's display mode by obtaining the display's status information.

[0142] In actual operation, after SF configures the display mode of the screen to the target display mode (e.g., ON mode, Doze mode, or OFF mode) through the display HAL, it can synchronize the content of the display status information to a mode label indicating the target display mode. AOD can determine the current display mode of the screen by obtaining the display status information.

[0143] S111, the display screen sends feedback to SF via the display HAL that the ON mode has been enabled.

[0144] S112, SF calls the display screen HAL to pass the first display data to the display screen.

[0145] In some embodiments, after the display screen is enabled in ON mode, the SF can invoke the display screen HAL to transmit first display data to the display driver. The display driver then controls the display screen to display the corresponding interface according to the first display data, such as the first display interface corresponding to the first display data.

[0146] S113, the display screen shows the first display interface corresponding to the first display data.

[0147] In this embodiment of the application, after the display screen is enabled in ON mode, a first display interface corresponding to the first display data can be displayed. The display position of the bright circle icon in the first display interface can indicate the operation position for fingerprint recognition.

[0148] In this embodiment, before S101, the display mode of the screen is OFF. Therefore, after SF synthesizes the first display data, it needs to wait until the screen is enabled in ON mode before instructing the screen to display the first display interface corresponding to the first display data. Of course, in other possible embodiments, before S101, the display mode of the screen is Doze mode. Therefore, after SF synthesizes the first display data, it can immediately instruct the screen to display the first display interface corresponding to the first display data. That is, after S104, it is possible to instruct the screen to display the first display interface without waiting for the execution results of S105 to S109, for example, by executing S112 and S113.

[0149] S114, SF reports to PMS that ON mode is enabled.

[0150] In some embodiments, after the PMS instructs the display to configure to ON mode, the display actually enables ON mode by transmitting a message indicating that the display mode is enabled to the PMS through the display driver, display HAL, SF, etc. For example, the SF can send feedback information indicating successful configuration to the PMS. For instance, 0 indicates successful configuration, and -1 indicates configuration failure. After the display actually enables ON mode, the SF can send information carrying 0 to the PMS. Upon receiving the information carrying 0, the PMS determines that the display is enabled in ON mode.

[0151] There is no necessary order between S112 and S114. After the SF determines that the display screen is in ON mode, the SF can transmit the first display data to the display screen, and the display screen will display the first display interface corresponding to the first display data. After the SF determines that the display screen is in ON mode, the SF can report to the PMS that the display screen is in ON mode.

[0152] S115, after the PMS obtains the first ambient light information, it determines the first brightness value.

[0153] In some embodiments, after the PMS determines that the display screen is in ON mode, it can send a request message to the ambient light sensor to request the acquisition of ambient light information of the current environment of the electronic device, such as first ambient light information.

[0154] As one implementation method, after the PMS determines that the display screen is in ON mode, it sends a request message to the ambient light sensor through the HAL and sensor driver of the ambient light sensor.

[0155] If the ambient light sensor is in sleep mode at this time, for example, when the fingerprint sensor reports the first input event but the actual display mode is OFF, this request message can wake up the ambient light sensor. Correspondingly, the ambient light sensor can send the currently collected ambient light information to the PMS.

[0156] If the ambient light sensor is already operating normally at this time, for example, when the fingerprint sensor reports the first input event and the actual display mode is Doze mode, the ambient light sensor can respond to the request information and send the currently collected first ambient light information to the PMS.

[0157] Subsequently, if the difference between the newly acquired ambient light information and the most recently sent ambient light information to the PMS (e.g., the first ambient light information) exceeds a predetermined threshold, the ambient light sensor can send the newly acquired ambient light information to the PMS until the display mode is switched to OFF mode. Alternatively, after each new ambient light information is acquired, the ambient light sensor sends the acquired ambient light information to the PMS until the display mode is switched to OFF mode. This embodiment of the application does not limit this; in practical applications, it depends on the data reporting mechanism of the enabled ambient light sensor.

[0158] After the PMS receives the first ambient light information from the ambient light sensor, the PMS can determine the second ambient light information. This second ambient light information is the ambient light information collected by the ambient light sensor before step S110.

[0159] For example, before S110, the ambient light sensor is in a sleep state. The aforementioned second ambient light information refers to the last frame of ambient light information collected before the ambient light sensor enters the sleep state. In an exemplary scenario, before S101, the display mode of the electronic device switches from ON mode (or Doze mode) to OFF mode, and the ambient light sensor also switches from the working state to the sleep state. After S110, the display mode of the electronic device switches from OFF mode to ON mode, and the ambient light sensor resumes working state from the sleep state. Thus, the aforementioned second ambient light information can be the last ambient light information collected by the ambient light sensor before switching from ON mode (or Doze mode) to OFF mode.

[0160] For example, before executing S110, the display screen is in Doze mode. During Doze mode, the ambient light sensor is active, and the aforementioned second ambient light information can be the ambient light information reported to the PMS by the ambient light sensor before S110, that is, before the first ambient light information is collected.

[0161] In some embodiments, the PMS can determine a first brightness value based on the difference between the first ambient light information and the second ambient light information, according to a predefined correspondence between the ambient light difference and the screen backlight brightness.

[0162] S116, PMS calls the display HAL and instructs the display to adjust the screen backlight brightness to the first brightness value.

[0163] In some embodiments, the PMS can instruct the display driver to adjust the screen backlight brightness by invoking the display HAL.

[0164] S117: When the screen backlight brightness reaches the first brightness value, stop adjusting the screen backlight brightness.

[0165] In some embodiments, after obtaining a first brightness value, the current screen backlight brightness of the display is obtained, such as referred to as a second brightness value. Then, a plurality of backlight brightness values ​​are determined between the second brightness value and the first brightness value. The plurality of backlight brightness values ​​includes at least the first brightness value. These plurality of backlight brightness values ​​are used to indicate adjusting the screen backlight brightness of the display from the second brightness value to the first brightness value. The smaller the brightness difference between the second brightness value and the first brightness value, the fewer backlight brightness values ​​are determined.

[0166] In some embodiments, the PMS can create a backlight animation model based on a plurality of determined backlight brightness values. This backlight animation model includes multiple backlight brightness values, which are arranged in a preset order. For example, this preset order can be arranged in ascending order. The first brightness value is listed last among the multiple backlight brightness values.

[0167] After creating the backlight animation model, the PMS can sequentially transmit multiple backlight brightness values ​​to the display screen according to the model, instructing the display screen to adjust its backlight brightness based on each received value. As the screen backlight brightness adjusts from the second brightness value to the first, the curve of the screen backlight brightness change on the time axis follows a linear pattern, mitigating the visual impact of backlight brightness variations on the user.

[0168] The process of the PMS adjusting the screen backlight brightness is a continuous process that requires continuous PMS usage. That is, executing S116 and S117 requires a long PMS period, the duration of which is determined by the number of backlight brightness values ​​in the backlight animation. Typically, there is a significant difference between the first and second ambient light information. For example, during fingerprint unlocking of an electronic device, before and after switching the display mode from OFF (or Doze) to ON, the difference between the ambient light brightness (e.g., the first and second ambient light information) collected by the ambient light sensor is large, resulting in a large number of backlight values ​​in the backlight animation. This leads to a longer PMS execution time for S116. In some scenarios, actual measurements show that the PMS adjustment of screen backlight brightness can last up to one minute.

[0169] Additionally, after creating a backlight animation, the PMS can be configured with the first value in the first flag bit, indicating that the current PMS is occupied by the backlight animation. Other tasks that need to be performed by the PMS must wait until the PMS sends the last backlight brightness value (first target backlight) to the display screen according to the backlight animation before they can be executed.

[0170] S118, after receiving the first notification, the fingerprint frame performs fingerprint recognition and determines that the fingerprint matching has failed.

[0171] In some embodiments, after receiving a first notification, the fingerprint framework begins receiving fingerprint data from the fingerprint sensor and performs identification. Understandably, when the fingerprint sensor in the electronic device is an under-display fingerprint sensor, the fingerprint data collected by the sensor before the screen backlight is on is not accurate enough, making it difficult for the fingerprint framework to extract features from the fingerprint data. After the screen backlight is on, the fingerprint sensor can collect accurate fingerprint data using the supplementary illumination provided by the screen backlight. In this scenario, the fingerprint framework can determine the identification result of the fingerprint data based on a preset fingerprint recognition algorithm.

[0172] The recognition result can include two cases: successful fingerprint matching and failed fingerprint matching.

[0173] For example, successful fingerprint matching means that feature information can be extracted from the fingerprint data, and based on the extracted feature information, it is determined that the fingerprint data matches a pre-configured authorized fingerprint. In the case of successful fingerprint matching, the unlock is considered successful, the electronic device remains in ON mode, and displays the unlocked interface.

[0174] For example, the fingerprint matching failure mentioned above could be due to a failure to extract features from the fingerprint data (e.g., the user's finger is dirty, causing the fingerprint sensor to collect inaccurate fingerprint data). Alternatively, the fingerprint matching failure could also be due to extracting feature information from the fingerprint data and, based on the extracted feature information, determining that the fingerprint data does not match a pre-configured authorized sample fingerprint (e.g., the user registers their index finger fingerprint in the electronic device as an authorized fingerprint, but attempts to unlock it using their little finger fingerprint). In the case of fingerprint matching failure, the unlocking attempt can be determined to have failed. In the case of fingerprint matching failure, the process proceeds to S119.

[0175] S119, the fingerprint frame sends a third notification to AOD, instructing AOD to recover.

[0176] The AOD recovery process mentioned above includes at least the following:

[0177] (1) A second display interface is displayed to notify the user of unlocking failure and to indicate that Doze mode is about to be activated. The content displayed on the second display interface is the same as the content displayed on the AOD interface that can be displayed in Doze mode. This second display interface may also include an AOD animation layer and a fingerprint layer. After switching from ON mode to Doze mode, the second display interface can continue to be displayed. The second display interface displayed after switching to Doze mode can also be referred to as the AOD interface. The process of displaying the second display interface in response to the third notification can be called AOD interface echoing. For specific implementation details, please refer to S120-S123.

[0178] (2) After (1), after a first time interval, instruct the display screen to switch to Doze mode. For the implementation process, please refer to S124 to S129.

[0179] (3) During the second time period following (2), determine that the display screen is in Doze mode and instruct that the display screen display mode be configured to OFF mode. For the implementation process, please refer to S130 to S135.

[0180] S120, AOD transmits the second view to SF.

[0181] The second view includes an AOD animation layer and a fingerprint layer. In some embodiments, AOD may respond to a third notification, draw the second view, and pass the second view to SF.

[0182] S121, SF obtains second display data based on the second view. The second display data includes the AOD animation layer and the fingerprint layer.

[0183] In some embodiments, the implementation details can be referred to in S104 above, and will not be repeated here.

[0184] In other embodiments, AOD may also send a fingerprint layer to SF and instruct SF to remove the black layer in the first display data and replace the bright ring layer with the fingerprint layer to obtain the second display data.

[0185] In other embodiments, AOD may also instruct SF to remove the black layer from the first display data to obtain the second display data.

[0186] S122, SF calls the display screen HAL to transmit the second display data to the display screen.

[0187] S123, the display screen shows the second display interface corresponding to the second display data.

[0188] S124, after indicating the first duration of displaying the second display interface, AOD instructs PMS to configure the display mode of the screen to Doze mode.

[0189] The aforementioned first duration can be predefined, for example, it can be 5 seconds. In some embodiments, AOD instructs the display screen to display a second display interface by transmitting a second view to SF. After S120, at a 5-second interval, a second instruction carrying a second mode identifier is sent to PMS, instructing PMS to configure the display screen's display mode to Doze mode. After S214, S125 can be executed.

[0190] S125, PMS instructs SF to configure the display mode to Doze mode.

[0191] In some embodiments, the PMS can transmit an instruction to the SF indicating the configuration of Doze mode via inter-process communication. This instruction may carry an identifier corresponding to the Doze mode, such as a second mode identifier. It is understood that the PMS executes S125 only if the PMS is in an idle state, meaning the PMS has already instructed the display screen to adjust the screen backlight brightness.

[0192] S126, SF calls the display HAL to instruct the display mode to be configured as Doze mode.

[0193] In some embodiments, the SF can pass a second mode identifier to the display driver by calling the display HAL, instructing the display driver to call the set power mode function based on the second mode identifier. Then, the set power mode function configures the flag bit corresponding to the power mode on the display to the second mode identifier.

[0194] S127, the display is set to Doze mode.

[0195] In some embodiments, after the flag corresponding to power mode in the display is configured as a second mode identifier, the display can load the configuration parameters corresponding to Doze mode. For example, the display driver can be reconfigured according to the configuration parameters corresponding to Doze mode, so that the display driver can control the operation of the display according to the operating rules of Doze mode. Afterwards, the display can enable Doze mode until the flag corresponding to power mode is configured as another mode identifier.

[0196] Additionally, in response to a command instructing the display to configure Doze mode, the SF can instruct the display to be configured to Doze mode via the display HAL. The SF can also configure the display status information to a second mode identifier in response to a command instructing the display to configure Doze mode.

[0197] S128, SF sends a second mode identifier indicating Doze mode to display.

[0198] S129, display configures the content of the status information as the second mode identifier.

[0199] In some embodiments, there is no necessary order between S128 and S126; for example, S128 and S126 can be executed synchronously.

[0200] S130: After the AOD indicator switches the display mode to Doze mode, the display status information is obtained after a second time interval.

[0201] In some embodiments, after executing S124, the AOD can acquire the display status information after a second time interval. This second time interval can be a pre-configured duration, such as 2 seconds. After the AOD instructs the PMS to switch the display mode to Doze mode, the AOD can acquire the display status information after a 2-second interval. It is understood that the display status information indicates the current display mode, and the display status information will change as the display mode changes.

[0202] S131, AOD determines that the acquired display status information indicates Doze mode.

[0203] In some embodiments, when the display status information contains a second mode identifier, the AOD can determine that the display mode is Doze mode. If the display mode is Doze mode, the process proceeds to S132. If the display mode is not Doze mode, the process ends. In other embodiments, the AOD may also periodically acquire display status information after instructing the display mode to be configured to Doze mode. If, within a second time period, the AOD acquires display status information indicating that the display mode is Doze mode, the process may proceed to S132 after the second time period; otherwise, the process ends.

[0204] S132, AOD instructs PMS to configure the display mode to OFF mode.

[0205] S133, PMS instructs SF to configure the display mode of the screen to OFF mode.

[0206] S134, SF calls the display HAL to instruct the display mode to be configured to OFF mode.

[0207] S135, display screen is in OFF mode.

[0208] In some embodiments, S132 to S135 above are the process by which the AOD configures the display mode of the screen to OFF mode through the PMS, SF, display HAL, and display driver. Implementation details can be found in the implementation details of configuring the screen to Doze or ON mode in the previous embodiments, and will not be repeated here. Similarly, after S133, the SF can call the display HAL to configure the display mode of the screen to OFF mode. The SF can also send a third mode identifier indicating OFF mode to the display, instructing the display's status information content to be configured with the third mode identifier.

[0209] In the above embodiments, after the first brightness value is determined, before the PMS completes "adjusting the screen backlight brightness to the first brightness value", other tasks that need to be performed by the PMS, such as the task "configuring the display mode of the screen to Doze mode", will only be executed after the PMS enters an idle state. Figure 9 The method shown may encounter issues during the display mode configuration process. Figure 10 and Figure 12 Two scenarios:

[0210] like Figure 10 In the scenario shown, before the AOD issues the task "Configure the display mode of the screen to Doze mode" to the PMS, the PMS has already completed "Adjusting the screen backlight brightness to the first brightness value". For example... Figure 10 As shown, after receiving the first notification, the fingerprint frame begins fingerprint recognition, corresponding to S118 in the aforementioned embodiment. If the fingerprint frame determines that fingerprint matching has failed, i.e., unlocking has failed, it can instruct the AOD to initiate AOD recovery. For example, the AOD may instruct the display of a second display interface containing a fingerprint layer and an AOD animation layer. After the AOD instructs the display of the second display interface, after a first time interval, the AOD may send a second instruction to the PMS, instructing the PMS to configure the display state of the screen to Doze mode. This corresponds to S120 to S124 in the aforementioned embodiment.

[0211] Furthermore, after the display mode of the screen is configured to ON mode, the PMS determines a first brightness value and adjusts the screen backlight brightness to the first brightness value, corresponding to S115 and S116 in the aforementioned embodiments. During the process of adjusting the screen backlight brightness to the first brightness value: the PMS can create a backlight animation model, and then configure the first flag corresponding to the backlight animation model to a first value, indicating that the PMS is in a busy state, or that the PMS is occupied by the backlight animation model. Afterwards, the PMS, according to the backlight animation model, "instructs the screen backlight brightness to be adjusted to the first brightness value." For example, according to the backlight animation model, N backlight brightness values ​​are sent to the screen sequentially. Each time the screen receives a backlight brightness value, it can trigger an adjustment of the screen backlight brightness according to that value. During this process, the screen backlight brightness reaches the first brightness value after N adjustments. Here, N can be the number of backlight brightness values ​​in the backlight animation model; the value of N varies depending on the situation.

[0212] After the PMS sends the last backlight brightness value (e.g., the first brightness value) in the backlight animation model to the display, the PMS can modify the first flag bit to the second value to indicate that the PMS is in an idle state.

[0213] If the AOD sends a second command to the PMS, and the first flag in the PMS is at the second value, meaning the screen backlight brightness has been adjusted to the first brightness value, the PMS can respond normally to the second command, instructing the SF to configure the display mode to Doze mode. Thus, after the AOD instructs the PMS to configure the display mode to Doze mode (e.g., by sending the second command to the PMS), within a second time period, the AOD determines that Doze mode is enabled via the display. The AOD can then continue to instruct the PMS to configure the display mode to OFF mode, for example, by sending a third command carrying a third mode identifier. The PMS can also respond normally to the third command, configuring the display mode to OFF mode via the SF, the display HAL, the display driver, etc.

[0214] In the above scenarios, the interface changes of electronic devices are as follows: Figure 11 As shown: When the display mode is OFF, the display screen does not display any content. When the user touches the fingerprint sensor of the electronic device, the electronic device activates the ON mode and displays the unlock interface 701. This unlock interface 701 can be the first display interface mentioned in the previous embodiments, which is an interface rendered based on the first display data. In this unlock interface 701, only the bright circle icon 702 in the bright circle layer is visible.

[0215] When the ambient light intensity changes little before and after the electronic device is in ON mode, the difference between the determined first brightness value and the second brightness value is small, resulting in a short time consumption to adjust the screen backlight brightness from the second brightness value to the first brightness value. During the process of adjusting the screen backlight brightness from the second brightness value to the first brightness value, the screen backlight brightness changes linearly, and after reaching the first brightness value, the screen backlight brightness remains unchanged.

[0216] Additionally, if the fingerprint touched by the user's finger on the fingerprint sensor is not registered, the electronic device's display screen can show a second display interface 703, which is rendered based on the second display data. The fingerprint icon 705 (from the fingerprint layer) and the AOD animation 704 (from the AOD animation layer) are visible in this second display interface 703. The content displayed in this second display interface is the same as the AOD interface, and can be used to remind the user that the fingerprint matching currently being recognized by the electronic device has failed. Furthermore, displaying the second display interface 703 can also indicate that the display mode is about to be configured to Doze mode. Afterwards, the electronic device's display screen turns off and the power is turned off.

[0217] Understandably, Figure 10 The application is shown. Figure 9 Following the method shown, in a certain scenario, the timing of each step is as follows. Figure 12 This illustrates the timing sequence of each step in another scenario.

[0218] like Figure 12 In the scenario shown, when the AOD (Aspect-Oriented Display) issues the task "Configure the display mode of the screen to Doze mode" to the PMS (Programmable Controller), the PMS has not yet completed "Adjusting the screen backlight brightness to the first brightness value." In this scenario, the first flag bit in the PMS is at the first value. The AOD sends a second instruction to the PMS, and the PMS does not need to respond to the second instruction immediately. Alternatively, the PMS can put the second instruction into the instruction waiting queue.

[0219] In the scenario described in 12, after the AOD instructs the PMS to configure the display mode of the screen to Doze mode (e.g., the AOD sends a second instruction to the PMS), even after a second time interval, the display mode of the screen determined by the AOD through display is still ON mode. Thus, the AOD determines that the conditions for setting the OFF mode are not currently met, and therefore does not send a third instruction to the PMS to configure the display mode of the screen to OFF mode.

[0220] After the PMS sends the last backlight brightness value (e.g., the first brightness value) to the display, the PMS can set the first flag bit to the second value. After the first flag bit is set to the second value, the PMS can retrieve the second instruction from the instruction wait queue and, in response to the second instruction, instruct the SF to configure the display mode of the screen to Doze mode.

[0221] exist Figure 12 In the scenario shown, not only is the time when the display mode is configured to Doze mode delayed, but the process of the AOD indicator configuring the display mode to OFF mode is also interrupted. If fingerprint unlocking fails, the display mode cannot be switched back from Doze mode to OFF mode.

[0222] In the above scenarios, the interface changes of electronic devices are as follows: Figure 13 As shown: When the display mode is OFF, the display screen does not display any content. When the user touches the fingerprint sensor of the electronic device, the display screen of the electronic device powers on and displays the unlock interface 701, which is a first display interface rendered based on the first display data. In this unlock interface 701, only the bright circle icon 702 in the bright circle layer is visible.

[0223] When the ambient light intensity changes significantly before and after an electronic device is enabled in ON mode, the difference between the determined first and second brightness values ​​is large, resulting in a longer time required to adjust the screen backlight brightness to the first brightness value. In other words, compared to... Figure 11 In the scenario shown, the screen backlight brightness changes over a longer period of time.

[0224] Additionally, if the fingerprint corresponding to the finger touched by the user's fingerprint sensor is not registered, the electronic device's display screen can show a second display interface 703 during the change in screen backlight brightness. This second display interface 703 is an interface rendered based on the second display data. In this second display interface 703, the fingerprint icon 705 (from the fingerprint layer) and the AOD animation 704 (from the AOD animation layer) are visible, alerting the user that the fingerprint matching currently being recognized by the electronic device has failed. After the screen backlight stops changing, the electronic device's display screen shows the AOD interface. The content displayed on the AOD interface can be the same as the second display interface or may differ; for example, the fingerprint icon may not be displayed on the AOD interface. In this scenario, the electronic device cannot normally switch the display mode from Doze mode back to OFF mode, and the display screen cannot normally power down, continuing to display the AOD interface.

[0225] In this application embodiment, a display control method is also provided to improve the problem that the display mode of the screen cannot be switched back from Doze mode to OFF mode when unlocking fails.

[0226] In some embodiments, the above display control method may include: canceling the adjustment of the screen backlight brightness when unlocking fails and the electronic device is still adjusting the screen backlight brightness. This avoids the screen backlight brightness adjustment process blocking the Doze mode configuration flow. It ensures that the display mode can be switched back to OFF mode sequentially afterward. This solves the problem of excessively long screen backlight brightness adjustment time preventing the normal switching back to OFF mode.

[0227] As one implementation method, the implementation details of the above method can be found in [reference needed]. Figure 14 .like Figure 14 As shown, the above method includes:

[0228] S201, INPUT receives the first input event reported by the fingerprint sensor.

[0229] S202, INPUT sends a first notification to AOD, indicating that a first input event has been detected.

[0230] S203, in response to the first notification, AOD transmits the first view to SF.

[0231] S204, SF obtains the first display data based on the first view.

[0232] S205, INPUT sends the first notification to the fingerprint framework.

[0233] S206, the fingerprint frame sends a second notification to the AOD, instructing the display mode to be configured to ON mode.

[0234] S207, in response to the second notification, AOD instructs PMS to configure the display mode of the screen to ON mode.

[0235] S208, PMS instructs SF to configure the display mode of the screen to ON mode.

[0236] S209, SF calls the display HAL to instruct the display mode to be configured as ON mode.

[0237] S210, display is in ON mode.

[0238] S211, the display screen sends feedback to SF via the display HAL that the ON mode has been enabled.

[0239] S212, SF calls the display screen HAL to pass the first display data to the display screen.

[0240] S213, the display screen shows the first display interface corresponding to the first display data.

[0241] S214, SF reports to PMS that ON mode is enabled.

[0242] S215, after the PMS obtains the first ambient light information, it determines the first brightness value and sets the first flag bit to the first value, indicating that the PMS is adjusting the screen backlight brightness of the display.

[0243] In some embodiments, after determining a first brightness value, a plurality of backlight brightness values ​​are determined between a second brightness value and the first brightness value of the display screen, wherein the plurality of backlight brightness values ​​includes the first brightness value. Then, a backlight animation model is established based on the plurality of backlight brightness values. After the backlight animation model is established, a first flag bit is set to a first value to indicate that the PMS is adjusting the screen backlight brightness of the display screen and is not processing other tasks at this time.

[0244] S216, PMS calls the display HAL to adjust the display screen backlight brightness.

[0245] In some embodiments, the time required to execute S216 described above is related to the number of backlight brightness values ​​in the backlight animation model and the time interval between two adjacent backlight brightness values ​​sent to the display. Typically, the time interval between two adjacent backlight brightness values ​​sent to the display is fixed. In this scenario, the greater the difference between the first brightness value and the second brightness value, the more backlight brightness values ​​there are in the backlight animation model, and the longer the time required for the PMS to adjust the screen backlight brightness. That is, the longer the PMS is occupied.

[0246] S217, after receiving the first notification, the fingerprint frame performs fingerprint recognition and determines that the fingerprint matching has failed.

[0247] S218, the fingerprint frame sends a third notification to AOD, instructing AOD to recover.

[0248] S219, AOD sends a second view to SF, the second view including the AOD animation layer and the fingerprint layer.

[0249] S220, SF obtains second display data based on the second view. The second display data includes the AOD animation layer and the fingerprint layer.

[0250] S221, SF calls the display screen HAL to transmit the second display data to the display screen.

[0251] S222, the display screen shows the second display interface corresponding to the second display data.

[0252] S223, after indicating the first duration of displaying the second display interface, AOD instructs PMS to configure the display mode of the screen to Doze mode.

[0253] In some embodiments, the implementation details of S201 to S223 can be referred to S101 to S124 in the foregoing embodiments, and will not be repeated here. Thus, S223 may be a second instruction carrying a second mode identifier sent by the AOD to the PMS, instructing the display mode of the screen to be switched to Doze mode.

[0254] S224, PMS determines that the first flag bit is set to the first value.

[0255] In some embodiments, in response to the second instruction, the PMS can query the value of the first flag bit to determine whether the PMS is currently adjusting the screen backlight brightness of the display. If the value of the first flag bit is the first value, it can be determined that the PMS is still adjusting the screen backlight brightness of the display, and the process proceeds to S225. If the value of the first flag bit is the second value, it can be determined that the PMS has stopped adjusting the screen backlight brightness of the display, and thus S225 can be skipped, and S226 can be executed.

[0256] S225, PMS stops adjusting the screen backlight brightness of the display.

[0257] In some embodiments, the PMS can first destroy the backlight animation model and stop sending backlight brightness values ​​to the display. Then, it can modify the first flag bit to a second value to indicate that the PMS has stopped adjusting the screen backlight brightness.

[0258] S226, PMS instructs SF to configure the display mode of the screen to Doze mode.

[0259] In some embodiments, after the first flag bit is modified to the second value, the PMS can perform other tasks, such as instructing the SF to configure the display mode of the screen to Doze mode in response to the second instruction of AOD.

[0260] S227, SF calls the display HAL to instruct the display mode to be configured as Doze mode.

[0261] S228, the display is set to Doze mode.

[0262] S229, SF sends a second mode identifier indicating Doze mode to display.

[0263] S230, display configures the content of the status information as the second mode identifier.

[0264] S231, after instructing the display mode to be configured to Doze mode, the display status information is obtained at the second AOD interval.

[0265] S232, AOD determines that the acquired display status information indicates Doze mode.

[0266] S233, AOD instructs the PMS to configure the display mode of the screen to OFF mode.

[0267] S234, PMS instructs SF to configure the display mode of the screen to OFF mode.

[0268] S235, SF calls the display HAL to instruct the display mode to be configured to OFF mode.

[0269] S236, the display is in OFF mode.

[0270] In some embodiments, the implementation details of S226 to S236 can be referred to S125 to S135 in the foregoing embodiments.

[0271] In Adoption Figure 14 After the method shown, even when facing Figure 15 In the scenario shown, for example, when the AOD issues a task to the PMS to "configure the display mode of the screen to Doze mode", but does not complete "adjusting the backlight brightness of the LCD screen to the first brightness value", the electronic device can still promptly configure the display mode to Doze mode.

[0272] like Figure 15 As shown, if the AOD sends the second instruction to the PMS while the screen backlight brightness is not at the first brightness value—for example, if the backlight animation model includes N backlight brightness values, and Ni backlight brightness values ​​have been sent to the screen, and the screen has continuously adjusted its backlight brightness Ni times, but the screen backlight brightness has not yet been adjusted to the first brightness value—then the AOD is a positive integer, and i is a positive integer less than N.

[0273] In this way, PMS, responding to the second instruction, can determine that the first flag bit is the first value. After determining that the first flag bit is the first value, PMS deletes the backlight animation model and modifies the first flag bit to the second value. Then, PMS calls SF to configure the display mode of the screen to Doze mode. SF, responding to the instruction of PMS, configures the display mode of the screen to Doze mode. SF, also responding to the instruction of PMS, can configure the content of the display status information to a second mode identifier indicating Doze mode. Thus, after AOD instructs PMS to configure the display mode of the screen to Doze mode (e.g., AOD sends the second instruction to PMS), after a second time interval, the status information obtained by AOD from the display can indicate that the display mode of the screen is Doze mode. Thus, AOD determines that the conditions for switching to OFF mode are met and sends a third instruction to PMS to configure the display mode to OFF mode, thereby configuring the display mode of the screen to OFF mode, unaffected by changes in ambient light in the surrounding environment.

[0274] It is evident that electronic devices are used in applications Figure 14 After the method shown, regardless of facing Figure 10 The scenario shown (where the time required for the PMS to adjust the screen backlight brightness is short) is still... Figure 15 In the scenario shown (where the PMS takes a long time to adjust the screen backlight brightness), if fingerprint matching fails, the display mode can be configured to Doze mode first, and then switched back to OFF mode according to the original business logic. This avoids the failure to configure OFF mode, reduces the power consumption of electronic devices, and improves the stability of electronic device operation.

[0275] In the above scenarios, the interface changes of electronic devices are as follows: Figure 16 As shown: When the display mode is OFF, the display does not display any content. Then, when the user touches the fingerprint sensor of the electronic device, the display mode is configured to ON. The display powers on and displays unlock interface 701, which is a first display interface rendered based on the first display data. Only the bright circle icon 702 in the fingerprint layer is visible in this unlock interface 701.

[0276] When the difference in ambient light intensity detected before and after the electronic device switches to ON mode is large, the difference between the determined first brightness value and the second brightness value (the initial screen backlight brightness of the display) is large. During the process of adjusting the screen backlight to the first brightness value, the screen backlight of the display changes linearly.

[0277] If the fingerprint corresponding to the user's finger touching the fingerprint sensor is not registered, and the screen backlight brightness of the display does not reach a first brightness value, the electronic device's display screen can display a second display interface 703. This second display interface 703 is an interface rendered based on second display data. In this second display interface 703, the fingerprint icon 705 (from the fingerprint layer) and the AOD animation 704 (from the AOD animation layer) are visible, reminding the user that the fingerprint matching currently being recognized by the electronic device has failed. Afterwards, the electronic device's display screen powers off and displays no content. Before the display screen turns off, the screen backlight brightness has not reached the first brightness value.

[0278] The above embodiments are illustrated using the example of enabling the touch-to-cause-of-destination (AOD) function on an electronic device. When the electronic device enables the all-day AOD function, the above method can also be used; correspondingly, the OFF mode mentioned in the previous embodiments is replaced with the DozeSuspend mode.

[0279] Furthermore, the method provided in the above embodiments can also be applied to scenarios where electronic devices employ facial recognition. That is, when the camera detects that the user is facing the display screen of the electronic device, INPUT notifies the facial recognition framework and AOD, triggering an instruction to configure the display mode of the screen to ON mode and display an unlock interface containing a facial recognition icon (similar to the first display interface in the aforementioned embodiments). If the facial recognition framework determines that the collected facial data fails to match, for example, if the facial data does not belong to an authorized person, a second display interface (displaying content identical to the AOD interface) can be displayed. Afterward, the display mode of the screen is configured to Doze mode, and then switched from Doze mode to OFF mode (or DozeSuspend mode).

[0280] The following describes the application of electronic devices. Figure 14 Following the method shown, the following scenarios may occur in practical applications:

[0281] The user brings an electronic device into a first room (where the ambient light intensity is less than a preset value, constituting a dark environment). In this dark environment, the user unlocks and uses the electronic device. During use, the device's display is in ON mode. Then, in response to the user's action (e.g., clicking the power button), the device switches the display mode to OFF mode and powers off the display. Afterward, the user brings the electronic device into a second room (where the ambient light intensity is greater than a preset value, constituting a bright environment), or the user turns on a light in the first room, changing it from a dark to a bright environment.

[0282] After the electronic device is in a bright environment, the user touches the fingerprint sensor. The electronic device responds to this touch, displaying an unlock screen (with a visible bright circle icon). Then, the screen backlight gradually increases. If the electronic device determines that unlocking has failed (e.g., the user touches the fingerprint sensor's sensing surface with a finger that has not been registered), the screen backlight increases for a third duration. Afterward, the screen displays a second display interface, and the display mode is configured to Doze mode. Then, it switches from Doze mode to OFF mode, where the screen powers off. Furthermore, after the third duration, the screen backlight brightness no longer increases, and the screen brightness has not reached the first brightness value before powering off.

[0283] In contrast, after the electronic device is in a bright environment, the user touches the fingerprint sensor. The electronic device then responds to the touch, displaying the unlock screen (with a visible bright circle icon). Subsequently, the screen backlight of the electronic device's display can be detected to gradually increase. Upon successful unlocking (e.g., when the user touches the fingerprint sensor's sensing surface with a previously registered finger), the screen backlight increases for a fourth duration, with the third duration being less than the fourth duration, and the screen backlight brightness reaches the first brightness value. Afterward, the electronic device operates in ON mode.

[0284] In summary, under the same ambient light change scenario (where the screen backlight adjustment cycle is relatively long), the actual time taken to adjust the screen backlight brightness differs depending on whether the unlock is successful or not. In the case of unlock failure, the screen backlight brightness adjustment cycle is interrupted; that is, compared to successful unlock, the actual time for adjusting the screen backlight brightness is shorter, ensuring a successful transition from Doze mode back to OFF mode.

[0285] This application also provides an electronic device that may include a memory and one or more processors. The memory and processors are coupled. The memory stores computer program code, which includes computer instructions. When the processor executes the computer instructions, it causes the electronic device to perform the steps performed by the mobile phone in the above embodiments. Of course, the electronic device includes, but is not limited to, the memory and one or more processors described above.

[0286] This application also provides a chip system that can be applied to the electronic devices described in the foregoing embodiments. The chip system includes at least one processor and at least one interface circuit. The processor may be the processor in the aforementioned electronic device. The processor and the interface circuit are interconnected via wiring. The processor can receive and execute computer instructions from the memory of the aforementioned electronic device through the interface circuit. When the computer instructions are executed by the processor, the electronic device can perform the various steps performed by the mobile phone in the aforementioned embodiments. Of course, the chip system may also include other discrete components, and this application does not specifically limit this.

[0287] Taking the AOD (Action on Demand) function in touch mode on an electronic device as an example:

[0288] At the first possible moment, the electronic device turns off its screen. For example, at the first possible moment, the electronic device detects the user pressing the power button, or detects a timeout event that causes the screen to turn off. It can then configure the display mode to OFF mode and control the display to power down, thus turning off the screen.

[0289] Furthermore, at the first time point, the ambient light brightness of the space where the electronic device is located is a first ambient light value. In this scenario, at the first time point, the ambient light sensor in the electronic device can collect ambient light information with a value of the first ambient light value (corresponding to the second ambient light information mentioned in the aforementioned embodiment). After the first time point, the ambient light sensor will also enter a sleep state.

[0290] At the second point in time, the electronic device can respond to the user's first unlocking operation by displaying the first display interface.

[0291] The first operation can vary depending on the method used to unlock the electronic device. For example, when using fingerprint unlocking, the first operation can be the operation of the user contacting the sensing surface of the fingerprint sensor as mentioned in the previous embodiments. Or, when using face unlocking, the first operation can be the operation of the face facing the front-facing camera of the electronic device, etc.

[0292] The aforementioned first display interface is an unlock waiting interface. In scenarios where the user uses fingerprint unlocking, the first display interface can be the interface with a bright circle mentioned in the previous embodiments. In scenarios where the user uses face unlocking, the first display interface can also be an interface displaying a face capture preview window, or a lock screen interface.

[0293] Furthermore, at the second time point, the ambient light brightness of the space where the electronic device is located is the second ambient light brightness value. Understandably, before displaying the first display interface, the electronic device can respond to the first operation by configuring the display mode to ON mode. After the display mode is configured to ON mode, the ambient light sensor in the electronic device also resumes its working state. Thus, at the second time point, the ambient light sensor can collect ambient light information with a value of the second ambient light brightness value (corresponding to the first ambient light information mentioned in the aforementioned embodiment).

[0294] In some embodiments, if the electronic device fails to unlock based on a first operation (e.g., fingerprint matching fails), the electronic device may display a second display interface. This second display interface is used to indicate the unlock failure. For example, the second display interface may be the interface displaying an AOD animation and a fingerprint icon mentioned in the foregoing embodiments. After displaying the second display interface, the electronic device may configure the display mode to Doze mode.

[0295] In some embodiments, the display screen is powered off at a third time point. This third time point is the time point after the display mode is configured to Doze mode. For example, after the second display interface has been displayed for a preset duration, the electronic device can be controlled to turn off the screen again; that is, the display mode is first configured to OFF mode, and then the display screen is powered off. Between the second and third time points, the ambient light brightness of the space where the electronic device is located remains unchanged.

[0296] In the above scenario, during the first time period between the second and third time points, the electronic device continuously adjusts the backlight brightness of the display screen, and after the first time period, the electronic device stops adjusting the backlight brightness of the display screen.

[0297] The aforementioned electronic device continuously adjusts the backlight brightness of the display screen, which can be achieved by the electronic device periodically configuring different backlight brightness levels for the display screen, with the time interval between two adjacent backlight brightness configurations being the same.

[0298] Furthermore, the duration of the first time period is shorter than the duration between the second and third time points. During the period after the first time period and before the third time point, the backlight brightness of the display screen remains constant until the display screen is powered off.

[0299] In other embodiments, after a third time point, the electronic device lights up the screen in response to a user action. For example, in response to a user tapping the display (or pressing the power button), the electronic device may configure the display mode to Doze mode (or ON mode), then power on the display and display a dynamic AOD interface (or a lock screen interface).

[0300] At a fourth time point following the third time point, the electronic device turns off its screen. For example, at the fourth time point, if the electronic device detects that the user has pressed the power button, or detects a timeout screen-off event, it can configure the display mode to OFF mode and control the display to power down, thus turning off the screen.

[0301] Similarly, at the fourth time point, the ambient light brightness of the space where the electronic device is located is the first ambient light value. In this scenario, at the fourth time point, the ambient light sensor in the electronic device can collect ambient light information with a value equal to the first ambient light value. After the fourth time point, the ambient light sensor will also enter a sleep state.

[0302] At the fifth time point, in response to the user's second unlocking action, the first display interface is displayed. The second and first actions are user-instructed unlocking actions at different times, and will not be elaborated further here. Before displaying the first display interface, the electronic device can configure the display mode to ON, power on the display screen, and activate the ambient light sensor.

[0303] At the fifth time point, the ambient light brightness of the space where the electronic device is located is also the second ambient light value. Thus, at the fifth time point, the second ambient light value can be collected by the ambient light sensor.

[0304] Subsequently, the electronic device successfully unlocks based on the second operation and displays the main interface. After the fifth time point, the ambient light brightness of the space where the electronic device is located remains unchanged. During the second time period after the fifth time point, the electronic device continuously adjusts the backlight brightness of the display screen. The duration of the aforementioned second time period is longer than that of the first time period.

[0305] In addition, after the first time period, the backlight brightness of the display screen is the first backlight brightness value; after the second time period, the backlight brightness of the display screen remains at the second backlight brightness value, and the first backlight brightness value is less than the second backlight brightness value.

[0306] In principle, regardless of whether the unlocking is successful or not, if the ambient brightness changes in the space where the electronic device is located are the same before the first display interface is shown (for example, the absolute difference between the ambient brightness values ​​collected at the first and second time points is the same as the absolute difference between the ambient brightness values ​​collected at the fourth and fifth time points mentioned above), the expected backlight brightness (e.g., the first brightness value) that the display screen needs to achieve will also be the same. The expected backlight brightness is only affected by changes in ambient brightness. For example, the larger the absolute difference between the first and second ambient brightness values, the higher the corresponding expected backlight brightness. In the same device, the higher the expected backlight brightness, the longer it takes to control the display screen's backlight brightness to reach the expected backlight brightness.

[0307] In related technologies, when the expected backlight brightness is large and the time required to control the display screen's backlight brightness to reach the expected brightness is long, the electronic device continuously adjusts the display screen's backlight brightness for the same amount of time regardless of whether the unlock is successful or not. Eventually, the display screen will reach the expected brightness value (or target brightness value, or first brightness value). This results in the situation mentioned in the previous embodiment where, after the unlock fails, the display screen's display mode cannot be switched to off mode normally, nor can it be powered off normally.

[0308] In this embodiment, when the expected backlight brightness is large and the time required to control the display screen's backlight brightness to reach the expected brightness is long, if the electronic device's backlight brightness adjustment process is not yet complete after unlocking failure, the backlight adjustment can be stopped early. This avoids continuous backlight brightness adjustment from blocking subsequent processes (such as controlling the display screen to configure OFF mode), allowing the display screen to power down normally.

[0309] During the actual operation of electronic devices, the following scenarios may occur: the ambient brightness changes in the space in which the electronic device is located before the first time point are the same as the ambient brightness changes in the space in which it is located before the fourth time point. The duration for which the electronic device continuously adjusts the backlight brightness after successful unlocking (the duration of the first time period) is longer than the duration for which the electronic device continuously adjusts the backlight brightness after unlocking failure (the duration of the second time period). Simultaneously, after unlocking failure, the electronic device can smoothly control the display screen to power down.

[0310] In other embodiments, the electronic device turns off the screen at a sixth time point. For example, at the sixth time point, in response to a user pressing the power button, or in response to a timeout screen-off event, the display mode can be configured to OFF mode, and the display can be powered down to achieve screen-off.

[0311] At the sixth time point, the ambient light brightness of the space where the electronic device is located is the third ambient light brightness value. That is, at the sixth time point, that is, before the ambient light sensor enters the sleep state, it can collect the second ambient light information with the value of the third ambient light brightness value.

[0312] At the seventh time point, in response to the user's third unlocking action, the first display interface is shown. This third action, like the first action mentioned earlier, is an unlocking instruction from the user at a different time point; they are similar and will not be described further here.

[0313] Before the seventh time point, the electronic device can also respond to the third operation by configuring the display mode to ON mode and waking up the ambient light sensor. At the seventh time point, the ambient light brightness of the space where the electronic device is located is the fourth ambient light value. That is, at the seventh time point, the ambient light sensor can collect the first ambient light information with a value of the fourth ambient light value.

[0314] In the above scenario, the absolute difference between the fourth and third ambient brightness values ​​is smaller than the absolute difference between the second and first ambient brightness values. After the seventh time point, the time required to adjust the display's backlight brightness to the corresponding expected brightness value is shorter than the time required to continuously adjust the display's backlight brightness to the corresponding expected brightness value after the second time point.

[0315] In the above scenario, even if the third unlock operation fails, the electronic device can still display the second display interface. At the eighth time point, the control screen is powered off. During the third time period between the seventh and eighth time points, the electronic device continuously adjusts the backlight brightness of the display screen. Between the seventh and eighth time points, the ambient light brightness of the space where the electronic device is located remains unchanged.

[0316] After the eighth time point, the electronic device turns on its screen in response to the user's operation. At the ninth time point, the electronic device turns off its screen. At the ninth time point, the ambient light brightness of the space where the electronic device is located is the third ambient light value. In this way, the ambient light sensor can collect ambient light information with the value of the third ambient light value at the ninth time point.

[0317] At the tenth time point, the electronic device, in response to the fourth operation of unlocking by the user, displays the first display interface. Before displaying the first display interface, in response to the fourth operation, the display mode is configured to ON mode, the display screen is powered on, and the ambient light sensor is activated, etc.

[0318] At the tenth time point, the ambient light brightness of the space where the electronic device is located is the fourth ambient light value. Thus, at the tenth time point, the ambient light information with the value of the fourth ambient light value can be detected by the ambient light sensor.

[0319] The fourth operation and the first operation mentioned above are unlocking operations performed by the user at different points in time. They are similar and will not be described in detail here.

[0320] Upon successful unlocking in the fourth operation, the main interface is displayed. After the tenth time point, the ambient light brightness of the space where the electronic device is located remains unchanged. During the fourth time period after the tenth time point, the electronic device continuously adjusts the backlight brightness of the display screen. The duration of the third time period is equal to the duration of the fourth time period.

[0321] In the above scenario, after the display shows the first interface, if the time it takes to adjust the display to the corresponding expected brightness value is short (not affecting the subsequent normal power-off of the display), the actual continuous adjustment time of the backlight brightness is the same regardless of whether the unlock is successful or failed. For example, if the electronic device has already adjusted the backlight brightness to the expected value by continuously adjusting the display before recognizing the unlock failure, under the same ambient brightness change conditions, the continuous adjustment time of the backlight brightness after successful unlocking (the length of the fourth time segment) is equal to the continuous adjustment time of the backlight brightness after unlocking failure (the length of the third time segment).

[0322] In the above embodiment, the backlight brightness of the display screen after the third time period is equal to the backlight brightness of the display screen after the fourth time period.

[0323] In some embodiments, before the third time point and after the second display interface is displayed, first information is sent to the display screen, such as the instruction carrying a second mode identifier sent by AOD to the display screen via PMS as mentioned in the foregoing embodiments. This first information may indicate that the display screen's display mode is configured to Doze mode.

[0324] In some embodiments, the electronic device may stop adjusting the backlight brightness of the display screen based on sending a first message to the display screen. The display screen's display mode is configured to Doze mode.

[0325] In some embodiments, the electronic device is configured with a flag bit, specifically the first flag bit in the PMS mentioned in the foregoing embodiments. After displaying the first display interface in response to a first unlocking operation by the user, the electronic device can configure the value of this flag bit to a first value. Based on the flag bit being configured to the first value, the PMS periodically sends backlight brightness values ​​to the display screen, indicating that the display screen is adjusting the backlight brightness. Specifically, the display screen performs a backlight brightness adjustment once for each backlight brightness value it receives.

[0326] In some embodiments, the electronic device may determine a target brightness value before configuring the value of the flag bit to the first value. The target brightness value is the backlight brightness value that the display needs to achieve, also referred to as the expected brightness value or the first brightness value. The target brightness value increases as the absolute difference in ambient brightness between the first ambient light information and the second ambient light information (e.g., the absolute difference between the first ambient brightness value and the second ambient brightness value) increases.

[0327] After determining the target brightness value, the electronic device can create a backlight animation model. In this model, multiple backlight brightness values ​​are arranged in ascending order, including the target brightness value, which is listed last. The electronic device can then periodically send the backlight brightness values ​​to the display screen. For example, in each cycle, the PMS sends the backlight brightness values ​​to the display screen sequentially according to the backlight animation model.

[0328] In some scenarios, after an electronic device fails to unlock, such as in a scenario where the first unlock operation fails, it can send a first message to the display screen. During the sending of the first message to the display screen, the electronic device can be triggered to modify the value of a flag bit to a second value. Based on the flag bit being configured to the second value, the electronic device stops sending backlight brightness values ​​to the display screen and also stops adjusting the backlight brightness of the display screen.

[0329] In some scenarios, after an electronic device successfully unlocks—for example, in response to a successful second unlock operation or when the display's backlight brightness reaches the target brightness value—the electronic device can be triggered to modify the value of the flag bit to the second value. Based on the flag bit being configured to the second value, the electronic device stops sending backlight brightness values ​​to the display and also stops adjusting the display's backlight brightness.

[0330] In some embodiments, the second display interface includes a pre-selected always-on display image, such as the AOD animation in the foregoing embodiments.

[0331] Taking the Always-On Display (AOD) function of an electronic device in all-day mode as an example:

[0332] At the eleventh time point, the electronic device displays an always-on display interface, such as the static AOD interface mentioned in the previous embodiment. At the eleventh time point, the ambient light brightness of the space where the electronic device is located is the fifth ambient light value. Understandably, during the display of the always-on display interface, the electronic device's display mode is DozeSuspend mode. In this mode, the ambient light sensor is active and can collect ambient light information in real time. At the eleventh time point, the ambient light sensor can collect second ambient light information with a value of the fifth ambient light value.

[0333] At the twelfth time point, in response to the user's fifth unlocking action, the first display interface is shown. The fifth and first actions are unlocking operations performed by the user at different times; they are similar and will not be described further. At the twelfth time point, the ambient light brightness of the space where the electronic device is located is the sixth ambient light value. The ambient light sensor can collect first ambient light information with a value of the sixth ambient light value at the twelfth time point. Furthermore, the eleventh and twelfth time points are two adjacent time points; for example, they could be the time points when the ambient light sensor collects ambient light information twice consecutively.

[0334] In addition, the electronic device can be configured to ON mode before displaying the first display interface.

[0335] The electronic device displays a second display interface after the fifth unlocking attempt fails. This second display interface is used to indicate the unlocking failure.

[0336] At the thirteenth time point, the always-on display is shown. During the fifth time period between the twelfth and thirteenth time points, the electronic device continuously adjusts the backlight brightness of the display screen, while the ambient light brightness of the space where the electronic device is located remains unchanged between the twelfth and thirteenth time points.

[0337] In some embodiments, before the thirteenth time point and after the fifth time period, the electronic device can also configure the display mode to Doze mode. Then, it can be configured to DozeSuspend mode, so that the corresponding always-on display can be displayed at the thirteenth time point.

[0338] In other embodiments, at the fourteenth time point, in response to the user's sixth unlocking operation, a first display interface is displayed. The sixth and first operations are unlocking operations performed by the user at different times; they are similar and will not be described further here.

[0339] At the fifteenth time point, prior to the fourteenth time point, the ambient light brightness of the space where the electronic device is located is the fifth ambient light value. At the fourteenth time point, the ambient light brightness of the space where the electronic device is located is the sixth ambient light value. The fourteenth and fifteenth time points are two adjacent time points, for example, they could be the time points when the ambient light sensor collects ambient light information in two consecutive instances.

[0340] Based on the successful unlocking of the sixth operation, the electronic device can display the main interface. After the fourteenth time point, the ambient light brightness of the space where the electronic device is located remains unchanged. During the sixth time period after the fourteenth time point, the electronic device continuously adjusts the backlight brightness of the display screen; the duration of the sixth time period is longer than that of the fifth time period.

[0341] In addition, the aforementioned multiple time points, such as the first time point, the second time point, ... the fifteenth time point, are all different time nodes in the operation of electronic devices, and no specific limitation is made on them.

[0342] In the embodiments of this application, the functional units can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0343] 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, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as flash memory, portable hard disk, read-only memory, random access memory, magnetic disk, or optical disk.

[0344] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. A display control method characterized by comprising: Applied to an electronic device, the electronic device including a display screen, the electronic device having an always-on display function enabled, the method includes: At the first time point, the screen of the electronic device is turned off, and at the first time point, the ambient light brightness of the space where the electronic device is located is the first ambient light value; At the second time point, in response to the user's first unlocking operation, a first display interface is displayed, wherein the first display interface is an unlocking waiting interface, and at the second time point, the ambient light brightness of the space where the electronic device is located is a second ambient light value; If the first operation fails to unlock, a second display interface is displayed; wherein, the second display interface includes information indicating that the unlock failed. At the third time point, the display screen is powered off. During the first time period between the second time point and the third time point, the electronic device continuously adjusts the backlight brightness of the display screen. After the third time point, the electronic device turns on its screen in response to the user's operation. At the fourth time point, the electronic device turns off its screen. At the fourth time point, the ambient light brightness of the space where the electronic device is located is the first ambient light value. At the fifth time point, in response to the user's second unlocking operation, the first display interface is displayed, and at the fifth time point, the ambient light brightness of the space where the electronic device is located is the second ambient light value; Based on the successful unlocking of the second operation, the main interface is displayed; after the fifth time point, the ambient light brightness of the space where the electronic device is located remains unchanged, and during the second time period after the fifth time point, the electronic device continuously adjusts the backlight brightness of the display screen; the duration of the second time period is longer than that of the first time period.

2. The method according to claim 1, characterized in that, The method further includes: At the sixth time point, the electronic device turns off its screen, and at the sixth time point, the ambient light brightness of the space where the electronic device is located is the third ambient light value; At the seventh time point, in response to the third user unlocking operation, the first display interface is displayed. At the seventh time point, the ambient light brightness of the space where the electronic device is located is a fourth ambient light value. The absolute difference between the fourth ambient light value and the third ambient light value is less than the absolute difference between the second ambient light value and the first ambient light value. If the third unlocking operation fails, a second display interface will be shown. At the eighth time point, the display screen is powered off. During the third time period between the seventh and eighth time points, the electronic device continuously adjusts the backlight brightness of the display screen. Between the seventh and eighth time points, the ambient light brightness of the space where the electronic device is located remains unchanged. After the eighth time point, the electronic device turns on its screen in response to the user's operation. At the ninth time point, the electronic device turns off its screen. At the ninth time point, the ambient light brightness of the space where the electronic device is located is the third ambient light value. At the tenth time point, in response to the fourth operation of unlocking by the user, the first display interface is displayed, and at the tenth time point, the ambient light brightness of the space where the electronic device is located is the fourth ambient light value; Based on the successful unlocking of the fourth operation, the main interface is displayed; after the tenth time point, the ambient light brightness of the space where the electronic device is located remains unchanged, and during the fourth time period after the tenth time point, the electronic device continuously adjusts the backlight brightness of the display screen; the duration of the third time period is equal to that of the fourth time period.

3. The method according to claim 2, characterized in that, The backlight brightness of the display screen after the third time period is equal to the backlight brightness of the display screen after the fourth time period.

4. The method according to claim 1, characterized in that, After the first time period, the backlight brightness of the display screen is a first backlight brightness value; after the second time period, the backlight brightness of the display screen remains at a second backlight brightness value, wherein the first backlight brightness value is less than the second backlight brightness value.

5. The method according to any one of claims 1-4, characterized in that, The method further includes: Before the third time point, after the second display interface is displayed, a first message is sent to the display screen, instructing the display screen to be configured to Doze mode; Based on sending the first information to the display screen, the adjustment of the backlight brightness of the display screen is stopped; Configure the display screen to Doze mode.

6. The method according to claim 5, characterized in that, The electronic device is configured with a flag bit, and after displaying the first display interface in response to the user's first unlocking operation, the method further includes: Configure the value of the flag bit to the first value; Based on the value of the flag bit being configured as a first value, a backlight brightness value is periodically sent to the display screen to instruct the display screen to adjust the backlight brightness; Sending the first information to the display screen includes: in response to the unlocking failure, sending the first information to the display screen; The step of stopping the adjustment of the backlight brightness of the display screen by sending a first message to the display screen includes: The value of the flag bit is modified to the second value; based on the fact that the value of the flag bit is configured to the second value, the sending of the backlight brightness value to the display screen is stopped.

7. The method according to claim 6, characterized in that, Before configuring the value of the flag bit to the first value, the method further includes: A target brightness value is determined, which is the backlight brightness value that the display screen needs to achieve. The target brightness value increases as the absolute difference between the second ambient brightness value and the first ambient brightness value increases. Create a backlight animation model, wherein multiple backlight brightness values ​​in the backlight animation model are arranged in ascending order, and the multiple backlight brightness values ​​include the target brightness value, and the target brightness value is arranged as the last value; The periodic sending of backlight brightness values ​​to the display screen includes: In each cycle, a backlight brightness value is sent to the display screen according to the backlight animation model.

8. The method according to claim 2, characterized in that, The electronic device is configured with a flag bit. After the first display interface is displayed in response to the second user unlocking operation, the method further includes: Configure the value of the flag bit to the first value; Based on the value of the flag bit being configured as a first value, a backlight brightness value is periodically sent to the display screen to instruct the display screen to adjust the backlight brightness; Based on the backlight brightness of the display screen reaching the target brightness value, the value of the marker bit is modified to a second value, wherein the target brightness value is the backlight brightness value that the display screen needs to achieve, and the target brightness value increases as the absolute difference between the first ambient brightness value and the second ambient brightness value increases; Based on the value of the flag bit being configured to the second value, the transmission of the backlight brightness value to the display screen is stopped.

9. The method according to claim 5, characterized in that, Before the second time point, the method further includes: in response to the first operation, configuring the display mode of the display screen to ON mode; After configuring the display mode of the display screen to Doze mode, the method further includes: configuring the display mode of the display screen to OFF mode.

10. The method according to claim 1, characterized in that, The second display interface includes a pre-selected always-on display image.

11. An electronic device, characterized in that, An electronic device includes one or more processors and a memory; the memory is coupled to the processor and is used to store computer program code, the computer program code including computer instructions, wherein when the one or more processors execute the computer instructions, the one or more processors perform the method as described in any one of claims 1-10.

12. A computer storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Display control method and electronic equipment

    CN117727254A