A control method and related device

By blocking the switching command of the display dimming mode in the always-on display state and maintaining the DC dimming mode, the problem of reduced clarity caused by brightness changes during optical fingerprint unlocking is solved, resulting in a higher recognition success rate and a shorter unlocking time, thus improving the user experience.

CN119992607BActive Publication Date: 2026-01-30HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311467906.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-06
Publication Date
2026-01-30
Estimated Expiration
2043-11-06

AI Technical Summary

Technical Problem

During the always-on display period, the clarity of the fingerprint image decreases due to changes in light intensity during optical fingerprint unlocking, increasing the probability of unlocking failure and reducing the user experience.

Method used

By monitoring changes in the status of the terminal device, the switching command for the display dimming mode is blocked, and the DC dimming mode is maintained to avoid changes in the brightness of the fingerprint spot area, thereby improving the clarity of the fingerprint image.

Benefits of technology

It improves the success rate of fingerprint recognition, reduces unlocking time, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119992607B_ABST
    Figure CN119992607B_ABST
Patent Text Reader

Abstract

This application discloses a control method and related equipment applied to a terminal device. The terminal device includes a fingerprint detection module and a display screen, with the fingerprint detection module located below the display screen. The area below the display screen where the fingerprint detection module is located is a target area. The method includes: detecting whether the state of the display screen has changed; wherein, if the state of the display screen changes, triggering a first instruction, the first instruction being used to adjust the dimming mode of the display screen; when the state of the display screen changes and the terminal device is in the target state, determining whether the current dimming mode of the display screen is a DC dimming mode; if the display screen is in a DC dimming mode, then disabling the execution of the first instruction. Using this embodiment can improve the success rate of fingerprint recognition, thereby enhancing the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal equipment technology, and in particular to a control method and related equipment. Background Technology

[0002] As optical fingerprint (OF) recognition technology gradually becomes a standard feature in flagship models of mainstream terminal devices, users' requirements for the success rate of fingerprint recognition are also gradually increasing. They generally hope that they can unlock the device as quickly as possible. In other words, the higher the success rate of fingerprint recognition, the shorter the unlocking time for users, and the better the user experience.

[0003] However, when users use terminal devices equipped with optical fingerprint recognition technology to unlock their devices while the screen is off, there is a problem: the fingerprint spot area on the display screen flickers due to significant changes in brightness at low frequencies (bright-dark-bright brightness switching). This reduces the clarity of the captured fingerprint image, increases the probability of optical fingerprint unlocking failure, and lengthens the unlocking time, thus reducing the user experience. Summary of the Invention

[0004] This application discloses a control method and related equipment that can improve the success rate of fingerprint recognition and enhance the user experience.

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

[0006] In a first aspect, this application provides a control method, characterized in that it is applied to a terminal device, the terminal device including a fingerprint detection module and a display screen, the fingerprint detection module being located below the display screen; wherein, the area below the display screen where the fingerprint detection module is located is a target area; the method may include: detecting whether the state of the display screen has changed, wherein, if the state of the display screen changes, a first instruction is triggered, the first instruction being used to adjust the dimming mode of the display screen; when the state of the display screen changes and the terminal device is in a target state, it is determined whether the current dimming mode of the display screen is a DC dimming mode; the target state includes the display screen being in an always-on display state and the fingerprint detection module receiving a signal of touching the target area; if the display screen is in a DC dimming mode, the execution of the first instruction is blocked.

[0007] When the state of the terminal device's display changes (e.g., from a screen-off state to a screen-on display state), a first instruction (e.g., a frame-switching instruction) is automatically triggered. This first instruction (e.g., a frame-switching instruction) can change the display's dimming mode, causing the fingerprint spot area on the display to flicker (a brightness switching phenomenon of bright-dark-bright), reducing the clarity of the captured fingerprint image. This increases the failure probability of optical fingerprint unlocking and prolongs the user's unlocking time. Therefore, this embodiment of the application, when detecting that the terminal device is in a screen-off display state and attempting optical fingerprint unlocking, blocks the terminal device from executing the instruction that can change the display's dimming mode (i.e., the first instruction), thereby controlling the brightness of the target area of ​​the display (e.g., the fingerprint spot area) to remain unchanged. This improves the clarity of the captured fingerprint image, thereby increasing the success rate of fingerprint recognition, reducing fingerprint unlocking time, and enhancing the user experience. Specifically, since the pulse frequency of the DC dimming mode is usually only 1-2 Hz, while the pulse frequency of the display screen is much higher than that of the DC dimming mode in order to achieve the same brightness as the DC dimming mode, the higher pulse frequency can reduce the human eye's perception of changes in the brightness of the light source. Therefore, if the display switches from a screen-off state to a screen-off display state, the first instruction for adjusting the dimming mode (such as a frame-switching instruction) will be automatically triggered, causing the dimming mode to suddenly switch from DC dimming mode to PWM dimming mode. At this time, due to the low pulse frequency, when the pulse frequency in PWM dimming mode is below a certain value (usually between tens of hertz and hundreds of hertz), the human eye can clearly perceive the change in brightness of the light source. This will cause the target area of ​​the display (such as the fingerprint spot area), that is, the area where the fingerprint detection module is located below the display, to become significantly dimmer. Then, as the pulse frequency increases, the brightness of the target area quickly brightens again. This phenomenon will reduce the clarity of the fingerprint image collected by the fingerprint detection module, thereby reducing the success rate of fingerprint recognition (it may require multiple recognitions to unlock successfully), making the fingerprint unlocking time longer and reducing the user experience.To avoid flickering of the target area (e.g., the fingerprint spot area) of the display screen when optical fingerprint unlocking is performed while the terminal device is in a screen-off state, this embodiment of the application determines whether the current dimming mode of the display screen is DC dimming mode when a change in the state of the display screen is detected and the terminal device is in the target state (the display screen is in a screen-off state and the fingerprint detection module receives a signal to touch the target area). If so, the execution of the first instruction is blocked, so that the terminal device does not execute the first instruction for adjusting the dimming mode (e.g., the frame-switching instruction), and the display screen always maintains the DC dimming mode. Therefore, during the screen-off period, after the fingerprint detection module under the display screen receives the signal to touch the target area, the brightness of the target area (e.g., the fingerprint spot area) of the display screen remains unchanged during the fingerprint unlocking process, which improves the clarity of the fingerprint image collected by the fingerprint detection module. Therefore, the failure probability of fingerprint unlocking is reduced and the fingerprint unlocking time is shortened, thereby improving the user experience.

[0008] In one possible implementation, the method further includes: detecting whether the terminal device is in the target state; if so, executing a second instruction, the second instruction being used to light up the target area, and adjusting the dimming mode of the display screen after the target area is lit up.

[0009] In this embodiment, if the terminal device is detected to be in a screen-off display state and the fingerprint detection module receives a signal indicating that the target area has been touched, the terminal device is controlled to execute an instruction (i.e., a second instruction) that can be used to illuminate the target area. This allows the target area of ​​the display screen to be illuminated when the fingerprint detection module receives a signal indicating that the target area has been touched, thereby illuminating the user's fingertip so that the fingerprint detection module can collect a fingerprint image for optical fingerprint unlocking. Furthermore, the dimming mode of the display screen is typically adjusted after the target area (e.g., the fingerprint spot area) is illuminated. Therefore, the terminal device typically executes the instruction (i.e., the first instruction) for adjusting the dimming mode of the display screen after executing the instruction (i.e., the second instruction) that can be used to illuminate the target area in this embodiment (i.e., after the target area is illuminated).

[0010] In one possible implementation, the terminal device stores a target flag bit, which is used to indicate the current dimming mode of the display screen; the method further includes: if the target area is lit up, setting the value of the target flag bit to a preset value, which is used to indicate that the current dimming mode of the display screen is a DC dimming mode.

[0011] In this embodiment, the terminal device stores a target flag bit that can be used to indicate the current dimming mode of the display screen. When the target area is lit, the target flag bit can be set to a preset value that indicates the current dimming mode of the display screen is DC dimming mode. The terminal device can determine whether the current dimming mode of the display screen is DC dimming mode by judging whether the target flag bit is the preset value. Then, it can further determine whether to block the terminal device from executing the first instruction that can adjust the dimming mode (e.g., frame cutting instruction) to control the dimming mode of the display screen to remain unchanged. This ensures that the brightness of the target area (e.g., the fingerprint spot area) of the display screen does not change during the optical fingerprint unlocking process while the terminal device is in a screen-off display state. This improves the clarity of the fingerprint image collected by the fingerprint detection module and reduces the failure probability of fingerprint unlocking. Therefore, the fingerprint unlocking time is shortened, and the user experience is improved.

[0012] In one possible implementation, the method further includes: if the target area is turned off, setting the value of the target flag bit to an initial value, the initial value being used to indicate that the current dimming mode of the display screen is pulse width modulation dimming mode.

[0013] In this embodiment of the application, when the target area of ​​the display screen (e.g., the fingerprint spot area) is turned off, the target flag bit can be set to an initial value that can be used to indicate that the current dimming mode of the display screen is pulse width modulation (PWM) dimming mode. The PWM dimming mode can adjust the brightness by adjusting the pulse signal, so that the terminal device can normally execute the first instruction when the target area is turned off, so that the terminal device can normally adjust the dimming mode of the display screen, and the display screen can be displayed normally in the case of successful unlocking or other scenarios.

