Display screen control method and electronic device

By dynamically modifying the value of the brightness register on a display screen that does not support the highlighting mode, and simulating highlighting, the problem of low fingerprint unlocking success rate in the highlighting environment is solved, and a higher fingerprint unlocking success rate and more obvious fingerprint spot are achieved.

WO2025103282A1PCT designated stage expired Publication Date: 2025-05-22HONOR DEVICE CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/131379
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-15
Filing Date
2024-11-11
Publication Date
2025-05-22

AI Technical Summary

Technical Problem

Some displays do not support highlight mode (HBM), resulting in a low success rate of under-screen fingerprint unlocking in highlight environments.

Method used

By dynamically modifying the value of specific brightness registers in the display screen, it can simulate highlighting on display screens that do not support HBM mode, and improve the success rate of fingerprint unlocking.

Benefits of technology

It effectively improves the success rate of fingerprint unlocking in a high-bright environment, ensures that the brightness of the fingerprint spot reaches the target value, and enhances the recognizableness of fingerprint acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024131379_22052025_PF_FP_ABST
    Figure CN2024131379_22052025_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the technical field of display. Provided are a display screen control method and an electronic device. The present application solves the problem of the success rate of under-screen fingerprint unlocking of some electronic devices being low. The specific solution is: displaying a lock screen interface; when the brightness of a first area and a second area of a display screen is at a first brightness value, detecting that a user comes into contact with the first area of the display screen, wherein the first area of the display screen overlaps a sensing surface of a fingerprint sensor, the second area is a display area in the display screen other than the first area, and the first brightness value is the preconfigured maximum brightness value corresponding to the display screen; and configuring a target brightness register of the display screen from a first attribute value to a second attribute value, wherein the target brightness register corresponds to the first area and is used for controlling the brightness of the first area, and after the target brightness register is configured to the second attribute value, the brightness of the first area is corrected from a first brightness value to a second brightness value, and the second brightness value is greater than the first brightness value.
Need to check novelty before this filing date? Find Prior Art

Description

Display screen control method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on November 15, 2023, with application number 202311547675.3 and invention name “A display screen control method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of display technology, and in particular to a display screen control method and an electronic device. Background Art

[0003] When enabling under-screen fingerprint unlocking in a bright environment, the display needs to enter high brightness mode (HBM). In HBM mode, the brightness of the fingerprint collection area on the display is set to the target brightness value, which is higher than the normal maximum brightness of the display. This makes the brightness of the fingerprint collection area on the display higher than that of other areas, forming a noticeable fingerprint spot.

[0004] However, some displays do not support HBM mode. As a result, electronic devices equipped with such displays have a lower success rate of under-screen fingerprint unlocking in special scenarios (such as in a bright environment or other scenarios where the display brightness has reached the normal maximum brightness value).

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a display screen control method and an electronic device for improving the success rate of under-screen fingerprint unlocking in special scenarios.

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

[0008] In a first aspect, an embodiment of the present application provides a display screen control method, which is applied to an electronic device, wherein the electronic device includes a display screen and a fingerprint sensor, and the fingerprint sensor is configured under the display screen. The method includes: displaying a lock screen interface; detecting that a user touches the first area of ​​the display screen when the brightness of the first area and the second area of ​​the display screen is a first brightness value, and the first area of ​​the display screen overlaps with the sensing surface of the fingerprint sensor; the second area is the display area of ​​the display screen other than the first area, and the first brightness value is the pre-configured maximum brightness value corresponding to the display screen; configuring the target brightness register of the display screen from a first attribute value to a second attribute value; the target brightness register corresponds to the first area, and is used to control the brightness of the first area, and after the target brightness register is configured to the second attribute value, the brightness of the first area is corrected from the first brightness value to the second brightness value, and the second brightness value is greater than the first brightness value.

[0009] In the above embodiment, when the display screen displays the lock screen interface and both the first and second areas reach the pre-configured maximum brightness values, the grayscale values ​​of the pixel units corresponding to the first and second areas both reach the maximum. If it is detected that the user needs to perform fingerprint unlocking, the attribute value of the target brightness register corresponding to the first area can be changed so that the brightness of the first area can be increased from the first brightness value to the second brightness value at the same grayscale value. In this way, the first area forms a distinct light spot compared to the second area, achieving the effect corresponding to the HBM mode and improving the success rate of fingerprint unlocking.

[0010] In some embodiments, after detecting that a user has touched a first area of ​​a display screen, and before configuring the target brightness register of the display screen to a second attribute value, the method further includes: obtaining an ambient light brightness value; determining that the ambient light brightness value is greater than a first brightness threshold, or determining that a first backlight brightness corresponding to the ambient light brightness value is greater than a third brightness value; wherein the third brightness value is less than the first brightness value, and a difference between the third brightness value and the first brightness threshold is less than a preset value; the electronic device is configured with a correspondence between different ambient light brightnesses and backlight brightnesses; obtaining a first real-time backlight brightness of the display screen; and determining that the first real-time backlight brightness is greater than the third brightness value.

[0011] In the above embodiment, the need to modify the attribute value of the target brightness register to achieve the corresponding effect of HBM mode is evaluated from multiple dimensions such as the ambient light brightness value and the real-time backlight brightness. Among them, the real-time backlight brightness can be used to monitor whether the user is midway and stop fingerprint unlocking, thereby avoiding modifying the target brightness register in scenarios where fingerprint unlocking is not required, resulting in abnormal brightness display in the first area. Through the above evaluation, HBM mode can be avoided from being mistakenly enabled after there is no need to enter HBM mode.

[0012] In some embodiments, after detecting that the user has contacted the first area of ​​the display screen and before configuring the target brightness register of the display screen to the second attribute value, the method further includes: obtaining an ambient light brightness value; determining that the ambient light brightness value is greater than a first brightness threshold, or determining that a first backlight brightness corresponding to the ambient light brightness value is greater than a third brightness value; wherein the third brightness value is less than the first brightness value, and a difference between the third brightness value and the first brightness threshold is less than a preset value; the electronic device is configured with a correspondence between different ambient light brightnesses and backlight brightnesses; obtaining a first real-time backlight brightness of the display screen and a first grayscale value of the displayed background image; determining that the first real-time backlight brightness is greater than the third brightness value, and that the first grayscale value is greater than a preset grayscale threshold.

[0013] In the above embodiment, the need to modify the attribute value of the target brightness register to achieve the corresponding effect of HBM mode is evaluated based on multiple dimensions such as ambient light brightness, real-time backlight brightness, and real-time grayscale value. This evaluation avoids the accidental activation of HBM mode when there is no need to enter HBM mode.

[0014] In some embodiments, the method further includes: collecting first fingerprint information while the brightness of the first area is the second brightness value; after collecting the first fingerprint information, restoring the target brightness register configuration of the display screen from the second attribute value to the first attribute value; after the target brightness register is configured to the first attribute value, the display screen stops correcting the brightness of the first area.

[0015] In the above embodiment, after the fingerprint information is collected, the attribute value of the target brightness register is restored to avoid abnormal brightness display in the first area.

[0016] In some embodiments, before configuring the target register of the display screen to the second attribute value, the method further includes: reading the first attribute value of the target brightness register from the display screen and storing it; determining the second attribute value based on the first attribute value and a preconfigured configuration file, the configuration file including the first attribute value and the corresponding attribute correction value, and the second attribute value being the sum of the first attribute value and the attribute correction value.

[0017] In some embodiments, the electronic device further includes a display driver, and the brightness of the first area is corrected from the first brightness value to the second brightness value, including: the display screen receives first brightness configuration information from the display driver; the first brightness configuration information carries a first brightness value for the first area; when the target brightness register has a second attribute value, in response to the first brightness configuration information, the brightness of the first area is increased to the second brightness value, the second brightness value is the sum of the first brightness value and a first brightness increment, and the first brightness increment is related to the attribute correction value between the second attribute value and the first attribute value.

