Display screen control method and electronic equipment

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 success rate of fingerprint unlocking under the screen in the highlighting environment is solved, and a higher recognition degree of fingerprint information is achieved.

CN120048197APending Publication Date: 2025-05-27HONOR DEVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311547675.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2025-05-27

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 under-screen fingerprint unlocking in a high-bright environment, ensuring the recognizable fingerprint information collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120048197A_ABST
    Figure CN120048197A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a display screen control method and electronic equipment, and relates to the technical field of display. The problem that the success rate of under-screen fingerprint unlocking of part of electronic equipment is not high is solved. According to the specific scheme, a screen locking interface is displayed; when the brightness of the first area and the second area of the display screen is the first brightness value, it is detected that a user touches the first area of the display screen, and the first area of the display screen is overlapped with the sensing surface of the fingerprint sensor; the second area is a display area except the first area in the display screen, and the first brightness value is a pre-configured maximum brightness value corresponding to the display screen; configuring a target brightness register of the display screen from the first attribute value to a second attribute value; the target brightness register corresponds to the first area and is used for controlling the brightness of the first area, after the target brightness register is configured to be the second attribute value, the brightness of the first area is corrected to be a second brightness value from the first brightness value, and the second brightness value is larger than the first brightness value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] When enabling the under-screen fingerprint unlocking in a high-brightness environment, the display screen needs to enter the high-brightness mode (HBM). Among them, in the HBM mode, the brightness of the fingerprint collection area on the display screen is the target brightness value, and the target brightness value is higher than the conventional maximum brightness of the display screen, so that the brightness of the fingerprint collection area on the display screen is higher than that of other areas, forming an obvious fingerprint light spot.

[0003] However, some display screens do not support the HBM mode. Thus, for an electronic device configured with such a display screen, the success rate of under-screen fingerprint unlocking is relatively low in special scenarios (such as being in a high-brightness environment, or other scenarios where the brightness of the display screen has reached the conventional maximum brightness value). Summary of the Invention

[0004] The embodiments of the present application provide a display screen control method and an electronic device, which are used to improve the success rate of under-screen fingerprint unlocking in special scenarios.

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

[0006] In a first aspect, the embodiments of the present application provide a display screen control method, which is applied to an electronic device. The electronic device includes a display screen and a fingerprint sensor, and the fingerprint sensor is disposed under the display screen. The method includes: displaying a lock screen interface; when the brightness of a first area and a second area on the display screen is a first brightness value, detecting that a 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 the display area of the display screen except the first area, and the first brightness value is the maximum brightness value corresponding to the pre-configured 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. After the target brightness register is configured with 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.

[0007] In the above embodiments, when the lock screen interface is displayed on the display screen and the maximum brightness values of both the first area and the second area reach the pre-configured maximum brightness value, the gray scale values of the pixel units corresponding to the first area and the second area 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 gray scale value. In this way, an obvious light spot is formed in the first area compared with the second area, achieving the effect corresponding to the HBM mode and improving the success rate of fingerprint unlocking.

[0008] In some embodiments, after detecting that the user touches 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 the ambient light brightness value; determining that the ambient light brightness value is greater than the first brightness threshold, or determining that the first backlight brightness corresponding to the ambient light brightness value is greater than the third brightness value; wherein, the third brightness value is less than the first brightness value, and the difference between the third brightness value and the first brightness threshold is less than a preset value; there is a corresponding relationship between different ambient light brightness and backlight brightness configured in the electronic device; obtaining the first real-time backlight brightness of the display screen; determining that the first real-time backlight brightness is greater than the third brightness value.

[0009] In the above embodiments, from multiple dimensions such as the ambient light brightness value and the real-time backlight brightness, it is evaluated whether it is necessary to modify the attribute value of the target brightness register to achieve the effect corresponding to the HBM mode. Among them, the real-time backlight brightness can be used to monitor whether the user stops fingerprint unlocking midway, avoiding the abnormal brightness display of the first area caused by modifying the target brightness register in a scenario where fingerprint unlocking is not required. Through the above evaluation, after there is no need to enter the HBM mode, the HBM mode is prevented from being mis-enabled.

[0010] In some embodiments, after detecting that the user touches 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 the ambient light brightness value; determining that the ambient light brightness value is greater than the first brightness threshold, or determining that the first backlight brightness corresponding to the ambient light brightness value is greater than the third brightness value; wherein, the third brightness value is less than the first brightness value, and the difference between the third brightness value and the first brightness threshold is less than a preset value; there is a corresponding relationship between different ambient light brightness and backlight brightness configured in the electronic device; obtaining the first real-time backlight brightness of the display screen and the first gray scale value of the displayed background image; determining that the first real-time backlight brightness is greater than the third brightness value, and the first gray scale value is greater than a preset gray scale threshold.

[0011] In the above embodiments, from multiple dimensions such as the ambient light luminance value, the real-time backlight luminance, and the real-time grayscale value, it is evaluated whether it is necessary to achieve the effect corresponding to the HBM mode by modifying the attribute value of the target luminance register. Through the above evaluation, after there is no need to enter the HBM mode, the mis-enabling of the HBM mode is avoided.

[0012] In some embodiments, the method further includes: during the period when the luminance of the first area is the second luminance value, collecting first fingerprint information; after collecting the first fingerprint information, restoring the configuration of the target luminance register of the display screen from the second attribute value to the first attribute value; after the configuration of the target luminance register is the first attribute value, the display screen stops correcting the luminance of the first area.

[0013] In the above embodiments, after collecting the fingerprint information, by restoring the attribute value of the target luminance register, the abnormal luminance display of the first area is avoided.

[0014] 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 luminance register from the display screen and storing it; determining the second attribute value according to the first attribute value and a pre-configured configuration file, where the configuration file includes the first attribute value and the corresponding attribute correction value, and the second attribute value is the sum of the first attribute value and the attribute correction value.

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

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

[0017] In some embodiments, before configuring the target brightness register of the display screen to a 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 background image being displayed; 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.

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

[0019] In some embodiments, when the ambient light brightness value is greater than a first brightness threshold in the space where the electronic device is located, 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, 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, where the fifth brightness value is less than or equal to the first brightness value.