[0014] In one possible implementation, the DC dimming mode adjusts brightness by regulating the magnitude of current and / or voltage; the pulse width modulation dimming mode adjusts brightness by regulating the pulse signal.

[0015] In this embodiment, when the terminal device is in a screen-off display state, during the optical fingerprint unlocking process after the target area (e.g., the fingerprint spot area) is touched, the display screen typically uses a direct current (DC) dimming mode for dimming. In this DC dimming mode, the brightness is adjusted by regulating the magnitude of the current and / or voltage, without involving the adjustment of the pulse frequency. Its pulse frequency is typically only 1-2 Hz. Correspondingly, when the terminal device is in a normal display state (e.g., successful unlocking or other application scenarios), during the process where the target area (e.g., the fingerprint spot area) is turned off and the display screen is displaying normally, the display screen typically uses a pulse modulation (PWM) dimming mode for dimming. In this PWM dimming mode, the brightness is adjusted by regulating the pulse signal. Its pulse frequency can represent the periodicity of the pulse signal. A higher pulse frequency pulse signal can make it difficult for the human eye to perceive changes in the brightness of the light source. Therefore, when the display switches from a screen-off state to a screen-on display state, it switches from DC dimming mode to PWM dimming mode. At the moment of switching, the pulse frequency is low. Since the pulse frequency in PWM dimming mode is below a certain value (typically between tens and hundreds of hertz), the human eye can clearly perceive the change in light intensity, causing the fingerprint spot area on the display to flicker (bright-dark-bright brightness switching phenomenon). This increases the failure rate of optical fingerprint unlocking and prolongs the unlocking time for the user. Therefore, this embodiment of the application can detect that the terminal device is in a screen-off display state and, during the optical fingerprint unlocking process after the target area (e.g., the fingerprint spot area) is touched, maintain the same brightness in the target area (e.g., the fingerprint spot area) while keeping the display dimming mode unchanged. This improves the clarity of the acquired fingerprint image, thereby increasing the success rate of fingerprint recognition, reducing fingerprint unlocking time, and enhancing the user experience.

[0016] In one possible implementation, determining whether the current dimming mode of the display screen is DC dimming mode may include: determining whether the target flag bit is the preset value; if the display screen is in DC dimming mode, then blocking the execution of the first instruction may include: if the target flag bit is the preset value, then intercepting the first instruction.

[0017] In this embodiment, when the terminal device detects a change in the state of the display screen and is currently in a target state, it can determine whether the current dimming mode of the display screen is DC dimming mode by judging whether the target flag bit is a preset value. The target state may include the display screen controller detecting that the display screen is in an off-screen state and the fingerprint detection module receiving a signal that the target area of ​​the display screen (e.g., the fingerprint spot area) has been touched. Further, when the target flag bit is the preset value, that is, the display screen is in DC dimming mode, by intercepting the first instruction for adjusting the dimming mode of the display screen, the terminal device blocks the execution of the first instruction that can be used to adjust the dimming mode. Therefore, after the target area (e.g., the fingerprint spot area) is lit up and during fingerprint unlocking, the first instruction for adjusting the dimming mode is not executed, keeping the dimming mode of the display screen unchanged (always maintaining DC dimming mode). Thus, the brightness of the target area of ​​the display screen can remain unchanged, improving the clarity of the fingerprint image collected by the fingerprint detection module, thereby increasing the success rate of fingerprint recognition, reducing the time for optical fingerprint unlocking, and improving the user experience.

[0018] In one possible implementation, the method further includes: if the target area is illuminated, acquiring a fingerprint image to be identified through the fingerprint detection module; performing optical fingerprint unlocking based on the fingerprint image to be identified; and switching the display screen from the always-on display state to the normal display state.

[0019] In this embodiment, when the target area of ​​the display screen (e.g., the fingerprint spot area) is illuminated, the fingerprint detection module of the terminal device can acquire a fingerprint image to be identified, and then perform optical fingerprint unlocking based on the acquired fingerprint image. For example, the fingerprint image to be identified can be compared with a stored valid fingerprint image to determine whether the fingerprint image can successfully unlock, ensuring that only authorized users can access the protected system space and improving system security. Further, after the terminal device completes fingerprint unlocking, it immediately enters the normal display interface, and thus the state of the display screen changes accordingly. That is, when the terminal device unlocks successfully or fails, the display screen is switched from an off-screen state to a normal display state, so that the terminal device can determine whether to execute a third instruction to extinguish the target area (e.g., the fingerprint spot area) of the display screen based on whether the display screen is currently in a normal display state. For example, if the display screen is detected to be in a normal display state, the third instruction is executed to extinguish the target area (e.g., the fingerprint spot area), thereby preventing the target area from illuminating and affecting the normal display screen in scenarios such as successful unlocking or other situations.

[0020] In one possible implementation, the method further includes: if the display screen is in a normal display state, or if the fingerprint detection module does not receive a signal to touch the target area within a preset time after receiving a signal to touch the target area, then a third instruction is executed, the third instruction being used to turn off the target area.

[0021] In this embodiment of the application, when the display screen is in normal display state, or when the fingerprint detection module does not receive a signal to touch the target area (e.g., the fingerprint spot area) within a preset time after receiving the signal, the terminal device executes a third instruction to turn off the target area. This allows the terminal device to turn off the target area when the display screen is in normal display state or when the user's finger stops touching the target area, so that the display screen can be displayed normally in other scenarios (e.g., successful unlocking, screen off display, or other scenarios).

[0022] Secondly, this application provides a control device applied to a terminal device, the terminal device including a fingerprint detection module and a display screen, the fingerprint detection module being located below the display screen; wherein, the area below the display screen where the fingerprint detection module is located is a target area; and may include:

[0023] The first detection unit is used to detect whether the state of the display screen has changed, wherein, if the state of the display screen changes, a first instruction is triggered, and the first instruction is used to adjust the dimming mode of the display screen.

[0024] The determining unit is configured to determine whether the current dimming mode of the display screen is a DC dimming mode when the state of the display screen changes and the terminal device is in a target state; the target state includes the display screen being in an always-on display state and the fingerprint detection module receiving a signal of touching the target area; the DC dimming mode adjusts the brightness by adjusting the magnitude of current and / or voltage;

[0025] A shielding unit is used to shield the execution of the first instruction if the display screen is in DC dimming mode.

[0026] In this embodiment of the application, the control device detects whether the state of the terminal device's display screen has changed through a first detection unit. When the state of the display screen changes, a first instruction (e.g., a frame-switching instruction) for adjusting the display screen's dimming mode is automatically triggered. When the state of the display screen changes and the terminal device is in a target state, a determining unit determines whether the current dimming mode of the display screen is a DC dimming mode. The target state may include the display screen being in a screen-off state and the terminal device's fingerprint detection module receiving a signal from the touch target area (fingerprint spot area). If the display screen is currently in DC dimming mode, a shielding unit blocks the execution of the first instruction for adjusting the display screen's dimming mode, ensuring the display screen always remains in DC dimming mode. Therefore, during the screen-off state, after the fingerprint detection module under the display screen receives a signal from the touch target area, the brightness of the target area (i.e., the fingerprint spot area) remains constant during fingerprint unlocking, thereby improving the accuracy of the fingerprint image collected by the fingerprint detection module. This increases the success rate of fingerprint recognition and shortens the user's fingerprint unlocking time, thus enhancing the user experience.

[0027] In one possible implementation, the device further includes:

[0028] The second detection unit is used to detect whether the terminal device is in the target state;

[0029] The first execution unit is configured to execute a second instruction if the terminal device is in the target state, the second instruction being used to light up the target area, and the dimming mode of the display screen being adjusted after the target area is lit up.

[0030] In one possible implementation, the device further includes:

[0031] The setting unit is used to set the value of the target flag bit to a preset value if the target area is lit up. The preset value is used to indicate that the current dimming mode of the display screen is DC dimming mode.

[0032] In one possible implementation, the setting unit is further configured to:

[0033] If the target area is turned off, the value of the target flag is set to an initial value, which is used to indicate that the current dimming mode of the display screen is pulse width modulation dimming mode.

[0034] In one possible implementation, the DC dimming mode adjusts brightness by regulating the magnitude of current and / or voltage; the pulse width modulation dimming mode adjusts brightness by regulating the pulse signal. In one possible implementation, the determining unit is specifically used for:

[0035] Determine whether the target flag is the preset value;

[0036] The shielding unit is specifically used for:

[0037] If the target flag is the preset value, then the first instruction is intercepted.

[0038] In one possible implementation, the device further includes:

[0039] The acquisition unit is used to acquire a fingerprint image to be identified through the fingerprint detection module if the target area is illuminated.

[0040] The unlocking unit is used to perform optical fingerprint unlocking based on the fingerprint image to be identified;

[0041] The switching unit is used to switch the display screen from the off-screen display state to the normal display state.

[0042] In one possible implementation, the device further includes:

[0043] The second execution unit is configured to execute a third instruction if the display screen is in a normal display state, or if the fingerprint detection module does not receive a touch signal within a preset time after receiving a touch signal to the target area, and the third instruction is used to turn off the target area.