[0018] In some embodiments, the electronic device also includes a display driver, and after the display screen stops correcting the brightness of the first area, the method also includes: the display screen receives second brightness configuration information from the display driver, the second brightness configuration information carries the fourth brightness value for the first area, and the fourth brightness value is less than or equal to the first brightness value; when the first attribute value of the target brightness register is at a first attribute value, in response to the second brightness configuration information, the brightness of the first area is adjusted to the fourth brightness value.

[0019] In some embodiments, before configuring the target brightness register of the display screen to the first attribute value, the method further includes: instructing the display screen to reduce the backlight brightness; obtaining a second real-time backlight brightness of the display screen and / or a second grayscale value of the displayed background image; determining that the second real-time backlight brightness is less than or equal to the third brightness value; or, determining that the second grayscale value is less than or equal to the preset grayscale threshold.

[0020] In the above embodiment, the scene of exiting the HBM mode can be accurately identified through the real-time backlight brightness and / or the real-time grayscale value, thereby avoiding affecting the normal use of the electronic device by the user.

[0021] In some embodiments, when the ambient light brightness value in the space where the electronic device is located is greater than a first brightness threshold, the method further includes: in response to user operation, controlling the display screen to turn off; in response to the user touching the first area, displaying a screen-off unlocking interface, and during the display of the screen-off unlocking interface, the second area of ​​the display screen includes unlit pixel units; controlling the display screen to adjust the brightness of the first area to a fifth brightness value, and the fifth brightness value is less than or equal to the first brightness value.

[0022] In a second aspect, an embodiment of the present application provides an electronic device, which includes a display screen, a fingerprint sensor, one or more processors and a memory. The fingerprint sensor is used to collect fingerprint information, the display screen is used to adjust the backlight brightness to assist the fingerprint sensor in fingerprint collection, the memory is used to store computer instructions, and the display screen is used to push information to the user. When one or more processors execute the computer instructions, the one or more processors are used to execute the method in the first aspect and its possible embodiments.

[0023] In a third aspect, an embodiment of the present application provides a computer storage medium, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the methods in the above-mentioned first aspect, second aspect and possible embodiments thereof.

[0024] In a fourth aspect, the present application provides a computer program product. When the computer program product is run on the above-mentioned electronic device, the electronic device executes the method in the above-mentioned first aspect and its possible embodiments.

[0025] In a fifth aspect, the present application provides a chip system, which is applied to an electronic device and stores a computer program. When the computer program is executed, the electronic device executes the method in the above-mentioned first aspect and its possible embodiments.

[0026] It can be understood that 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 that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0028] FIG2 is a schematic diagram of the software and hardware structure of an electronic device provided in an embodiment of the present application;

[0029] FIG3A is a flowchart of a display screen control method according to an embodiment of the present application;

[0030] FIG3B is an example diagram of a gamma curve corresponding to display area a when the FPS brightness register is configured with different attribute values ​​according to an embodiment of the present application;

[0031] FIG4 is one of the exemplary diagrams of display brightness changes in an unlocking scenario provided by an embodiment of the present application;

[0032] FIG5 is a second flowchart of a display screen control method provided in an embodiment of the present application;

[0033] FIG6 is a second example diagram of display brightness changes in an unlocking scenario provided by an embodiment of the present application;

[0034] FIG7 is a third flowchart of a display screen control method provided in an embodiment of the present application;

[0035] FIG8 is a third example diagram of display brightness changes in an unlocking scenario provided by an embodiment of the present application;

[0036] FIG9 is a fourth flowchart of a display screen control method provided in an embodiment of the present application;

[0037] FIG10 is a fifth flowchart of a display screen control method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0039] The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.

[0040] Fingerprint unlocking means collecting the user's fingerprint information with the user's permission, and using the collected fingerprint information to determine whether the user has permission to unlock the electronic device. For example, common fingerprint unlocking methods include side fingerprint unlocking, rear fingerprint unlocking, front fingerprint unlocking, and under-screen fingerprint unlocking.

[0041] The fingerprint sensor used in the under-screen fingerprint unlocking process is located below the display screen. The principle of collecting fingerprint information by the above-mentioned fingerprint sensor is as follows: when a finger is pressed on the fingerprint sensor, the light reflected from the finger to the fingerprint sensor is used to generate a fingerprint image and obtain the corresponding fingerprint information.

[0042] During the fingerprint collection process, the display backlight is used. In other words, a specific area of ​​the display needs to remain illuminated during the fingerprint collection process. The illuminated specific area is also called a fingerprint spot.

[0043] In some embodiments, the fingerprint light spots can be divided into two types: hard light spots and soft light spots.

[0044] Soft spot: After lighting up the entire display, a pre-configured mask can be displayed to create a fingerprint spot on the display, creating a soft spot. The mask is a black layer that does not cover the display area corresponding to the fingerprint collection module (the area where the fingerprint spot is displayed). This way, visually, only the display area corresponding to the fingerprint spot is lit.

[0045] Hard light spot: This technique illuminates or increases the brightness of a portion of the display area, creating a light spot on the display. For example, the display area corresponding to the fingerprint acquisition module is illuminated or the brightness of the display area corresponding to the fingerprint acquisition module is increased. Visually, the fingerprint light spot appears on the display, forming a hard light spot. The brightness of the fingerprint light spot is higher than that of other display areas.

[0046] Whether it's a hard or soft spot, the brighter the fingerprint spot, the more recognizable the collected fingerprint information. This advantage is especially pronounced when the electronic device is in a brightly lit environment.

[0047] In some embodiments, after the electronic device detects that the ambient light brightness value of the space in which it is located is greater than a preset brightness value, it instructs the display screen to enter a high-brightness display mode (HBM).

[0048] HBM mode: Boosts the brightness of the entire display or a local area to a target brightness value. This target brightness value can be pre-configured and is typically greater than the display's normal maximum brightness value (e.g., the first brightness value). This normal maximum brightness value can be the maximum brightness value achievable by the display in non-HBM mode.

[0049] For example, when the electronic device enables soft light spot to assist in completing fingerprint collection, when configuring the backlight brightness of the display screen, the electronic device can instruct the display screen to increase the backlight brightness of the entire screen to a target brightness value (such as the second brightness value) to enable the display screen to enter HBM mode.

[0050] As another example, when the electronic device enables hard light spot to assist in completing fingerprint collection, the electronic device can instruct the display screen to increase the brightness of the local area, such as instructing the display screen to increase the brightness of the local area to the target brightness value, so that the display screen enters the HBM mode.

[0051] After the display enters HBM mode, the recognition rate of the collected fingerprint information can be effectively improved, thereby improving the success rate of fingerprint unlocking in bright light environments.

[0052] However, although some displays have the ability to increase the brightness to the target brightness value, they do not support HBM mode. For example, the display driver can send a brightness value to the display that is no greater than the conventional maximum brightness value, causing the display to be unable to increase the brightness of the fingerprint spot to the target brightness value. It can be seen that if the electronic device enables hard spot to assist in fingerprint collection, a relatively bright fingerprint spot cannot be formed in a high-brightness environment, that is, the problem of not being able to enable HBM mode when traveling, which in turn leads to a lower fingerprint unlocking success rate in a high-brightness environment.

[0053] To address the above issues, an embodiment of the present application provides a display screen control method, which is applied to an electronic device that enables hard spot. The electronic device can dynamically modify the value of a specific brightness register in the display screen. The specific brightness register can be used to correct the brightness of the hard spot display area (referred to as the spot area). By modifying the specific brightness register, when the display screen needs to enter HBM mode, the brightness of the spot area can be increased to the target brightness value. In this way, a display screen that originally does not support HBM mode can also enter HBM mode.

[0054] In addition, after the display needs to exit HBM mode, the brightness of the light spot area can be limited to below the normal maximum brightness value by modifying the specific brightness register. The above-mentioned light spot area corresponds to the configuration position of the fingerprint collection module under the screen. When the user's finger touches the light spot area, that is, when the user authorizes fingerprint information collection, the fingerprint collection module under the screen can collect the fingerprint information of the finger covering the light spot area.

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

[0056] Please refer to FIG1 , which shows a possible hardware structure diagram of an electronic device:

[0057] As shown in Figure 1, 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0058] Among them, the above-mentioned sensor module 180 may include pressure sensors, gyroscope sensors, air pressure sensors, magnetic sensors, acceleration sensors, distance sensors, proximity light sensors, fingerprint sensors (also known as fingerprint collection modules), temperature sensors, touch sensors, ambient light sensors and bone conduction sensors and other sensors.

[0059] It should be 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 shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0060] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0061] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0062] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

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

[0064] It is understood that the interface connection relationship between the modules illustrated in this embodiment is merely an illustrative illustration and does not limit the structure of the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

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

[0066] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In the subsequent embodiments, the display screen 194 is mainly an LCD. As can be understood, in the subsequent embodiments, the LCD mentioned can also be replaced with other types of display screens. In addition, the display screen 194 can include multiple registers, such as a fingerprint print sensor (FPS) brightness register.

[0067] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0068] The ISP is used to process data fed back by camera 193. For example, when taking a photo, 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, which is then transmitted to the ISP for processing and converted into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and skin color. The ISP can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be set in camera 193.

[0069] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. 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, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include N cameras 193, where N is a positive integer greater than 1.

[0070] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

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

[0072] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0073] Figure 2 is a block diagram of the software and hardware structure of the electronic device 100 provided in an embodiment of the present application. The layered architecture can divide the software structure part into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the electronic device may include an application layer (abbreviated as application layer), an application framework layer (framework), a hardware abstraction layer (HAL) layer, a kernel layer, etc. Of course, the software layers divided in the electronic device may also include layers not shown in Figure 2, such as system libraries, Android TM Runtime (Android Runtime), etc.

[0074] Exemplarily, the application layer may include a series of application programs.

[0075] As shown in FIG2 , the application layer may include applications such as memo, browser, contacts, and camera.

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

[0077] As shown in FIG. 2 , the application framework layer may include a fingerprint framework and an input manager (INPUT manager), etc.

[0078] The fingerprint framework is used to provide fingerprint service processing capabilities, such as fingerprint recognition and determining whether to enable HMB mode.

[0079] INPUT manager, also known as INPUT, can be used to translate, encapsulate, and process the original input events collected by various types of hardware modules to obtain input events containing more information and pass them to applications or services that subscribe to events reported by the hardware module. For example, the above-mentioned various types of hardware modules can be display screens, fingerprint sensors (or fingerprint acquisition modules), ambient light sensors, buttons, etc. When the above-mentioned hardware modules are available, the corresponding device nodes can be created for the hardware modules. When the hardware module detects the corresponding original input event, such as the fingerprint sensor detecting that the user touches the fingerprint sensor, the screen detects that the user clicks the operation, or the ambient light sensor detects ambient light, the button detects that the user clicks the button, etc., the original input event can be passed to the device node corresponding to the hardware module. The device node translates, encapsulates, and processes the original input event. Finally, the packaged time obtained by processing is passed to applications, services, etc. that subscribe to events from the hardware module. For example, in an embodiment of the present application, the fingerprint framework can subscribe to events from the fingerprint sensor through INPUT.

[0080] For example, the HAL layer can encapsulate the drivers of various hardware modules (such as fingerprint sensors, ambient light sensors, and display screens) and provide a calling interface to the application framework layer, shielding the implementation details of the low-level hardware. As shown in Figure 2, the HAL layer can include a display screen HAL, which can be an interface provided by the application framework layer for calling display drivers. In this way, when the framework and services of the application framework layer need to manage the display screen (such as adjusting the brightness of the display screen, controlling the content displayed on the display screen), this can be achieved by calling the display screen HAL.

[0081] For example, the kernel layer is located below the HAL and is the layer between hardware and software. In addition to the display driver and fingerprint sensor driver mentioned above, the kernel layer may also include camera drivers, audio drivers, various sensor drivers, etc., which are not limited in this embodiment of the application.

[0082] In some embodiments, the hardware layer may include various hardware modules integrated into the electronic device, such as the ambient light sensor, fingerprint sensor, and display screen shown in Figure 2. Of course, the hardware layer may also include hardware modules not shown in Figure 2.

[0083] The following describes the implementation details of the method provided in the embodiment of the present application in conjunction with the accompanying drawings.

[0084] In some embodiments, when the electronic device is in a bright environment and in a locked screen state, as shown in FIG3A , the display screen control method may include the following steps:

[0085] S101 : In response to a user touching a display area a of a display screen, determining whether to execute a process of starting an HBM mode.

[0086] In some embodiments, in response to a user touching display area a of a display screen, the ambient light sensor obtains the ambient light brightness value of the space in which the user is located. For example, the display area a may be the display area of ​​the display screen located above the fingerprint acquisition module (fingerprint sensor), overlapping with the sensing surface of the fingerprint sensor, and may also be referred to as the first area.

[0087] After obtaining the ambient light brightness value, determine the target backlight brightness value (first backlight brightness) that matches the ambient light brightness value. In some embodiments, the electronic device can pre-configure the correspondence between different ambient light brightness values ​​and different backlight brightness values. After obtaining the current ambient light brightness value, the corresponding target backlight brightness value is searched based on the current ambient light brightness value and the pre-configured correspondence. When the target backlight brightness value is greater than the brightness threshold 1 (third brightness value) corresponding to the display screen, determine to execute the process of starting the HBM mode, and the process enters S102.

[0088] Brightness Threshold 1 is a value configured for the display screen. The value of Brightness Threshold 1 is close to the normal maximum brightness value corresponding to the display screen. For example, the difference between the normal maximum brightness value and Brightness Threshold 1 can be less than the set threshold value. For example, if the normal maximum brightness value is 3800 nits and the set value is 50 nits, the corresponding Brightness Threshold 1 is 3750 nits.

[0089] As will be understood, nit is a unit used to measure user-perceived brightness, also known as candelas per square meter (cd / m²). In other embodiments, the brightness can also be expressed using display brightness value (DBV). DBV is a concept used in the display driver IC (DDIC) to describe screen brightness, and can include 4096 levels (e.g., 0-4095 levels). Given a fixed grayscale value for pixels in the displayed image, a larger DBV indicates a brighter screen. Nit and DBV are convertible.

[0090] It is understandable that the conventional maximum brightness of different display screens may be different. In addition, the setting values ​​may also be different. Correspondingly, different display screens may correspond to different brightness thresholds 1.

[0091] Furthermore, while the electronic device's screen is on, the backlight brightness of the display can be controlled in real time based on the ambient light brightness of the space in which it is located. As described in the aforementioned embodiments, the electronic device is preconfigured with a correspondence between ambient light brightness and backlight brightness. Based on this correspondence, the electronic device can control the backlight brightness of the display to vary with changes in the ambient light brightness.

[0092] For example, an electronic device can obtain the real-time ambient light brightness value through an ambient light sensor, and then use the pre-configured correspondence to find the corresponding backlight brightness value. The electronic device can then send the found backlight brightness value to the display to control the backlight brightness of the display.

[0093] In other embodiments, after the electronic device detects that the user has touched display area a of the display screen, the electronic device may further search for the most recent backlight brightness value transmitted to the display screen in response to the user touching display area a. If the most recent backlight brightness value transmitted to the display screen is greater than brightness threshold 1, the process of initiating HBM mode is determined, and the process proceeds to S102.

[0094] In other embodiments, in response to a user touching display area a of the display screen, an ambient light sensor is used to obtain an ambient light brightness value of the space in which the user is located. If the ambient light brightness value is greater than a preset brightness threshold (a first brightness threshold), a process of initiating the HBM mode is determined to be executed, that is, the process proceeds to S102.

[0095] The preset brightness threshold may be an empirical value, or an ambient light brightness value that may affect fingerprint recognition and is determined through testing.

[0096] S102, read the attribute value 1 of the brightness register of the fingerprint print sensor (FPS) in the display screen.