[0020] In a second aspect, an electronic device provided by an embodiment of the present application 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. 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 methods in the first aspect and its possible embodiments.

[0021] In a third aspect, a computer storage medium provided by an embodiment of the present application includes computer instructions. When the computer instructions run on an electronic device, the electronic device is caused to execute the methods in the first aspect, the second aspect, and their possible embodiments.

[0022] In a fourth aspect, a computer program product is provided by the present application. When the computer program product runs on the above-mentioned electronic device, the electronic device is caused to execute the methods in the first aspect and its possible embodiments.

[0023] In a fifth aspect, a chip system is provided by the present application. Applied to an electronic device, it stores a computer program. When the computer program is executed, the electronic device is caused to execute the methods in the first aspect and its possible embodiments.

[0024] Understandably, the electronic devices, computer storage media, and computer program products provided in the above aspects are all applied to the corresponding methods provided above. Therefore, the beneficial effects they can achieve can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here. Description of the Drawings

[0025] Figure 1 Schematic diagram of the hardware structure of the electronic device provided by an embodiment of the present application;

[0026] Figure 2 Schematic diagram of the software and hardware structure of the electronic device provided by an embodiment of the present application;

[0027] Figure 3A One of the flowcharts of a display screen control method provided by an embodiment of the present application;

[0028] Figure 3B An example diagram of the gamma curve corresponding to the display area a when different attribute values are configured for the FPS brightness register provided by an embodiment of the present application;

[0029] Figure 4 One of the example diagrams of the change in the display screen brightness in the unlocking scenario provided by an embodiment of the present application;

[0030] Figure 5 Two of the flowcharts of a display screen control method provided by an embodiment of the present application;

[0031] Figure 6 Two of the example diagrams of the change in the display screen brightness in the unlocking scenario provided by an embodiment of the present application;

[0032] Figure 7 Three of the flowcharts of a display screen control method provided by an embodiment of the present application;

[0033] Figure 8 Three of the example diagrams of the change in the display screen brightness in the unlocking scenario provided by an embodiment of the present application;

[0034] Figure 9 Four of the flowcharts of a display screen control method provided by an embodiment of the present application;

[0035] Figure 10 Five of the flowcharts of a display screen control method provided by an embodiment of the present application. Detailed Embodiments

[0036] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of this embodiment, unless otherwise specified, the meaning of "a plurality" is two or more.

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

[0038] Fingerprint unlocking means that, with the user's consent, the fingerprint information of the user is collected, and based on the collected fingerprint information, it is identified whether the user has the permission to unlock the electronic device. Exemplarily, common forms of fingerprint unlocking may include side fingerprint unlocking, rear fingerprint unlocking, front fingerprint unlocking, under-display fingerprint unlocking, etc.

[0039] Among them, during the under-display fingerprint unlocking process, the fingerprint acquisition module used is disposed under the display screen. The principle of the above fingerprint acquisition module for collecting fingerprint information is as follows: when a finger presses on the fingerprint acquisition module, a fingerprint image can be generated based on the light reflected by the finger to the fingerprint acquisition module, and the corresponding fingerprint information can be obtained.

[0040] During the above process of fingerprint information collection, it is necessary to rely on the backlight of the display screen. In other words, during the fingerprint collection process, a specific area of the display screen needs to be kept lit. The lit specific area can also be called a fingerprint spot.

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

[0042] Soft spot: After the entire display screen is lit, a fingerprint spot can be presented on the display screen by displaying a pre-configured mask, that is, a soft spot is formed. Among them, the above mask is a black layer, and the mask does not cover the display area corresponding to the fingerprint acquisition module on the display screen (the display area of the fingerprint spot). In this way, visually, only the display area corresponding to the fingerprint spot is lit.

[0043] Hard spot: Light up a part of the display area of the display screen, or increase the brightness of a part of the display area, so that a spot is presented on the display screen. For example, light up the display area corresponding to the fingerprint acquisition module, or increase the brightness of the display area corresponding to the fingerprint acquisition module. Visually, a fingerprint spot is presented on the display screen, that is, a hard spot is formed. The brightness of the fingerprint spot is higher than that of other display areas.

[0044] Whether it is a hard spot or a soft spot, the brighter the fingerprint spot, the higher the recognizability of the collected fingerprint information. In particular, when the electronic device is in a high-brightness environment, the above advantage is more obvious.

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

[0046] HBM mode: Increase the brightness of the entire display screen or a local area of the display screen, so that the brightness of the entire display screen or a local area of the display screen reaches the target brightness value. The above target brightness value can be pre-configured. Usually, the target brightness value is greater than the conventional maximum brightness value of the display screen (such as referred to as the first brightness value). The above conventional maximum brightness value can be the maximum brightness value that the display screen can reach in the non-HBM mode.

[0047] Exemplarily, when the electronic device enables soft spot assist to complete 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 the target brightness value (such as referred to as the second brightness value), so that the display screen enters the HBM mode.

[0048] Another example is that when the electronic device enables hard spot assist to complete fingerprint collection, the electronic device can instruct the display screen to increase the brightness of a local area. For example, it instructs 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.

[0049] After the display screen enters the HBM mode, the recognition rate of the collected fingerprint information can be effectively improved. Furthermore, the fingerprint unlocking success rate in a bright environment can be improved.

[0050] However, although some display screens have the ability to increase the brightness to the target brightness value, they do not support the HBM mode. For example, the brightness value that the display driver can send to the display screen is not greater than the conventional maximum brightness value, resulting in the display screen being 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 assist for fingerprint collection, in a high-brightness environment, a relatively high-brightness fingerprint spot cannot be formed, that is, there is a problem that the HBM mode cannot be enabled, which further leads to a decrease in the fingerprint unlocking success rate in a high-brightness environment.

[0051] To solve the above problems, an embodiment of the present application provides a display screen control method, which is applied to an electronic device that enables hard spots. Among them, the above electronic device can dynamically modify the value of a specific brightness register in the display screen. The above 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 the 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 the HBM mode can also enter the HBM mode.

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

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