[0044] Thirdly, this application provides a terminal device, which may include a fingerprint detection module and a display screen, wherein the fingerprint detection module is located below the display screen; wherein the area below the display screen where the fingerprint detection module is located is a target area; the terminal device further includes a processor and a memory, wherein the memory is used to store programs and various data, and the processor is used to call the program code stored in the memory to cause the terminal device to execute the method in any possible implementation of the first aspect above.

[0045] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method in any of the possible implementations of the first aspect described above.

[0046] Fifthly, embodiments of this application provide a computer program that may include instructions that, when run on a computer, cause the computer to perform the method in any of the possible implementations of the first aspect described above. Attached Figure Description

[0047] Figure 1AThis is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of this application.

[0048] Figure 1B This is a block diagram illustrating the software structure of a terminal device provided in an embodiment of this application.

[0049] Figure 2A This is a schematic diagram of an interface in the prior art where the fingerprint light spot area flashes when a user unlocks the terminal device with the screen off.

[0050] Figure 2B This is a flowchart illustrating a process in the prior art where the fingerprint spot area on the display screen flashes gray when unlocking with a fingerprint in a screen-off state.

[0051] Figure 3 This is a flowchart illustrating a control method provided in an embodiment of this application.

[0052] Figure 4 This is a flowchart illustrating another control method provided in an embodiment of this application.

[0053] Figure 5A This is a user interface diagram of a control method provided in an embodiment of this application.

[0054] Figure 5B This is a user interface diagram of another control method provided in an embodiment of this application.

[0055] Figure 5C This is a user interface diagram of another control method provided in an embodiment of this application.

[0056] Figure 6 This is a flowchart illustrating a method for controlling a display screen during fingerprint unlocking in a screen-off state, as provided in an embodiment of this application.

[0057] Figure 7 This is a schematic diagram of the structure of a control device provided in an embodiment of this application.

[0058] Figure 8 This is a schematic diagram of the structure of another terminal device provided in an embodiment of this application. Detailed Implementation

[0059] The embodiments of this application are described below with reference to the accompanying drawings.

[0060] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of this application. As used in the specification and appended claims of the embodiments of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in the embodiments of this application refers to and includes any or all possible combinations of one or more of the listed items.

[0061] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0062] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0063] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with the user. It realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.

[0064] First, some terms used in this application will be explained to help those skilled in the art understand the embodiments of this application.

[0065] (1) Direct Current (DC) dimming is a method of dimming using a direct current power supply. In a DC dimming system, a specific dimming device or circuit is usually used to achieve the dimming function. These dimming devices can adjust the power supply voltage or current supplied to the lamp or light source according to the dimming requirements, thereby changing the brightness of the light.

[0066] (2) Pulse Width Modulation (PWM) dimming is a common dimming technique used to control the brightness of lights or the output of other devices. Dimming is achieved by rapidly switching the current or voltage of the power supply on and off, adjusting the ratio of the pulse on and off times.

[0067] In PWM dimming, a pulse within a cycle is divided into two parts: a high level (on) and a low level (off). By adjusting the ratio between the duration of the high level (pulse on) and the duration of the low level (pulse off), the average output power and brightness level can be controlled. During dimming, increasing the pulse frequency makes the brightness changes perceived by the human eye smoother, because the human eye is less sensitive to changes in high-frequency pulses. This makes PWM dimming a commonly used dimming method in many lighting systems and electronic devices, especially suitable for LED lighting applications.

[0068] (3) Optical fingerprint (OF) recognition technology is a biometric technology used to identify and verify an individual's identity. It is based on acquiring and analyzing a user's fingerprint image to verify their identity and grant access to a device or system. Unlike traditional physical fingerprint sensors, optical fingerprint unlocking uses optical technology to acquire fingerprint images without requiring direct physical contact. Therefore, optical fingerprint sensors can be precisely placed in a designated area below the display screen, utilizing the principles of light reflection and transmission to capture fingerprint information. It can be widely used in portable devices such as smartphones, tablets, and laptops to provide a convenient method of identity verification.

[0069] To facilitate the introduction of the technical problems to be solved and the application scenarios of this application, the terminal devices involved in the embodiments of this application are described below.

[0070] Figure 1AThis illustration shows a hardware structure diagram of a terminal device according to an embodiment of this application. The terminal device 100 can be used to execute the control methods of the prior art and the control methods provided in the foregoing method embodiments. It is understood that the terminal device 100 is a smart terminal device and can be of various types; this application embodiment does not limit its specific type. For example, the terminal device can be a mobile phone, and may also include tablet computers, desktop computers, desktop computers with touch-sensitive surfaces or touch panels, laptop computers, handheld computers, smart screens, wearable devices (such as smartwatches, smart bracelets, etc.), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, in-vehicle systems, smart headphones, game consoles, and may also be Internet of Things (IoT) devices or smart home devices such as smart water heaters, smart lights, smart air conditioners, etc. Please see [link to relevant documentation]. Figure 1A The following is combined with Figure 1A A detailed description of each component of the terminal device 100 is provided below:

[0071] Terminal device 100 may include a processor 101, a memory 102, a wireless communication module 103, a mobile communication module 104, an antenna 103A, an antenna 104A, a fingerprint detection module 105, a sensor module 106, a focusing motor 107, a camera 108, a display screen 109, a display screen controller 110, a power management module 111, a battery 112, etc. The sensor module 106 may include a gyroscope sensor 106A, an accelerometer sensor 106B, an ambient light sensor 106C, an image sensor 106D, a proximity sensor 106E, etc. The wireless communication module 103 may include a WLAN communication module, a Bluetooth communication module, etc. All of the above components can transmit data via a bus.

[0072] The processor 101 is the control center of the terminal device 100. It connects various parts of the terminal device 100 via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 120, and by calling data stored in the memory 120, it performs various functions and processes data of the terminal device 100, thereby providing overall control of the terminal device 100. Optionally, the processor 101 may include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU). Different processing units can be independent devices or integrated into one or more processors.

[0073] The memory 102 can be used to store software programs and modules. The processor 190 executes various functional applications and data processing of the terminal device 100 by running the software programs and modules stored in the memory 102. The memory 102 may include, but is not limited to, read-only memory (ROM), static random access memory (SRAM), synchronous dynamic random access memory (SDRAM), or random access memory (RAM). Further, the memory 102 may include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal device 100 (such as audio data, phone book, etc.). Optionally, the memory 102 may also be located inside the processor 190 for storing instructions and data. Furthermore, the processor 190 can cause the terminal device 100 to perform existing control methods and the control methods provided in the embodiments of this application, or other applications and data processing, by executing instructions stored in the memory 102.

[0074] The wireless communication function of the terminal device 100 can be implemented through antenna 103A, antenna 104A, mobile communication module 104, wireless communication module 103, modem processor, and baseband processor.

[0075] Antennas 103A and 104A can be used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization.

[0076] The mobile communication module 104 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the terminal device 100. The mobile communication module 104 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 104 can receive electromagnetic waves via antenna 104A, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 104 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 104A.

[0077] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device or displays an image or video through the display screen 109.

[0078] The wireless communication module 103 can provide solutions for wireless communication applications on the terminal device 100, including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR). The wireless communication module 103 can be one or more devices integrating at least one communication processing module. The wireless communication module 103 receives electromagnetic waves via antenna 103A, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 101. The wireless communication module 103 can also receive signals to be transmitted from processor 101, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 103A.

[0079] The fingerprint detection module 105 may include a fingerprint sensor 105A, a fingerprint controller 105B, etc., and can be used to acquire the user's fingerprint image, process fingerprint data, and identify the fingerprint to verify the user's identity. The fingerprint sensor 105A can be an optical fingerprint sensor, which can sense the user's touch on the detection area of ​​the fingerprint sensor and acquire the fingerprint image through optical principles. Specifically, the optical fingerprint sensor 105A can illuminate the user's fingertip with an internal light source (such as a light-emitting diode or laser), and then use an optical lens and sensor to capture the reflected light from the fingerprint to acquire the user's fingerprint image. The fingerprint controller 105B can be a microprocessor or microcontroller, which has a specific fingerprint recognition algorithm built in. It can work in conjunction with other components such as the fingerprint sensor, image processing unit, storage unit, and access control system to perform fingerprint recognition and verify the user's identity. Specifically, the fingerprint controller 105B can receive the fingerprint image data acquired by the fingerprint sensor, control the image processing unit to process it, thereby extracting the feature points of the fingerprint image, creating a fingerprint template, and then comparing it with a valid fingerprint template stored in the storage unit to identify the fingerprint and verify the user's identity. Optionally, the fingerprint controller 104B can also send a signal to the access control system based on the verification result to allow user access, thereby ensuring that only authorized users can enter the protected system space to access resources. It is understood that the structure of the illustrated fingerprint detection module 105 is only one possible implementation of this application embodiment. In other embodiments, the fingerprint detection module 105 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware; this application embodiment does not specifically limit this.

[0080] The gyroscope sensor 106A can be used to determine the motion attitude of the terminal device 100. In some embodiments, the gyroscope sensor 106A can determine the angular velocity of the terminal device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 106A can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 106A detects the angle of the shaking of the terminal device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shaking of the terminal device 100 through reverse movement, thus achieving image stabilization. The gyroscope sensor 106A can also be used in navigation and motion-sensing game scenarios.