[0097] In some embodiments, the above-mentioned FPS brightness register (target brightness register) can be used to manage the brightness corresponding to the display area a. When the FPS brightness register is configured with different attribute values, the pixel units in the display area a correspond to different gamma curves, and the gamma curve can indicate the correspondence between different grayscale values ​​and different brightnesses. It can be understood that one pixel unit corresponds to three grayscale values, namely the grayscale value corresponding to the red channel, the grayscale value corresponding to the blue channel, and the grayscale value corresponding to the green channel. When the gamma curve corresponding to the pixel unit remains unchanged, the smaller the grayscale value of a channel in the pixel unit, the smaller the brightness of the organic light-emitting diode (OLED) corresponding to the channel, and the larger the grayscale value of a channel, the larger the brightness of the OLED corresponding to the channel. After the three grayscale values ​​corresponding to a pixel unit are all increased, the brightness of the three OLEDs corresponding to the pixel unit are all increased, which can make the actual brightness of the pixel unit increase.

[0098] As shown in Figure 3B, when the FPS brightness register is configured with attribute value 1 (first attribute value), the gamma curve corresponding to display area a is curve 1 in Figure 3B. After the attribute value of the FPS brightness register is modified, the gamma curve corresponding to display area a can be curve 2 or curve 3 in Figure 3B.

[0099] Taking the FPS brightness register as an example, after the attribute value 1 is changed to other attribute values ​​(such as attribute value 2, refer to the subsequent embodiments for details), the gamma curve corresponding to the display area a is curve 2. After the attribute value of the FPS brightness register is modified, the pixel units in the display area a actually achieve a higher brightness at the same grayscale value.

[0100] Taking the case where the FPS brightness register is modified from attribute value 1 to another attribute value, and the gamma curve corresponding to display area a is curve 3 as an example, after the attribute value of the FPS brightness register is modified, the actual brightness achieved by the pixel units in display area a is lower at the same grayscale value.

[0101] Before and after the FPS brightness register is configured from attribute value 1 to other attribute values, the actual brightness values ​​achieved by the pixel units in display area a at the same grayscale value are different, which can be said to be the brightness value of display area a being corrected. When the grayscale value corresponding to display area a remains unchanged, the difference between the actual brightness achieved before and after the attribute value of the FPS brightness register is modified can be called the first brightness increment. In addition, the register address of the FPS brightness register in different display screens can be different. The implementation method of reading the attribute value of the FPS brightness register can be referred to in the relevant technology, and the implementation details of reading the configuration parameters from the register of the display screen are not repeated here.

[0102] S103: Determine attribute value 2 according to attribute value 1 and a pre-configured attribute configuration file.

[0103] In some embodiments, a plurality of attribute configuration files (preconfigured configuration files) for display screens may be pre-configured in the electronic device, and different attribute configuration files correspond to different types of display screens. For example, different attribute configuration files may be associated with type information of different types of display screens. The attribute configuration files include attribute modification values ​​(offsets, or attribute correction values) for the FPS brightness register. The offsets may be used to modify the attribute values ​​of the FPS brightness register. For example, based on the attribute value 1, the offset is added to obtain an attribute value 2, such as a second attribute value.

[0104] In some embodiments, based on the display screen type information, the corresponding attribute configuration file 1 is searched, the offset 1 corresponding to the FPS brightness register is found from the attribute configuration file 1, and the attribute value 1 and the offset 1 are superimposed to obtain the attribute value 2.

[0105] S104: Configure the value of the FPS brightness register in the display screen to attribute value 2.

[0106] In some embodiments, an FPS node function may be called to instruct the FPS brightness register in the display screen to enter an editable state. Thus, the attribute value 2 may be written to the FPS brightness register. After the attribute value 2 is written to the FPS brightness register, the FPS brightness register may be instructed to exit the editable state.

[0107] It can be understood that after the FPS brightness register is modified from attribute value 1 to attribute value 2, the gamma curve corresponding to the pixel unit in display area a can be changed from curve 1 to curve 2 (or, under the same grayscale value, a gamma curve with a larger corresponding brightness value).

[0108] Thus, when the FPS brightness register value is attribute value 1, the maximum brightness that can be achieved by the pixel units in display area a is the normal maximum brightness. For example, when the pixel units in display area a reach the maximum grayscale value, the actual brightness value is the normal maximum brightness. After the FPS brightness register value is changed to attribute value 2, the maximum brightness that can be achieved by display area a can exceed the normal maximum brightness. For example, when the pixel units in display area a reach the maximum grayscale value, the actual brightness value is the target brightness value.

[0109] For example, after S104, when the electronic device determines that the pixel units in the display area a need to reach the maximum grayscale value, the brightness of the display area a can actually exceed the conventional maximum brightness limited by the specifications of the display screen and reach the target brightness value.

[0110] For example, due to the limitation of the display screen, the brightness value that the display driver can send to the display screen cannot exceed 3800nit, that is, the conventional maximum brightness value is 3800nit. When the FPS brightness register is attribute value 1, the display driver sends brightness configuration information for display area a to the display screen, and the brightness configuration information carries 3800nit. Correspondingly, the display screen can control the brightness of display area a to reach 3800nit. When the FPS brightness register is attribute value 2, the display driver sends brightness configuration information for display area a to the display screen, and the brightness configuration information carries 3800nit. Correspondingly, the display screen can control the brightness value of display area a to reach 3900nit. It can be understood that after the value of the FPS brightness register is updated from attribute value 1 to attribute value 2, the brightness configuration information from the display driver is received (instructing to adjust the brightness to 3800nit), and it is determined to adjust the grayscale value of the pixel unit in display area a to the maximum grayscale value. At the maximum grayscale value, compared to when the value of the FPS brightness register is attribute value 1, the brightness of display area a can be increased by 100 nits, that is, the actual brightness is corrected by 100 nits, that is, the first brightness increment is 100 nits.

[0111] After the FPS brightness register is configured to attribute value 2, the display only corrects the brightness value of display area a and does not affect other areas (such as the second area on the display). When the brightness value of display area a reaches the target brightness value, the brightness of other areas of the display does not exceed the conventional maximum brightness value. In this way, the display forms a fingerprint spot in display area a. In this scenario, the display can be said to have entered HBM mode. Among them, the conventional maximum brightness value is lower than the target brightness value.

[0112] In an exemplary scenario, as shown in FIG4 , the electronic device displays a lock screen interface 401. It is understandable that the electronic device is in an unlocked state while the lock screen interface 401 is displayed. After the user places a finger on display area a (e.g., area 402 in FIG4 ), the brightness of display area a (e.g., area 402) is brightness value A, and the brightness of other areas is brightness value B, where brightness value A is greater than brightness value B. The other areas may be display areas other than area 402 in the display screen, such as area 403 in FIG4 .

[0113] In the above exemplary scenario, if the ambient light brightness value of the space where the electronic device is located can trigger the backlight brightness of the display to be adjusted to the conventional maximum brightness value, after the user places the finger on area 402, as shown in Figure 4, the electronic device can write attribute value 2 to the display. After that, the brightness value A of the above area 402 can reach the target brightness value, and the brightness value B of the above area 403 does not exceed the conventional maximum brightness value. In this scenario, the display of the electronic device can successfully enter the HBM mode. In this way, as shown in Figure 4, before and after entering the HBM mode, the value of the FPS brightness register in the display changes from attribute value 1 to attribute value 2.

[0114] In the above exemplary scenario, if the ambient light brightness value of the space in which the electronic device is located does not trigger the adjustment of the backlight brightness of the display screen to the conventional maximum brightness value, after the user places the finger in area 402, the electronic device will not write the attribute value for the FPS brightness register to the display screen. After that, the brightness value A of the above area 402 and the brightness value B of area 403 will not exceed the conventional maximum brightness value.

[0115] In other embodiments, the above method can also be applied to scenarios where the electronic device is not in a high-brightness environment and the brightness of the display screen has reached the normal maximum brightness, or is close to the normal maximum brightness. Please refer to the above embodiments for details and will not be repeated here.

[0116] In some embodiments, after the display enters HBM mode, the fingerprint acquisition module can collect fingerprint information, such as collecting the first fingerprint information. During this period, the collected fingerprint information has a higher recognition rate. After the fingerprint acquisition module collects fingerprint information with a high recognition rate, HBM mode can be exited. The process of exiting HBM mode is shown in Figure 5.