[0054] Please refer to Figure 1 , Figure 1 which shows a schematic diagram of a possible hardware structure of the electronic device:

[0055] As Figure 1 shown, the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone 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.

[0056] Among them, the above-mentioned sensor module 180 may include sensors such as a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor (also referred to as a fingerprint acquisition module), a temperature sensor, a touch sensor, an ambient light sensor, and a bone conduction sensor.

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

[0058] 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), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

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

[0060] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0061] 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, etc.

[0062] It can be understood that the interface connection relationships among the modules illustrated in this embodiment are only illustrative descriptions and do not constitute a structural limitation on the electronic device 100. In some other embodiments, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

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

[0064] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In subsequent embodiments, the display screen 194 being an LCD is mainly taken as an example. Thus, it can be understood that in subsequent embodiments, the mentioned LCD can also be equivalently replaced with other types of display screens. Additionally, the above display screen 194 may include multiple registers, for example, a fingerprint reflection sensor (FPS) brightness register.

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

[0066] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light passes through the lens and is transmitted to the camera photosensitive element (image sensor). The optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0067] The camera 193 is used to capture static images or videos. An object generates an optical image through a lens and projects it onto a 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 optical signal into an electrical signal, and then transfers the electrical signal to the ISP to be converted 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 format such as RGB or YUV. In some embodiments, the electronic device 100 may include N cameras 193, where N is a positive integer greater than 1.

[0068] 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, etc.

[0069] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0070] The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously learn by itself. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, speech recognition, text understanding, etc.

[0071] Figure 2 is a block diagram of the software and hardware structure of the electronic device 100 provided in the embodiments 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 (referred to as the application layer for short), an application framework layer (framework), a hardware abstract layer (HAL) layer, a kernel layer, etc. Of course, the software layers divided in the electronic device may also include Figure 2 layers not shown in the figure, such as system libraries, Android TM Runtime, etc.

[0072] Exemplarily, the above application layer may include a series of applications.

[0073] As Figure 2 shown, the above application layer may include applications such as a memo, a browser, contacts, a camera, etc.

[0074] Exemplarily, the application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.

[0075] As Figure 2 shown, the above application framework layer may include a fingerprint framework and an INPUT manager, etc.

[0076] Among them, the fingerprint framework is used to provide the ability to process fingerprint services, for example, to perform fingerprint recognition. For another example, to determine whether it is necessary to enable the HMB mode.

[0077] The INPUT manager can also be referred to as INPUT, and can be used to translate, encapsulate, etc. the original input events collected by multiple types of hardware modules, obtain input events containing more information, and pass them to the applications or services that subscribe to the events reported by the hardware module. For example, the above multiple types of hardware modules may be a display screen, a fingerprint sensor (or referred to as a fingerprint acquisition module), an ambient light sensor, a button, etc. When the above hardware module is available, a corresponding device node can be created for the hardware module. When the hardware module detects a corresponding original input event, for example, the fingerprint sensor detects that the user touches the fingerprint sensor, the screen detects that the user clicks an operation, or the ambient light sensor detects ambient light, the button detects that the user clicks the button operation, etc., the original input event can be passed to the device node corresponding to the hardware module. The device node performs translation, encapsulation, etc. on the original input event. Finally, the encapsulated event obtained by the processing is passed to the applications, services, etc. that subscribe to the events from the hardware module. For example, in the embodiments of the present application, the fingerprint framework can subscribe to the events from the fingerprint sensor through INPUT.

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

[0079] Exemplarily, the kernel layer is located below the HAL and is a layer between the hardware and the software. In addition to the above-mentioned display driver and fingerprint sensor driver, the kernel layer may also include a camera driver, an audio driver, various sensor drivers, etc., and the embodiments of the present application do not impose any restrictions on this.

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

[0081] The implementation details of the method provided by the embodiments of the present application will be introduced below with reference to the accompanying drawings.

[0082] In some embodiments, when the electronic device is in a bright environment and in the locked screen state, as Figure 3A shown, the above-mentioned display screen control method may include the following steps:

[0083] S101, in response to the user touching the display area a of the display screen, determine whether to execute the process of starting the HBM mode.

[0084] In some embodiments, in response to the user touching the display area a of the display screen, the ambient light brightness value of the space where the device is located is obtained through the ambient light sensor. Exemplarily, the above-mentioned display area a may be the display area on the display screen located above the fingerprint collection module (fingerprint sensor) and overlapping with the sensing surface of the fingerprint sensor, and may also be referred to as the first area.

[0085] After obtaining the ambient light brightness value, a target backlight brightness value (first backlight brightness) matching the ambient light brightness value is determined. In some embodiments, the electronic device may pre-configure the corresponding relationship 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 found according to the current ambient light brightness value and the pre-configured corresponding relationship. When the target backlight brightness value is greater than the brightness threshold 1 (third brightness value) corresponding to the display screen, it is determined to execute the process of starting the HBM mode, and the process proceeds to S102.

[0086] Among them, the brightness threshold 1 is a value configured in the display screen, and the value of the brightness threshold 1 is close to the corresponding conventional maximum brightness value of the display screen. Exemplarily, the difference between the conventional maximum brightness value and the brightness threshold 1 can be less than the set threshold. For example, the conventional maximum brightness value is 3800nits, the set value is 50nits, and the corresponding brightness threshold 1 is 3750nits.

[0087] It can be understood that nit is a unit used to measure the brightness perceived by the user, or is called candela per square meter (cd / m2). In other embodiments, the above brightness can also be represented by a display brightness value (DBV). DBV is a gear concept describing the screen brightness in a screen display chip (display driver IC, DDIC), which can include 4096 gears (for example, 0-4095 levels). When the grayscale value of the pixel points in the image to be displayed is fixed, the larger the DBV, the brighter the screen. There can be a conversion between nit and DBV.

[0088] It can be understood that the conventional maximum brightness of different display screens can be different. In addition, the set value can also be different. Correspondingly, different display screens can correspond to different brightness thresholds 1.