[0081] Accelerometer 106B can detect the magnitude of acceleration of terminal device 100 in various directions (generally three axes). When terminal device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the attitude of terminal device. For example, accelerometer 106B can be applied to applications such as landscape / portrait screen switching and pedometers.

[0082] The ambient light sensor 106C is used to sense the ambient light intensity. The terminal device 100 can adaptively adjust the brightness of the display screen 109 according to the sensed ambient light intensity. The ambient light sensor 106C can also be used to automatically adjust the white balance when taking pictures.

[0083] The 106D image sensor, also known as a photosensitive element, uses the photoelectric conversion function of an optoelectronic device to convert a light image on a photosensitive surface into an electrical signal proportional to the light image. Image sensors can be either charge-coupled device (CCD) sensors or complementary metal-oxide-semiconductor (CMOS) sensors.

[0084] The distance sensor 106E can be used to measure distance. The terminal device 100 can measure distance via infrared or laser. In some shooting scenarios, the terminal device 100 can use the distance sensor 106E to measure distance for fast focusing.

[0085] The focusing motor 107 can be used for rapid focusing. The terminal device 100 can control the movement of the lens via the focusing motor 107 to achieve autofocus.

[0086] The terminal device 100 can perform shooting functions through an ISP, camera 108, video codec, GPU, display screen 109, and application processor.

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

[0088] Camera 108 can be used to capture still images or videos. An object is projected onto an image sensor through the lens, generating an optical image. The image sensor converts the light signal into an electrical signal, which is then passed to an ISP (Internet Service Provider) for conversion into a digital image signal. The ISP can output the digital image signal to a DSP (Digital Signal Processor) for processing. The DSP converts the digital image signal into image signals in standard formats such as RGB and YUV. In some embodiments, the terminal device 100 may include one or N cameras 108, where N is a positive integer greater than 1.

[0089] Video codecs are used to compress or decompress digital images. Terminal device 100 may support one or more image codecs. Thus, terminal device 100 can open or save images or videos in various encoding formats.

[0090] Terminal device 100 can implement display functions through GPU, display screen 109, application processor, etc. GPU is a microprocessor for image processing, connected to display screen 109 and application processor. GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 101 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0091] The display screen 109 is used to display images, videos, etc. The display screen 109 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include one or N display screens 109, where N is a positive integer greater than 1.

[0092] The display controller 110, also known as an integrated circuit controller, is used to control the image display, brightness, color, and other parameters on the display screen 109. The display controller 110 can be an electronic chip or integrated circuit that controls and manages the parameters of the display screen 109 to control the display screen's hardware functions, such as adjusting display brightness, rendering images, and generating the final image output. In some embodiments, the GPU may be integrated with the display controller 110 on the same chip, but their functions are separate. The GPU performs image calculations, while the display controller 110 manages the hardware characteristics of the display screen 109.

[0093] The power management module 111, connected to the battery 112, detects the state of the battery 112 and controls the charging and discharging process to manage the power supply and power consumption of the terminal device 100, and ensures the safe and efficient use of the battery 112. Furthermore, the power management module 111 can also control the terminal device 100 to enter sleep mode by sending corresponding commands to the display controller 110 to turn off the display 109. It can also wake up the device when it needs to resume normal operation to reduce power consumption.

[0094] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0095] The software system of terminal device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered mobile operating system as an example; the software structure of terminal device 100 is described below by way of example.

[0096] Figure 1B This is a block diagram illustrating the software structure of a terminal device provided in an embodiment of this application.

[0097] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, a mobile operating system is divided into four layers, from top to bottom: the application layer, the application framework / core service layer, the system libraries and runtime, and the kernel layer.

[0098] The application layer can include a series of application packages.

[0099] like Figure 1BAs shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0100] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0101] like Figure 1B As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0102] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture the screen, among other things.

[0103] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0104] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0105] A phone manager is used to provide communication functions for terminal devices. For example, it manages call status (including connection and disconnection).

[0106] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0107] The notification manager allows applications to display notifications in the status bar. These can be used to convey informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the system's top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating the device, and flashing indicator lights.

[0108] Runtime can refer to all the code libraries, frameworks, etc., required for a program to run. For example, for the C language, the runtime includes a series of function libraries required for C programs to run. For the Java language, in addition to the core libraries, the runtime also includes the virtual machine required for Java programs to run. The aforementioned core libraries can include the functionalities that the Java language needs to call.

[0109] System libraries can include multiple functional modules. For example: Hardware Abstraction Layer (HAL), surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0110] A Hardware Abstraction Layer (HAL) provides an abstract interface to specific hardware devices, such as fingerprint sensors, cameras, and light sensors, allowing applications and / or system services to access and control these devices. The HAL abstracts hardware-related operations, providing standardized interfaces for the operating system or applications. Therefore, the HAL layer separates the low-level hardware implementation from the upper-level application, enabling hardware manufacturers to implement hardware-specific code and ensuring device compatibility.

[0111] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0112] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0113] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0114] A 2D graphics engine is a graphics engine for 2D drawing.

[0115] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0116] It should be understood that the control methods in the prior art and the steps in the control method embodiments provided in this application can all be implemented by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly implemented by hardware processor execution, or by a combination of hardware and software modules in the processor.

[0117] Based on the above description of the terminal device 100, this application further addresses the specific technical problem it aims to solve. The following describes the application scenarios and methods for users to unlock their devices using fingerprints in a screen-off state using the terminal device 100.

[0118] Please see Figure 2A , Figure 2A This is a schematic diagram of an interface where the fingerprint light spot area flickers when a user unlocks the device with their fingerprint while the screen is off, according to existing technology. Figure 2A As shown, when a user touches the fingerprint spot area on the display screen during the screen-off phase of the terminal device, preparing to unlock with their fingerprint, the terminal device can display interface 21 in response to the user's operation. In this interface, the fingerprint spot area 201 on the terminal device's display screen is illuminated and is in a high-brightness state. Further, while the user continues to touch the fingerprint spot area 201 on the display screen, during fingerprint unlocking, the brightness of the fingerprint spot area 201 suddenly dims, and the terminal device displays interface 22. In this interface, the brightness of the fingerprint spot area 202 on the terminal device's display screen is significantly dimmed compared to the brightness of the fingerprint spot area 201 in interface 21. Further still, as the user continues to touch the fingerprint spot area 202 on the display screen and continues fingerprint unlocking, the brightness of the fingerprint spot area 202 quickly brightens again, returning to a high-brightness state, and the terminal device displays interface 23. In this interface, the fingerprint spot 203 on the terminal device's display screen is in a high-brightness state. During the screen-off display period, when a user unlocks their phone with their fingerprint, the fingerprint spot on the terminal device's display screen can clearly show a flickering phenomenon (brightness switching between bright and dark). Therefore, the clarity of the collected fingerprint image is reduced, which in turn reduces the success rate of fingerprint recognition and increases the probability of optical fingerprint unlocking failure, resulting in a poor user experience.

[0119] Please see Figure 2B , Figure 2B This is a flowchart illustrating a process in existing technology where the fingerprint light spot area on the display screen flashes gray during fingerprint unlocking in a screen-off state. The main steps of this process are as follows:

[0120] Step S201: In response to the processing signal sent by the user pressing the power button, enter the screen-off display state.

[0121] Specifically, upon receiving the signal triggered by the user pressing the power button, the terminal device can rely on the interface provided by the operating system to perform operations such as hibernation, standby, or other operations, causing the terminal device to enter a screen-off display state. The relevant processing operations in step S201 can occur as described above. Figure 1BThe operating system's application framework layer, as shown, provides an application programming interface (API) and a programming framework that allows the terminal device to respond to the processing signal triggered by the user pressing the power button, turn off the display, and enter a screen-off state.

[0122] Step S202: Upon receiving a signal that a finger is touching the fingerprint spot area, send a command to light up the fingerprint spot.

[0123] Specifically, when the terminal device is in a screen-off state, the fingerprint sensor below the fingerprint spot area can detect whether the user has touched the fingerprint spot area. Once the fingerprint sensor detects that the user has touched the fingerprint spot area, it can then use the aforementioned... Figure 1B The system library of the operating system shown can, for example, communicate with the operating system kernel through the Hardware Abstraction Layer (HAL) to report the signal received by the fingerprint sensor from the user touching the fingerprint spot area to the kernel layer of the operating system. Furthermore, in response to the signal of touching the fingerprint spot area, the kernel layer of the operating system sends a command to light up the fingerprint spot through the HAL. This command is a hardware command that can be executed by the corresponding hardware device (e.g., the display controller), so that the display controller can control the fingerprint spot area of ​​the display screen to light up, so that the fingerprint sensor can collect fingerprints and then unlock the device.

[0124] Step S203: Based on the above instruction to light up the fingerprint spot, the fingerprint spot area is lit up.

[0125] Specifically, the display controller can receive the above-mentioned instruction to light up the fingerprint spot, and light up the fingerprint spot area in the display screen. At this time, the dimming mode of the terminal device is DC dimming mode, and the fingerprint spot area of ​​the display screen is in a high-brightness state. The brightness of DC dimming mode can be adjusted by adjusting the voltage or / or current. The pulse frequency of DC dimming mode is low, usually 1-2HZ.

