WO2025103282A1 - 一种显示屏控制方法及电子设备 - Google Patents
一种显示屏控制方法及电子设备 Download PDFInfo
- Publication number
- WO2025103282A1 WO2025103282A1 PCT/CN2024/131379 CN2024131379W WO2025103282A1 WO 2025103282 A1 WO2025103282 A1 WO 2025103282A1 CN 2024131379 W CN2024131379 W CN 2024131379W WO 2025103282 A1 WO2025103282 A1 WO 2025103282A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- brightness
- value
- display screen
- area
- brightness value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/042—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
Definitions
- the embodiments of the present application relate to the field of display technology, and more particularly to a display screen control method and an electronic device.
- HBM mode the brightness of the fingerprint collection area on the display is the target brightness value, which is higher than the normal maximum brightness of the display, so that the brightness of the fingerprint collection area on the display is higher than that of other areas, forming an obvious fingerprint spot.
- the embodiments of the present application provide a display screen control method and an electronic device for improving the success rate of under-screen fingerprint unlocking in special scenarios.
- an embodiment of the present application provides a display screen control method, which is applied to an electronic device, wherein the electronic device includes a display screen and a fingerprint sensor, and the fingerprint sensor is configured under the display screen.
- the method includes: displaying a lock screen interface; detecting that a user touches the first area of the display screen when the brightness of the first area and the second area of the display screen is a first brightness value, and the first area of the display screen overlaps with the sensing surface of the fingerprint sensor; the second area is a display area of the display screen other than the first area, and the first brightness value is a pre-configured maximum brightness value corresponding to the display screen; configuring the target brightness register of the display screen from a first attribute value to a second attribute value; the target brightness register corresponds to the first area, and is used to control the brightness of the first area, and after the target brightness register is configured to the second attribute value, the brightness of the first area is corrected from the first brightness value to the second brightness value, and the second brightness value is greater than the first brightness value.
- the grayscale 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 grayscale value. In this way, the first area forms a distinct light spot compared to the second area, achieving the effect corresponding to the HBM mode and improving the success rate of fingerprint unlocking.
- the method further includes: obtaining the ambient light brightness value; determining the ambient light brightness value; The ambient light brightness value is greater than the first brightness threshold, or it is determined 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; the electronic device is configured with a correspondence between different ambient light brightnesses and backlight brightnesses; the first real-time backlight brightness of the display screen is obtained; and it is determined that the first real-time backlight brightness is greater than the third brightness value.
- the real-time backlight brightness can be used to monitor whether the user is midway and stop fingerprint unlocking, so as to avoid modifying the target brightness register in a scenario where fingerprint unlocking is not required, resulting in abnormal brightness display in the first area.
- the method further includes: obtaining an ambient light brightness value; determining that the ambient light brightness value is greater than a first brightness threshold, or determining that a first backlight brightness corresponding to the ambient light brightness value is greater than a third brightness value; wherein the third brightness value is less than the first brightness value, and a difference between the third brightness value and the first brightness threshold is less than a preset value; the electronic device is configured with a correspondence between different ambient light brightnesses and backlight brightnesses; obtaining a first real-time backlight brightness of the display screen and a first grayscale value of a displayed background image; determining that the first real-time backlight brightness is greater than the third brightness value, and that the first grayscale value is greater than a preset grayscale threshold.
- the HBM mode is avoided from being mistakenly enabled after there is no need to enter the HBM mode.
- the method further includes: collecting first fingerprint information while the brightness of the first area is the second brightness value; after collecting the first fingerprint information, restoring the target brightness register configuration of the display screen from the second attribute value to the first attribute value; after the target brightness register is configured to the first attribute value, the display screen stops correcting the brightness of the first area.
- the attribute value of the target brightness register is restored to avoid abnormal brightness display of the first area.
- the method before configuring the target register of the display screen to the second attribute value, the method also includes: reading the first attribute value of the target brightness register from the display screen and storing it; determining the second attribute value based on the first attribute value and a preconfigured configuration file, the configuration file including the first attribute value and the corresponding attribute correction value, the second attribute value being the sum of the first attribute value and the attribute correction value.
- the electronic device also includes a display driver, and the brightness of the first area is corrected from the first brightness value to the second brightness value, including: the display screen receives first brightness configuration information from the display driver; the first brightness configuration information carries a first brightness value for the first area; when the target brightness register has a second attribute value, in response to the first brightness configuration information, the brightness of the first area is increased to the second brightness value, the second brightness value is the sum of the first brightness value and a first brightness increment, and the first brightness increment is related to the attribute correction value between the second attribute value and the first attribute value.
- the electronic device further includes a display driver, 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; when the first attribute value of the target brightness register is reached, in response to the second brightness configuration information, the brightness of the first area is adjusted to the fourth brightness value.
- the method before configuring the target brightness register of the display screen to the first attribute value, the method also includes: instructing the display screen to reduce the backlight brightness; obtaining a second real-time backlight brightness of the display screen and/or a second grayscale value of the displayed background image; determining that the second real-time backlight brightness is less than or equal to the third brightness value; or, determining that the second grayscale value is less than or equal to the preset grayscale threshold.
- the scene of exiting the HBM mode can be accurately identified through the real-time backlight brightness and/or the real-time grayscale value, thereby avoiding affecting the normal use of the electronic device by the user.
- the method when the ambient light brightness value in the space where the electronic device is located is greater than a first brightness threshold, the method further includes: in response to user operation, controlling the display screen to turn off the screen; in response to the user touching the first area, displaying a screen-off unlocking interface, during which 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.
- an embodiment of the present application provides an electronic device, which includes a display screen, a fingerprint sensor, one or more processors and a memory, wherein the fingerprint sensor is used to collect fingerprint information, the display screen is used to adjust the backlight brightness to assist the fingerprint sensor in fingerprint collection, the memory is used to store computer instructions, and the display screen is used to push information to the user.
- the one or more processors execute the computer instructions, the one or more processors are used to execute the method in the first aspect and its possible embodiments.
- an embodiment of the present application provides a computer storage medium, comprising computer instructions.
- the computer instructions When the computer instructions are executed on an electronic device, the electronic device executes the methods in the above-mentioned first aspect, second aspect and possible embodiments thereof.
- the present application provides a computer program product.
- the computer program product When the computer program product is run on the above-mentioned electronic device, the electronic device executes the method in the above-mentioned first aspect and possible embodiments thereof.
- the present application provides a chip system, which is applied to an electronic device and stores a computer program.
- the computer program When the computer program is executed, the electronic device executes the method in the above-mentioned first aspect and its possible embodiments.
- FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
- FIG2 is a schematic diagram of the software and hardware structure of an electronic device provided in an embodiment of the present application.
- FIG3A is a flowchart of a display screen control method according to an embodiment of the present application.
- FIG3B is an example diagram of a gamma curve corresponding to a display area a when the FPS brightness register is configured with different attribute values according to an embodiment of the present application;
- FIG. 4 is one of the example diagrams of display screen brightness change in an unlocking scenario provided by an embodiment of the present application
- FIG5 is a second flowchart of a display screen control method provided in an embodiment of the present application.
- FIG6 is a second example diagram of display screen brightness change in an unlocking scenario provided by an embodiment of the present application.
- FIG7 is a third flowchart of a display screen control method provided in an embodiment of the present application.
- FIG8 is a third example diagram of display screen brightness change in an unlocking scenario provided in an embodiment of the present application.
- FIG9 is a fourth flowchart of a display screen control method provided in an embodiment of the present application.
- Fingerprint unlocking indicates that the user's fingerprint information is collected under the user's authorization, and the collected fingerprint information is used to identify whether the user has the authority to unlock the electronic device.
- common forms of fingerprint unlocking may include side fingerprint unlocking, rear fingerprint unlocking, front fingerprint unlocking, and under-screen fingerprint unlocking.
- the backlight of the display screen is needed.
- a specific area of the display screen needs to be kept lit.
- the lit specific area can also be called a fingerprint spot.
- the fingerprint light spots can be divided into two types: hard light spots and soft light spots.
- Soft light spot After lighting up the entire display screen, you can display a pre-configured mask to make the fingerprint light spot appear on the display screen, that is, to form a soft light spot.
- the mask is a black layer, which does not cover the display area corresponding to the fingerprint collection module in the display screen (the display area of the fingerprint light spot). In this way, visually, only the display area corresponding to the fingerprint light spot is lit.
- the above advantages are more obvious when the electronic device is in a high-light environment.
- the electronic device after the electronic device detects that the ambient light brightness value of the space in which it is located is greater than a preset brightness value, it instructs the display screen to enter a high-brightness display mode (HBM).
- HBM high-brightness display mode
- HBM mode improves the brightness of the entire display screen or a local area, so that the brightness of the entire display screen or a local area reaches the target brightness value, which can be pre-configured, and is usually greater than the conventional maximum brightness value of the display screen (such as the first brightness value).
- the conventional maximum brightness value can be the maximum brightness value that the display screen can reach in non-HBM mode.
- the electronic device can instruct the display screen to increase the backlight brightness of the entire screen to a target brightness value (such as The second brightness value) is set to enable the display screen to enter HBM mode.
- a target brightness value such as The second brightness value
- the recognition rate of the collected fingerprint information can be effectively improved, thereby improving the success rate of fingerprint unlocking in bright light environments.
- the brightness value that the display driver can send to the display is no greater than the conventional maximum brightness value, causing the display to be unable to increase the brightness of the fingerprint spot to the target brightness value. It can be seen that if the electronic device enables hard spots to assist in fingerprint collection, a relatively bright fingerprint spot cannot be formed in a high-brightness environment, that is, the HBM mode cannot be enabled when traveling, which leads to a lower success rate of fingerprint unlocking in a high-brightness environment.
- the brightness of the light spot area can be limited to below the normal maximum brightness value by modifying the specific brightness register.
- the light spot area corresponds to the configuration position of the fingerprint collection module under the screen.
- 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, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), a media player, and other devices with a display screen.
- a portable computer such as a mobile phone
- UMPC ultra-mobile personal computer
- netbook a netbook
- PDA personal digital assistant
- media player and other devices with a display screen.
- the embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.
- FIG1 shows a possible hardware structure diagram of an electronic device:
- the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
- SIM subscriber identification module
- the structure shown in this embodiment does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently.
- the components shown in the figure may be hardware, software, or both. Combination of parts.
- 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 processor (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.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- controller a memory
- video codec a digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the interface connection relationship between the modules shown in this embodiment is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
- the GPU is a microprocessor for image processing, which connects 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 that execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, etc.
- the display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc.
- the display screen 194 is mainly taken as an example of LCD. In this way, it can be understood that in the subsequent embodiments, the LCD mentioned can also be replaced by other types of display screens.
- the above-mentioned display screen 194 can include multiple registers, such as a fingerprint reflection sensor (FPS) brightness register.
- FPS fingerprint reflection sensor
- the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
- the ISP is used to process data fed back by the camera 193. For example, when taking a photo, the shutter is opened and light passes through the lens. The light signal is transmitted to the camera photosensitive element (image sensor), and the light signal is converted into an electrical signal. 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 the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and projects it onto the photosensitive element.
- the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
- CMOS complementary metal oxide semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then passes 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 RGB, YUV or other format.
- the electronic device 100 may include N cameras 193, where N is a positive integer greater than 1.
- the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
- Video codecs are used to compress or decompress digital videos.
- the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
- MPEG Moving Picture Experts Group
- MPEG2 MPEG2, MPEG3, MPEG4, etc.
- NPU is a neural network (NN) computing processor.
- NN neural network
- applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
- FIG2 is a block diagram of the soft and hard structures of the electronic device 100 provided in an embodiment of the present application.
- the layered architecture can divide the software structure part into several layers, each layer has a clear role and division of labor.
- the layers communicate with each other through software interfaces.
- the electronic device may include an application layer (referred to as application layer), an application framework layer (framework), a hardware abstract layer (HAL) layer, a kernel layer, etc.
- the software layers divided in the electronic device may also include layers not shown in FIG2, such as system libraries, Android TM runtime, etc.
- the application layer may include a series of application programs.
- the application layer may include applications such as memo, browser, contact, camera, etc.
- the application framework layer provides an application programming interface (API) and a programming framework for the application programs of the application layer.
- API application programming interface
- the application framework layer includes some predefined functions.
- the above application framework layer may include a fingerprint framework and an input manager (INPUT manager), etc.
- the fingerprint framework is used to provide fingerprint service processing capabilities, such as fingerprint recognition, and to determine whether the HMB mode needs to be enabled.
- INPUT manager also known as INPUT
- INPUT can be used to translate and encapsulate the original input events collected by various hardware modules, obtain input events containing more information, and pass them to the subscribed hardware modules.
- the above-mentioned multiple types of hardware modules can be display screens, fingerprint sensors (or fingerprint acquisition modules), ambient light sensors, buttons, etc.
- the corresponding device nodes can be created for the hardware modules.
- the hardware module detects the corresponding original input event, such as the fingerprint sensor detecting that the user touches the fingerprint sensor, the screen detecting that the user clicks the operation, or the ambient light sensor detecting the ambient light, the button detecting that the user clicks the button, etc.
- the original input event can be passed to the device node corresponding to the hardware module.
- the device node translates, encapsulates, and processes the original input event.
- the processed encapsulation time is passed to the application, service, etc. that subscribes to the events from the hardware module.
- the fingerprint framework can subscribe to events from the fingerprint sensor through INPUT.
- the HAL layer can encapsulate the drivers of various hardware modules (such as fingerprint sensors, ambient light sensors, and display screens), and provide a calling interface to the application framework layer, shielding the implementation details of the low-level hardware.
- the HAL layer can include a display screen HAL, which can be an interface provided by the application framework layer for calling the display driver.
- the framework, services, etc. of the application framework layer need to manage the display screen (such as adjusting the brightness of the display screen, controlling the content displayed on the display screen), it can be achieved by calling the display screen HAL.
- the kernel layer is located below the HAL and is a layer between hardware and software.
- the kernel layer may also include a camera driver, an audio driver, various sensor drivers, etc., and the present application embodiment does not impose any restrictions on this.
- the hardware layer may include various hardware modules integrated in the electronic device, such as the ambient light sensor, fingerprint sensor, and display screen shown in Figure 2.
- the hardware layer may also include hardware modules not shown in Figure 2.
- the display screen control method may include the following steps:
- the ambient light brightness value of the space is obtained through the ambient light sensor.
- the display area a can be a display area on the display screen located above the fingerprint acquisition module (fingerprint sensor), overlapping with the sensing surface of the fingerprint sensor, and can also be called the first area.
- the electronic device After obtaining the ambient light brightness value, determine the target backlight brightness value (first backlight brightness) that matches the ambient light brightness value.
- the electronic device can pre-configure the correspondence between different ambient light brightness values and different backlight brightness values. After obtaining the current ambient light brightness value, find the corresponding target backlight brightness value according to the current ambient light brightness value and the pre-configured correspondence. When the target backlight brightness value is greater than the brightness threshold 1 (third brightness value) corresponding to the display screen, determine to execute the process of starting the HBM mode, and the process enters S102.
- the brightness threshold 1 is a value configured in the display screen, and the value of the brightness threshold 1 is close to the conventional maximum brightness value corresponding to the display screen.
- the difference between the conventional maximum brightness value and the brightness threshold 1 can be less than the set threshold.
- the conventional maximum brightness value is 3800 nits
- the set value is 50 nits
- the corresponding brightness threshold 1 is 3750 nits.
- nit is a unit used to measure the brightness perceived by the user, or candela per square meter (cd/m2).
- the brightness can also be expressed as display brightness value (display brightness value, DBV) means that DBV is a level concept in the display driver IC (DDIC) that describes the screen brightness. It can include 4096 levels (e.g., 0-4095 levels).
- DBV display brightness value
- DDIC display driver IC
- the conventional maximum brightness of different display screens may be different.
- the setting values may also be different.
- different display screens may correspond to different brightness thresholds 1.
- the backlight brightness of the display screen can be controlled in real time according to the ambient light brightness value of the space in which it is located.
- the electronic device is pre-configured with a correspondence between the ambient light brightness value and the backlight brightness value. Based on the above correspondence, the electronic device can control the backlight brightness of the display screen to change with the ambient light brightness value.
- the electronic device can obtain the real-time ambient light brightness value through the ambient light sensor, and then find the corresponding backlight brightness value in combination with the pre-configured correspondence. 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.
- the electronic device after the electronic device detects that the user touches the display area a of the display screen, it can also search for the backlight brightness value that was most recently sent to the display screen in response to the user touching the display area a of the display screen. If the backlight brightness value that was most recently 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.
- the ambient light sensor in response to the user touching the display area a of the display screen, obtains the ambient light brightness value of the space in which the user is located.
- the ambient light brightness value is greater than a preset brightness threshold (first brightness threshold)
- first brightness threshold a preset brightness threshold
- the preset brightness threshold may be an empirical value, or an ambient light brightness value that may affect fingerprint recognition and is determined through testing.
- the above-mentioned FPS brightness register can be used to manage the brightness corresponding to the display area a.
- the pixel units in the display area a correspond to different gamma curves, and the gamma curve can indicate the corresponding relationship between different grayscale values and different brightness. It can be understood that one pixel unit corresponds to three grayscale values, namely, the grayscale value corresponding to the red channel, the grayscale value corresponding to the blue channel, and the grayscale value corresponding to the green channel.
- the gamma curve corresponding to the pixel unit remains unchanged, the smaller the grayscale value of a channel in the pixel unit, the smaller the brightness of the organic light-emitting diode (OLED) corresponding to the channel, and the larger the grayscale value of a channel, the larger the brightness of the OLED corresponding to the channel.
- the brightness of the three OLEDs corresponding to the pixel unit is increased, so that the actual brightness of the pixel unit can be increased.
- the gamma curve corresponding to display area a is curve 1 in Figure 3B.
- the gamma curve corresponding to display area a can be curve 2 in Figure 3B, or curve 3.
- the gamma curve corresponding to display area a is curve 2 after the FPS brightness register is modified from attribute value 1 to other attribute values (such as attribute value 2, refer to the subsequent embodiments for details)
- attribute value 2 refers to the subsequent embodiments for details
- the gamma corresponding to the display area a is Taking curve 3 as an example, after the attribute value of the FPS brightness register is modified, the actual brightness achieved by the pixel unit in the display area a is lower at the same grayscale value.
- the actual brightness values achieved by the pixel units in display area a at the same grayscale value are different, which can be called the brightness value of display area a being corrected.
- the grayscale value corresponding to display area a remains unchanged, the difference between the actual brightness achieved before and after the attribute value of the FPS brightness register is modified can be called the first brightness increment.
- the register address of the FPS brightness register in different display screens may be different.
- the implementation method of reading the attribute value of the FPS brightness register can refer to the implementation details of reading configuration parameters from the register of the display screen in the relevant technology, which will not be repeated here.
- a plurality of attribute configuration files (preconfigured configuration files) for display screens may be preconfigured in the electronic device, and different attribute configuration files correspond to different types of display screens.
- different attribute configuration files may be associated with type information of different types of display screens.
- the above attribute configuration files include attribute modification values (offset, or, attribute correction values) for the FPS brightness register.
- the above offset set may be used to modify the attribute value of the FPS brightness register, for example, based on the attribute value 1, the offset set is added to obtain the attribute value 2, such as the second attribute value.
- the corresponding attribute configuration file 1 is searched.
- the offset 1 corresponding to the FPS brightness register is queried from the attribute configuration file 1.
- the attribute value 1 and the offset 1 are superimposed to obtain the attribute value 2.
- the FPS node function may be called to instruct the FPS brightness register in the display screen to enter an editable state.
- the attribute value 2 may be written into the FPS brightness register.
- the attribute value 2 is then written into the FPS brightness register.
- the FPS brightness register is instructed to exit the editable state.
- the gamma curve corresponding to the pixel unit in display area a can be changed from curve 1 to curve 2 (or, under the same grayscale value, a gamma curve with a larger corresponding brightness value).
- the maximum brightness that can be achieved by the pixel unit of display area a is the conventional maximum brightness, for example, when the pixel unit in display area a reaches the maximum grayscale value, the actual brightness value is the conventional maximum brightness.
- the maximum brightness that can be achieved by display area a can exceed the conventional maximum brightness, for example, when the pixel unit in display area a reaches the maximum grayscale value, the actual brightness value is the target brightness value.
- the brightness of the display area a can actually exceed the conventional maximum brightness limited by the specifications of the display screen and reach the target brightness value.
- the brightness value that the display driver can send to the display screen cannot exceed 3800nit, that is, the conventional maximum brightness value is 3800nit.
- the display driver sends brightness configuration information for display area a to the display screen.
- the brightness configuration information carries 3800nit.
- the display screen can control the brightness of display area a to reach 3800nit.
- the display driver sends brightness configuration information for display area a to the display screen.
- the brightness configuration information carries 3800nit.
- the display screen can control the brightness value of display area a to reach 3900nit.
- the brightness configuration information (instructing to adjust the brightness to 3800nit) is received from the display driver, and it is determined to adjust the grayscale value of the pixel unit in display area a to the maximum grayscale value.
- the brightness of display area a can be increased by 100nit, that is, the actual brightness is corrected by 100nit, that is, the first brightness increment is 100nits.
- the display After the FPS brightness register is configured to attribute value 2, the display only corrects the brightness value of display area a, and does not affect other areas (such as the second area on the display).
- the brightness value of display area a reaches the target brightness value, the brightness of other areas of the display does not exceed the conventional maximum brightness value, so that the display forms a fingerprint spot in display area a.
- the conventional maximum brightness value is lower than the target brightness value.
- 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.
- the brightness of the display area a e.g., area 402 in FIG4
- the brightness of other areas is the brightness value B
- the brightness value A is greater than the brightness value B
- the other areas may be display areas other than area 402 in the display screen, such as area 403 in FIG4 .
- the ambient light brightness value of 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
- the electronic device can write attribute value 2 to the display screen, and then 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.
- the display screen of the electronic device can successfully enter the HBM mode. In this way, as shown in Figure 4, before and after entering the HBM mode, the value of the FPS brightness register in the display screen changes from attribute value 1 to attribute value 2.
- the electronic device will not write the attribute value for the FPS brightness register to the display screen. After that, the brightness value A of the above area 402 and the brightness value B of area 403 will not exceed the conventional maximum brightness value.
- the above method can also be applied to scenarios where the electronic device is not in a high-brightness environment and the brightness of the display screen has reached the normal maximum brightness, or is close to the normal maximum brightness. Please refer to the above embodiments for details and will not be repeated here.
- the fingerprint collection module can collect fingerprint information, such as collecting the first fingerprint information. During this period, the recognition rate of the collected fingerprint information is higher. After the fingerprint collection module collects fingerprint information with a high recognition rate, the HBM mode can also be exited. The process of exiting the HBM mode can refer to Figure 5.
- the electronic device after the electronic device completes fingerprint information collection or fingerprint collection is interrupted, it may be determined that the HBM mode needs to be exited.
- the process After entering the HBM mode for a specified time, it can be determined that fingerprint information has been collected, and it is determined that the display needs to exit the HBM mode, and the process enters S202 shown in Figure 5.
- the above specified time can be the maximum time required for the fingerprint collection module to collect fingerprint information obtained by testing.
- fingerprint information is collected and a fingerprint recognition result (eg, In the case of fingerprint unlocking success or fingerprint unlocking failure), it can be determined that the fingerprint information has been collected, and it is determined that the display screen needs to exit the HBM mode, and the process enters S202 shown in Figure 5.
- a fingerprint recognition result eg, In the case of fingerprint unlocking success or fingerprint unlocking failure
- the HBM mode After entering the HBM mode, if a user instruction to turn off the screen is detected, it can also be determined that the HBM mode is exited.
- the FPS node function may be called to instruct the FPS brightness register in the display screen to enter an editable state.
- the attribute value 1 may be written into the FPS brightness register.
- the attribute value 1 is then written into the FPS brightness register.
- the FPS brightness register is instructed to exit the editable state.
- the display screen enters HBM mode, and the fingerprint acquisition module can also collect fingerprint information. After the fingerprint information acquisition is completed, the electronic device can write the attribute value 1 to the FPS brightness register of the display screen.
- the display screen In response to the value of the FPS brightness register being the attribute value 1, the display screen stops correcting the brightness of display area a so that the brightness of display area a does not exceed the conventional maximum brightness value, so that the display screen exits the HBM mode.
- the electronic device displays a user interface 601 after the unlocking is successful based on the collected fingerprint information.
- the value of the FPS brightness register is attribute value 2.
- the value of the FPS brightness register is attribute value 1. That is, before displaying the user interface 601, the electronic device can change the value of the FPS brightness register from attribute value 2 to attribute value 1. In this way, during the display of the user interface 601, the brightness of area 402 and the brightness of area 403 of the display screen will not exceed the conventional maximum brightness value.
- the above method may also include the following steps:
- the process of determining whether to start the HBM mode can refer to S101, which will not be described in detail here.
- the backlight brightness can represent the brightness of the entire display screen
- the above-mentioned real-time backlight brightness value is the quantized value corresponding to the brightness of the current display screen and the entire screen.
- the electronic device can read the real-time backlight brightness value from the display screen.
- the reading process can refer to the relevant technology, which will not be described in detail here.
- the electronic device reads the real-time backlight brightness value 1 from the display screen once after an interval of time 1.
- the method of obtaining the real-time backlight brightness value 1 is not specifically limited.
- S302 may refer to S102. There is no necessary order between S301 and S302, and no specific limitation is made here.
- the electronic device when the electronic device periodically obtains the real-time backlight brightness value 1, 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 When the backlight brightness value 1 gradually increases, wait for the next cycle to obtain a new real-time backlight brightness value 1, and determine whether the new real-time backlight value 1 is greater than the brightness threshold 1.
- 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.
- the acquired real-time backlight brightness value 1 is not greater than the brightness threshold 1, and the process ends.
- the display screen before actually modifying the value of the FPS brightness register, it is determined whether the display screen still has the need to enable HBM mode by judging whether the real-time backlight brightness value is greater than the brightness threshold 1, so as to avoid abnormal display brightness due to erroneous modification.
- the display driver sends a target backlight brightness value to the display screen, and the target backlight brightness value is greater than the brightness threshold 1.
- the electronic device can determine that it needs to execute the process of starting the HBM mode.
- the display screen After the display screen sends the target backlight brightness value, the display screen does not adjust the backlight brightness to the target backlight brightness value. For example, after the display screen sends the target backlight brightness value, it detects that the user presses the power button, and the backlight brightness of the display screen drops rapidly.
- the detected real-time backlight brightness value 1 does not reach the brightness threshold 1.
- the value of the FPS brightness register is not changed to avoid abnormal highlighting in area 402.
- the display driver sends a target backlight brightness value to the display screen, and the target backlight brightness value is greater than the brightness threshold 1.
- the electronic device can determine that it needs to execute the process of starting the HBM mode.
- the display screen does not adjust the backlight brightness to the target backlight brightness value. For example, after the display screen sends the target backlight brightness value, it detects that the user's finger leaves the display area a, and it can be determined that the user actively interrupts the fingerprint recognition. According to the business rules of fingerprint recognition, the display screen will enter low-brightness mode, that is, the display screen will reduce the brightness.
- the detected real-time backlight brightness value 1 also does not reach the brightness threshold 1.
- the value of the FPS brightness register is not changed.
- the electronic device when it is off the screen, if it detects that the user has authorized fingerprint unlocking, it can display the screen-off unlocking interface 801.
- the screen-off unlocking interface 801 When the screen-off unlocking interface 801 is displayed, since most of the pixels in area 403 of the display screen are not lit, the corresponding backlight brightness is low.
- fingerprint information with a high recognition rate can be collected even if the HBM mode is not enabled. That is, the brightness of area 402 does not need to reach the target brightness value.
- the brightness of display area a is the fifth brightness value, and the fifth brightness value is less than or equal to the conventional maximum brightness value.
- An obvious fingerprint spot can also be formed to improve the recognition rate of fingerprint information collection.
- the detected real-time backlight brightness value 1 also fails to reach the brightness threshold 1.
- the value of the FPS brightness register is not changed.
- the real-time backlight brightness value of the display screen will not be higher than the brightness threshold 1.
- the electronic device does not change the value of the FPS brightness register, that is, the FPS brightness register is the attribute value 1. Avoid enabling the HBM mode unnecessarily without affecting the quality of fingerprint information collection.
- the electronic device may display a user interface 802. During the period from displaying the screen-off unlocking interface 801 to displaying the user interface 802 , the value of the FPS brightness register of the display screen remains unchanged.
- the real-time backlight brightness value 2 can also be referred to as the second real-time backlight brightness.
- 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.
- the value of the FPS brightness register in the display screen is configured as the attribute value 1 .
- the brightness of area 402 is no longer corrected, that is, the brightness of area 402 can be limited below the normal maximum brightness value to avoid abnormal brightness display of the display screen.
- the value of the FPS brightness register in the display screen may be configured as the attribute value 1.
- the method may further include the following steps:
- the process of determining whether to start the HBM mode can refer to S101, which is not described in detail here. If it is determined that the HBM mode needs to be started, the electronic device can also read the real-time backlight brightness value 3 of the display screen and the real-time grayscale value of the background image displayed in the display area a.
- the reading method can refer to the relevant technology, which is not described in detail here.
- the grayscale value 1 (first grayscale value) can be the average grayscale of the background image displayed in real time in the display area a, or it can be the maximum grayscale value, and the embodiment of the present application does not specifically limit this.
- different preset grayscale thresholds can be configured for the average grayscale and the maximum grayscale. The preset grayscale threshold is used to evaluate whether the current state of the display screen needs to enter the HBM mode. For specific details, refer to the subsequent embodiments and will not be repeated here.
- S402 may refer to S102. There is no necessary order between S401 and S402, and no specific limitation is made here.
- the brightness of display area a can reach the currently achievable maximum brightness value (for example, before the value of the FPS brightness register is not modified, the currently achievable maximum brightness is the conventional maximum brightness).
- the above-mentioned preset grayscale value is not greater than the maximum grayscale value, for example, the preset grayscale threshold value can be 0X1FF.
- the real-time backlight brightness value 3 when the real-time backlight brightness value 3 is not greater than the brightness threshold 1 and the real-time backlight brightness value 3 gradually increases, 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.
- the real-time backlight brightness value 3 is not greater than the brightness threshold 1 and the real-time backlight brightness value 3 is unchanged or When the value becomes smaller, the process ends.
- the process ends.
- 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.
- 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, and the grayscale value of the background image will also decrease.
- the grayscale value 2 mentioned above can be called the second grayscale value, which can be the grayscale value of the background image displayed in the display area a.
- the value of the FPS brightness register in the display screen is configured as the attribute value 1 .
- FIG10 shows that, during the process of executing the method shown in FIG9 , the signaling interaction between the various software and hardware modules in the electronic device is as follows:
- the fingerprint collection module sends notification 1 to the input manager, indicating that a finger touches the display area a.
- the fingerprint collection module when the fingerprint collection module senses that a finger touches the display area a, the fingerprint collection module may report the event to the input manager, such as sending a notification 1 to the input manager.
- the process may enter A2.
- the input manager sends notification 1 to the fingerprint framework.
- the fingerprint frame instructs the display driver to control the display screen to display the fingerprint spot.
- the fingerprint framework can call the function interface 1 provided by the display driver, which can trigger the process of forming a fingerprint spot.
- the display screen can be controlled to adjust the brightness of display area a and other areas (that is, areas outside display area a) so that the brightness of display area a and other areas are linearly related, and the brightness of display area a is higher than the brightness of other areas. In this way, the display screen can form a fingerprint spot at display area a.
- the details between the fingerprint framework calling the function interface 1 provided by the display driver and the actual formation of the fingerprint spot on the display screen refer to the subsequent steps and will not be repeated here.
- the display driver determines that the display needs to enable HBM mode to generate fingerprint spots.
- the above A4 can refer to S101.
- the display driver can obtain the ambient light brightness value of the space 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 spot needs to be generated in the HBM mode. Other examples are not described in detail for the time being.
- the display driver obtains the real-time backlight brightness value 3 from the display screen and reads back the grayscale value 1 of the displayed background image.
- the display driver reads the attribute value 1 of the FPS brightness register in the display screen from the display screen.
- the above A5 and A6 may refer to S401 and S402, which will not be described in detail here.
- the display driver calls the preset algorithm, combined with the real-time backlight brightness value 3 and the grayscale value 1, to determine that the display currently has the conditions to enter HBM.
- the preset algorithm can determine whether the display screen currently meets the conditions for entering HBM based on the real-time backlight brightness value and grayscale value.
- the preset algorithm can be to compare the real-time backlight brightness value with the brightness threshold 1, compare the grayscale value with the preset grayscale threshold, and then, based on a combination of multiple comparison results, determine whether the display screen currently meets the conditions for entering HBM. For example, when the real-time backlight brightness value 3 is greater than the brightness threshold 1, and the grayscale value 1 is greater than the preset grayscale threshold, it is determined whether the display screen currently meets the conditions for entering HBM.
- the preset algorithm can also determine whether the display screen currently meets the conditions for entering HBM based on detected user behavior, detected environmental changes, and/or the display state of the display screen before unlocking.
- the above preset algorithm when it is detected that the user presses the power button, detects that the finger leaves the display area a, or detects that the ambient light brightness of the space where the electronic device is located drops suddenly, according to the above preset algorithm, it can be determined that the display screen does not currently meet the conditions for entering the HBM mode.
- the above preset algorithm can also determine that the display screen currently meets the conditions for entering the HBM mode according to the above preset algorithm when the above situation is not detected.
- the above preset algorithm can also determine that the conditions for entering the HBM mode are not met according to the above preset algorithm when it is detected that the display state of the display screen before unlocking is off.
- the display driver determines attribute value 2 according to attribute value 1 and a preconfigured attribute configuration file.
- the display driver writes the attribute value 2 to the FPS brightness register in the display.
- the display screen sends a configuration completion notification 1 to the display driver.
- the above configuration completion notification 1 indicates that the display screen has configured the value of the FPS brightness register to attribute value 2.
- the display driver indicates that the display screen shows a bright fingerprint spot.
- the display driver may instruct the display screen to adjust the brightness values of the display area a and other areas so that a fingerprint spot having a brightness value reaching a target brightness value is formed on the display screen.
- the display driver when the target backlight brightness value is not less than the conventional maximum brightness value, the display driver sends brightness configuration information a (first brightness configuration information) for display area a to the display screen, and the brightness configuration information a may indicate that the display area a should be adjusted to the conventional maximum brightness value.
- first brightness configuration information first brightness configuration information
- the display screen responds to the brightness configuration information a and determines that the grayscale value of the pixel unit in the display area a needs to be adjusted to the maximum grayscale value, that is, the target grayscale value determined by the display screen is the maximum grayscale value.
- the brightness of the display area a can be adjusted to the target brightness value (e.g., the conventional maximum brightness value + 100 nits).
- the above process can also be referred to as the display screen adjusting the display area The brightness of domain a is corrected.
- the display driver may also send brightness configuration information b for other areas to the display screen, and the brightness configuration information b may indicate that the other areas are adjusted to the normal maximum brightness value.
- the display screen determines that the grayscale value of the pixel unit in the other display area needs to be adjusted to the maximum grayscale value, that is, the target grayscale value determined by the display screen is the maximum grayscale value. Then, in combination with the gamma curve and the target grayscale value of the other area, the brightness of the other area is adjusted to the normal maximum brightness value.
- the display driver when the target backlight brightness value is less than the conventional maximum brightness value, the display driver sends brightness configuration information a for display area a to the display screen.
- the display screen can adjust the brightness of display area a to the target brightness value (e.g., the conventional maximum brightness value + 100 nits).
- the display driver can send brightness configuration information c for other areas to the display screen, and the brightness configuration information c may include the target backlight brightness value, indicating that other areas are adjusted to the target backlight brightness value.
- the display screen can adjust the brightness of other areas to the target backlight brightness value.
- the display enters HBM mode.
- the display screen After a fingerprint spot with a brightness value equal to the target brightness value is displayed on the display screen, the display screen enters the HBM mode.
- the display sends notification 2 to the display driver, indicating that the display has entered HBM mode.
- the display driver sends notification 2 to the fingerprint framework.
- the fingerprint framework sends notification 2 to the fingerprint collection module.
- the fingerprint collection module responds to notification 2 and starts collecting fingerprint information.
- the fingerprint collection module sends the collected fingerprint information to the fingerprint framework.
- the fingerprint framework performs fingerprint recognition based on fingerprint information.
- the fingerprint framework sends notification 3 to the display driver, indicating that fingerprint recognition has been completed.
- the display driver instructs the display to enter low brightness mode.
- the display reduces the background light brightness value.
- the display driver can make the display screen enter the low-brightness mode by lowering the backlight brightness of the display screen.
- the brightness of the display area a and other areas will decrease.
- 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.
- the display driver uses a preset algorithm, combined with the real-time backlight brightness value of 4 and the grayscale value of 2, to determine that the HBM mode can be exited.
- the preset algorithm mentioned in A23 may be the same as the preset algorithm mentioned in A7. When it is determined by using the preset algorithm that the condition for entering the HBM mode is not met, it is determined that the HBM mode can be exited.
- the display driver writes the attribute value 1 to the FPS brightness register of the display.
- the display screen 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 the brightness profile d (second brightness configuration information) for the display area a to the display screen, and the brightness profile d carries a brightness value of 3000nits (fourth brightness value). The display screen responds to the brightness profile d, determines the target grayscale value corresponding to the display area a, and then, in combination with the curve 1 shown in FIG. 3B and the determined target grayscale value, the brightness of the display area a can be actually configured to 3000nits.
- the display driver sends the brightness profile d (second brightness configuration information) for the display area a to the display screen, and the brightness profile d carries a brightness value of 3000nits (fourth brightness value).
- the display screen responds to the brightness profile d, determines the target grayscale value corresponding to the display area
- the HBM mode can be successfully entered, thereby improving the success rate of the fingerprint unlocking under the screen.
- 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.
- the lock screen interface when the electronic device is fully lit, the lock screen interface is displayed.
- both the first area and the second area reach the first brightness value.
- the backlight brightness value of the display screen has been adjusted to the highest.
- the backlight brightness value of the display screen has been adjusted to the highest.
- the grayscale values corresponding to the pixel units in the first area and the second area have reached the maximum grayscale value.
- the target brightness register of the display screen is configured from the first attribute value to the second attribute value.
- the target brightness register corresponds to the first area and is used to control the actual brightness of the first area. After the target brightness register is configured to the second attribute value, the brightness of the first area is corrected from the first brightness value to the second brightness value when the corresponding grayscale value remains unchanged. The brightness of the second area remains the first brightness value unchanged.
- the first area reaches the first brightness value, it has reached the ideal brightness for collecting fingerprints.
- the brightness of the second area around the first area is also the first brightness value, it will actually affect the operation of the fingerprint. In this case, it is necessary to increase the brightness difference between the first area and the second area.
- some display screens cannot increase the brightness of the first area to a second brightness value greater than the first brightness value due to their own specifications, which often easily causes fingerprint unlocking failure.
- the electronic device can modify the attribute value of the target brightness register to make the brightness of the first area exceed the first brightness value and reach the second brightness value while the grayscale value corresponding to the first area remains unchanged, thereby completing the brightness correction of the first area. In this way, a clear light spot can be presented on the display screen, which improves the success rate of fingerprint unlocking.
- the embodiment of the present application also provides an electronic device, which may include: a display screen, a memory, a fingerprint collection module and one or more processors.
- the display screen, the fingerprint collection 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.
- the processor executes the computer instructions, the electronic device can execute the various steps performed by the mobile phone in the above embodiment.
- the electronic device includes but is not limited to the above memory and one or more processors.
- the embodiment of the present application also provides a chip system, which can be applied to the electronic device in the aforementioned embodiment.
- the chip system includes at least one processor and at least one interface circuit.
- the processor can be the processor in the above-mentioned 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-mentioned electronic device through the interface circuit.
- the electronic device can execute the various steps executed by the mobile phone in the above-mentioned embodiment.
- the chip system can also include other discrete devices, which are not specifically limited in the embodiment of the present application.
- the functional units in the various embodiments of the present application can be integrated into one processing unit.
- Each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit may be implemented in the form of hardware or in the form of software functional units.
- 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.
- the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application.
- the aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Hardware Design (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
本申请实施例提供了一种显示屏控制方法及电子设备,涉及显示技术领域。解决部分电子设备,屏下指纹解锁的成功率不高的问题。具体方案为:显示锁屏界面;在显示屏的第一区域和第二区域的亮度为第一亮度值的情况下,检测到用户接触显示屏的第一区域,显示屏的第一区域与指纹传感器的感应面重叠;第二区域是显示屏中除第一区域之外的显示区域,第一亮度值为预配置的显示屏对应的最大亮度值;将显示屏的目标亮度寄存器由第一属性值配置为第二属性值;目标亮度寄存器与第一区域对应,用于控制第一区域的亮度,在目标亮度寄存器配置为第二属性值之后,第一区域的亮度由第一亮度值修正为第二亮度值,第二亮度值大于第一亮度值。
Description
本申请要求于2023年11月15日提交国家知识产权局、申请号为202311547675.3、发明名称为“一种显示屏控制方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及显示技术领域,尤其涉及一种显示屏控制方法及电子设备。
在高亮环境内启用屏下指纹解锁时,需要显示屏进入高亮显示模式(high brightness mode,HBM)。其中,HBM模式下,显示屏上的指纹采集区域的亮度为目标亮度值,目标亮度值高于显示屏的常规最大亮度,使显示屏上指纹采集区域的亮度高于其他区域的亮度,形成明显的指纹光斑。
然而,部分显示屏不支持HBM模式。这样,配置该类显示屏的电子设备在特殊场景(如,位于高亮环境内,或者,显示屏亮度已达到常规最大亮度值的其他场景)下,屏下指纹解锁成功率较低。
发明内容
本申请实施例提供一种显示屏控制方法及电子设备,用于提升特殊场景下,屏下指纹解锁的成功率。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,本申请实施例提供了一种显示屏控制方法,应用于电子设备,所述电子设备包括显示屏和指纹传感器,所述指纹传感器配置于所述显示屏之下,所述方法包括:显示锁屏界面;在所述显示屏的第一区域和第二区域的亮度为第一亮度值的情况下,检测到用户接触显示屏的所述第一区域,所述显示屏的第一区域与所述指纹传感器的感应面重叠;所述第二区域是所述显示屏中除所述第一区域之外的显示区域,所述第一亮度值为预配置的所述显示屏对应的最大亮度值;将所述显示屏的目标亮度寄存器由第一属性值配置为第二属性值;所述目标亮度寄存器与所述第一区域对应,用于控制所述第一区域的亮度,在所述目标亮度寄存器配置为第二属性值之后,所述第一区域的亮度由所述第一亮度值修正为所述第二亮度值,所述第二亮度值大于所述第一亮度值。
在上述实施例中,在显示屏显示锁屏界面,且第一区域和第二区域均达到预配置的最大亮度值的情况下,第一区域和第二区域对应的像素单元的灰阶值均达到最大,如果检测到用户需要进行指纹解锁,可以通过改变与第一区域对应的目标亮度寄存器的属性值,使第一区域在同等灰阶值下,亮度可从第一亮度值提升至第二亮度值。这样,第一区域相较于第二区域形成明显的光斑,实现HBM模式所对应的效果,提升指纹解锁的成功率。
在一些实施例中,在检测到用户接触显示屏的第一区域之后,将所述显示屏的目标亮度寄存器配置为第二属性值之前,所述方法还包括:获取环境光亮度值;确定环
境光亮度值大于第一亮度阈值,或者,确定所述环境光亮度值所对应的第一背光亮度大于第三亮度值;其中,第三亮度值小于所述第一亮度值,第三亮度值与第一亮度阈值之间的差值小于预设值;所述电子设备中配置有不同环境光亮度与背光亮度之间对应关系;获取所述显示屏的第一实时背光亮度;确定所述第一实时背光亮度大于所述第三亮度值。
在上述实施例中,从环境光亮度值以及实时背光亮度等多维度,评估当前是否需要通过修改目标亮度寄存器的属性值的方式,实现HBM模式所对应的效果。其中,利用实时背光亮度可以监控用户是否在中途,停止指纹解锁,避免出现无需指纹解锁的场景下,修改目标亮度寄存器,导致第一区域的亮度显示异常。通过上述评估,在无进入HBM模式的需求之后,避免误启用HBM模式。
在一些实施例中,在所述检测到用户接触显示屏的第一区域之后,所述将所述显示屏的目标亮度寄存器配置为第二属性值之前,所述方法还包括:获取环境光亮度值;确定所述环境光亮度值大于第一亮度阈值,或者,确定所述环境光亮度值所对应的第一背光亮度大于第三亮度值;其中,所述第三亮度值小于所述第一亮度值,所述第三亮度值与所述第一亮度阈值之间的差值小于预设值;所述电子设备中配置有不同环境光亮度与背光亮度之间对应关系;获取所述显示屏的第一实时背光亮度和所显示的背景图像的第一灰阶值;确定所述第一实时背光亮度大于所述第三亮度值,以及,所述第一灰阶值大于预设灰阶阈值。
在上述实施例中,从环境光亮度值、实时背光亮度和实时的灰阶值等多维度,评估当前是否需要通过修改目标亮度寄存器的属性值的方式,实现HBM模式所对应的效果。通过上述评估,在无进入HBM模式的需求之后,避免误启用HBM模式。
在一些实施例中,所述方法还包括:在所述第一区域的亮度为所述第二亮度值期间,采集第一指纹信息;在采集到所述第一指纹信息之后,将所述显示屏的目标亮度寄存器配置由第二属性值恢复为所述第一属性值;在所述目标亮度寄存器配置为第一属性值之后,所述显示屏停止修正所述第一区域的亮度。
在上述实施例中,在采集完指纹信息之后,通过恢复目标亮度寄存器的属性值,避免第一区域的亮度显示异常。
在一些实施例中,所述将所述显示屏的目标寄存器配置为第二属性值之前,所述方法还包括:从所述显示屏读取所述目标亮度寄存器的第一属性值,并存储;根据所述第一属性值和预配置的配置文件,确定所述第二属性值,所述配置文件中包括所述第一属性值和对应的属性修正值,所述第二属性值为所述第一属性值与所述属性修正值之和。
在一些实施例中,所述电子设备还包括显示驱动,所述第一区域的亮度由所述第一亮度值修正为所述第二亮度值,包括:所述显示屏接收到来自所述显示驱动的第一亮度配置信息;所述第一亮度配置信息携带针对所述第一区域的第一亮度值;在目标亮度寄存器的第二属性值时,响应于第一亮度配置信息,将第一区域的亮度提升至所述第二亮度值,第二亮度值为第一亮度值和第一亮度增量之和,所述第一亮度增量与所述第二属性值和第一属性值之间的所述属性修正值相关。
在一些实施例中,电子设备还包括显示驱动,显示屏停止修正所述第一区域的亮
度之后,所述方法还包括:显示屏接收到来自显示驱动的第二亮度配置信息,第二亮度配置信息携带针对第一区域的所述第四亮度值,第四亮度值小于或等于第一亮度值;在目标亮度寄存器的第一属性值时,响应于第二亮度配置信息,将第一区域的亮度调整为所述第四亮度值。
在一些实施例中,将显示屏的目标亮度寄存器配置为第一属性值之前,所述方法还包括:指示所述显示屏降低背光亮度;获取显示屏的第二实时背光亮度和/或所显示的背景图像的第二灰阶值;确定所述第二实时背光亮度小于或等于所述第三亮度值;或者,确定所述第二灰阶值小于或等于所述预设灰阶阈值。
在上述实施例中,通过实时背光亮度和/或实时的灰阶值,可准确地识别出退出HBM模式的场景,避免对用户正常使用电子设备产生影响。
在一些实施例中,所述电子设备所处的空间内,环境光亮度值大于第一亮度阈值的情况下,所述方法还包括:响应用户操作,控制所述显示屏息屏;响应于用户接触所述第一区域,显示息屏解锁界面,在显示所述息屏解锁界面期间,所述显示屏的第二区域内包括未点亮的像素单元;控制所述显示屏将所述第一区域的亮度调整为第五亮度值,所述第五亮度值小于或等于所述第一亮度值。
第二方面,本申请实施例提供的一种电子设备,电子设备包括显示屏、指纹传感器、一个或多个处理器和存储器,所述指纹传感器用于采集指纹信息,所述显示屏用于调整背光亮度辅助所述指纹传感器进行指纹采集,所述存储器用于存储计算机指令,所述显示屏用于向用户推送信息,当一个或多个处理器执行所述计算机指令时,所述一个或多个处理器,用于执行第一方面及其可能的实施例中的方法。
第三方面,本申请实施例提供的一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面、第二方面及其可能的实施例中的方法。
第四方面,本申请提供一种计算机程序产品,当计算机程序产品在上述电子设备上运行时,使得电子设备执行上述第一方面及其可能的实施例中的方法。
第五方面,本申请提供一种芯片系统,应用于电子设备,存储有计算机程序,在所述计算机程序被执行时,使得所述电子设备执行上述第一方面及其可能的实施例中的方法。
可以理解地,上述各个方面所提供的电子设备、计算机存储介质以及计算机程序产品均应用于上文所提供的对应方法,因此,其所能达到的有益效果可参考上文所提供的对应方法中的有益效果,此处不再赘述。
图1为本申请实施例提供的电子设备的硬件结构示意图;
图2为本申请实施例提供的电子设备的软、硬件结构示意图;
图3A为本申请实施例提供的一种显示屏控制方法的流程图之一;
图3B为本申请实施例提供的FPS亮度寄存器配置不同属性值时,显示区域a对应的gamma曲线的示例图;
图4为本申请实施例提供的解锁场景下显示屏亮度的变化示例图之一;
图5为本申请实施例提供的一种显示屏控制方法的流程图之二;
图6为本申请实施例提供的解锁场景下显示屏亮度的变化示例图之二;
图7为本申请实施例提供的一种显示屏控制方法的流程图之三;
图8为本申请实施例提供的解锁场景下显示屏亮度的变化示例图之三;
图9为本申请实施例提供的一种显示屏控制方法的流程图之四;
图10为本申请实施例提供的一种显示屏控制方法的流程图之五。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
下面将结合附图对本实施例的实施方式进行详细描述。
指纹解锁指示在用户授意的情况下,采集用户的指纹信息,通过采集到的指纹信息,识别用户是否具有解锁电子设备的权限。示例性地,常见的指纹解锁的形式可以包括侧边指纹解锁、后置指纹解锁、前置指纹解锁和屏下指纹解锁等。
其中,屏下指纹解锁过程中,所使用的指纹采集模组配置于显示屏之下。上述指纹采集模组采集指纹信息的原理为:在手指按压于指纹采集模组之上时,可以基于经手指反射到指纹采集模组的光线,生成指纹图像,得到对应的指纹信息。
在上述指纹信息采集的过程中,需要借助显示屏的背光,换而言之,在指纹采集的过程中,需要显示屏的特定区域保持点亮状态。被点亮的特定区域也可称为指纹光斑。
在一些实施例中,上述指纹光斑可以分为硬光斑和软光斑两种类型。
软光斑:点亮整个显示屏之后,可以通过显示预配置的蒙版,使显示屏上呈现指纹光斑,也即,形成软光斑。其中,上述蒙版为黑色图层,该蒙版不覆盖显示屏中与指纹采集模组对应的显示区域(指纹光斑的显示区域)。这样,在视觉上,仅指纹光斑对应的显示区域被点亮。
硬光斑:点亮显示屏的部分显示区域,或提升部分显示区域的亮度,使显示屏上呈现光斑。比如,点亮指纹采集模组对应的显示区域,或提升指纹采集模组对应的显示区域的亮度。在视觉上,显示屏上呈现指纹光斑,也即,形成硬光斑。指纹光斑的亮度高于其他显示区域的亮度。
无论是硬光斑还是软光斑,指纹光斑越亮,采集到的指纹信息的可识别度越高。特别是,在电子设备处于高亮的环境内时,上述优势更为明显。
在一些实施例中,电子设备检测到所处空间的环境光亮度值大于预设亮度值之后,会指示显示屏进入高亮显示模式(HBM)。
HBM模式:提升显示屏整屏或局部区域的亮度,使显示屏整屏或局部区域的亮度达到目标亮度值,上述目标亮度值可以预先配置,通常目标亮度值大于显示屏的常规最大亮度值(如称为第一亮度值)。上述常规最大亮度值可以是非HBM模式下显示屏可达到的最大亮度值。
示例性地,在电子设备启用软光斑辅助完成指纹采集的情况下,电子设备在配置显示屏的背光亮度时,可以指示显示屏将整屏的背光亮度提升至目标亮度值(如称为
第二亮度值),以使使显示屏进入HBM模式。
又示例性地,在电子设备启用硬光斑辅助完成指纹采集的情况下,电子设备可以指示显示屏提升局部区域的亮度,如,指示显示屏将局部区域的亮度提升到目标亮度值,以使显示屏进入HBM模式。
在显示屏进入HBM模式之后,可以有效提升采集到的指纹信息的可识别率,进而,提升亮光环境下的指纹解锁成功率。
然而,部分显示屏虽然具备将亮度提升至目标亮度值的能力,但不支持HBM模式。比如,显示驱动可以向显示屏发送的亮度值不大于常规最大亮度值,致使显示屏不能将指纹光斑的亮度提升至目标亮度值。可见,如果电子设备启用硬光斑辅助进行指纹采集,在高亮环境内,不能形成相对高亮的指纹光斑,也即,出行不能启用HBM模式的问题,进而导致高亮环境内,指纹解锁成功率降低。
为了解决上述问题,本申请实施例提供了一种显示屏控制方法,该方法应用于启用硬光斑的电子设备。其中,上述电子设备可以动态修改显示屏中特定亮度寄存器的取值,上述特定亮度寄存器可用于修正硬光斑显示区域(简称光斑区域)的亮度。通过针对特定亮度寄存器的修改,在显示屏需要进入HBM模式的情况下,可以使光斑区域的亮度提升至目标亮度值。这样,原本不支持HBM模式的显示屏,也能进入HBM模式。
另外,在显示屏需要退出HBM模式之后,通过针对特定亮度寄存器的修改,也可以将光斑区域的亮度限制在常规最大亮度值之下。其中,上述光斑区域与屏下的指纹采集模组的配置位置对应。在用户的手指接触光斑区域时,也即,用户授意进行指纹信息采集时,屏下的指纹采集模组可采集到覆于光斑区域之上的手指的指纹信息。
示例性的,本申请实施例中的电子设备可以是便携式计算机(如手机)、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、媒体播放器等具有显示屏的设备,本申请实施例对该电子设备的具体形态不作特殊限制。
请参考图1,图1示出了电子设备的一种可能的硬件结构示意图:
如图1所示,电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
其中,上述传感器模块180可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器(也可称为指纹采集模组),温度传感器,触摸传感器,环境光传感器和骨传导传感器等传感器。
可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬
件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。该显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。后续实施例中,主要以显示屏194是LCD进行举例,这样,可以理解的,在后续实施例中,提到的LCD也可以同等替换为其他类型的显示屏。另外,上述显示屏194可以包括多个寄存器,比如,指纹反射传感器(finger print sensor,FPS)亮度寄存器。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头
被传递到摄像头感光元件(图像传感器)上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
图2是本申请实施例提供的电子设备100的软、硬结构框图。分层架构可将软件结构部分划分为若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,电子设备可以包括应用程序层(简称应用层),应用程序框架层(framework),硬件抽象层(hardware abstract layer,HAL)层、内核层等。当然,电子设备中划分出的软件层还可以包括图2中未示出的层,比如,系统库(libraries),安卓TM运行时(Android Runtime)等。
示例性地,上述应用层可以包括一系列应用程序。
如图2所示,上述应用层中可以包括备忘录,浏览器,联系人,相机等应用程序。
示例性地,应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,上述应用框架层中可以包括指纹框架及输入管理器(INPUT manager)等。
其中,指纹框架,用于提供指纹业务处理的能力,比如,进行指纹识别。再比如,判断是否需要启用HMB模式。
INPUT manager也可称为INPUT,可以用于对多类硬件模块采集的原始输入事件进行翻译、封装等处理,得到包含更多信息的输入事件,并传递给订阅该硬件模块所
上报事件的应用或服务。例如,上述多类硬件模块可以是显示屏、指纹传感器(或称为指纹采集模组)、环境光传感器、按键等。在上述硬件模块可用的情况下,可以创建该硬件模块创建对应的设备节点。在硬件模块检测到对应的原始输入事件,比如,指纹传感器检测到用户触摸指纹传感器、屏幕检测到用户点击操作或者环境光传感器检测到环境光、按键检测到用户点击按键的操作等输入事件,可以将该原始输入事件传递给该硬件模块对应的设备节点。由设备节点对原始输入事件进行翻译、封装等处理。最后,将处理得到的封装时间,传递给订阅来自该硬件模块的事件的应用、服务等。比如,在本申请实施例中,指纹框架可以通过INPUT订阅来自指纹传感器的事件。
示例性地,上述HAL层可以对各类硬件模块(如,指纹传感器、环境光传感器、显示屏)的驱动程序进行封装,并向应用框架层提供调用的接口,屏蔽低层硬件的实现细节。如图2所示,HAL层中可以包括显示屏HAL,该显示屏HAL可以是应用框架层提供的用于调用显示驱动的接口。这样,应用框架层的框架、服务等需要管理显示屏(如,调整显示屏的亮度、控制显示屏所显示的内容)时,可以通过调用显示屏HAL实现。
示例性地,内核层位于HAL之下,是硬件和软件之间的层。内核层中除了可以包含上述显示驱动、指纹传感器驱动外,还可以包括摄像头驱动,音频驱动,各类传感器驱动等,本申请实施例对此不做任何限制。
在一些实施例中,上述硬件层可以包括集成在电子设备中的各类硬件模块,如图2所示的环境光传感器、指纹传感器、显示屏。当然,硬件层还可以包括图2中未示出的硬件模块。
下面结合附图,介绍本申请实施例所提供的方法的实现细节。
在一些实施例中,电子设备处于亮环境内,且处于锁屏状态的情况下,如图3A所示,上述显示屏控制方法可以包括以下步骤:
S101,响应于用户触碰显示屏的显示区域a,判断是否执行启动HBM模式的流程。
在一些实施例中,响应于用户触碰显示屏的显示区域a,通过环境光传感器获取所处空间的环境光亮度值。示例性地,上述显示区域a可以是显示屏中位于指纹采集模组(指纹传感器)之上的显示区域,与指纹传感器的感应面重叠,也可称为第一区域。
在获取到环境光亮度值之后,确定与环境光亮度值匹配的目标背光亮度值(第一背光亮度)。在一些实施例中,电子设备可以预先配置不同环境光亮度值与不同背光亮度值之间的对应关系。在获取当前的环境光亮度值之后,根据当前的环境光亮度值和预配置的对应关系,查找对应的目标背光亮度值。在目标背光亮度值大于显示屏对应的亮度阈值1(第三亮度值)的情况下,确定执行启动HBM模式的流程,流程进入S102。
其中,亮度阈值1为配置于显示屏中的值,上述亮度阈值1的值接近该显示屏对应的常规最大亮度值。示例性地,常规最大亮度值与亮度阈值1之间的差值可以小于设定阈值。比如,常规最大亮度值为3800nits,设定值为50nits,对应的亮度阈值1为3750nits。
可以理解的,nit是用于度量用户所感知到的亮度的单位,或者称为坎德拉每平米(cd/m2)。在其他实施例中,上述亮度也可以用显示亮度值(display brightness value,
DBV)表示,DBV是屏幕显示芯片(display driver IC,DDIC)中描述屏幕亮度的一个档位概念,可以包括4096个档位(例如0-4095阶),在待显示图像中像素点的灰阶值固定的情况下,DBV越大则屏幕越亮。nit与DBV之间可以相互转换。
可以理解的,不同显示屏的常规最大亮度可以不同,另外,设定值也可以不同,对应的,不同的显示屏可以对应不同的亮度阈值1。
另外,电子设备亮屏期间,可以根据所处空间的环境光亮度值,实时地控制显示屏的背光亮度。如前述实施例中所述,电子设备中预先配置有环境光亮度值与背光亮度值之间的对应关系。基于上述对应关系,电子设备可以控制显示屏的背光亮度随环境光亮度值变化而变化。
比如,电子设备可以通过环境光传感器获取到实时的环境光亮度值,再结合预配置的对应关系,查找对应的背光亮度值。之后,电子设备可以将查找到的背光亮度值下发至显示屏,实现控制显示屏的背光亮度。
在其他实施例中,电子设备检测到用户触碰显示屏的显示区域a之后,还可以响应于用户触碰显示屏的显示区域a,查找最近一次下发至显示屏的背光亮度值。如果最近一次下发至显示屏的背光亮度值大于亮度阈值1,确定执行启动HBM模式的流程,流程进入S102。
在另一些实施例中,响应于用户触碰显示屏的显示区域a,通过环境光传感器获取所处空间的环境光亮度值。在环境光亮度值大于预设亮度阈值(第一亮度阈值)的情况下,确定执行启动HBM模式的流程,也即,流程进入S102。
其中,上述预设亮度阈值可以为经验值,可以是通过测试确定出可能对指纹识别产生影响的环境光亮度值。
S102,读取显示屏中指纹反射传感器(finger print sensor,FPS)亮度寄存器的属性值1。
在一些实施例中,上述FPS亮度寄存器(目标亮度寄存器)可用于管理显示区域a对应的亮度,FPS亮度寄存器配置不同属性值时,显示区域a中的像素单元对应不同的gamma曲线,gamma曲线可以指示不同灰阶值与不同亮度之间对应关系。可以理解的,一个像素单元对应三个灰阶值,即红色通道对应的灰阶值、蓝色通道对应的灰阶值以及绿色通道对应的灰阶值。在像素单元对应的gamma曲线不变的情况下,像素单元中一个通道的灰阶值越小,该通道对应的有机发光二极管(organic light-emitting diode,OLED)亮度越小,一个通道的灰阶值越大,该通道对应的OLED亮度越大。将一个像素单元对应的三个灰阶值均调大之后,该像素单元对应的三个OLED亮度均变大,则可以使得该像素单元的实际亮度变大。
如图3B所示,在FPS亮度寄存器配置属性值1(第一属性值)时,显示区域a对应的gamma曲线为图3B中的曲线1。在FPS亮度寄存器的属性值修改之后,显示区域a对应的gamma曲线可以是图3B中的曲线2,或,曲线3。
以FPS亮度寄存器由属性值1修改为其他属性值(如,属性值2,具体参考后续实施例)之后,显示区域a对应的gamma曲线为曲线2为例,FPS亮度寄存器的属性值修改之后,显示区域a中像素单元在同样的灰阶值下,实际达到的亮度更高。
再以FPS亮度寄存器由属性值1修改为其他属性值之后,显示区域a对应的gamma
曲线为曲线3为例,FPS亮度寄存器的属性值修改之后,显示区域a中像素单元在同样的灰阶值下,实际达到的亮度更低。
在FPS亮度寄存器由属性值1配置为其他属性值前、后,显示区域a中像素单元在同样的灰阶值下,实际达到的亮度值不同,可称为显示区域a的亮度值被修正。在显示区域a对应的灰阶值不变的情况下,FPS亮度寄存器的属性值修改前、后,实际达到的亮度之间的差值,可称为第一亮度增量。另外,不同显示屏中FPS亮度寄存器的寄存器地址可以不同,读取FPS亮度寄存器的属性值的实现方式可以参见从相关技术中,从显示屏的寄存器中读取配置参数的实现细节,在此暂不赘述。
S103,根据属性值1,按照预配置的属性配置文件,确定出属性值2。
在一些实施例中,电子设备中可以预先配置多个针对显示屏的属性配置文件(预配置的配置文件),不同的属性配置文件对应不同类型的显示屏。比如,不同的属性配置文件可以与不同类型的显示屏的类型信息相关联。上述属性配置文件中包含针对FPS亮度寄存器的属性修改值(off set,或,属性修正值)。上述off set可用于修改FPS亮度寄存器的属性值,比如,在属性值1的基础上,加上off set,得到属性值2,如称为第二属性值。
在一些实施例中,根据显示屏的类型信息,查找对应的属性配置文件1。从属性配置文件1中查询到FPS亮度寄存器对应的off set1。将上述属性值1和offset1叠加,得到属性值2。
S104,将显示屏中FPS亮度寄存器的值配置为属性值2。
在一些实施例中,可以调用FPS节点函数,指示显示屏中的FPS亮度寄存器进入可编辑状态。这样,可以将属性值2写入FPS亮度寄存器。在将属性值2写入FPS亮度寄存器。然后,指示FPS亮度寄存器退出可编辑状态。
可以理解的,将FPS亮度寄存器由属性值1修改为属性值2之后,显示区域a中像素单元所对应的gamma曲线可以从曲线1变为曲线2(或者,同样灰阶值下,对应的亮度值更大的gamma曲线)。
这样,在FPS亮度寄存器的值为属性值1时,显示区域a的像素单元可达到的最大亮度为常规最大亮度,比如,显示区域a中像素单元达到最大灰阶值时,实际的亮度值为常规最大亮度。FPS亮度寄存器的值修改为属性值2之后,显示区域a能够达到的最大亮度可超过常规最大亮度,如,显示区域a中像素单元达到最大灰阶值时,实际的亮度值为目标亮度值。
示例性地,在S104之后,电子设备确定显示区域a中像素单元需达到最大灰阶值的情况下,显示区域a的亮度可实际突破显示屏的规格所限制的常规最大亮度,达到目标亮度值。
比如,由于显示屏的限制,显示驱动可以向显示屏下发的亮度值不能超过3800nit,也即,常规最大亮度值为3800nit。在FPS亮度寄存器为属性值1的情况下,显示驱动向显示屏发送针对显示区域a的亮度配置信息,该亮度配置信息中携带3800nit,对应地,显示屏可以控制显示区域a的亮度达到3800nit。在FPS亮度寄存器为属性值2的情况下,显示驱动向显示屏发送针对显示区域a的亮度配置信息,该亮度配置信息携带3800nit,对应地,显示屏可以控制显示区域a的亮度值达到3900nit。可以理解地,
FPS亮度寄存器的取值由属性值1更新为属性值2之后,接收到来自显示驱动的亮度配置信息(指示将亮度调整至3800nit),确定将显示区域a中像素单元的灰阶值调整至最大灰阶值。在最大灰阶值下,相较于FPS亮度寄存器的值为属性值1时,显示区域a的亮度可提升100nit,也即,实际亮度被修正了100nit,也即,第一亮度增量为100nits。
在FPS亮度寄存器配置为属性值2之后,显示屏仅修正显示区域a的亮度值,不影响其他区域(如,显示屏上的第二区域)。在显示区域a的亮度值达到目标亮度值的情况下,显示屏的其他区域的亮度不超过常规最大亮度值,这样,显示屏在显示区域a形成指纹光斑。在此场景下,可称为显示屏进入了HBM模式。其中,常规最大亮度值低于目标亮度值。
示例性地的场景,如图4所示,电子设备显示锁屏界面401。可以理解的,显示锁屏界面401期间电子设备处于未解锁状态。在用户将手指放置于显示区域a(如,图4中的区域402)之后,显示区域a(如,区域402)的亮度为亮度值A,其他区域的亮度为亮度值B,亮度值A大于亮度值B,其中,其他区域可以是显示屏中除区域402之外的显示区域,如,图4中的区域403。
在上述示例性的场景中,如果电子设备所处空间的环境光亮度值可触发将显示屏的背光亮度调整至常规最大亮度值,用户将手指放置于区域402之后,如图4所示,电子设备可以往显示屏写入属性值2,之后,上述区域402的亮度值A可达到目标亮度值,上述区域403的亮度值B不超过常规最大亮度值。在此场景下,电子设备的显示屏能够成功进入HBM模式。这样,如图4所示,在进入HBM模式前后,显示屏中的FPS亮度寄存器的取值由属性值1变为属性值2。
在上述示例性的场景中,如果电子设备所处空间的环境光亮度值不触发将显示屏的背光亮度调整至常规最大亮度值,用户将手指放置于区域402之后,电子设备不会往显示屏写入针对FPS亮度寄存器的属性值,之后,上述区域402的亮度值A和区域403的亮度值B均不超过常规最大亮度值。
在其他实施例中,上述方法还可以适用于电子设备未处于高亮环境,且显示屏的亮度已达到常规最大亮度,或者,接近常规最大亮度的场景,具体参考前述实施例,在此不再赘述。
在一些实施例中,在显示屏进入HBM模式之后,指纹采集模组可以进行指纹信息的采集,如,采集第一指纹信息。在此期间,所采集到的指纹信息的可识别率更高。在指纹采集模组采集到高识别率的指纹信息之后,还可以退出HBM模式,退出HBM模式的过程可参考图5。
S201,确定可退出HBM模式。
在一些实施例中,电子设备完成指纹信息采集或指纹采集被中断之后,可确定需退出HBM模式。
示例性地,在进入HBM模式的指定时长之后,可以确定已采集到指纹信息,以及判定显示屏需退出HBM模式,流程进入图5所示的S202。其中,上述指定时长可以是测试得到的指纹采集模组采集指纹信息所需的最大时长。
又示例性地,在进入HBM模式之后,采集到指纹信息,并得到指纹识别结果(如,
指纹解锁成功或指纹解锁失败)的情况下,可确定已采集到指纹信息,以及判定显示屏需退出HBM模式,流程进入图5所示的S202。
再示例性地,在进入HBM模式之后,检测到用户手指离开显示区域a,判定显示屏需退出HBM模式。
再示例性地,在进入HBM模式之后,检测到用户指示灭屏的操作,也可以确定退出HBM模式。
S202,将显示屏中FPS亮度寄存器的值配置为属性值1。
在一些实施例中,可以调用FPS节点函数,指示显示屏中的FPS亮度寄存器进入可编辑状态。这样,可以将属性值1写入FPS亮度寄存器。在将属性值1写入FPS亮度寄存器。然后,指示FPS亮度寄存器退出可编辑状态。
示例性地的场景,以指纹解锁的结果为解锁成功为例,如图6所示,在用户将手指放置于区域402之后,区域402的亮度为亮度值A,其他区域(区域403)的亮度为亮度值B,亮度值A大于亮度值B,亮度值A为目标亮度值。在此场景下,显示屏进入HBM模式,指纹采集模组也可以进行指纹信息的采集。在指纹信息采集结束之后,电子设备可以往显示屏的FPS亮度寄存器写入属性值1。
响应于FPS亮度寄存器的值为属性值1,显示屏停止修正显示区域a的亮度,使显示区域a的亮度不超过常规最大亮度值,以使显示屏退出HBM模式。
如图6所示,基于采集到的指纹信息解锁成功,电子设备显示用户界面601。在进入HBM模式之后,FPS亮度寄存器的取值为属性值2。在显示用户界面601之后,FPS亮度寄存器的取值为属性值1。也即,在显示用户界面601之前,电子设备可以执行将FPS亮度寄存器的取值由属性值2变更为属性值1。这样,显示用户界面601期间,显示屏的区域402的亮度和区域403的亮度均不会超过常规最大亮度值。
在一些实施例中,如图7所示,上述方法也可以包括以下步骤:
S301,在确定执行启动HBM模式的流程之后,获取显示屏的实时背光亮度值1。
在一些实施例中,判定是否执行启动HBM模式的过程可参考S101,在此暂不赘述。其中,背光亮度可以表征显示屏整屏的亮度情况,上述实时背光亮度值是当前显示屏、整屏的亮度所对应的量化值。电子设备可以从显示屏中读取出实时背光亮度值,读取的过程可参考相关技术,在此暂不赘述。
示例性地,确定需要启动HBM模式之后,电子设备可以周期性地从显示屏读取实时背光亮度值1,也即,可以从显示屏读取一个或多个实时背光亮度值1。
又示例性地,确定需要启动HBM模式,电子设备在间隔时长1之后,从显示屏读取一次实时背光亮度值1。总之,获取实时背光亮度值1的方式不作具体限定。
S302,读取显示屏中FPS亮度寄存器的属性值1。
在一些实施例中,S302的实现细节可参考S102,上述S301和S302之间没有必然的先后顺序,在此不做具体限定。
S303,在实时背光亮度值1大于亮度阈值1的情况下,根据属性值1,按照预配置的属性配置文件,确定出属性值2。
在一些实施例中,电子设备周期性地获取实时背光亮度值1的情况下,在获取到的实时背光亮度值1(第一实时背光亮度)不大于亮度阈值1(第三亮度值),且实时
背光亮度值1逐渐增大的情况下,等待下一个周期获取新的实时背光亮度值1,并判断新的实时背光值1是否大于亮度阈值1。在实时背光亮度值1不大于亮度阈值1,且实时背光亮度值1不变或者变小的情况下,结束流程。
在另一些实施例中,在间隔时长1后,获取到的实时背光亮度值1不大于亮度阈值1,结束流程。
S304,将显示屏中FPS亮度寄存器的值配置为属性值2。
在一些实施例中,上述S303和S304中,计算属性值2和将属性值2写入FPS亮度寄存器的实现细节可参考S103和S104,在此暂不赘述。
在一些实施例中,在实际修改FPS亮度寄存器的值之前,通过判断实时背光亮度值是否大于亮度阈值1的方式,判断显示屏当前是否仍然具有启用HBM模式的需求,避免误修改而导致显示屏亮度显示异常。
示例性的场景,显示驱动向显示屏下发目标背光亮度值,该目标背光亮度值大于亮度阈值1,依据该目标背光亮度值,电子设备可以确定需执行启动HBM模式的流程。在显示屏下发目标背光亮度值之后,显示屏却没有将背光亮度调整至目标背光亮度值,比如,在显示屏下发目标背光亮度值之后,检测到用户按压电源键,显示屏的背光亮度迅速下降。在此场景下,按照上述S301~S304所示的方法,检测到的实时背光亮度值1达不到亮度阈值1。响应于实时背光亮度值1达不到亮度阈值1,不更改FPS亮度寄存器的值,避免区域402出现异常高亮。
示例性的场景,显示驱动向显示屏下发目标背光亮度值,该目标背光亮度值大于亮度阈值1,依据该目标背光亮度值,电子设备可以确定需执行启动HBM模式的流程。在显示屏下发目标背光亮度值之后,显示屏没有将背光亮度调整至目标背光亮度值,比如,在显示屏下发目标背光亮度值之后,检测到用户的手指离开显示区域a,可确定用户主动中断本次指纹识别,按照指纹识别的业务规则,显示屏会进入低亮模式,也即,显示屏会降低亮度。在此场景下,按照上述S301~S304所示的方法,检测到的实时背光亮度值1也达不到亮度阈值1。响应于实时背光亮度值1达不到亮度阈值1,不更改FPS亮度寄存器的值。
再示例性地的场景,如图8所示,电子设备在灭屏的情况下,检测到用户授意进行指纹解锁,可以显示息屏解锁界面801。在显示息屏解锁界面801时,由于显示屏的区域403大部分像素点均未点亮,对应的背光亮度较低。在此场景下,即使不启用HBM模式,也能采集到高识别率的指纹信息。也即,区域402的亮度无需达到目标亮度值,比如,显示区域a的亮度为第五亮度值,第五亮度值小于或等于常规最大亮度值,也可以形成明显的指纹光斑,提升指纹信息采集的可识别率。按照上述S301~S304所示的方法,检测到的实时背光亮度值1也达不到亮度阈值1。响应于实时背光亮度值1达不到亮度阈值1,不更改FPS亮度寄存器的值。
在图8所示的场景中,在用户的手指接触区域402至完成指纹信息采集之间的时段内,显示屏的实时背光亮度值均不会高于亮度阈值1,按照上述S301~S304所提供的方法,电子设备不更改FPS亮度寄存器的值,也即,FPS亮度寄存器为属性值1。在不影响指纹信息采集质量的情况下,避免不必要地启用HBM模式。
如图8所示,在解锁成功的情况下,电子设备可以显示用户界面802。电子设备
从显示息屏解锁界面801至显示用户界面802之间的时段内,显示屏的FPS亮度寄存器的值不变。
S305,在FPS亮度寄存器的值配置为属性值2之后,继续获取显示屏的实时背光亮度值2。
可以理解的,实时背光亮度值2也可称为第二实时背光亮度。在指纹解锁结束之后,比如,解锁成功或解锁失败之后,按照解锁的业务逻辑,显示驱动会指示显示屏进入低亮显示模式,也即,会调低显示屏的背光亮度。
S306,在实时背光亮度值2不大于亮度阈值1的情况下,将显示屏中FPS亮度寄存器的值配置为属性值1。
在一些实施例中,将显示屏中FPS亮度寄存器的值配置为属性值1之后,区域402的亮度不再被修正,也即,区域402的亮度可以被限制在常规最大亮度值之下,避免显示屏的亮度显示异常。
在其他可能的实施例中,在S304之后,也可以不执行S305和S306,在确定指纹解锁结束后,比如,响应于指纹框架输出指纹识别结果,可以将显示屏中FPS亮度寄存器的值配置为属性值1。
在一些实施例中,如图9所示,上述方法还可以包括以下步骤:
S401,在确定执行启动HBM模式的流程之后,获取显示屏的实时背光亮度值3和回读所显示的背景图像的灰阶值1。
在一些实施例中,判定是否执行启动HBM模式的过程可参考S101,在此暂不赘述。如果确定需要启动HBM模式,电子设备还可以从显示屏的实时背光亮度值3和在显示区域a所显示的背景图像的实时灰阶值,读取的方式可参考相关技术,在此暂不赘述。
可理解地,上述灰阶值1(第一灰阶值)可以是显示区域a中实时显示的背景图像的平均灰阶,也可以是最大灰阶值,本申请实施例对此不作具体限定。另外,针对平均灰阶和最大灰阶,可以配置不同的预设灰阶阈值,上述预设灰阶阈值用于评估显示屏当前的状态是否还需要进入HBM模式,具体细节参考后续实施例,在此暂不赘述。
S402,读取显示屏中FPS亮度寄存器的属性值1。
在一些实施例中,S402的实现细节可参考S102,上述S401和S402之间没有必然的先后顺序,在此不做具体限定。
S403,在实时背光亮度值3大于亮度阈值1,且上述灰阶值1大于预设灰阶阈值的情况下,根据属性值1,按照预配置的属性配置文件,确定出属性值2。
其中,显示区域a的像素单元达到最大灰阶值时,显示区域a的亮度才能达到当前可达到的最大亮度值(比如,在FPS亮度寄存器的值未修改之前,当前可达到的最大亮度为常规最大亮度)。上述预设灰阶值不大于最大灰阶值,比如,预设灰阶阈值可以是0X1FF。
另外,在实时背光亮度值3不大于亮度阈值1,且实时背光亮度值3逐渐增大的情况下,等待下一个周期获取新的实时背光亮度值3,并判断新的实时背光值3是否大于亮度阈值1。在实时背光亮度值3不大于亮度阈值1,且实时背光亮度值3不变或
者变小的情况下,结束流程。
或者,在灰阶值1不大于预设灰阶阈值的情况下,结束流程。
S404,将显示屏中FPS亮度寄存器的值配置为属性值2。
在一些实施例中,上述S403和S404中,计算属性值2和将属性值2写入FPS亮度寄存器的实现细节可参考S103和S104,在此暂不赘述。
可以理解的,在图7和图9所示的方法中,在实际修改FPS亮度寄存器之前,均会基于实时背光亮度值和/或背景图像的灰阶值,判断显示屏的当前状态是否满足进入HBM模式的场景条件,也可称为是否依然具有启用HBM模式的需求。
在其他实施例中,还可以通过其他的方式,判断显示屏的当前状态是否满足进入HBM模式的场景条件。比如,在计算出属性值2之前,如果检测到用户按压电源键、检测到手指离开显示区域a或者检测到电子设备所处的空间环境亮度骤降等预配置的中断条件时,判定不满足进入HBM模式的场景条件。如果没检测到上述预配置的中断条件,判定满足进入HBM模式的场景条件。如果检测到解锁前显示屏处于灭屏,也可以判定不满足进入HBM模式的场景条件。
这样,在显示屏的当前状态满足进入HBM模式的场景条件,电子设备再往FPS亮度寄存器写入属性值2,使显示屏能够达到HBM模式的显示效果。
S405,在FPS亮度寄存器的值配置为属性值2之后,继续获取显示屏的实时背光亮度值4和回读所显示的背景图像的灰阶值2。
可以理解的,在指纹解锁结束之后,比如,解锁成功或解锁失败之后,按照解锁的业务逻辑,显示驱动会指示显示屏进入低亮显示模式,也即,会调低显示屏的背光亮度,背景图像的灰阶值也会下降。上述灰阶值2可称为第二灰阶值,可以是显示区域a中所显示的背景图像的灰阶值。
S406,在实时背光亮度值4不大于亮度阈值1,或灰阶值2不大于预设灰阶阈值的情况下,将显示屏中FPS亮度寄存器的值配置为属性值1。
作为一种实施方式,图10示出了,执行图9所示的方法的过程中,电子设备内各个软硬件模块之间的信令交互如下:
A1,指纹采集模组向输入管理器,发送通知1,指示感应到手指触碰显示区域a。
在一些实施例中,在指纹采集模组感应到手指触碰显示区域a的情况下,指纹采集模组可将该事件上报输入管理器,如,向输入管理器发送通知1。在指纹框架通过输入管理器订阅来自指纹采集模组的消息的情况下,流程可进入A2。
A2,输入管理器向指纹框架发送通知1。
A3,指纹框架指示显示驱动控制显示屏显示指纹光斑。
在一些实施例中,指纹框架可以调用显示驱动提供的功能接口1,该功能接口1可以触发形成指纹光斑的流程。比如,在调用功能接口1之后,可以控制显示屏调整显示区域a和其他区域(也即,显示区域a之外的区域)的亮度,使显示区域a与其他区域的亮度呈线性关系,且显示区域a的亮度高于其他区域的亮度。这样,显示屏可以在显示区域a处可形成指纹光斑。当然,在本申请实施例中,指纹框架可以调用显示驱动提供的功能接口1之后,至显示屏实际形成指纹光斑之间的细节,参考后续步骤,在此暂不赘述。
A4,显示驱动确定显示屏需要启用HBM模式,生成指纹光斑。
在一些实施例中,上述A4可参考S101。比如,显示驱动可以通过环境光传感器获取所处空间的环境光亮度值。确定与环境光亮度值匹配的目标背光亮度值。在目标背光亮度值大于显示屏对应的亮度阈值1的情况下,确定需要在HBM模式下,生成指纹光斑。其他示例,暂不赘述。
A5,显示驱动从显示屏获取实时背光亮度值3和回读所显示的背景图像的灰阶值1。
A6,显示驱动从显示屏读取显示屏中FPS亮度寄存器的属性值1。
在一些实施例中,上述A5和A6可参考S401和S402,在此不再赘述。
A7,显示驱动调用预设算法,结合实时背光亮度值3和灰阶值1,确定显示屏当前具备进入HBM的条件。
在一些实时中,上述预设算法可以根据实时背光亮度值和灰阶值,判断显示屏当前是否具备进入HBM的条件。示例性地,上述预设算法可以是将实时背光亮度值与亮度阈值1进行比较,将灰阶值与预设灰阶阈值进行比较,然后,综合多项比较结果,确定显示屏当前是否具备进入HBM的条件。如,在实时背光亮度值3大于亮度阈值1,且上述灰阶值1大于预设灰阶阈值,确定显示屏当前是否具备进入HBM的条件。在另一些实施例中,上述预设算法还可以根据检测到的用户行为、检测到的环境变化和/或解锁前显示屏的显示状态,判断显示屏当前是否具备进入HBM的条件。
比如,在检测到用户按压电源键、检测到手指离开显示区域a或者检测到电子设备所处空间的环境光亮度骤降时,依据上述预设算法,可以判定显示屏当前不满足进入HBM模式的条件。另外,上述预设算法还可以在没有检测到上述情况时,依据上述预设算法,可以判定显示屏当前满足进入HBM模式的条件。上述预设算法还可以在检测到解锁前显示屏的显示状态为灭屏时,依据上述预设算法,可以判定不满足进入HBM模式的条件。
A8,显示驱动根据属性值1,按照预配置的属性配置文件,确定出属性值2。
A9,显示驱动往显示屏中的FPS亮度寄存器写入属性值2。
A10,显示屏向显示驱动发送配置完成通知1。
其中,上述配置完成通知1指示显示屏已将FPS亮度寄存器的值配置为属性值2。
A11,显示驱动指示显示屏显示高亮的指纹光斑。
在一些实施例中,显示驱动可以指示显示屏调整显示区域a和其他区域的亮度值,以使显示屏上形成亮度值达到目标亮度值的指纹光斑。
示例性地,在目标背光亮度值不小于常规最大亮度值的情况下,显示驱动会向显示屏发送针对显示区域a的亮度配置信息a(第一亮度配置信息),该亮度配置信息a中可以指示将显示区域a调整至常规最大亮度值。
在FPS亮度寄存器配置为属性值2之后,显示屏响应于该亮度配置信息a,确定需将显示区域a的像素单元的灰阶值调整至最大灰阶值,也即,显示屏确定出的目标灰阶值为最大灰阶值。之后,结合图3B所示的曲线2(FPS亮度寄存器为属性值2时对应的gamma曲线)和确定出的目标灰阶值,可以将显示区域a的亮度调整为目标亮度值(如,常规最大亮度值+100nits)。显然,上述过程中,也可称为显示屏对显示区
域a的亮度进行了修正。
另外,显示驱动也可以向显示屏发送针对其他区域的亮度配置信息b,该亮度配置信息b中可以指示将其他区域调整至常规最大亮度值。显示屏响应于该亮度配置信息b,确定需将其他显示区域的像素单元的灰阶值调整至最大灰阶值,也即,显示屏确定出的目标灰阶值为最大灰阶值。之后,结合其他区域的gamma曲线和目标灰阶值,将其他区域的亮度调整为常规最大亮度值。
示例性地,在目标背光亮度值小于常规最大亮度值的情况下,显示驱动会向显示屏发送针对显示区域a的亮度配置信息a。显示屏响应于该亮度配置信息a,可以将显示区域a的亮度调整为目标亮度值(如,常规最大亮度值+100nits)。显示驱动可以向显示屏发送针对其他区域的亮度配置信息c,该亮度配置信息c中可以包括目标背光亮度值,指示将其他区域调整至目标背光亮度值。显示屏响应于该亮度配置信息c,可以将其他区域的亮度调整为目标背光亮度值。
A12,显示屏进入HBM模式。
在显示屏上显示亮度值为目标亮度值的指纹光斑之后,显示屏进入HBM模式。
A13,显示屏向显示驱动发送通知2,指示显示屏已进入HBM模式。
A14,显示驱动向指纹框架发送通知2。
A15,指纹框架向指纹采集模组发送通知2。
A16,指纹采集模组响应于通知2,开始采集指纹信息。
A17,指纹采集模组向指纹框架发送采集到的指纹信息。
A18,指纹框架基于指纹信息进行指纹识别。
上述指纹信息采集和指纹识别的过程可参考相关技术,在此暂不赘述。
A19,指纹框架向显示驱动发送通知3,指示已完成指纹识别。
A20,显示驱动指示显示屏进入低亮模式。
A21,显示屏降低背景光亮度值。
示例性地,显示驱动可以通过调低显示屏的背光亮度,使显示屏进入低亮模式。在调低显示屏的背光亮度的过程中,显示区域a和其他区域的亮度都会下降。
A22,显示驱动从显示屏获取实时背光亮度值4和回读所显示的背景图像的灰阶值2。
A23,显示驱动利用预设算法,结合实时背光亮度值4和灰阶值2,确定可退出HBM模式。
在一些实施例中,A23中提到的预设算法与A7中提到的预设算法可以相同,在利用预设算法判定不满足进入HBM模式的条件时,确定可退出HBM模式。
A24,显示驱动往显示屏的FPS亮度寄存器写入属性值1。
往显示屏的FPS亮度寄存器写入属性值1之后,显示屏不再修正显示区域a的亮度。比如,往显示屏的FPS亮度寄存器写入属性值1之后,显示驱动向显示屏发送针对显示区域a的亮度配置文件d(第二亮度配置信息),该亮度配置文件d中携带亮度值3000nits(第四亮度值)。显示屏响应亮度配置文件d,确定显示区域a对应的目标灰阶值,然后,结合图3B所示的曲线1和确定出的目标灰阶值,可将显示区域a的亮度实际配置为3000nits。
通过上述方法,即使是存在缺陷的显示屏,在高亮环境下进行屏下指纹解锁时,也可以成功实现进入HBM模式,提高屏下指纹解锁的成功率。在其他实施例中,上述方法也可以仅针对存在缺陷的显示屏使用,比如,在步骤A4之后,显示驱动可以查询所管控的显示屏是否为存在缺陷的显示屏。如果是,继续执行后续的步骤。如果不是,按照现有的方式启用HBM模式。
示例性地的场景,电子设备全屏点亮的情况下,显示锁屏界面。在显示锁屏界面期间,第一区域和第二区域均达到第一亮度值。比如,响应于用户的操作,已将显示屏的背光亮度值调整至最高。再比如,响应于检测到环境光亮度过亮,已将显示屏的背光亮度值调整至最高。在此场景下,第一区域和第二区域的像素单元对应的灰阶值已达到最大灰阶值。之后,检测到用户接触显示屏的第一区域。将显示屏的目标亮度寄存器由第一属性值配置为第二属性值。目标亮度寄存器与所述第一区域对应,用于控制所述第一区域的实际亮度,在目标亮度寄存器配置为第二属性值之后,在对应灰阶值不变的情况下,第一区域的亮度由第一亮度值修正为所述第二亮度值。第二区域的亮度则保持第一亮度值不变。
可以理解的,即使第一区域达到第一亮度值时,已达到用于采集指纹的理想亮度,然而,由于第一区域周边的第二区域的亮度也为第一亮度值,实际上会影响到指纹的操作,在此情况下,还需增加第一区域和第二区域的亮度差。在此场景下,未修改目标亮度寄存器的属性值之前,部分显示屏由于自身规格的限制,不能将第一区域的亮度提升至大于第一亮度值的第二亮度值,往往就容易造成指纹解锁失败。上述示例性的场景下,电子设备可以通过修改目标亮度寄存器的属性值,在第一区域对应的灰阶值未变的情况下,使第一区域的亮度突破第一亮度值,达到第二亮度值,完成对于第一区域的亮度修正。这样,显示屏上可呈现明显的光斑,提升指纹解锁的成功率。
本申请实施例还提供一种电子设备,该电子设备可以包括:显示屏、存储器、指纹采集模组和一个或多个处理器。该显示屏、指纹采集模组、存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,可使得电子设备执行上述实施例中手机执行的各个步骤。当然,该电子设备包括但不限于上述存储器和一个或多个处理器。
本申请实施例还提供一种芯片系统,该芯片系统可以应用于前述实施例中的电子设备。该芯片系统包括至少一个处理器和至少一个接口电路。该处理器可以是上述电子设备中的处理器。处理器和接口电路可通过线路互联。该处理器可以通过接口电路从上述电子设备的存储器接收并执行计算机指令。当计算机指令被处理器执行时,可使得电子设备执行上述实施例中手机执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。
在一些实施例中,通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以
是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范围为准。
Claims (11)
- 一种显示屏控制方法,其特征在于,应用于电子设备,所述电子设备包括显示屏和指纹传感器,所述指纹传感器配置于所述显示屏之下,所述方法包括:显示锁屏界面;在所述显示屏的第一区域和第二区域的亮度为第一亮度值的情况下,检测到用户接触显示屏的所述第一区域,所述显示屏的第一区域与所述指纹传感器的感应面重叠;所述第二区域是所述显示屏中除所述第一区域之外的显示区域,所述第一亮度值为预配置的所述显示屏对应的最大亮度值;将所述显示屏的目标亮度寄存器由第一属性值配置为第二属性值;所述目标亮度寄存器与所述第一区域对应,用于控制所述第一区域的亮度,在所述目标亮度寄存器配置为第二属性值之后,所述第一区域的亮度由所述第一亮度值修正为所述第二亮度值,所述第二亮度值大于所述第一亮度值。
- 根据权利要求1所述的方法,其特征在于,在所述检测到用户接触显示屏的第一区域之后,所述将所述显示屏的目标亮度寄存器配置为第二属性值之前,所述方法还包括:获取环境光亮度值;确定所述环境光亮度值大于第一亮度阈值,或者,确定所述环境光亮度值所对应的第一背光亮度大于第三亮度值;其中,所述第三亮度值小于所述第一亮度值,所述第三亮度值与所述第一亮度阈值之间的差值小于预设值;所述电子设备中配置有不同环境光亮度与背光亮度之间对应关系;获取所述显示屏的第一实时背光亮度;确定所述第一实时背光亮度大于所述第三亮度值。
- 根据权利要求1所述的方法,其特征在于,在所述检测到用户接触显示屏的第一区域之后,所述将所述显示屏的目标亮度寄存器配置为第二属性值之前,所述方法还包括:获取环境光亮度值;确定所述环境光亮度值大于第一亮度阈值,或者,确定所述环境光亮度值所对应的第一背光亮度大于第三亮度值;其中,所述第三亮度值小于所述第一亮度值,所述第三亮度值与所述第一亮度阈值之间的差值小于预设值;所述电子设备中配置有不同环境光亮度与背光亮度之间对应关系;获取所述显示屏的第一实时背光亮度和所显示的背景图像的第一灰阶值;确定所述第一实时背光亮度大于所述第三亮度值,以及,所述第一灰阶值大于预设灰阶阈值。
- 根据权利要求1-3任意一项所述的方法,其特征在于,所述方法还包括:在所述第一区域的亮度为所述第二亮度值期间,采集第一指纹信息;在采集到所述第一指纹信息之后,将所述显示屏的目标亮度寄存器配置由第二属性值恢复为所述第一属性值;在所述目标亮度寄存器配置为第一属性值之后,所述显示屏停止修正所述第一区域的亮度。
- 根据权利要求1-4任意一项所述的方法,其特征在于,所述将所述显示屏的目标寄存器配置为第二属性值之前,所述方法还包括:从所述显示屏读取所述目标亮度寄存器的第一属性值,并存储;根据所述第一属性值和预配置的配置文件,确定所述第二属性值,所述配置文件中包括所述第一属性值和对应的属性修正值,所述第二属性值为所述第一属性值与所述属性修正值之和。
- 根据权利要求1-5任意一项所述的方法,其特征在于,所述电子设备还包括显示驱动,所述第一区域的亮度由所述第一亮度值修正为所述第二亮度值,包括:所述显示屏接收到来自所述显示驱动的第一亮度配置信息;所述第一亮度配置信息携带针对所述第一区域的所述第一亮度值;在所述目标亮度寄存器的第二属性值时,响应于所述第一亮度配置信息,将所述第一区域的亮度提升至所述第二亮度值,所述第二亮度值为所述第一亮度值和第一亮度增量之和,所述第一亮度增量与所述第二属性值和第一属性值之间的所述属性修正值相关。
- 根据权利要求4所述的方法,其特征在于,所述电子设备还包括显示驱动,所述显示屏停止修正所述第一区域的亮度之后,所述方法还包括:所述显示屏接收到来自所述显示驱动的第二亮度配置信息,所述第二亮度配置信息携带针对所述第一区域的所述第四亮度值,所述第四亮度值小于或等于所述第一亮度值;在所述目标亮度寄存器的第一属性值时,响应于所述第二亮度配置信息,将所述第一区域的亮度调整为所述第四亮度值。
- 根据权利要求4所述的方法,其特征在于,所述将所述显示屏的目标亮度寄存器配置为第一属性值之前,所述方法还包括:指示所述显示屏降低背光亮度;获取所述显示屏的第二实时背光亮度和/或所显示的背景图像的第二灰阶值;确定所述第二实时背光亮度小于或等于所述第三亮度值;或者,确定所述第二灰阶值小于或等于所述预设灰阶阈值。
- 根据权利要求1所述的方法,其特征在于,所述电子设备所处的空间内,环境光亮度值大于第一亮度阈值的情况下,所述方法还包括:响应用户操作,控制所述显示屏息屏;响应于用户接触所述第一区域,显示息屏解锁界面,在显示所述息屏解锁界面期间,所述显示屏的第二区域内包括未点亮的像素单元;控制所述显示屏将所述第一区域的亮度调整为第五亮度值,所述第五亮度值小于或等于所述第一亮度值。
- 一种电子设备,其特征在于,所述电子设备包括:显示屏、指纹传感器、处理器和存储器,所述指纹传感器用于采集指纹信息,所述显示屏用于调整背光亮度辅助所述指纹传感器进行指纹采集,所述存储器用于存储计算机指令,当所述处理器执行所述计算机指令时,以使所述电子设备执行如权利要求1-9中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机 程序或指令,当所述计算机程序或指令在计算机上运行时,使得所述计算机执行如权利要求1-9中任一项所述的方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202480042319.2A CN121464473A (zh) | 2023-11-15 | 2024-11-11 | 一种显示屏控制方法及电子设备 |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311547675.3A CN120048197A (zh) | 2023-11-15 | 2023-11-15 | 一种显示屏控制方法及电子设备 |
| CN202311547675.3 | 2023-11-15 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2025103282A1 true WO2025103282A1 (zh) | 2025-05-22 |
Family
ID=95742077
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2024/131379 Pending WO2025103282A1 (zh) | 2023-11-15 | 2024-11-11 | 一种显示屏控制方法及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (2) | CN120048197A (zh) |
| WO (1) | WO2025103282A1 (zh) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107295195A (zh) * | 2017-07-21 | 2017-10-24 | 维沃移动通信有限公司 | 一种指纹识别方法及移动终端 |
| CN109711255A (zh) * | 2018-11-26 | 2019-05-03 | Oppo广东移动通信有限公司 | 指纹采集方法及相关装置 |
| CN110808003A (zh) * | 2019-09-06 | 2020-02-18 | 华为技术有限公司 | 一种补偿方法及电子设备 |
| US20200193936A1 (en) * | 2018-12-17 | 2020-06-18 | Egis Technology Inc. | Electronic device using under-display fingerprint identification technology and waking method thereof |
| CN115273160A (zh) * | 2022-07-26 | 2022-11-01 | 努比亚技术有限公司 | 一种屏下指纹显示控制方法、设备及计算机可读存储介质 |
| CN115565208A (zh) * | 2021-06-30 | 2023-01-03 | 华为技术有限公司 | 一种显示方法及电子设备 |
| CN116682342A (zh) * | 2023-06-06 | 2023-09-01 | 京东方科技集团股份有限公司 | 一种控制器、指纹解锁方法以及显示装置 |
-
2023
- 2023-11-15 CN CN202311547675.3A patent/CN120048197A/zh active Pending
-
2024
- 2024-11-11 CN CN202480042319.2A patent/CN121464473A/zh active Pending
- 2024-11-11 WO PCT/CN2024/131379 patent/WO2025103282A1/zh active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107295195A (zh) * | 2017-07-21 | 2017-10-24 | 维沃移动通信有限公司 | 一种指纹识别方法及移动终端 |
| CN109711255A (zh) * | 2018-11-26 | 2019-05-03 | Oppo广东移动通信有限公司 | 指纹采集方法及相关装置 |
| US20200193936A1 (en) * | 2018-12-17 | 2020-06-18 | Egis Technology Inc. | Electronic device using under-display fingerprint identification technology and waking method thereof |
| CN110808003A (zh) * | 2019-09-06 | 2020-02-18 | 华为技术有限公司 | 一种补偿方法及电子设备 |
| CN115565208A (zh) * | 2021-06-30 | 2023-01-03 | 华为技术有限公司 | 一种显示方法及电子设备 |
| CN115273160A (zh) * | 2022-07-26 | 2022-11-01 | 努比亚技术有限公司 | 一种屏下指纹显示控制方法、设备及计算机可读存储介质 |
| CN116682342A (zh) * | 2023-06-06 | 2023-09-01 | 京东方科技集团股份有限公司 | 一种控制器、指纹解锁方法以及显示装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN121464473A (zh) | 2026-02-03 |
| CN120048197A (zh) | 2025-05-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20220342475A1 (en) | Terminal control method and terminal | |
| EP4191992B1 (en) | Parameter adjustment method, display control method, electronic device, and medium | |
| EP3754644A1 (en) | Apparatus and method for driving display based on frequency operation cycle set differently according to frequency | |
| CN111768352B (zh) | 图像处理方法及装置 | |
| CN111767016B (zh) | 显示处理方法及装置 | |
| CN114596819B (zh) | 亮度调节方法及相关装置 | |
| US20180368074A1 (en) | Terminal device, network device, frame format configuration method, and system | |
| US20250080864A1 (en) | Image processing method and electronic device | |
| US20230244507A1 (en) | Method and Apparatus for Processing Interaction Event | |
| CN112463237B (zh) | 防烧屏方法、装置、设备及存储介质 | |
| CN108513069B (zh) | 图像处理方法、装置、存储介质及电子设备 | |
| US20250363965A1 (en) | Image processing method and electronic device | |
| WO2022083325A1 (zh) | 拍照预览方法、电子设备以及存储介质 | |
| CN108833695B (zh) | 控制方法、控制装置、电子装置、计算机存储介质及设备 | |
| CN121464473A (zh) | 一种显示屏控制方法及电子设备 | |
| CN114945019B (zh) | 数据传输方法、装置及存储介质 | |
| CN114500822B (zh) | 控制相机的方法与电子设备 | |
| CN117409725A (zh) | 分区域背光控制方法、装置、介质及设备 | |
| CN109979414A (zh) | 亮度调节方法、装置、移动终端和计算机可读存储介质 | |
| CN120743275B (zh) | 一种应用程序的编译方法、终端及存储介质 | |
| CN117692753B (zh) | 一种拍照方法及电子设备 | |
| US20240176480A1 (en) | Screenshot method, electronic device, and storage medium | |
| CN115550732B (zh) | 防止沉迷视频方法、电子设备及存储介质 | |
| CN118505574B (zh) | 一种图像处理方法及电子设备 | |
| CN118470283B (zh) | 光学指纹识别方法、设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 24890637 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2024890637 Country of ref document: EP |