[0089] In addition, during the period when the electronic device's screen is on, the backlight brightness of the display screen can be controlled in real time according to the ambient light brightness value of the space where it is located. As described in the foregoing embodiments, the corresponding relationship between the ambient light brightness value and the backlight brightness value is pre-configured in the electronic device. Based on the above corresponding relationship, the electronic device can control the backlight brightness of the display screen to change with the change of the ambient light brightness value.

[0090] For example, the electronic device can obtain the real-time ambient light brightness value through the ambient light sensor, and then combine the pre-configured corresponding relationship to find the corresponding backlight brightness value. After that, the electronic device can send the found backlight brightness value to the display screen to control the backlight brightness of the display screen.

[0091] In other embodiments, after the electronic device detects that the user touches the display area a of the display screen, it can also, in response to the user touching the display area a of the display screen, find the backlight brightness value that was last sent to the display screen. If the backlight brightness value that was last sent to the display screen is greater than the brightness threshold 1, it is determined to execute the process of starting the HBM mode, and the process enters S102.

[0092] In other embodiments, in response to the user touching the display area a of the display screen, the ambient light brightness value of the space where it is located is obtained through the ambient light sensor. When the ambient light brightness value is greater than the preset brightness threshold (the first brightness threshold), it is determined to execute the process of starting the HBM mode, that is, the process enters S102.

[0093] Among them, the above preset brightness threshold can be an empirical value, which can be the ambient light brightness value determined by testing that may affect fingerprint recognition.

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

[0095] In some embodiments, the above FPS brightness register (target brightness register) can be used to manage the brightness corresponding to the display area a. When different attribute values are configured in the FPS brightness register, the pixel units in the display area a correspond to different gamma curves, and the gamma curve can indicate the corresponding relationship between different gray scale values and different brightness levels. It can be understood that a pixel unit corresponds to three gray scale values, namely the gray scale value corresponding to the red channel, the gray scale value corresponding to the blue channel, and the gray scale value corresponding to the green channel. When the gamma curve corresponding to the pixel unit remains unchanged, the smaller the gray scale value of a channel in the pixel unit, the smaller the brightness of the organic light-emitting diode (OLED) corresponding to that channel, and the larger the gray scale value of a channel, the larger the brightness of the OLED corresponding to that channel. After increasing the three gray scale values corresponding to a pixel unit, the three OLED brightness levels corresponding to the pixel unit all increase, so that the actual brightness of the pixel unit can be increased.

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

[0097] Taking the example that after the FPS brightness register is modified from the attribute value 1 to other attribute values (for example, the attribute value 2, specifically refer to the subsequent embodiments), 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 reach a higher actual brightness at the same gray scale value.

[0098] Taking the example that after the FPS brightness register is modified from the attribute value 1 to other attribute values, the gamma curve corresponding to the display area a is curve 3, after the attribute value of the FPS brightness register is modified, the pixel units in the display area a reach a lower actual brightness at the same gray scale value.

[0099] Before and after the FPS brightness register is configured with an attribute value 1 to another attribute value, for pixel units in display area a under the same gray scale value, the actually achieved brightness values are different, which can be called that the brightness value of display area a is corrected. When the gray scale value corresponding to display area a remains unchanged, the difference between the actually achieved brightness values before and after the modification of the attribute value of the FPS brightness register can be called the first brightness increment. In addition, the register addresses of the FPS brightness register in different display screens can be different. For the implementation method of reading the attribute value of the FPS brightness register, refer to the implementation details of reading configuration parameters from the registers of the display screen in the related art, which will not be elaborated here for the time being.

[0100] S103. Determine an attribute value 2 according to the attribute value 1 and the pre-configured attribute configuration file.

[0101] In some embodiments, multiple attribute configuration files (pre-configured configuration files) for the display screen can be pre-configured in the electronic device. Different attribute configuration files correspond to different types of display screens. For example, different attribute configuration files can be associated with the type information of different types of display screens. The above attribute configuration file contains an attribute modification value (offset, or attribute correction value) for the FPS brightness register. The above offset can be used to modify the attribute value of the FPS brightness register. For example, on the basis of the attribute value 1, adding the offset to obtain the attribute value 2, which is called the second attribute value.

[0102] In some embodiments, according to the type information of the display screen, find the corresponding attribute configuration file 1. Query the offset1 corresponding to the FPS brightness register from the attribute configuration file 1. Superimpose the above attribute value 1 and offset1 to obtain the attribute value 2.

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

[0104] In some embodiments, the FPS node function can be called to instruct the FPS brightness register in the display screen to enter the editable state. In this way, the attribute value 2 can be written into the FPS brightness register. After writing the attribute value 2 into the FPS brightness register. Then, instruct the FPS brightness register to exit the editable state.

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

[0106] In this way, when the value of the FPS brightness register is the attribute value 1, the maximum brightness that the pixel units in the display area a can reach is the conventional maximum brightness. For example, when the pixel units in the display area a reach the maximum gray scale value, the actual brightness value is the conventional maximum brightness. After the value of the FPS brightness register is modified to the attribute value 2, the maximum brightness that the display area a can reach can exceed the conventional maximum brightness. For example, when the pixel units in the display area a reach the maximum gray scale value, the actual brightness value is the target brightness value.

[0107] Exemplarily, after S104, when the electronic device determines that the pixel units in the display area a need to reach the maximum gray scale value, the brightness of the display area a can actually break through the conventional maximum brightness limited by the specifications of the display screen and reach the target brightness value.

[0108] 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 3800 nit. That is, the conventional maximum brightness value is 3800 nit. When the FPS brightness register is the attribute value 1, the display driver sends the brightness configuration information for the display area a to the display screen, and the brightness configuration information carries 3800 nit. Correspondingly, the display screen can control the brightness of the display area a to reach 3800 nit. When the FPS brightness register is the attribute value 2, the display driver sends the brightness configuration information for the display area a to the display screen, and the brightness configuration information carries 3800 nit. Correspondingly, the display screen can control the brightness value of the display area a to reach 3900 nit. It can be understood that after the value of the FPS brightness register is updated from the attribute value 1 to the attribute value 2, when receiving the brightness configuration information from the display driver (indicating that the brightness is adjusted to 3800 nit), it is determined to adjust the gray scale value of the pixel units in the display area a to the maximum gray scale value. At the maximum gray scale value, compared with when the value of the FPS brightness register is the attribute value 1, the brightness of the display area a can be increased by 100 nit. That is, the actual brightness is corrected by 100 nit. That is, the first brightness increment is 100 nits.

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