[0126] Step S204: A change in the display state is detected, triggering a frame-switching command.

[0127] Specifically, because the display controller detects a change in the display state (from a screen-off state to a screen-off display state), therefore, in the above... Figure 1B The operating system kernel layer automatically triggers a frame-switching instruction. This instruction is sent to the display controller through the abstract interface of a specific hardware device (such as a display controller) provided by the HAL layer. The instruction is used to adjust the dimming mode of the display screen, changing it from DC dimming to Pulse Width Modulation (PWM) dimming.

[0128] Step S205: In response to the above frame-switching command, the dimming mode of the display screen is switched to pulse width modulation dimming mode, and the fingerprint spot area flashes.

[0129] Specifically, the display controller receives and executes the frame-switching command, switching the display's dimming mode from DC dimming to pulse-width modulation (PWM) dimming. In PWM dimming, the pulse frequency is higher, and the higher the pulse frequency, the harder it is for the human eye to perceive changes in light intensity. Due to the change in dimming mode, and the fact that the pulse frequency remains low at the moment of switching, the low-frequency pulse signal in PWM dimming can cause significant changes in light intensity. This results in the fingerprint spot area becoming darker and then returning to a bright state. Consequently, the fingerprint spot area exhibits a noticeable flashing gray phenomenon (brightness switching between bright and dark). This reduces the clarity of the fingerprint image captured by the fingerprint detection module, increasing the probability of fingerprint unlocking failure and lengthening the unlocking time, thus negatively impacting the user experience.

[0130] It should be noted that there is no clear order between the step of detecting a change in the display state and triggering a frame-switching command and the step of receiving a signal that the finger touches the fingerprint spot area and sending a command to light up the fingerprint spot. That is, the above step S204 can be executed synchronously with step S202, or it can be executed before or after step S202. This application embodiment does not make specific limitations on this.

[0131] In summary, the technical problems that this application aims to solve include the following aspects: In the prior art, during the fingerprint unlocking process when the terminal device is in a screen-off display state, the display controller of the terminal device executes a frame-switching command to switch the display's dimming mode from DC dimming mode to pulse width modulation dimming mode. This causes significant changes in brightness of the light source at low frequencies, resulting in a phenomenon of graying fingerprint spot. This reduces the clarity of the fingerprint image collected by the fingerprint detection module, thereby reducing the success rate of fingerprint recognition, increasing the fingerprint unlocking time, and degrading the user experience.

[0132] Based on the above Figure 1A and Figure 1B The hardware and software architecture of the terminal devices provided are designed for Figure 2A and Figure 2B The technical problems in the prior art are analyzed and solved in detail.

[0133] Please see Figure 3 , Figure 3 This is a flowchart illustrating a control method provided in an embodiment of this application. This method can be applied to the above-mentioned... Figure 1A In the aforementioned terminal device, the above-mentioned... Figure 1BThe software architecture implementation in the document enables the terminal device to support and execute... Figure 3 The method flow shown consists of steps S301-S303.

[0134] Step S301: Detect whether the state of the display screen has changed, wherein if the state of the display screen has changed, trigger a first instruction, the first instruction being used to adjust the dimming mode of the display screen.

[0135] Specifically, the terminal device can detect whether the state of the display screen has changed through the display screen controller. When the state of the display screen changes, for example, when switching from a screen-off state to a screen-off display state, the terminal device... Figure 1B The operating system kernel layer automatically issues a first instruction (e.g., a frame-switching instruction) to adjust the dimming mode of the display screen. For example, this first instruction can switch the display screen's dimming mode from DC dimming to pulse-width modulation (PWM) dimming mode. DC dimming typically adjusts brightness by regulating the magnitude of current and / or voltage, with a low pulse frequency, usually 1-2 Hz. In contrast, the pulse frequency of PWM dimming is much higher than that of DC dimming. Furthermore, in PWM dimming, when the pulse frequency is below a certain value (typically between tens and hundreds of hertz), the human eye can clearly perceive changes in the brightness of the light source. Therefore, when the display suddenly switches from DC dimming mode to PWM dimming mode, the pulse frequency is still relatively low. Assuming that the first instruction is executed by the terminal device, the brightness of the target area of ​​the display (such as the fingerprint spot area) will be significantly darkened. Then the pulse frequency will increase, and the brightness of the target area will quickly brighten again. However, this phenomenon can reduce the clarity of the fingerprint image collected by the fingerprint detection module, thereby reducing the success rate of fingerprint recognition (it may require multiple recognitions to unlock successfully), making the fingerprint unlocking time longer and reducing the user experience.

[0136] Step S302: When the state of the display screen changes and the terminal device is in the target state, it is determined whether the current dimming mode of the display screen is DC dimming mode; the target state includes the display screen being in the always-on display state and the fingerprint detection module receiving a signal to touch the target area.

[0137] Specifically, when the terminal device detects a change in the state of the display screen (e.g., switching from a screen-off state to a screen-off display state) through the display screen controller, and the display screen is currently in a screen-off display state, and the fingerprint detection module receives a signal from the target area being touched, the terminal device can further determine whether to block the execution of the first instruction (e.g., a frame-switching instruction) used to adjust the dimming mode by determining whether the current dimming mode of the display screen is a DC dimming mode. This ensures that the dimming mode of the display screen remains unchanged, so that the brightness of the target area (e.g., the fingerprint spot area) of the display screen does not change during the optical fingerprint unlocking process while the terminal device is in a screen-off display state. This improves the clarity of the fingerprint image collected by the fingerprint detection module and reduces the probability of fingerprint unlocking failure. Therefore, the fingerprint unlocking time is shortened, and the user experience is improved.

[0138] Step S303: If the display screen is in DC dimming mode, then the execution of the first instruction is blocked.

[0139] Specifically, when the terminal device detects that the display screen is in DC dimming mode through the display controller, it blocks the execution of the first instruction (e.g., frame-switching instruction) used to adjust the dimming mode. This allows the terminal device to avoid executing the first instruction, ensuring that the display screen remains in DC dimming mode. Therefore, during the screen-off display period, after the fingerprint detection module under the display screen receives the signal of touching the target area, the brightness of the target area (e.g., the fingerprint spot area) on the display screen remains constant during the fingerprint unlocking process. This improves the clarity of the fingerprint image collected by the fingerprint detection module, thereby increasing the success rate of fingerprint recognition and reducing the failure probability of fingerprint unlocking, thus enhancing the user experience.

[0140] Please see Figure 4 , Figure 4 This is a flowchart illustrating another control method provided in an embodiment of this application, which can be applied to the above-mentioned... Figure 1A In the aforementioned terminal device, the above-mentioned... Figure 1B The software architecture implementation in the document enables the terminal device to support and execute... Figure 4 The method flow shown consists of steps S401-S411.

[0141] Step S401: Detect whether the state of the display screen has changed, wherein if the state of the display screen has changed, trigger a first instruction, the first instruction being used to adjust the dimming mode of the display screen.

[0142] For a detailed description of detecting the display screen's status and triggering the first command, please refer to [link to relevant documentation]. Figure 3 The relevant description of step S301 in the previous section will not be repeated here.

[0143] Step S402: Detect whether the terminal device is in the target state, the target state including the display screen being in the off-screen state and the fingerprint detection module receiving a signal to touch the target area.

[0144] Specifically, for a description regarding whether the detection terminal device (i.e., the terminal device) is in the target state, please refer to [link to relevant documentation]. Figure 3 The relevant description of step S302 in the previous section will not be repeated here.

[0145] Step S403: If yes, then execute the second instruction, which is used to light up the target area, and the dimming mode of the display screen is adjusted after the target area is lit up.

[0146] Specifically, when the terminal device detects that the display screen is currently in a target state via the display controller, where the target state may include the display controller detecting that the display screen is in a screen-off state and the fingerprint detection module receiving a signal to touch a target area (e.g., the fingerprint spot area) of the display screen, the terminal device controls the display screen to execute a second instruction to illuminate the target area (e.g., the fingerprint spot area). Therefore, the target area of ​​the display screen can be illuminated when the display screen is in a screen-off state and the fingerprint detection module receives a signal to touch the target area, thereby illuminating the user's fingertip so that the fingerprint detection module can collect a fingerprint image for optical fingerprint unlocking. Furthermore, the dimming mode of the display screen is usually adjusted after the target area (e.g., the fingerprint spot area) is illuminated. Therefore, the terminal device typically executes the second instruction to illuminate the target area first, and then executes the first instruction to adjust the dimming mode of the display screen.

[0147] Step S404: If the target area is lit up, set the value of the target flag bit to a preset value, which is used to indicate that the current dimming mode of the display screen is DC dimming mode.

[0148] Specifically, when the target area is illuminated, the terminal device can... Figure 1BThe operating system kernel layer in the terminal device sets a target flag stored in the terminal device to indicate the current dimming mode of the display screen to a preset value (e.g., the preset value can be set to 1) that indicates the current dimming mode of the display screen is DC dimming mode. This allows the terminal device to determine whether the current dimming mode of the display screen is DC dimming mode by judging whether the target flag is the preset value. This allows the terminal device to further determine whether to block the execution of the first instruction (e.g., frame-switching instruction) to control the dimming mode of the display screen so that the brightness of the target area (e.g., the fingerprint spot area) of the display screen does not change during the optical fingerprint unlocking process while the terminal device is in a screen-off display state. This improves the clarity of the fingerprint image collected by the fingerprint detection module and reduces the probability of fingerprint unlocking failure. Therefore, the fingerprint unlocking time is shortened, and the user experience is improved.