[0117] S201: Determine whether to exit the HBM mode.

[0118] In some embodiments, after the electronic device completes fingerprint information collection or fingerprint collection is interrupted, it may be determined that the HBM mode needs to be exited.

[0119] For example, after entering HBM mode for a specified time, it can be determined that fingerprint information has been collected and it is determined that the display screen needs to exit HBM mode, and the process enters S202 shown in Figure 5. The above-mentioned specified time can be the maximum time required for the fingerprint collection module to collect fingerprint information obtained from testing.

[0120] For example, after entering HBM mode, fingerprint information is collected and a fingerprint recognition result (such as fingerprint unlocking success or fingerprint unlocking failure) is obtained, it can be determined that fingerprint information has been collected and that the display needs to exit HBM mode, and the process enters S202 shown in Figure 5.

[0121] As another example, after entering the HBM mode, it is detected that the user's finger leaves the display area a, and it is determined that the display screen needs to exit the HBM mode.

[0122] As another example, after entering the HBM mode, if a user instruction to turn off the screen is detected, it can also be determined that the HBM mode is exited.

[0123] S202: Configure the value of the FPS brightness register in the display screen to be attribute value 1.

[0124] In some embodiments, an FPS node function may be called to instruct the FPS brightness register in the display screen to enter an editable state. Thus, a property value of 1 may be written to the FPS brightness register. After writing the property value 1 to the FPS brightness register, the FPS brightness register may be instructed to exit the editable state.

[0125] In an exemplary scenario, taking the result of fingerprint unlocking as a successful unlocking as an example, as shown in Figure 6, after the user places the finger on area 402, the brightness of area 402 is brightness value A, and the brightness of other areas (area 403) is brightness value B. Brightness value A is greater than brightness value B, and brightness value A is the target brightness value. In this scenario, the display enters HBM mode, and the fingerprint acquisition module can also collect fingerprint information. After the fingerprint information collection is completed, the electronic device can write the attribute value 1 to the FPS brightness register of the display.

[0126] In response to the value of the FPS brightness register being attribute value 1, the display screen stops correcting the brightness of display area a so that the brightness of display area a does not exceed the regular maximum brightness value, so that the display screen exits the HBM mode.

[0127] As shown in Figure 6, after successful unlocking based on the collected fingerprint information, the electronic device displays user interface 601. After entering HBM mode, the value of the FPS brightness register is attribute value 2. After displaying user interface 601, the value of the FPS brightness register is attribute value 1. In other words, before displaying user interface 601, the electronic device can change the value of the FPS brightness register from attribute value 2 to attribute value 1. In this way, while displaying user interface 601, the brightness of area 402 and area 403 of the display screen will not exceed the normal maximum brightness value.

[0128] In some embodiments, as shown in FIG7 , the above method may also include the following steps:

[0129] S301 , after determining to execute the process of starting the HBM mode, obtaining a real-time backlight brightness value 1 of the display screen.

[0130] In some embodiments, the process of determining whether to start the HBM mode can refer to S101 and will not be described in detail here. Among them, the backlight brightness can represent the brightness of the entire display screen, and the above-mentioned real-time backlight brightness value is a quantized value corresponding to the brightness of the current display screen and the entire screen. The electronic device can read the real-time backlight brightness value from the display screen. The reading process can refer to relevant technologies and will not be described in detail here.

[0131] Exemplarily, after determining that the HBM mode needs to be started, the electronic device may periodically read the real-time backlight brightness value 1 from the display screen, that is, may read one or more real-time backlight brightness values ​​1 from the display screen.

[0132] As another example, if it is determined that the HBM mode needs to be activated, the electronic device reads a real-time backlight brightness value 1 from the display screen after an interval of time 1. In short, the method for obtaining the real-time backlight brightness value 1 is not specifically limited.

[0133] S302, read the attribute value 1 of the FPS brightness register in the display screen.

[0134] In some embodiments, the implementation details of S302 may refer to S102. There is no necessary order between S301 and S302, and no specific limitation is made here.

[0135] S303 : When the real-time backlight brightness value 1 is greater than the brightness threshold 1 , the attribute value 2 is determined according to the attribute value 1 and the pre-configured attribute configuration file.

[0136] In some embodiments, when the electronic device periodically obtains the real-time backlight brightness value 1, if the obtained real-time backlight brightness value 1 (first real-time backlight brightness) is not greater than the brightness threshold 1 (third brightness value) and the real-time backlight brightness value 1 gradually increases, the electronic device waits for the next period to obtain a new real-time backlight brightness value 1, and determines whether the new real-time backlight value 1 is greater than the brightness threshold 1. If the real-time backlight brightness value 1 is not greater than the brightness threshold 1 and the real-time backlight brightness value 1 remains unchanged or decreases, the process ends.

[0137] In other embodiments, after the interval length 1, the acquired real-time backlight brightness value 1 is not greater than the brightness threshold 1, and the process ends.

[0138] S304: Configure the value of the FPS brightness register in the display screen to be attribute value 2.

[0139] In some embodiments, in the above S303 and S304 , implementation details of calculating the attribute value 2 and writing the attribute value 2 into the FPS brightness register may refer to S103 and S104 , which are not described in detail here.

[0140] In some embodiments, before actually modifying the value of the FPS brightness register, it is determined whether the display screen still has the need to enable HBM mode by judging whether the real-time backlight brightness value is greater than the brightness threshold 1, so as to avoid abnormal display brightness due to erroneous modification.

[0141] In an exemplary scenario, the display driver sends a target backlight brightness value to the display screen, and the target backlight brightness value is greater than the brightness threshold 1. Based on the target backlight brightness value, the electronic device can determine that it needs to execute the process of starting the HBM mode. After the display screen sends the target backlight brightness value, the display screen does not adjust the backlight brightness to the target backlight brightness value. For example, after the display screen sends the target backlight brightness value, it detects that the user presses the power button, and the backlight brightness of the display screen drops rapidly. In this scenario, according to the method shown in S301 to S304 above, the detected real-time backlight brightness value 1 does not reach the brightness threshold 1. In response to the real-time backlight brightness value 1 not reaching the brightness threshold 1, the value of the FPS brightness register is not changed to avoid abnormal highlighting of area 402.

[0142] In an exemplary scenario, the display driver sends a target backlight brightness value to the display screen, and the target backlight brightness value is greater than the brightness threshold 1. Based on the target backlight brightness value, the electronic device can determine that it needs to execute the process of starting the HBM mode. After the display screen sends the target backlight brightness value, the display screen does not adjust the backlight brightness to the target backlight brightness value. For example, after the display screen sends the target backlight brightness value, it is detected that the user's finger leaves the display area a. It can be determined that the user actively interrupts this fingerprint recognition. According to the business rules of fingerprint recognition, the display screen will enter low-brightness mode, that is, the display screen will reduce the brightness. In this scenario, according to the method shown in S301 to S304 above, the detected real-time backlight brightness value 1 also does not reach the brightness threshold 1. In response to the real-time backlight brightness value 1 not reaching the brightness threshold 1, the value of the FPS brightness register is not changed.

[0143] In another exemplary scenario, as shown in Figure 8, when the electronic device is off and detects that the user has instructed to unlock the fingerprint, it can display the screen-off unlocking interface 801. When the screen-off unlocking interface 801 is displayed, since most of the pixels in area 403 of the display screen are not lit, the corresponding backlight brightness is low. In this scenario, even if the HBM mode is not enabled, fingerprint information with a high recognition rate can be collected. That is, the brightness of area 402 does not need to reach the target brightness value. For example, the brightness of display area a is the fifth brightness value, and the fifth brightness value is less than or equal to the conventional maximum brightness value. An obvious fingerprint spot can also be formed to improve the recognition rate of fingerprint information collection. According to the method shown in S301 to S304 above, the detected real-time backlight brightness value 1 also does not reach the brightness threshold 1. In response to the real-time backlight brightness value 1 not reaching the brightness threshold 1, the value of the FPS brightness register is not changed.