[0110] Exemplary scenarios, such as Figure 4As shown, the electronic device displays a lock screen interface 401. It can be understood that the electronic device is in an unlocked state during the display of the lock screen interface 401. After the user places a finger on the display area a (e.g., the area 402 in Figure 4 ), the brightness of the display area a (e.g., the area 402) is the brightness value A, and the brightness of other areas is the brightness value B, where the brightness value A is greater than the brightness value B. Here, the other areas can be the display areas on the display screen except the area 402, e.g., the area 403 in Figure 4 .

[0111] In the above exemplary scenario, if the ambient light brightness value in the space where the electronic device is located can trigger the backlight brightness of the display screen to be adjusted to the conventional maximum brightness value, after the user places a finger on the area 402, as shown in Figure 4 , the electronic device can write the attribute value 2 to the display screen. 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 screen of the electronic device can successfully enter the HBM mode. Thus, as shown in Figure 4 , before and after entering the HBM mode, the value of the FPS brightness register in the display screen changes from the attribute value 1 to the attribute value 2.

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

[0113] In other embodiments, the above method can also be applicable to the scenario where the electronic device is not in a high-brightness environment and the brightness of the display screen has reached or is close to the conventional maximum brightness. For specific reference, please refer to the foregoing embodiments and will not be elaborated here.

[0114] In some embodiments, after the display screen enters the HBM mode, the fingerprint acquisition module can acquire fingerprint information, e.g., acquire the first fingerprint information. During this period, the recognition rate of the acquired fingerprint information is higher. After the fingerprint acquisition module acquires fingerprint information with a high recognition rate, it can also exit the HBM mode. The process of exiting the HBM mode can be referred to in Figure 5 .

[0115] S201, determine that the HBM mode can be exited.

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

[0117] Exemplarily, after a specified duration of entering the HBM mode, it can be determined that fingerprint information has been collected, and it is determined that the display screen needs to exit the HBM mode, and the process enters Figure 5 S202 as shown. Among them, the above-mentioned specified duration can be the maximum duration required for the fingerprint acquisition module to acquire fingerprint information obtained through testing.

[0118] Also exemplarily, after entering the HBM mode, when fingerprint information is collected and a fingerprint recognition result (such as, fingerprint unlocking is successful or fingerprint unlocking fails) is obtained, it can be determined that fingerprint information has been collected, and it is determined that the display screen needs to exit the HBM mode, and the process enters Figure 5 S202 as shown.

[0119] Once again exemplarily, 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.

[0120] Once again exemplarily, after entering the HBM mode, when it is detected that the user instructs the screen to turn off, it can also be determined to exit the HBM mode.

[0121] S202, configure the value of the FPS brightness register in the display screen to attribute value 1.

[0122] In some embodiments, the FPS node function can be called to instruct the FPS brightness register in the display screen to enter an editable state. In this way, attribute value 1 can be written into the FPS brightness register. After writing attribute value 1 into the FPS brightness register. Then, instruct the FPS brightness register to exit the editable state.

[0123] An exemplary scenario, taking the result of fingerprint unlocking as successful unlocking as an example, such as Figure 6 As shown, after the user places the finger on area 402, the brightness of area 402 is brightness value A, 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 screen enters the HBM mode, and the fingerprint acquisition module can also acquire fingerprint information. After the fingerprint information acquisition is completed, the electronic device can write attribute value 1 into the FPS brightness register of the display screen.

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

[0125] Such as Figure 6As shown, after successful unlocking based on the collected fingerprint information, the electronic device displays the user interface 601. After entering the HBM mode, the value of the FPS brightness register is the attribute value 2. After displaying the user interface 601, the value of the FPS brightness register is the attribute value 1. That is, before displaying the user interface 601, the electronic device can execute the operation of changing the value of the FPS brightness register from the attribute value 2 to the attribute value 1. In this way, during the display of the user interface 601, the brightness of the area 402 and the area 403 of the display screen will not exceed the conventional maximum brightness value.

[0126] In some embodiments, as Figure 7 shown, the above method may also include the following steps:

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

[0128] In some embodiments, the process of determining whether to execute the start of the HBM mode can refer to S101, which will not be elaborated here. Among them, the backlight brightness can represent the brightness situation of the entire display screen, and the above real-time backlight brightness value is the quantization 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, and the reading process can refer to the related technology, which will not be elaborated here.

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

[0130] Exemplarily again, after determining that the HBM mode needs to be started, the electronic device reads the real-time backlight brightness value 1 from the display screen after an interval duration 1. In short, the method of obtaining the real-time backlight brightness value 1 is not specifically limited.

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

[0132] In some embodiments, the implementation details of S302 can refer to S102. There is no necessary sequence between the above S301 and S302, which is not specifically limited here.

[0133] S303, in the case where the real-time backlight brightness value 1 is greater than the brightness threshold 1, determine the attribute value 2 according to the attribute value 1 and the pre-configured attribute profile.

[0134] 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 (the first real-time backlight brightness) is not greater than the brightness threshold 1 (the third brightness value) and the real-time backlight brightness value 1 is gradually increasing, it waits for the next cycle 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.

[0135] In some other embodiments, after the interval duration 1, if the obtained real-time backlight brightness value 1 is not greater than the brightness threshold 1, the process ends.

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

[0137] In some embodiments, in the above S303 and S304, the implementation details of calculating the attribute value 2 and writing the attribute value 2 into the FPS brightness register can refer to S103 and S104, which will not be elaborated here for the time being.

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

[0139] Exemplary scenario: The display driver sends a target backlight brightness value to the display screen, and this target backlight brightness value is greater than the brightness threshold 1. Based on this target backlight brightness value, the electronic device can determine that the process of starting the HBM mode needs to be executed. 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 presses the power button, and the backlight brightness of the display screen drops rapidly. In this scenario, according to the method shown in the above S301 - S304, 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, so as to avoid abnormal high brightness in area 402.