[0149] Step S405: When the state of the display screen changes and the terminal device is in the target state, determine whether the target flag is the preset value.

[0150] Specifically, when the terminal device detects a change in the state of the display screen through the display controller and that the screen is currently in the target state, the display screen can be activated by the terminal device through the above... Figure 1B The operating system kernel layer determines whether the target flag bit is a preset value (e.g., whether the target flag bit is 1) to determine whether the current dimming mode of the display screen is DC dimming mode. The target state may include the display controller detecting that the display screen is in an always-on display state and the fingerprint detection module receiving a signal from the target area of ​​the display screen (e.g., the fingerprint spot area).

[0151] Step S406: If the target flag is the preset value, then intercept the first instruction.

[0152] Furthermore, when the target flag is at the preset value, that is, when the display is in DC dimming mode, the terminal device can block the execution of the first instruction (e.g., frame-switching instruction) for adjusting the display's dimming mode by intercepting the first instruction. Thus, after the target area (e.g., the fingerprint spot area) is lit up and during the fingerprint unlocking process, the first instruction for adjusting the dimming mode is not executed, allowing the display's dimming mode to remain unchanged. For example, the display always maintains DC dimming mode. Therefore, the brightness of the fingerprint detection module remains constant during optical fingerprint unlocking, thereby improving the clarity of the collected fingerprint image, increasing the success rate of fingerprint recognition, reducing the probability of optical fingerprint unlocking failure, and thus improving the user experience.

[0153] Based on the method steps S401-S406 above, the following two possible implementations may occur:

[0154] In one possible implementation, when a user continuously touches the target area of ​​the display screen to unlock the device with a fingerprint, the control method provided in this application embodiment may further include the following steps S407A-S410A and step S411.

[0155] Step S407A: If the target area is illuminated, the fingerprint image to be identified is acquired through the fingerprint detection module.

[0156] Specifically, when the target area (e.g., the fingerprint spot area) is illuminated, the fingerprint detection module, such as a fingerprint sensor, can capture an image of the fingerprint to be identified, thereby enabling optical fingerprint unlocking. It should be noted that there is no specific order between step S407A and the aforementioned steps S405-S406; step S407A can also be performed simultaneously with steps S405-S406.

[0157] Step S408A: Perform optical fingerprint unlocking based on the fingerprint image to be identified.

[0158] Specifically, optical fingerprint unlocking is performed based on the fingerprint image to be identified acquired by the aforementioned fingerprint detection module. For example, the fingerprint controller can receive fingerprint image data acquired by the fingerprint sensor and control the image processing unit to process it, thereby extracting feature points from the fingerprint image, creating a fingerprint template, and then comparing this fingerprint template with valid fingerprint templates stored in the storage unit to identify the fingerprint and verify the user's identity. The operation of controlling the image processing unit to process and compare the fingerprint image can be performed in various ways, such as... Figure 1B The operating system kernel layer, as described above, performs the function to determine whether the fingerprint image can be successfully unlocked, ensuring that only authorized users can access the protected system space and improving system security.

[0159] Step S409A: Switch the display screen from the off-screen state to the normal display state.

[0160] Furthermore, once the terminal device completes fingerprint unlocking, it immediately enters the normal display interface, and thus the display state changes accordingly. Specifically, when the terminal device unlocks successfully or fails, it can switch the display from an off-screen state to a normal display state via the display controller. This allows the terminal device to determine whether to execute a third instruction to extinguish the target area (e.g., the fingerprint spot area) based on whether the display is currently in a normal display state. For example, if the display is detected to be in a normal display state, the third instruction is executed to extinguish the target area (e.g., the fingerprint spot area), thereby preventing the target area from emitting light and affecting the normal display in scenarios such as successful unlocking or other situations.

[0161] Step S410A: If the display screen is in normal display state, then execute the third instruction, which is used to turn off the target area.

[0162] Specifically, when the display controller detects that the display is in a normal display state, the terminal device can control the display to execute a third instruction to turn off the target area through the display controller. This allows the terminal device to turn off the target area (such as the fingerprint spot area) when the display is in a normal display state, thereby avoiding the target area emitting light in scenarios such as successful unlocking or other situations, which would affect the normal display of the screen.

[0163] In another possible implementation, when the user's finger briefly touches the target area of ​​the display screen, that is, when the time the user's finger touches the target area is insufficient for the fingerprint detection module to collect the fingerprint and perform optical fingerprint unlocking, the control method provided in this application embodiment may further include the following steps S407B and S411.

[0164] Step S407B: If the fingerprint detection module does not receive a signal to touch the target area within a preset time after receiving a signal to touch the target area, it executes a third instruction, which is used to extinguish the target area.

[0165] Specifically, if the fingerprint detection module under the display receives a signal of touching the target area but does not receive a signal of touching the target area within a preset time, the terminal device controls the display screen to execute a third instruction to turn off the target area through the display screen controller. This allows the terminal device to turn off the target area (e.g., the fingerprint spot area) when the user's finger stops touching it, thereby preventing the target area from emitting light and affecting the normal display of the screen in scenarios such as always-on display. Step S411: If the target area is turned off, the value of the target flag bit is set to an initial value, which indicates that the current dimming mode of the display screen is pulse width modulation dimming mode.

[0166] Specifically, when the display controller responds to the aforementioned third instruction and controls the display screen to turn off the target area, it can do so as described above. Figure 1B The operating system kernel layer described above sets the target flag to an initial value that can be used to indicate that the current dimming mode of the display screen is pulse width modulation (PWM) dimming mode. PWM dimming mode adjusts brightness by regulating the pulse signal. This allows the terminal device to execute the first instruction normally even when the target area is off; that is, the terminal device can normally adjust the dimming mode of the display screen, enabling the display screen to display normally in situations such as successful unlocking or other scenarios.

[0167] The steps of the control method provided in the embodiments of this application have been described above. Next, we will introduce the operation interface diagram of the user performing fingerprint unlocking when the terminal device is in the screen-off display state after using the control method provided in the embodiments of this application.

[0168] Please see Figure 5A , Figure 5A This is a schematic diagram of a user interface for a control method provided in an embodiment of this application. This user interface diagram can be accessed through… Figure 1A Terminal device 100 and Figure 1B The software architecture implementation in [the context]. For example... Figure 5AAs shown, when the user presses the side power button 501, or touches any area of ​​the display screen after a long period of inactivity, the display screen enters a screen-off state. In response to the user's operation, the display screen can present a user interface as shown in interface 51. The fingerprint spot area (i.e., the target area) 502, located below the display screen and equipped with a fingerprint detection module, can be used to collect fingerprints and perform optical fingerprint unlocking. At this time, the fingerprint spot area 502 is in an off state, and the message "Please touch the fingerprint sensing area below to verify your fingerprint" can be displayed above it, prompting the user to touch the fingerprint spot area to unlock their fingerprint. Furthermore, when a user touches the fingerprint spot area 502, the terminal device 100 is in the target state (the display screen is in the off-screen state, and the fingerprint detection module receives the signal of touching the fingerprint spot area), presenting the user interface as shown in interface 52. When the fingerprint detection module receives the signal of a finger touching the fingerprint spot area 503, the fingerprint spot area 503 is illuminated and remains bright. Even if the user continues to touch the fingerprint spot area 503 on the display screen, the brightness of the fingerprint spot area 503 remains unchanged until optical fingerprint unlocking is complete. When fingerprint unlocking is successful, since the fingerprint spot area 503 is turned off, the user interface 53 is entered. At this time, the display screen switches from the off-screen state to the normal display state, allowing the display screen to display normally after successful unlocking. Furthermore, since the brightness of the fingerprint spot area 503 remains constant and remains bright throughout the optical fingerprint unlocking process, the clarity of the fingerprint image captured by the fingerprint detection module is improved, thereby increasing the success rate of fingerprint recognition, reducing the time for optical fingerprint unlocking, and enhancing the user experience.

[0169] Please see Figure 5B , Figure 5B This is a user interface diagram illustrating another control method provided in an embodiment of this application. This user interface diagram can be accessed through... Figure 1A The terminal device 100 and Figure 1B The software architecture implementation in [the document / section]. The user interface of the terminal device 100, responding to user input, enters the always-on display state and performs optical fingerprint unlocking, similar to the above-mentioned [specific implementation / method]. Figure 5A Interfaces 51 and 52 are the same; their specific steps can be found above. Figure 5AThe relevant descriptions in the documentation will not be repeated here. When the user fails to unlock using optical fingerprint, the system switches to user interface 54. At this time, the display screen changes from always-on display to normal display, and displays the message "Fingerprint unlock failed, please use password to unlock" and a numeric keypad 504 to prompt the user to unlock using a password. Since the display screen changes from always-on display to normal display, the terminal device 100, by detecting that the display screen is currently in normal display mode, executes a third instruction that can be used to extinguish the fingerprint spot area 503 (i.e., the target area), thereby preventing the target area from illuminating and affecting the normal display screen in scenarios such as unlock failure.