[0144] In the scenario shown in FIG8 , from the time the user's finger contacts area 402 until fingerprint information collection is completed, the display screen's real-time backlight brightness value does not exceed brightness threshold 1. According to the methods provided in S301 to S304 above, the electronic device does not change the value of the FPS brightness register; that is, the FPS brightness register holds a value of 1. Unnecessary activation of HBM mode is avoided without compromising fingerprint information collection quality.

[0145] As shown in Figure 8, when the unlocking is successful, the electronic device can display a user interface 802. During the period from when the electronic device displays the screen-off unlocking interface 801 to when the electronic device displays the user interface 802, the value of the FPS brightness register of the display screen remains unchanged.

[0146] S305 , after the value of the FPS brightness register is configured as the attribute value 2, continue to obtain the real-time backlight brightness value 2 of the display screen.

[0147] It is understandable that the real-time backlight brightness value 2 can also be referred to as the second real-time backlight brightness. After the fingerprint unlocking is completed, for example, after the unlocking is successful or failed, according to the unlocking business logic, the display driver will instruct the display to enter the low-brightness display mode, that is, the backlight brightness of the display will be lowered.

[0148] S306 , when the real-time backlight brightness value 2 is not greater than the brightness threshold 1 , the value of the FPS brightness register in the display screen is configured as the attribute value 1 .

[0149] In some embodiments, after the value of the FPS brightness register in the display screen is configured to the attribute value 1, the brightness of area 402 is no longer corrected, that is, the brightness of area 402 can be limited below the normal maximum brightness value to avoid abnormal brightness display of the display screen.

[0150] In other possible embodiments, after S304, S305 and S306 may not be executed. After determining that fingerprint unlocking is completed, for example, in response to the fingerprint framework outputting the fingerprint recognition result, the value of the FPS brightness register in the display screen may be configured to the attribute value 1.

[0151] In some embodiments, as shown in FIG9 , the method may further include the following steps:

[0152] S401 , after determining to execute the process of starting the HBM mode, obtaining a real-time backlight brightness value 3 of the display screen and reading back a grayscale value 1 of the displayed background image.

[0153] In some embodiments, the process of determining whether to initiate HBM mode can be referred to in S101 and will not be described in detail here. If it is determined that HBM mode needs to be initiated, the electronic device can also obtain the real-time backlight brightness value 3 of the display screen and the real-time grayscale value of the background image displayed in display area a. The method of reading the real-time backlight brightness value 3 and the real-time grayscale value of the background image displayed in display area a can be referred to in related technologies and will not be described in detail here.

[0154] It is understood that the grayscale value 1 (first grayscale value) can be the average grayscale of the background image displayed in real time in display area a, or it can be the maximum grayscale value, and this embodiment of the present application does not specifically limit this. In addition, different preset grayscale thresholds can be configured for the average grayscale and the maximum grayscale. The preset grayscale thresholds are used to assess whether the current state of the display screen still requires entering HBM mode. For specific details, please refer to the subsequent embodiments and are not elaborated here.

[0155] S402, read the attribute value 1 of the FPS brightness register in the display screen.

[0156] In some embodiments, the implementation details of S402 may refer to S102. There is no necessary order between S401 and S402, and no specific limitation is made here.

[0157] S403 : When the real-time backlight brightness value 3 is greater than the brightness threshold 1 and the grayscale value 1 is greater than the preset grayscale threshold, the attribute value 2 is determined according to the attribute value 1 and the pre-configured attribute configuration file.

[0158] When the pixel units of display area a reach the maximum grayscale value, the brightness of display area a can reach the currently achievable maximum brightness value (for example, before the value of the FPS brightness register is modified, the currently achievable maximum brightness is the conventional maximum brightness). The above-mentioned preset grayscale value is not greater than the maximum grayscale value. For example, the preset grayscale threshold value can be 0X1FF.

[0159] In addition, if the real-time backlight brightness value 3 is not greater than the brightness threshold 1 and the real-time backlight brightness value 3 is gradually increasing, the process waits for the next cycle to obtain a new real-time backlight brightness value 3 and determines whether the new real-time backlight value 3 is greater than the brightness threshold 1. If the real-time backlight brightness value 3 is not greater than the brightness threshold 1 and the real-time backlight brightness value 3 remains unchanged or decreases, the process ends.

[0160] Alternatively, when the grayscale value 1 is not greater than the preset grayscale threshold, the process ends.

[0161] S404: Configure the value of the FPS brightness register in the display screen to attribute value 2.

[0162] In some embodiments, in the above S403 and S404 , implementation details of calculating the attribute value 2 and writing the attribute value 2 into the FPS brightness register may refer to S103 and S104 , which are not described in detail here.

[0163] It can be understood that in the methods shown in Figures 7 and 9, before actually modifying the FPS brightness register, it will be determined based on the real-time backlight brightness value and / or the grayscale value of the background image whether the current state of the display screen meets the scene conditions for entering the HBM mode, which can also be called whether there is still a need to enable the HBM mode.

[0164] In other embodiments, it is also possible to determine whether the current state of the display screen meets the scenario conditions for entering HBM mode in other ways. For example, before calculating the attribute value 2, if it is detected that the user presses the power button, detects that the finger leaves the display area a, or detects that the brightness of the space environment where the electronic device is located suddenly drops, etc., it is determined that the scenario conditions for entering HBM mode are not met. If the above-mentioned pre-configured interruption conditions are not detected, it is determined that the scenario conditions for entering HBM mode are met. If it is detected that the display screen is off before unlocking, it can also be determined that the scenario conditions for entering HBM mode are not met.

[0165] In this way, when the current state of the display screen meets the scene conditions for entering the HBM mode, the electronic device writes the attribute value 2 to the FPS brightness register, so that the display screen can achieve the display effect of the HBM mode.

[0166] S405 , after the value of the FPS brightness register is configured as the attribute value 2, continue to obtain the real-time backlight brightness value 4 of the display screen and read back the grayscale value 2 of the displayed background image.

[0167] It is understood that after fingerprint unlocking is completed, for example, after unlocking is successful or failed, according to the unlocking business logic, the display driver will instruct the display to enter low-brightness display mode, that is, the backlight brightness of the display will be reduced, and the grayscale value of the background image will also be reduced. The above-mentioned grayscale value 2 can be called the second grayscale value, which can be the grayscale value of the background image displayed in display area a.

[0168] S406 , when the real-time backlight brightness value 4 is not greater than the brightness threshold 1 or the grayscale value 2 is not greater than the preset grayscale threshold, configure the value of the FPS brightness register in the display screen to the attribute value 1.

[0169] As an embodiment, FIG10 shows that during the execution of the method shown in FIG9 , the signaling interaction between the various software and hardware modules in the electronic device is as follows:

[0170] A1, the fingerprint collection module sends notification 1 to the input manager, indicating that a finger is sensed touching the display area a.

[0171] In some embodiments, when the fingerprint acquisition module senses a finger touching display area a, the fingerprint acquisition module may report the event to the input manager, for example, by sending notification 1 to the input manager. If the fingerprint framework subscribes to messages from the fingerprint acquisition module through the input manager, the process may proceed to A2.

[0172] A2, the input manager sends notification 1 to the fingerprint framework.

[0173] A3, the fingerprint frame instructs the display driver to control the display screen to display the fingerprint spot.

[0174] In some embodiments, the fingerprint framework can call the functional interface 1 provided by the display driver, which can trigger the process of forming a fingerprint spot. For example, after calling the functional interface 1, the display screen can be controlled to adjust the brightness of the display area a and other areas (that is, the area outside the display area a) so that the brightness of the display area a and other areas is linearly related, and the brightness of the display area a is higher than the brightness of other areas. In this way, the display screen can form a fingerprint spot at the display area a. Of course, in the embodiment of the present application, the details between the time when the fingerprint framework can call the functional interface 1 provided by the display driver and the actual formation of the fingerprint spot on the display screen will refer to the subsequent steps and will not be repeated here.

[0175] A4: The display driver determines that the display needs to enable HBM mode to generate fingerprint spots.