[0140] An exemplary scenario shows that the display driver sends a target backlight brightness value to the display screen, and this target backlight brightness value is greater than brightness threshold 1. Based on this target backlight brightness value, the electronic device can determine that the process of starting the HBM mode needs to be executed. 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 display area a, and 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 the low-brightness mode, that is, the display screen will reduce the brightness. In this scenario, according to the method shown in S301 - S304 above, the detected real-time backlight brightness value 1 also cannot reach brightness threshold 1. In response to the fact that the real-time backlight brightness value 1 cannot reach brightness threshold 1, the value of the FPS brightness register is not changed.

[0141] Another exemplary scenario is as Figure 8 shown. When the electronic device is in the screen-off state and detects that the user authorizes fingerprint unlocking, it can display the screen-off unlocking interface 801. When the screen-off unlocking interface 801 is displayed, since most of the pixel points in area 403 of the display screen are not lit, the corresponding backlight brightness is relatively low. In this scenario, even if the HBM mode is not enabled, high-recognition-rate fingerprint information 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, and obvious fingerprint light spots can also be formed, improving the recognition rate of fingerprint information collection. According to the method shown in S301 - S304 above, the detected real-time backlight brightness value 1 also cannot reach brightness threshold 1. In response to the fact that the real-time backlight brightness value 1 cannot reach brightness threshold 1, the value of the FPS brightness register is not changed.

[0142] In Figure 8 the scenario shown, during the period from when the user's finger touches area 402 to when the fingerprint information is collected, the real-time backlight brightness value of the display screen will not be higher than brightness threshold 1. According to the method provided in S301 - S304 above, the electronic device does not change the value of the FPS brightness register, that is, the FPS brightness register has the attribute value 1. Without affecting the quality of fingerprint information collection, unnecessary enabling of the HBM mode is avoided.

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

[0144] 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.

[0145] Understandably, 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 unlocking is successful or failed, according to the business logic of unlocking, the display driver will instruct the display screen to enter the low-brightness display mode, that is, the backlight brightness of the display screen will be lowered.

[0146] S306. When the real-time backlight brightness value 2 is not greater than the brightness threshold 1, configure the value of the FPS brightness register in the display screen to the attribute value 1.

[0147] In some embodiments, after configuring the value of the FPS brightness register in the display screen 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 conventional maximum brightness value, avoiding abnormal brightness display of the display screen.

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

[0149] In some embodiments, as Figure 9 shown, the above method may further include the following steps:

[0150] S401. After determining to execute the process of starting the HBM mode, obtain the real-time backlight brightness value 3 of the display screen and read the gray scale value 1 of the background image being displayed.

[0151] In some embodiments, the process of determining whether to execute the HBM mode can refer to S101, which will not be elaborated here. If it is determined that the HBM mode needs to be started, the electronic device can also read from the real-time backlight brightness value 3 of the display screen and the real-time gray scale value of the background image displayed in the display area a. The reading method can refer to the related technology and will not be elaborated here.

[0152] Understandably, the above gray scale value 1 (the first gray scale value) can be the average gray scale of the background image being displayed in the display area a or the maximum gray scale value. The embodiments of the present application do not make specific limitations on this. In addition, different preset gray scale thresholds can be configured for the average gray scale and the maximum gray scale. The above preset gray scale thresholds are used to evaluate whether the current state of the display screen still needs to enter the HBM mode. For specific details, refer to the subsequent embodiments and will not be elaborated here.

[0153] S402. Read the attribute value 1 of the FPS brightness register in the display screen.

[0154] In some embodiments, the implementation details of S402 can refer to S102. There is no necessary sequence between S401 and S402 above, and no specific limitation is made here.

[0155] 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, according to the attribute value 1, determine the attribute value 2 according to the pre-configured attribute configuration file.

[0156] Among them, when the pixel unit of the display area a reaches the maximum grayscale value, the brightness of the display area a can reach the maximum brightness value that can be achieved currently (for example, before the value of the FPS brightness register is modified, the maximum brightness that can be achieved currently is the conventional maximum brightness). The above preset grayscale value is not greater than the maximum grayscale value. For example, the preset grayscale threshold can be 0X1FF.

[0157] In addition, when 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, wait for the next cycle to obtain a new real-time backlight brightness value 3, and determine whether the new real-time backlight value 3 is greater than the brightness threshold 1. When 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, end the process.

[0158] Or, when the grayscale value 1 is not greater than the preset grayscale threshold, end the process.

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

[0160] In some embodiments, in S403 and S404 above, the implementation details of calculating the attribute value 2 and writing the attribute value 2 into the FPS brightness register can refer to S103 and S104, and will not be elaborated here for the time being.

[0161] It can be understood that in the Figure 7 and Figure 9 shown methods, before actually modifying the FPS brightness register, based on the real-time backlight brightness value and / or the grayscale value of the background image, it is judged 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.

[0162] In other embodiments, it is also possible to determine whether the current state of the display screen meets the scenario conditions for entering the HBM mode in other ways. For example, before calculating the attribute value 2, if pre-configured interruption conditions such as detecting that the user presses the power button, detecting that a finger leaves the display area a, or detecting a sudden drop in the brightness of the space environment where the electronic device is located are detected, it is determined that the scenario conditions for entering the HBM mode are not met. If the above pre-configured interruption conditions are not detected, it is determined that the scenario conditions for entering the 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 the HBM mode are not met.

[0163] In this way, when the current state of the display screen meets the scenario 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.

[0164] 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 gray-scale value 2 of the displayed background image.

[0165] It can be understood that after the fingerprint unlocking is completed, for example, after unlocking is successful or unlocking fails, according to the unlocking service logic, the display driver will instruct the display screen to enter the low-brightness display mode, that is, the backlight brightness of the display screen will be reduced, and the gray-scale value of the background image will also decrease. The above gray-scale value 2 can be called the second gray-scale value, and can be the gray-scale value of the background image displayed in the display area a.

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

[0167] As an implementation method, Figure 10 shows that Figure 9 During the process of executing the method shown, the signaling interaction between various software and hardware modules in the electronic device is as follows:

[0168] A1, the fingerprint acquisition module sends notification 1 to the input manager, indicating that a finger touch on the display area a is sensed.

[0169] In some embodiments, when the fingerprint acquisition module senses a finger touch on the display area a, the fingerprint acquisition module can report this event to the input manager, for example, send notification 1 to the input manager. When the fingerprint framework subscribes to messages from the fingerprint acquisition module through the input manager, the process can enter A2.

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

[0171] A3, the fingerprint frame instructs the display driver to control the display screen to display a fingerprint light spot.

[0172] In some embodiments, the fingerprint frame can call the function interface 1 provided by the display driver, and this function interface 1 can trigger the process of forming a fingerprint light spot. For example, after calling the function interface 1, the display screen can be controlled to adjust the brightness of the display area a and other areas (i.e., the areas outside the display area a), so that the brightness of the display area a and other areas has a linear relationship, and the brightness of the display area a is higher than that of other areas. In this way, a fingerprint light spot can be formed at the display area a of the display screen. Of course, in the embodiments of the present application, the details between the fingerprint frame calling the function interface 1 provided by the display driver and the display screen actually forming a fingerprint light spot can be referred to the subsequent steps and will not be elaborated here.

[0173] A4, the display driver determines that the display screen needs to enable the HBM mode and generates a fingerprint light spot.

[0174] In some embodiments, the above A4 can refer to S101. For example, the display driver can obtain the ambient light brightness value of the space where it is located through the ambient light sensor. Determine the target backlight brightness value that matches the ambient light brightness value. When the target backlight brightness value is greater than the brightness threshold 1 corresponding to the display screen, it is determined that a fingerprint light spot needs to be generated in the HBM mode. Other examples will not be elaborated here.

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

[0176] A6, the display driver reads the attribute value 1 of the FPS brightness register in the display screen from the display screen.

[0177] In some embodiments, the above A5 and A6 can refer to S401 and S402 and will not be elaborated here.

[0178] A7, the display driver calls a preset algorithm, combines the real-time backlight brightness value 3 and the gray scale value 1, and determines that the display screen currently meets the condition for entering the HBM.

[0179] In some cases, the above-mentioned preset algorithm can determine whether the display screen currently meets the conditions for entering HBM according to the real-time backlight brightness value and the gray scale value. Exemplarily, the above-mentioned preset algorithm can compare the real-time backlight brightness value with a brightness threshold 1, compare the gray scale value with a preset gray scale threshold, and then, based on 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 gray scale value 1 is greater than the preset gray scale threshold, it is determined whether the display screen currently meets the conditions for entering HBM. In some other embodiments, the above-mentioned preset algorithm can also determine whether the display screen currently meets the conditions for entering HBM according to the detected user behavior, the detected environmental changes, and / or the display state of the display screen before unlocking.

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

[0181] A8, the display driver determines an attribute value 2 according to the attribute value 1 in accordance with a pre-configured attribute configuration file.

[0182] A9, the display driver writes the attribute value 2 into the FPS brightness register in the display screen.

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

[0184] Among them, the above-mentioned configuration completion notification 1 indicates that the value of the FPS brightness register in the display screen has been configured as the attribute value 2.

[0185] A11, the display driver instructs the display screen to display a highlighted fingerprint light spot.

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

[0187] 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 (the first brightness configuration information) for the display area a to the display screen, and the brightness configuration information a can indicate that the display area a is adjusted to the conventional maximum brightness value.

[0188] After the FPS brightness register is configured with the attribute value 2, in response to the brightness configuration information a, the display screen determines that the gray scale value of the pixel units in the display area a needs to be adjusted to the maximum gray scale value. That is, the target gray scale value determined by the display screen is the maximum gray scale value. Then, in combination with Figure 3B the curve 2 shown (the gamma curve corresponding to the case where the FPS brightness register has the attribute value 2) and the determined target gray scale value, the brightness of the display area a can be adjusted to the target brightness value (e.g., the conventional maximum brightness value + 100nits). Obviously, in the above process, it can also be said that the display screen corrects the brightness of the display area a.

[0189] In addition, the display driver can also send the brightness configuration information b for other areas to the display screen. The brightness configuration information b can indicate that other areas are adjusted to the conventional maximum brightness value. In response to the brightness configuration information b, the display screen determines that the gray scale value of the pixel units in other display areas needs to be adjusted to the maximum gray scale value. That is, the target gray scale value determined by the display screen is the maximum gray scale value. Then, in combination with the gamma curve and the target gray scale value of other areas, the brightness of other areas is adjusted to the conventional maximum brightness value.

[0190] Exemplarily, when the target backlight brightness value is less than the conventional maximum brightness value, the display driver sends the brightness configuration information a for the display area a to the display screen. In response to the brightness configuration information a, the display screen can adjust the brightness of the display area a to the target brightness value (e.g., the conventional maximum brightness value + 100nits). The display driver can send the brightness configuration information c for other areas to the display screen. The brightness configuration information c can include the target backlight brightness value and indicate that 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 other areas to the target backlight brightness value.

[0191] A12, the display screen enters the HBM mode.

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

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

[0194] A14, the display driver sends the notification 2 to the fingerprint frame.

[0195] A15, the fingerprint frame sends the notification 2 to the fingerprint acquisition module.

[0196] A16, in response to the notification 2, the fingerprint acquisition module starts to collect fingerprint information.

[0197] A17, the fingerprint acquisition module sends the collected fingerprint information to the fingerprint frame.

[0198] A18. The fingerprint frame performs fingerprint recognition based on fingerprint information.

[0199] The processes of the above fingerprint information collection and fingerprint recognition can refer to related technologies and will not be elaborated here for the time being.

[0200] A19. The fingerprint frame sends a notification 3 to the display driver, indicating that fingerprint recognition has been completed.

[0201] A20. The display driver instructs the display screen to enter the low-brightness mode.

[0202] A21. The display screen reduces the background light brightness value.

[0203] Exemplarily, the display driver can make the display screen enter the low-brightness mode by reducing the backlight brightness of the display screen. During the process of reducing the backlight brightness of the display screen, the brightness of both the display area a and other areas will decrease.