[0170] Please see Figure 5C , Figure 5C This is a schematic diagram of a user interface for another control method provided in an embodiment of this application. This user interface diagram can be accessed through… Figure 1A The terminal device 100 and Figure 1B The software architecture implementation in [the document / section]. The user interface of the terminal device 100, responding to user input, enters the always-on display state and performs optical fingerprint unlocking, similar to the above-mentioned [specific implementation / method]. Figure 5A Interfaces 51 and 52 are the same; their specific steps can be found above. Figure 5A The relevant descriptions in the text will not be repeated here. However, if the user touches the fingerprint spot area 503 in the interface 52 for a short time, which is insufficient for the fingerprint detection module to complete the optical fingerprint unlocking process, that is, if the fingerprint detection module does not receive a signal to touch the fingerprint spot area 503 within a preset time after receiving the signal, it will switch to the user interface 55. At this time, the display screen is still in the always-on display state, and its fingerprint spot area 505 is turned off, so that the display screen can display normally in scenarios such as always-on display.

[0171] It should be noted that the above Figures 5A-5C The user interface diagrams shown are exemplary illustrations of the embodiments of this application. The user interface diagrams during actual operation may also be of other styles, and the embodiments of this application do not limit them.

[0172] In one possible implementation, please see Figure 6 , Figure 6 This is a flowchart illustrating a method for controlling a display screen during fingerprint unlocking in a screen-off state, as provided in an embodiment of this application. The specific steps may include, but are not limited to, the following:

[0173] Step S601: In response to the processing signal sent by the user pressing the power button, enter the screen-off display state.

[0174] Step S602: Upon receiving a signal that a finger is touching the fingerprint spot area, send a command to light up the fingerprint spot.

[0175] Step S603: Based on the above instruction to light up the fingerprint spot, the fingerprint spot area is lit up.

[0176] Step S604: A change in the display state is detected, triggering a frame-switching command.

[0177] It should be noted that the specific steps of steps S601-S604 above are the same as those described above. Figure 2B Steps S201-S204 are similar and will not be described again here. Furthermore, there is no clear order between the above-mentioned step of triggering the frame-switching instruction and the step of receiving the signal of the finger touching the fingerprint spot area and sending the instruction to light up the fingerprint spot. That is, the above-mentioned step S604 can be executed synchronously with step S602, or it can be executed before or after step S602. This application embodiment does not make specific limitations on this.

[0178] Step S605: Set the value of the target flag bit to 1 to indicate that the current dimming mode of the display screen is DC dimming mode.

[0179] For example, a target flag bit is stored in the terminal device, which can be used to indicate the current dimming mode of the display screen. When the aforementioned fingerprint spot is illuminated by the display screen controller, the terminal device can... Figure 1B The operating system kernel layer sets the target flag to 1 to indicate that the current dimming mode of the display is DC dimming mode. Therefore, the terminal device can determine whether the current dimming mode of the display is DC dimming mode by judging whether the target flag is a preset value. This allows it to further determine whether to block the execution of the first instruction (e.g., frame-switching instruction) to control the dimming mode of the display so that the terminal device is in a screen-off state. During the optical fingerprint unlocking process, the brightness of the target area of ​​the display (e.g., the fingerprint spot area) does not change, thereby improving the clarity of the fingerprint image collected by the fingerprint detection module and reducing the probability of fingerprint unlocking failure. As a result, the fingerprint unlocking time is shortened, and the user experience is improved.

[0180] Step S606: Determine whether the target flag bit is 1.

[0181] For example, when the terminal device detects a change in the state of the display screen and that it is in a screen-off state via the display controller, and when the fingerprint detection module receives a signal from the fingerprint spot area, the terminal device can then use the above-mentioned... Figure 1B The operating system kernel layer determines whether the above target flag is 1 in order to determine whether the current dimming mode of the display screen is DC dimming mode.

[0182] Step S607: If so, then intercept the above frame-slicing command.

[0183] Furthermore, when the target flag is 1, it is determined that the display screen is in DC dimming mode. Then, by intercepting the frame-switching command that can adjust the dimming mode of the display screen, the terminal device is prevented from executing the frame-switching command and the dimming mode remains unchanged. This controls the brightness of the fingerprint spot area on the display screen to remain unchanged, thereby improving the clarity of the fingerprint image collected by the fingerprint detection module and reducing the probability of fingerprint unlocking failure. As a result, the fingerprint unlocking time is shortened, and the user experience is improved.

[0184] Step S608: The dimming mode of the display screen remains unchanged, and the brightness of the fingerprint spot area remains unchanged.

[0185] For example, since the frame-slicing command is intercepted, the display controller does not receive and execute the frame-slicing command. Therefore, the dimming mode of the display screen can remain unchanged, for example, always maintaining the DC dimming mode. The clarity of the fingerprint image collected by the fingerprint detection module is improved, thereby increasing the success rate of fingerprint recognition and reducing the probability of optical fingerprint unlocking failure, thus enhancing the user experience.

[0186] Optionally, in one possible implementation, when the user's finger continues to touch the fingerprint spot area of ​​the display screen for optical fingerprint unlocking, the terminal device can acquire a fingerprint image to be identified through the fingerprint detection module, and then perform optical fingerprint unlocking based on the fingerprint image. Further, after optical fingerprint unlocking is completed, the display screen can be switched from an off-screen state to a normal display state; when the display screen is in the normal display state, a third instruction is executed to extinguish the fingerprint spot area, and then the value of the aforementioned target flag bit is set to its initial value to avoid affecting the normal display of the screen in other scenarios (e.g., successful unlocking or other scenarios). For a detailed description of this step, please refer to the above. Figure 4 The relevant descriptions of steps S407A-S410A and step S411 will not be repeated here.

[0187] Alternatively, in another possible implementation, when the user's finger briefly touches the target area of ​​the display screen—that is, when the time the user's finger touches the target area is insufficient for the fingerprint detection module to collect the fingerprint and perform optical fingerprint unlocking—the terminal device executes a third instruction to extinguish the fingerprint spot area, and then sets the value of the aforementioned target flag bit to its initial value to avoid affecting the normal display of the screen in other scenarios (such as during screen-off display or other scenarios). For a detailed description of this step, please refer to the above. Figure 4 The relevant descriptions of steps S407B and S411 are not repeated here.

[0188] The methods of the embodiments of this application have been described in detail above. It is understood that each device, in order to achieve the corresponding functions, includes hardware structures and / or software modules for executing each function. Based on the units and steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application. The devices provided in the embodiments of this application are described below.

[0189] Please see Figure 7 , Figure 7 This is a schematic diagram of a control device provided in an embodiment of this application. The control device 700 can be applied to a terminal device, which includes a fingerprint detection module and a display screen. The fingerprint detection module is located below the display screen; wherein the area below the display screen where the fingerprint detection module is located is the target area; the control device 700 may include a first detection unit 701, a determination unit 702, and a shielding unit 703, wherein each unit is described in detail below:

[0190] The first detection unit 701 is used to detect whether the state of the display screen has changed. If the state of the display screen changes, a first instruction is triggered, which is used to adjust the dimming mode of the display screen.

[0191] The determining unit 702 is configured to determine whether the current dimming mode of the display screen is a DC dimming mode when the state of the display screen changes and the terminal device is in a target state; the target state includes the display screen being in an always-on display state and the fingerprint detection module receiving a signal of touching the target area; the DC dimming mode adjusts the brightness by adjusting the magnitude of current and / or voltage;

[0192] The shielding unit 703 is used to shield the execution of the first instruction if the display screen is in DC dimming mode.

[0193] In this embodiment of the application, the control device detects whether the state of the terminal device's display screen has changed through a first detection unit 701. If the state of the display screen changes, a first instruction (e.g., a frame-switching instruction) for adjusting the dimming mode of the display screen is automatically triggered. When the state of the display screen changes and the terminal device is in a target state, a determining unit 702 determines whether the current dimming mode of the display screen is a DC dimming mode. The target state may include the display screen being in a screen-off state and the fingerprint detection module of the terminal device receiving a signal indicating a touch on the target area (fingerprint spot area). If the display screen is currently in a DC dimming mode, a shielding unit 703 blocks the execution of the first instruction for adjusting the dimming mode of the display screen, ensuring that the display screen always remains in DC dimming mode. Therefore, during the screen-off state, after the fingerprint detection module under the display screen receives a signal indicating a touch on the target area, the brightness of the target area (i.e., the fingerprint spot area) of the display screen remains constant during fingerprint unlocking, thereby improving the accuracy of the fingerprint image collected by the fingerprint detection module. This increases the success rate of fingerprint recognition, shortens the user's fingerprint unlocking time, and enhances the user experience.

[0194] In one possible implementation, the device further includes:

[0195] The second detection unit is used to detect whether the terminal device is in the target state;

[0196] The first execution unit is configured to execute a second instruction if the terminal device is in the target state, the second instruction being used to light up the target area, and the dimming mode of the display screen being adjusted after the target area is lit up.

[0197] In one possible implementation, the device further includes:

[0198] The setting unit is used to set the value of the target flag bit to a preset value if the target area is lit up. The preset value is used to indicate that the current dimming mode of the display screen is DC dimming mode.