[0176] In some embodiments, the above A4 may refer to S101. For example, the display driver may obtain the ambient light brightness value of the space in which it is located through an ambient light sensor. A target backlight brightness value that matches the ambient light brightness value is determined. If the target backlight brightness value is greater than a brightness threshold 1 corresponding to the display screen, it is determined that a fingerprint spot needs to be generated in HBM mode. Other examples are not described in detail for the time being.

[0177] A5, the display driver obtains the real-time backlight brightness value 3 from the display screen and reads back the grayscale value 1 of the displayed background image.

[0178] A6: The display driver reads the attribute value 1 of the FPS brightness register in the display screen from the display screen.

[0179] In some embodiments, the above A5 and A6 may refer to S401 and S402 and will not be repeated here.

[0180] A7, the display driver calls the preset algorithm, combined with the real-time backlight brightness value of 3 and the grayscale value of 1, to determine that the display currently has the conditions to enter HBM.

[0181] In some real-time situations, the above-mentioned preset algorithm can determine whether the display screen currently meets the conditions for entering HBM based on the real-time backlight brightness value and grayscale value. Exemplarily, the above-mentioned preset algorithm can be to compare the real-time backlight brightness value with the brightness threshold 1, and compare the grayscale value with the preset grayscale threshold, and then, based on a combination of multiple comparison results, determine whether the display screen currently meets the conditions for entering HBM. For example, when the real-time backlight brightness value 3 is greater than the brightness threshold 1, and the above-mentioned grayscale value 1 is greater than the preset grayscale threshold, it is determined whether the display screen currently meets the conditions for entering HBM. In other embodiments, the above-mentioned preset algorithm can also determine whether the display screen currently meets the conditions for entering HBM based on detected user behavior, detected environmental changes and / or the display state of the display screen before unlocking.

[0182] For example, when it is detected that the user presses the power button, detects that the finger leaves the display area a, or detects that the ambient light brightness of the space where the electronic device is located drops sharply, according to the above-mentioned preset algorithm, it can be determined that the display screen does not currently meet the conditions for entering HBM mode. In addition, the above-mentioned preset algorithm can also determine that the display screen currently meets the conditions for entering HBM mode according to the above-mentioned preset algorithm when the above-mentioned situation is not detected. The above-mentioned preset algorithm can also determine that the conditions for entering HBM mode are not met according to the above-mentioned preset algorithm when it is detected that the display state of the display screen is off before unlocking.

[0183] A8: The display driver determines attribute value 2 according to attribute value 1 and a pre-configured attribute configuration file.

[0184] A9, the display driver writes the attribute value 2 to the FPS brightness register in the display.

[0185] A10, the display screen sends a configuration completion notification 1 to the display driver.

[0186] The configuration completion notification 1 indicates that the display has configured the value of the FPS brightness register to be attribute value 2.

[0187] A11, the display driver indicates that the display shows a bright fingerprint spot.

[0188] In some embodiments, the display driver may instruct the display screen to adjust the brightness values ​​of the display area a and other areas so that a fingerprint spot having a brightness value reaching a target brightness value is formed on the display screen.

[0189] Exemplarily, when the target backlight brightness value is not less than the conventional maximum brightness value, the display driver will send brightness configuration information a (first brightness configuration information) for display area a to the display screen, and the brightness configuration information a may indicate that the display area a will be adjusted to the conventional maximum brightness value.

[0190] After the FPS brightness register is configured to attribute value 2, the display screen, in response to the brightness configuration information a, determines that the grayscale value of the pixel unit in display area a needs to be adjusted to the maximum grayscale value. In other words, the target grayscale value determined by the display screen is the maximum grayscale value. Subsequently, combining curve 2 shown in FIG3B (the gamma curve corresponding to the FPS brightness register attribute value 2) and the determined target grayscale value, the brightness of display area a can be adjusted to the target brightness value (e.g., the conventional maximum brightness value + 100 nits). Obviously, the above process can also be said to be the display screen correcting the brightness of display area a.

[0191] In addition, the display driver may also send brightness configuration information b for other areas to the display screen. This brightness configuration information b may indicate that the other areas should be adjusted to the normal maximum brightness value. In response to this brightness configuration information b, the display screen determines that the grayscale values ​​of the pixel units in the other display areas need to be adjusted to the maximum grayscale value. In other words, the target grayscale value determined by the display screen is the maximum grayscale value. Then, based on the gamma curve and the target grayscale value of the other areas, the brightness of the other areas is adjusted to the normal maximum brightness value.

[0192] For example, when the target backlight brightness value is less than the conventional maximum brightness value, the display driver sends brightness configuration information a for display area a to the display screen. In response to the brightness configuration information a, the display screen can adjust the brightness of display area a to the target brightness value (e.g., the conventional maximum brightness value + 100 nits). The display driver can send brightness configuration information c for other areas to the display screen. The brightness configuration information c may include the target backlight brightness value, indicating that the other areas are adjusted to the target backlight brightness value. In response to the brightness configuration information c, the display screen can adjust the brightness of the other areas to the target backlight brightness value.

[0193] A12, the display enters HBM mode.

[0194] After a fingerprint spot with a brightness value equal to the target brightness value is displayed on the display screen, the display screen enters the HBM mode.

[0195] A13, the display sends notification 2 to the display driver, indicating that the display has entered HBM mode.

[0196] A14, the display driver sends notification 2 to the fingerprint framework.

[0197] A15, the fingerprint framework sends notification 2 to the fingerprint collection module.

[0198] A16: The fingerprint collection module responds to notification 2 and starts collecting fingerprint information.

[0199] A17, the fingerprint collection module sends the collected fingerprint information to the fingerprint framework.

[0200] A18, the fingerprint framework performs fingerprint recognition based on fingerprint information.

[0201] The above processes of fingerprint information collection and fingerprint recognition can be referred to related technologies and will not be described in detail here.

[0202] A19, the fingerprint framework sends notification 3 to the display driver, indicating that fingerprint recognition has been completed.

[0203] A20, the display driver instructs the display to enter low brightness mode.

[0204] A21, the display reduces the background light brightness value.

[0205] For example, the display driver can lower the backlight brightness of the display screen to make the display screen enter the low-brightness mode. In the process of lowering the backlight brightness of the display screen, the brightness of the display area a and other areas will decrease.

[0206] A22, the display driver obtains the real-time backlight brightness value 4 from the display screen and reads back the grayscale value 2 of the displayed background image.

[0207] A23, the display driver uses a preset algorithm, combined with the real-time backlight brightness value of 4 and the grayscale value of 2, to determine that HBM mode can be exited.

[0208] In some embodiments, the preset algorithm mentioned in A23 may be the same as the preset algorithm mentioned in A7. When it is determined by the preset algorithm that the conditions for entering the HBM mode are not met, it is determined that the HBM mode can be exited.

[0209] A24, the display driver writes the attribute value 1 to the FPS brightness register of the display.

[0210] After writing the attribute value 1 to the display's FPS brightness register, the display no longer corrects the brightness of display area a. For example, after writing the attribute value 1 to the display's FPS brightness register, the display driver sends a brightness profile d (second brightness configuration information) for display area a to the display. This brightness profile d carries a brightness value of 3000 nits (fourth brightness value). The display responds to brightness profile d and determines the target grayscale value corresponding to display area a. Then, combining curve 1 shown in Figure 3B with the determined target grayscale value, the brightness of display area a can be actually configured to 3000 nits.

[0211] Through the above method, even if a display screen has defects, when performing under-screen fingerprint unlocking in a high-brightness environment, HBM mode can be successfully entered, thereby improving the success rate of under-screen fingerprint unlocking. In other embodiments, the above method can also be used only for display screens with defects. For example, after step A4, the display driver can query whether the controlled display screen is a defective display screen. If so, continue to execute the subsequent steps. If not, enable HBM mode in the existing manner.