[0204] 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.

[0205] A23. The display driver uses a preset algorithm to combine the real-time backlight brightness value 4 and the grayscale value 2 to determine that the HBM mode can be exited.

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

[0207] A24. The display driver writes the attribute value 1 to the FPS brightness register of the display screen.

[0208] After writing the attribute value 1 to the FPS brightness register of the display screen, the display screen no longer corrects the brightness of the display area a. For example, after writing the attribute value 1 to the FPS brightness register of the display screen, the display driver sends a brightness configuration file d (the second brightness configuration information) for the display area a to the display screen. The brightness value 3000nits (the fourth brightness value) is carried in the brightness configuration file d. The display screen responds to the brightness configuration file d, determines the target grayscale value corresponding to the display area a, and then, in combination with Figure 3B the curve 1 shown and the determined target grayscale value, the brightness of the display area a can be actually configured to 3000nits.

[0209] Through the above method, even for a defective display screen, when performing under-screen fingerprint unlocking in a high-brightness environment, it is possible to successfully enter the HBM mode, improving the success rate of under-screen fingerprint unlocking. In other embodiments, the above method can also be used only for defective display screens. 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 the HBM mode in the existing manner.

[0210] 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 a user operation, the backlight brightness value of the display screen has been adjusted to the maximum. Another example is that in response to detecting that the ambient light is too bright, the backlight brightness value of the display screen has been adjusted to the maximum. 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. Subsequently, 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, with the corresponding grayscale value remaining unchanged, the brightness of the first area is corrected from the first brightness value to the second brightness value. The brightness of the second area remains the first brightness value unchanged.

[0211] It can be understood that even when the first area reaches the first brightness value, which is the ideal brightness for fingerprint collection, however, since the brightness of the second area around the first area is also the first brightness value, it will actually affect fingerprint operations. In this case, it is also necessary to increase the brightness difference between the first area and the second area. In this scenario, before modifying the attribute value of the target brightness register, some display screens, due to their own specifications, cannot increase the brightness of the first area to a second brightness value greater than the first brightness value, which often leads to fingerprint unlocking failures. In the above exemplary scenario, the electronic device can modify the attribute value of the target brightness register to make the brightness of the first area break through the first brightness value and reach the second brightness value while the grayscale value corresponding to the first area remains unchanged, completing the brightness correction for the first area. In this way, obvious light spots can be presented on the display screen, improving the success rate of fingerprint unlocking.

[0212] 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, the fingerprint acquisition module, the memory, and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can execute each step 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.

[0213] An embodiment of the present application further provides a chip system, which can be applied to the electronic device in the foregoing embodiment. The chip system includes at least one processor and at least one interface circuit. The processor may be the processor in the above electronic device. The processor and the interface circuit can be interconnected through a line. The processor can receive and execute computer instructions from the memory of the above electronic device through the interface circuit. When the computer instructions are executed by the processor, the electronic device can execute each step performed by the mobile phone in the above embodiment. Of course, the chip system may further include other discrete devices, and the embodiments of the present application do not make specific limitations thereon.

[0214] 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 function modules is used as an example. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. The specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0215] In each embodiment of the embodiments of the present application, the functional units can be integrated in one processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0216] When 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 embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments 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 disc.

[0217] As described above, the above is only the specific implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope 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 disposed under the display screen, and the method includes: displaying a lock screen interface; when the brightness of the first area and the second area of the display screen is the first brightness value, detecting 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 the display area of the display screen except the first area, and the first brightness value is the maximum brightness value corresponding to the pre-configured 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. 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 touches 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: acquiring an ambient light brightness value; determining that the ambient light brightness value is greater than a first brightness threshold, or determining that the 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 the difference between the third brightness value and the first brightness threshold is less than a preset value; different corresponding relationships between ambient light brightness and backlight brightness are configured in the electronic device; acquiring the first real-time backlight brightness of the display screen; determining 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 touches 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: acquiring an ambient light brightness value; determining that the ambient light brightness value is greater than a first brightness threshold, or determining that the 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 the difference between the third brightness value and the first brightness threshold is less than a preset value; different corresponding relationships between ambient light brightness and backlight brightness are configured in the electronic device; acquiring the first real-time backlight brightness of the display screen and the first gray scale value of the displayed background image; determining that the first real-time backlight brightness is greater than the third brightness value, and the first gray scale value is greater than a preset gray scale threshold.

4. The method according to any one of claims 1-3, characterized in that, the method further includes: collecting first fingerprint information during the period when the brightness of the first area is the second brightness value; after collecting the first fingerprint information, configuring the target brightness register of the display screen to be restored from the second attribute value to the first attribute value; After the target brightness register is configured with the first attribute value, the display screen stops correcting the brightness of the first area.

5. The method according to any one of claims 1-4, wherein, before the target register of the display screen is configured with 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 according to the first attribute value and a pre-configured configuration file, the configuration file includes the first attribute value and the 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-5, wherein, 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; at the second attribute value of the target brightness register, in response to the first brightness configuration information, raising the brightness of the first area 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, wherein, 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, 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; at the first attribute value of the target brightness register, in response to the second brightness configuration information, adjusting the brightness of the first area to the fourth brightness value.

8. The method according to claim 4, wherein, before the target brightness register of the display screen is configured with the first attribute value, the method further includes: instructing the display screen to reduce the backlight brightness; acquiring the second real-time backlight brightness of the display screen and / or the second gray scale 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 gray scale value is less than or equal to the preset gray scale threshold.

9. The method according to claim 1, wherein, when the ambient light brightness value in the space where the electronic device is located is greater than the first brightness threshold, the method further includes: responding to a user operation, controlling the display screen to turn off the screen; responding 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.

10. An electronic device, wherein, 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. The memory is used to store computer instructions. When the processor executes the computer instructions, the electronic device is caused to execute the method according to 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 run on a computer, the computer is caused to execute the method according to any one of claims 1-9.

Citation Information

Cited By

  • Display screen control method and electronic device

    EP4765085A1

  • Display screen control method and electronic device

    WO2025103282A1