[0199] In one possible implementation, the setting unit is further configured to:

[0200] If the target area is turned off, the value of the target flag is set to an initial value, which indicates that the current dimming mode of the display screen is pulse width modulation dimming mode; wherein, the pulse width modulation dimming mode adjusts the brightness by adjusting the pulse signal.

[0201] In one possible implementation, the DC dimming mode adjusts brightness by regulating the magnitude of current and / or voltage; the pulse width modulation dimming mode adjusts brightness by regulating the pulse signal.

[0202] In one possible implementation, the determining unit 702 is specifically used for:

[0203] Determine whether the target flag is the preset value;

[0204] The shielding unit 703 is specifically used for:

[0205] If the target flag is the preset value, then the first instruction is intercepted.

[0206] In one possible implementation, the device further includes:

[0207] The acquisition unit is used to acquire a fingerprint image to be identified through the fingerprint detection module if the target area is illuminated.

[0208] The unlocking unit is used to perform optical fingerprint unlocking based on the fingerprint image to be identified;

[0209] The switching unit is used to switch the display screen from the off-screen display state to the normal display state.

[0210] In one possible implementation, the device further includes:

[0211] The second execution unit is configured to execute a third instruction if the display screen is in a normal display state, or if the fingerprint detection module does not receive a touch signal within a preset time after receiving a touch signal to the target area, and the third instruction is used to turn off the target area.

[0212] It should be noted that the functions of each unit in the control device 700 described in this application embodiment are as described above. Figure 3 , Figure 4 as well as Figure 6 The descriptions of the embodiments described herein will not be repeated here. It is understood that the apparatus and methods provided in this application can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules or units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings, direct couplings, or communication connections may be indirect couplings or communication connections through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0213] Please see Figure 8 , Figure 8 This is a schematic diagram of the hardware structure of another terminal device provided in an embodiment of this application. For example... Figure 8 As shown, the terminal device 800 includes at least one processor 101 and a memory 102. The processor 101 is coupled to the memory 102; in this embodiment, the coupling can be a communication connection, an electrical connection, or other forms. Furthermore, the terminal device 800 provided in this embodiment may also include a fingerprint detection module 105 and at least one display screen 109. Figure 8 (Only one is shown). The processor 101, memory 102, fingerprint detection module 105, and display screen 109 can be connected via bus 801. Specifically, the memory 102 is used to store program instructions. The processor 101 is used to call the program instructions stored in the memory 102, so that the terminal device 800 can execute the steps in the control method provided in the embodiments of this application. The description of each component and related steps can be referred to above, and will not be repeated here.

[0214] It should be noted that the terminal device 800 provided in this application embodiment may include more or fewer components than those shown in the figure, or combine some components, or split some components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or any combination of software and hardware.

[0215] This application also provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program, which, when executed by a processor, implements some or all of the steps of any of the control methods described in the above method embodiments.

[0216] This application also provides a computer program that includes instructions that, when executed by a computing device, enable the computing device to perform some or all of the steps of any of the above-described control methods.

[0217] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0218] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".

[0219] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps may be performed in other orders or simultaneously, or some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps. Secondly, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application. It should also be noted that the features and functions of two or more devices according to this disclosure can be embodied in one device. Conversely, the features and functions of one device described above can be further divided and embodied by multiple devices.

[0220] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0221] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0222] In summary, the above description is merely an embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made based on the disclosure of this application should be included within the scope of protection of this application.

Claims

1. A control method characterized by, The application is applied to a terminal device, the terminal device comprises a fingerprint detection module and a display screen, the fingerprint detection module is located below the display screen; wherein, a region below the display screen where the fingerprint detection module is arranged is a target region; the method comprises: detecting whether the state of the display screen changes, wherein, in the case that the state of the display screen changes, a first instruction is triggered, the first instruction is used to adjust the dimming mode of the display screen; when the state of the display screen changes and the terminal device is in a target state, it is determined whether the current dimming mode of the display screen is a direct current dimming mode; the target state comprises that the display screen is in an off-screen display state and the fingerprint detection module receives a signal of touching the target region; if the display screen is in the direct current dimming mode, the execution of the first instruction is shielded.

2. The method of claim 1, wherein, The method further comprises: detecting whether the terminal device is in the target state; if yes, a second instruction is executed, the second instruction is used to light up the target region, and the dimming mode of the display screen is adjusted after the target region is lighted up.

3. The method of claim 2, wherein, The terminal device stores a target flag bit, the target flag bit is used to indicate the current dimming mode of the display screen; the method further comprises: if the target region is lighted up, the value of the target flag bit is set to a preset value, the preset value is used to indicate that the current dimming mode of the display screen is a direct current dimming mode.

4. The method of claim 3, wherein, The method further comprises: if the target region is turned off, the value of the target flag bit is set to an initial value, the initial value is used to indicate that the current dimming mode of the display screen is a pulse width modulation dimming mode.

5. The method of claim 4, wherein, The direct current dimming mode adjusts the brightness by adjusting the size of current and / or voltage; the pulse width modulation dimming mode adjusts the brightness by adjusting the pulse signal.

6. The method according to any one of claims 3-5, characterized in that, The determination of whether the current dimming mode of the display screen is the direct current dimming mode comprises: judging whether the target flag bit is the preset value; if the target flag bit is the preset value, the first instruction is intercepted. The method further comprises:

7. The method according to any one of claims 2-5, characterized in that, if the target region is lighted up, the fingerprint detection module collects a to-be-identified fingerprint image; based on the to-be-identified fingerprint image, optical fingerprint unlocking is performed; the display screen is switched from the off-screen display state to a normal display state. The method further comprises:

8. The method according to any one of claims 1 to 5, characterized in that, if the display screen is in the normal display state, or the fingerprint detection module does not receive a signal of touching the target region within a preset time after receiving the signal of touching the target region, a third instruction is executed, the third instruction is used to turn off the target region. The application is applied to a terminal device, the terminal device comprises a fingerprint detection module and a display screen, the fingerprint detection module is located below the display screen; wherein, a region below the display screen where the fingerprint detection module is arranged is a target region; 9. A control device characterized by comprising: ​ The first detection unit is configured to detect whether a state of the display screen changes, and trigger a first instruction for adjusting a dimming mode of the display screen if the state of the display screen changes. The determination unit is configured to determine whether the current dimming mode of the display screen is a direct current dimming mode when the state of the display screen changes and the terminal device is in a target state, wherein the target state includes that the display screen is in an off-screen display state and the fingerprint detection module receives a signal of touching the target area. The shielding unit is configured to shield execution of the first instruction if the display screen is in the direct current dimming mode.

10. The apparatus of claim 9, wherein, The apparatus further includes: The second detection unit is configured to detect whether the terminal device is in the target state. The first execution unit is configured to execute a second instruction for lighting up the target area if the terminal device is in the target state, and the dimming mode of the display screen is adjusted after the target area is lighted up.

11. The apparatus of claim 10, wherein, The apparatus further includes: The setting unit is configured to set a value of a target flag bit to a preset value if the target area is lighted up, and the preset value is used to indicate that the current dimming mode of the display screen is the direct current dimming mode.

12. The apparatus of claim 11, wherein, The setting unit is further configured to: Set the value of the target flag bit to an initial value if the target area is turned off, and the initial value is used to indicate that the current dimming mode of the display screen is a pulse width modulation dimming mode.

13. The apparatus of claim 12, wherein, The direct current dimming mode adjusts brightness by adjusting a size of a current and / or a voltage, and the pulse width modulation dimming mode adjusts brightness by adjusting a pulse signal.

14. The apparatus of any one of claims 11-13, wherein, The determination unit is specifically configured to: Determine whether the target flag bit is the preset value. The shielding unit is specifically configured to: Intercept the first instruction if the target flag bit is the preset value.

15. The apparatus of any of claims 10-13, wherein, The apparatus further includes: The acquisition unit is configured to acquire a to-be-identified fingerprint image through the fingerprint detection module if the target area is lighted up. The unlocking unit is configured to perform optical fingerprint unlocking based on the to-be-identified fingerprint image. The switching unit is configured to switch the display screen from the off-screen display state to a normal display state.

16. The apparatus of any one of claims 9-13, wherein, The apparatus further includes: The second execution unit is configured to execute a third instruction for turning off the target area if the display screen is in the normal display state, or the fingerprint detection module does not receive a signal of touching the target area within a preset time after receiving the signal of touching the target area.

17. A terminal device, comprising: The terminal device includes a fingerprint detection module and a display screen, and the fingerprint detection module is located below the display screen. An area below the display screen where the fingerprint detection module is located is a target area. The terminal device further includes a processor and a memory, wherein the memory is used to store programs and various data, and the processor is used to call program codes stored in the memory to enable the terminal device to perform the method in any one of claims 1-7.

18. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the method in any one of claims 1-7.

19. A computer program product, characterised in that, The computer program product comprises instructions, and the instructions, when executed by a computer, cause the computer to perform the method in any one of claims 1-7.

Citation Information

Patent Citations

  • OLED display screen dimming method and device applied to two-dimensional code scanning

    CN113436576A

  • System and apparatus for providing and managing electricity

    US20150244121A1