[0212] In an exemplary scenario, when the electronic device is fully lit, the lock screen interface is displayed. During the display of the lock screen interface, both the first area and the second area reach the first brightness value. For example, in response to the user's operation, the backlight brightness value of the display screen has been adjusted to the highest. For another example, in response to detecting that the ambient light is too bright, the backlight brightness value of the display screen has been adjusted to the highest. In this scenario, the grayscale values ​​corresponding to the pixel units in the first area and the second area have reached the maximum grayscale value. Afterwards, it is detected that the user touches the first area of ​​the display screen. The target brightness register of the display screen is configured from the first attribute value to the second attribute value. The target brightness register corresponds to the first area and is used to control the actual brightness of the first area. After the target brightness register is configured to the second attribute value, the brightness of the first area is corrected from the first brightness value to the second brightness value when the corresponding grayscale value remains unchanged. The brightness of the second area remains the first brightness value unchanged.

[0213] It is understandable that even if the first area reaches the first brightness value, it has reached the ideal brightness for collecting fingerprints. However, since the brightness of the second area surrounding the first area is also the first brightness value, it will actually affect the operation of the fingerprint. In this case, the brightness difference between the first area and the second area needs to be increased. In this scenario, before the attribute value of the target brightness register is modified, some display screens cannot increase the brightness of the first area to a second brightness value greater than the first brightness value due to their own specifications, which often easily causes fingerprint unlocking failure. In the above exemplary scenario, the electronic device can modify the attribute value of the target brightness register so that the brightness of the first area exceeds the first brightness value and reaches the second brightness value while the grayscale value corresponding to the first area remains unchanged, thereby completing the brightness correction of the first area. In this way, a clear light spot can be presented on the display screen, thereby improving the success rate of fingerprint unlocking.

[0214] An embodiment of the present application further provides an electronic device, which may include: a display screen, a memory, a fingerprint acquisition module, and one or more processors. The display screen, fingerprint acquisition module, memory, and processor are coupled. The memory is used to store computer program code, which includes computer instructions. When the processor executes the computer instructions, the electronic device can perform the various steps performed by the mobile phone in the above embodiment. Of course, the electronic device includes but is not limited to the above memory and one or more processors.

[0215] The present application also provides a chip system that can be applied to the electronic device in the aforementioned embodiment. The chip system includes at least one processor and at least one interface circuit. The processor can be the processor in the aforementioned electronic device. The processor and the interface circuit can be interconnected via a line. The processor can receive and execute computer instructions from the memory of the aforementioned electronic device via the interface circuit. When the computer instructions are executed by the processor, the electronic device can execute the various steps performed by the mobile phone in the aforementioned embodiment. Of course, the chip system can also include other discrete components, which are not specifically limited in the present application.

[0216] In some embodiments, through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0217] The functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0218] If the integrated unit is implemented in the form of 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 solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk.

[0219] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A display screen control method, characterized in that: Applied to an electronic device, the electronic device includes a display screen and a fingerprint sensor, the fingerprint sensor is configured under the display screen, and the method includes: Display the lock screen interface; When the brightness of the first area and the second area of ​​the display screen is a first brightness value, it is detected that the user touches the first area of ​​the display screen, and the first area of ​​the display screen overlaps with the sensing surface of the fingerprint sensor; the second area is a display area of ​​the display screen except the first area, and the first brightness value is a pre-configured maximum brightness value corresponding to the display screen; The target brightness register of the display screen is configured from a first attribute value to a second attribute value; the target brightness register corresponds to the first area and is used to control the brightness of the first area. After the target brightness register is configured to the second attribute value, the brightness of the first area is corrected from the first brightness value to the second brightness value, and the second brightness value is greater than the first brightness value.

2. The method according to claim 1, characterized in that After detecting that the user contacts the first area of ​​the display screen and before configuring the target brightness register of the display screen to a second attribute value, the method further includes: Get the ambient light brightness value; Determining that the ambient light brightness value is greater than a first brightness threshold, or determining that a first backlight brightness corresponding to the ambient light brightness value is greater than a third brightness value; wherein the third brightness value is less than the first brightness value, and a difference between the third brightness value and the first brightness threshold value is less than a preset value; and the electronic device is configured with a correspondence between different ambient light brightnesses and backlight brightnesses; Acquire a first real-time backlight brightness of the display screen; It is determined that the first real-time backlight brightness is greater than the third brightness value.

3. The method according to claim 1, characterized in that After detecting that the user contacts the first area of ​​the display screen and before configuring the target brightness register of the display screen to a second attribute value, the method further includes: Get the ambient light brightness value; Determining that the ambient light brightness value is greater than a first brightness threshold, or determining that a first backlight brightness corresponding to the ambient light brightness value is greater than a third brightness value; wherein the third brightness value is less than the first brightness value, and a difference between the third brightness value and the first brightness threshold value is less than a preset value; and the electronic device is configured with a correspondence between different ambient light brightnesses and backlight brightnesses; Acquire a first real-time backlight brightness of the display screen and a first grayscale value of the displayed background image; It is determined that the first real-time backlight brightness is greater than the third brightness value, and that the first grayscale value is greater than a preset grayscale threshold.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When the brightness of the first area is the second brightness value, collecting first fingerprint information; After collecting the first fingerprint information, restoring the target brightness register configuration of the display screen from the second attribute value to the first attribute value; After the target brightness register is configured as a first attribute value, the display screen stops correcting the brightness of the first area.

5. The method according to any one of claims 1 to 4, characterized in that: Before configuring the target register of the display screen to the second attribute value, the method further includes: Reading a first attribute value of the target brightness register from the display screen and storing the first attribute value; The second attribute value is determined according to the first attribute value and a preconfigured configuration file, wherein the configuration file includes the first attribute value and a corresponding attribute correction value, and the second attribute value is the sum of the first attribute value and the attribute correction value.

6. The method according to any one of claims 1 to 5, characterized in that: The electronic device further includes a display driver, and the brightness of the first area is corrected from the first brightness value to the second brightness value, including: The display screen receives first brightness configuration information from the display driver; the first brightness configuration information carries the first brightness value for the first area; When the target brightness register is at the second attribute value, in response to the first brightness configuration information, the brightness of the first area is increased to the second brightness value, the second brightness value is the sum of the first brightness value and a first brightness increment, and the first brightness increment is related to the attribute correction value between the second attribute value and the first attribute value.

7. The method according to claim 4, characterized in that The electronic device further includes a display driver, and after the display screen stops correcting the brightness of the first area, the method further includes: The display screen receives second brightness configuration information from the display driver, where the second brightness configuration information carries the fourth brightness value for the first area, and the fourth brightness value is less than or equal to the first brightness value; When the target brightness register has the first attribute value, the brightness of the first area is adjusted to the fourth brightness value in response to the second brightness configuration information.

8. The method according to claim 4, characterized in that Before configuring the target brightness register of the display screen to the first attribute value, the method further includes: Instructing the display screen to reduce backlight brightness; Acquire a second real-time backlight brightness of the display screen and / or a second grayscale value of the displayed background image; Determine that the second real-time backlight brightness is less than or equal to the third brightness value; Alternatively, it is determined that the second grayscale value is less than or equal to the preset grayscale threshold.

9. The method according to claim 1, characterized in that: In a case where the ambient light brightness value in the space where the electronic device is located is greater than a first brightness threshold, the method further includes: In response to a user operation, controlling the display screen to turn off the screen; In response to the user touching the first area, displaying a screen-off unlocking interface, during which the screen-off unlocking interface is displayed, the second area of ​​the display screen includes unlit pixel units; The display screen is controlled to adjust the brightness of the first area to a fifth brightness value, where the fifth brightness value is less than or equal to the first brightness value.

10. An electronic device, characterized in that: The electronic device includes: a display screen, a fingerprint sensor, a processor and a memory, the fingerprint sensor is used to collect fingerprint information, the display screen is used to adjust the backlight brightness to assist the fingerprint sensor in fingerprint collection, and the memory is used to store computer instructions. When the processor executes the computer instructions, the electronic device executes the method as described in any one of claims 1-9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program or instructions. When the computer program or instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Display screen control method and electronic equipment

    CN120048197A

  • Fingerprint identification method and mobile terminal

    CN107295195A

  • Fingerprint acquisition method and related device

    CN109711255A

  • Compensation method and electronic equipment

    CN110808003A

  • Under-screen fingerprint display control method and device and computer readable storage medium

    CN115273160A