Display method, electronic equipment and storage medium

CN120202500APending Publication Date: 2025-06-24HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380077466.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2023-11-13
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

Display screens of electronic devices are prone to image afterimages when switching screens, which affects display quality. Existing technologies can easily cause screen flickering when improving image afterimages, causing damage to the user's eyes.

Method used

By adopting a display method in electronic equipment, the corresponding dimming mode is determined according to the change of the brightness value, and the brightness of the display screen is adjusted based on the brightness value and the dimming mode, using the direct current DC dimming mode and pulse Wide modulation PWM dimming mode to avoid flickering.

Benefits of technology

It effectively improves the display effect of the display, avoids the occurrence of afterimages and screen flickers, improves the user experience, and ensures the success of fingerprint calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120202500A_ABST
    Figure CN120202500A_ABST
Patent Text Reader

Abstract

The invention provides a display method, electronic equipment and a storage medium, and relates to the technical field of terminals. The display method comprises: receiving a first brightness value issued by an application processor (AP) (S40); determining a dimming mode corresponding to the first brightness value as a first dimming mode; generating a first dimming profile (S41); sending the first dimming configuration file to a display controller, so that the display controller adjusts the brightness value of the display screen to the first brightness value based on the first dimming mode (S42); receiving a second brightness value issued by the AP (S43); when the dimming mode corresponding to the second brightness value is a second dimming mode and the second dimming mode is different from the first dimming mode, generating a second dimming configuration file (S45); and sending a second dimming configuration file to a display controller, so that the display controller adjusts the brightness value of the display screen to the second brightness value based on the second dimming mode (S46). The display method can avoid the splash screen phenomenon of the display screen.
Need to check novelty before this filing date? Find Prior Art

Description

Display method, electronic device and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on April 27, 2023, with application number 202310481588.6 and application name “Display method, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the field of terminal technology, and in particular to a display method, electronic device, and storage medium. Background Art

[0004] Sticking images (also known as afterimages) occur when the display screen of an electronic device switches images, but the previous image does not disappear immediately, and the previous image and the next image appear to exist simultaneously. This phenomenon is mostly found in cathode ray tube (CRT), plasma display panel (PDP), or organic light-emitting diode (OLED) displays. When sticking images occur on the display screen of an electronic device, it affects the quality of the image displayed on the display screen. While related technologies try to improve the sticking image phenomenon, they are also prone to causing screen flickering, which can cause damage to the user's eyes.

[0005] Summary of the Invention

[0006] In view of the above, it is necessary to provide a display method, an electronic device and a storage medium that can improve the display effect of a display screen.

[0007] In a first aspect, the present application provides a display method, which is applied to an electronic device, the electronic device including an application processor (AP), a display driver, and a display screen, the display screen including a display controller, the method including: the display driver receiving a first brightness value sent by the AP; the display driver determining that the dimming mode corresponding to the first brightness value is a first dimming mode; the display driver generating a first dimming profile, the first dimming profile including a first dimming mode corresponding to the first brightness value; the display driver sending the first dimming profile to the display controller, so that the display controller adjusts the brightness value of the display screen to the first brightness value based on the first dimming mode; the display driver receiving a second brightness value sent by the AP; if the dimming mode corresponding to the second brightness value is a second dimming mode, and the second dimming mode is different from the first dimming mode, the display driver generating a second dimming profile, the second dimming profile including a second dimming mode corresponding to the second brightness value; and the display driver sending the second dimming profile to the display controller, so that the display controller adjusts the brightness value of the display screen to the second brightness value based on the second dimming mode.

[0008] By adopting the display method provided in the present application, the dimming mode corresponding to the brightness value can be determined according to the change of the brightness value, and the display brightness of the display screen can be adjusted based on the brightness value and the dimming mode corresponding to the brightness value to avoid screen flickering.

[0009] In one possible implementation, the method further includes: the display driver determining a dimming mode corresponding to the first brightness value based on a difference between the first brightness value and a preset brightness value. This technical solution allows the dimming mode corresponding to the first brightness value to be determined, ensuring that the dimming mode matches the first brightness value and avoiding screen flickering.

[0010] In one possible implementation, the display driver determines the dimming mode corresponding to the first brightness value based on the difference between the first brightness value and the preset brightness value, including: when the first brightness value is less than or equal to the preset brightness value, determining the dimming mode corresponding to the first brightness value to be the first dimming mode; when the first brightness value is greater than the preset brightness value, determining the dimming mode corresponding to the first brightness value to be the second dimming mode. Through the above technical solution, different dimming modes can be used to adjust the brightness of the display screen under different brightness values, thereby improving the display effect of the display screen.

[0011] In one possible implementation, the method further includes: the display driver determining a dimming mode corresponding to the second brightness value based on a difference between the second brightness value and a preset brightness value. This technical solution allows the dimming mode corresponding to the second brightness value to be determined, ensuring that the dimming mode matches the second brightness value and avoiding screen flickering.

[0012] In one possible implementation, the display driver determines the dimming mode corresponding to the second brightness value based on the difference between the second brightness value and the preset brightness value, including: when the second brightness value is less than or equal to the preset brightness value, determining the dimming mode corresponding to the second brightness value to be the first dimming mode; when the second brightness value is greater than the preset brightness value, determining the dimming mode corresponding to the second brightness value to be the second dimming mode. Through the above technical solution, different dimming modes can be used to adjust the brightness of the display screen under different brightness values, thereby improving the display effect of the display screen.

[0013] In one possible implementation, the method further includes: upon determining that the dimming mode corresponding to the second brightness value is the first dimming mode, the display driver transmits the second brightness value to the display controller, causing the display controller to adjust the brightness value of the display screen to the second brightness value based on the first dimming mode. Through the above technical solution, when it is determined that the corresponding dimming mode does not need to be adjusted during the brightness value change process, only the second brightness value is transmitted to the display controller, thereby adjusting the display brightness of the display screen according to the first dimming mode and the second brightness value, thereby saving system resources.

[0014] In one possible implementation, the dimming profile includes a dimming mode and dimming mode indication information, wherein the dimming mode indication information is used to instruct the display controller to operate in the corresponding dimming mode and transmit a preset number of control signals within each control cycle. Through the above technical solution, the dimming mode corresponding to the brightness value can be determined based on the change in brightness value. By adjusting the number of control signals transmitted within each control cycle in the corresponding dimming mode, it is possible to avoid screen flickering while ensuring successful fingerprint calibration and improving the user experience.

[0015] In one possible implementation, the first dimming mode is a direct current (DC) dimming mode, and the second dimming mode is a pulse width modulation (PWM) dimming mode; alternatively, the first dimming mode is a PWM dimming mode, and the second dimming mode is a DC dimming mode. With this technical solution, the DC dimming mode and the PWM dimming mode can be used separately according to changes in brightness, ensuring the display quality of the display under different brightness conditions and improving the user experience.

[0016] In one possible implementation, when the display controller operates in the DC dimming mode, it transmits a first preset number of control signals in each control cycle, where the first preset number is 2; and when the display controller operates in the PWM dimming mode, it transmits a second preset number of control signals in each control cycle, where the second preset number is 32. Through the above technical solution, by adjusting the number of control signals for the display screen in the DC dimming mode and the number of control signals for the display screen in the PWM dimming mode, the brightness value can be matched with the corresponding dimming mode, thereby facilitating the display controller to adjust the brightness of the display screen according to the dimming mode that matches the brightness value, thereby avoiding screen flickering.

[0017] In a second aspect, the present application provides an electronic device comprising a display screen, a memory and a processor; the memory is used to store program instructions; the processor is used to read the program instructions stored in the memory to adjust the display brightness of the display screen through the above-mentioned display method.

[0018] In a third aspect, the present application provides a computer-readable storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the above-mentioned display method is implemented.

[0019] In addition, the technical effects brought about by the second to third aspects can be found in the descriptions of the methods of each design in the above method section, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] FIG1 is a hardware architecture diagram of an electronic device provided in one embodiment of the present application;

[0021] FIG2 is a software architecture diagram of an electronic device provided in an embodiment of the present application;

[0022] FIG3A is a schematic diagram of brightness adjustment through a direct current (DC) dimming mode according to an embodiment of the present application;

[0023] FIG3B is a schematic diagram of brightness adjustment through pulse width modulation (PWM) dimming mode according to an embodiment of the present application;

[0024] FIG4 is a flow chart of a display method provided by an embodiment of the present application;

[0025] FIG5 is a flowchart of a display method provided by another embodiment of the present application;

[0026] FIG6 is a schematic diagram of brightness adjustment through DC dimming mode and PWM dimming mode according to an embodiment of the present application;

[0027] FIG7 is a flowchart of a display method provided by another embodiment of the present application;

[0028] FIG8 is a schematic diagram of an overall solution of a display method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete way.

[0030] An increasing number of electronic devices, including mobile phones, are using organic light-emitting diode (OLED) screens as their displays. Compared to traditional displays, OLED screens offer advantages such as thinness and light efficiency. For ease of description, the display screens mentioned below refer to OLED displays.

[0031] In the embodiments provided in the present application, the electronic device can be in various forms, for example, a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a vehicle-mounted terminal device, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a wearable terminal device, and the like.

[0032] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

[0033] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0034] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

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

[0036] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

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

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

[0039] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.

[0040] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0041] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0042] The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0043] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0044] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0045] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. The interface can also be used to connect other electronic devices 100, such as AR devices.

[0046] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0047] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device 100 via the power management module 141.

[0048] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0049] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0050] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0051] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0052] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0053] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0054] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

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

[0056] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

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

[0058] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and transformed into a visible image. The ISP can also perform algorithmic optimization for image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

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

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

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

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

[0063] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0064] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation of DDR SDRAM is generally referred to as DDR5 SDRAM), etc.

[0065] Non-volatile memory may include disk storage devices and flash memory.

[0066] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH according to the operating principle, single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC) according to the storage cell potential level, and universal flash storage (UFS) and embedded multi-media card (eMMC) according to the storage specification.

[0067] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.

[0068] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .

[0069] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.

[0070] The electronic device 100 can implement audio functions such as media data playback and recording through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0071] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0072] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0073] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0074] The headphone jack 170D is used to connect a wired headphone and can be a USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0075] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0076] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0077] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

[0078] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0079] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic device 100, enabling applications such as switching between landscape and portrait modes and pedometers.

[0080] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0081] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0082] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.

[0083] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0084] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.

[0085] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0086] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.

[0087] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0088] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0089] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level change, messages, missed calls, notifications, etc.

[0090] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0091] FIG2 is a software structure block diagram of an electronic device 100 provided in an embodiment of the present application.

[0092] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. Taking the Android system as an example, in some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the system library layer, and the kernel layer, from top to bottom.

[0093] The application layer may include a series of application packages. In the embodiment of the present application, the application package may include applications related to fingerprint recognition, such as fingerprint recognition, for example, fingerprint unlocking, accessing application locks, fingerprint photography, fingerprint answering calls, etc. Optionally, as shown in Figure 2, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

[0094] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer may also include: a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and so on.

[0095] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (e.g., OpenGL ES), a 2D graphics engine (e.g., SGL), and an image processing library.

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

[0097] In an embodiment of the present application, the hardware layer may include hardware modules such as a display screen, and the display screen includes a display controller, which is used to control and manage the output of the display screen.

[0098] It is understood that the layers in the software structure shown in FIG2 and the components contained in each layer do not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer layers than shown, and each layer may include more or fewer components, and this application does not limit this.

[0099] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as Harmony OS, iOS or Windows.

[0100] After analysis and research, it was found that during the display brightness change process of the display screen of the electronic device, the display controller can use the direct current (DC) dimming mode and the pulse width modulation (PWM) dimming mode to adjust the brightness of the display screen of the electronic device. For example, as shown in Figure 3A, the display screen controller uses the DC dimming mode to adjust the display brightness of the display screen from 0 nits to 150 nits. For another example, as shown in Figure 3B, the display screen controller can use the PWM dimming mode to adjust the display brightness of the display screen from 0 nit to 150 nit. However, no matter which dimming mode is used to adjust the brightness of the display screen, the liquid crystal molecules of the display screen need to change from dark to bright or from bright to dark. Due to the aging problem, the movement of the liquid crystal molecules will slow down, making the response time of the display screen longer, resulting in the problem of smearing and blurring. Therefore, when the display screen displays the next picture, the user will see the residual image of the previous picture in the next picture, that is, the afterimage phenomenon occurs.

[0101] To reduce image sticking, overdrive (OD) technology can significantly reduce the display's response time, thereby reducing it. However, setting an OD value too high can cause overshoot errors, resulting in ghosting on the display screen; while setting an OD value too low can still cause image sticking. If OD technology still fails to improve image sticking, adjusting the duty cycle of the effective-mean (EM) signal in the pixel circuit can be used. This involves adjusting the proportion of time the luminescent material in the display is actually emitting light (EM duty). For example, reducing the EM duty from 99% to 95%. However, when the EM duty is reduced to 95%, the reduced duty cycle may result in incomplete fingerprint information being captured by the fingerprint sensor in the electronic device, leading to fingerprint calibration failure. To address fingerprint calibration failure and ensure that OD technology improves image sticking, adjusting the number of EM pulses in the pixel circuit can be used, but this can also cause screen flickering.

[0102] In order to improve the above-mentioned ghosting, fingerprint calibration failure and screen flickering phenomena, the embodiments of the present application provide a display method, an electronic device and a storage medium, which can determine the dimming mode corresponding to the brightness value according to the change of the brightness value of the display screen, and adjust the display brightness of the display screen based on the brightness value and the dimming mode corresponding to the brightness value. The display method provided by the embodiment of the present application will be described in detail below with reference to Figure 4. The display method is applied to an electronic device, and the electronic device may include an application processor (AP), an application framework layer, a display driver and a display screen. Among them, the application framework layer includes a backlight thread, and the display screen includes a display controller. The display method comprises the following steps:

[0103] S40: Receive a first brightness value sent by an application processor.

[0104] In this embodiment, the application processor can determine whether the display brightness of the display screen needs to be adjusted based on the ambient light. When it is determined that the display brightness of the display screen needs to be adjusted, the application processor sends a first backlight adjustment request to the backlight thread. The backlight thread determines a first brightness value based on the first backlight adjustment request and sends the first brightness value to the display driver.

[0105] In another embodiment, the application processor may also determine whether the display brightness of the display needs to be adjusted based on manual adjustment. For example, in response to a user sliding a brightness bar on a brightness adjustment interface, the application processor determines that the display brightness of the display needs to be adjusted. The application processor sends a first backlight adjustment request to the backlight thread. The backlight thread determines a first brightness value based on the first backlight adjustment request and sends the first brightness value to the display driver.

[0106] S41: Determine that the dimming mode corresponding to the first brightness value is the first dimming mode, and generate a first dimming configuration file.

[0107] In order to ensure that the display controller does not flicker when adjusting the display brightness of the display screen, it is necessary to use a dimming mode that matches the brightness value to adjust the brightness of the display screen. After the display driver receives the first brightness value, it can determine the corresponding dimming mode based on the size of the first brightness value and the preset brightness value, and generate a first dimming profile. For example, when the first brightness value is less than or equal to the preset brightness value, in order to ensure the display effect of the display screen when the display brightness is low, the corresponding dimming mode is determined to be the first dimming mode, the first dimming mode is the PWM dimming mode, and the display driver generates the first dimming profile based on the first brightness value and the PWM dimming mode. When the first brightness value is greater than the preset brightness value, in order to ensure the display effect of the display screen when the display brightness is high, the corresponding dimming mode is determined to be the second dimming mode, the second dimming mode is the DC dimming mode, and the display driver generates the first dimming profile based on the first brightness value and the DC dimming mode.

[0108] In the embodiment of the present application, the preset brightness value is 90 nit. In other embodiments, the preset brightness value is not limited to 90 nit, and the present application does not impose any limitation on this.

[0109] It should be noted that the first dimming mode may be a DC dimming mode or a PWM dimming mode, and the second dimming mode may be a DC dimming mode or a PWM dimming mode.

[0110] S42: Send a first dimming configuration file to a display controller, so that the display controller adjusts the display brightness of the display screen to a first brightness value based on the first dimming mode.

[0111] In this embodiment, after the display driver determines that the corresponding dimming mode is the first dimming mode based on the first brightness value, it generates a first dimming profile and sends the first dimming profile to the display controller, instructing the display controller to adjust the display brightness of the display screen to the first brightness value based on the first dimming mode. This prevents screen flickering when the display driver uses the first dimming mode that matches the first brightness value to adjust the display brightness of the display screen to the first brightness value.

[0112] S43: Receive a second brightness value sent by the application processor.

[0113] In this embodiment, the application processor can determine whether it is necessary to continue adjusting the display brightness of the display screen based on the ambient light or manual adjustment method. When it is necessary to continue adjusting the brightness of the display screen, a second backlight adjustment request is sent to the backlight thread. The backlight thread determines a second brightness value based on the second backlight adjustment request and sends the second brightness value to the display driver.

[0114] For example, in one application scenario, when a user carries an electronic device from outdoors to indoors, the application processor can determine that the display brightness of the display needs to be adjusted based on the indoor ambient light. The application processor sends a second backlight adjustment request to the backlight thread. The backlight thread determines a second brightness value based on the second backlight adjustment request and sends the second brightness value to the display driver.

[0115] S44: Determine a dimming mode corresponding to the second brightness value.

[0116] In this embodiment, in order to ensure that there is no screen flickering when the display controller adjusts the brightness of the display screen from a first brightness value to a second brightness value, the display driver needs to determine whether the dimming mode corresponding to the second brightness value is the first dimming mode or the second dimming mode, so as to send the dimming mode matching the second brightness value to the display controller.

[0117] In this embodiment, the dimming mode corresponding to the second brightness value is determined according to the magnitude between the second brightness value and the preset brightness value.

[0118] When the second brightness value is less than or equal to the preset brightness value, the dimming mode corresponding to the second brightness value is determined to be the first dimming mode; or when the second brightness value is greater than the preset brightness value, the dimming mode corresponding to the second brightness value is determined to be the second dimming mode.

[0119] For example, when the second brightness value is less than or equal to the preset brightness value, in order to ensure the display effect of the display screen at low brightness, the corresponding dimming mode is determined to be the first dimming mode, and the first dimming mode is the PWM dimming mode. When the second brightness value is greater than the preset brightness value, in order to ensure the display effect of the display screen at high brightness, the corresponding dimming mode is determined to be the second dimming mode, and the second dimming mode is the DC dimming mode.

[0120] In this embodiment, if the dimming mode corresponding to the second brightness value is determined to be the second dimming mode, when adjusting the display brightness of the display screen from the first brightness value to the second brightness value, it is necessary to update the dimming mode of the display screen from the first dimming mode to the second dimming mode before adjusting the brightness of the display screen, and the process executes steps S45-S46. If the dimming mode corresponding to the second brightness value is determined to be the first dimming mode, when adjusting the display brightness of the display screen from the first brightness value to the second brightness value, it is not necessary to update the dimming mode of the display screen, and the brightness of the display screen can continue to be adjusted using the first dimming mode, and the process executes step S47.

[0121] When it is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, step S45 is executed to generate a second dimming configuration file, wherein the second dimming configuration file includes the second dimming mode corresponding to the second brightness value.

[0122] In this embodiment, after determining that the dimming mode corresponding to the second brightness value is the second dimming mode, a second dimming configuration file is generated based on the second brightness value and the second dimming mode. It should be noted that the second dimming mode is different from the first dimming mode.

[0123] S46: Send the second dimming configuration file to the display controller, so that the display controller adjusts the display brightness of the display screen to a second brightness value based on the second dimming mode.

[0124] In one embodiment, when the display brightness to be configured is greater than the preset brightness value, if the DC dimming mode is used to adjust the brightness of the display screen, the display effect of the display screen is very good; when the display brightness to be configured is less than or equal to the preset brightness value, if the DC dimming mode is used to adjust the brightness, the display screen will have obvious color deviation and distortion. When the display brightness to be configured is greater than the preset brightness value, if the PWM dimming mode is used to adjust the brightness of the display screen, the display screen will have uneven brightness and poor visual effects; when the display brightness to be configured is less than or equal to the preset brightness value, if the PWM dimming mode is used to adjust the brightness of the display screen, the display screen has good uniformity and no distortion. In order to ensure the display effect of the display screen when the display brightness is less than or equal to the preset brightness value, and to ensure the display effect of the display screen when the display brightness is greater than the preset brightness value, different dimming modes can be used to adjust the brightness of the display screen for different display brightnesses.

[0125] For example, as shown in FIG5 , in order to ensure the display effect of the display screen when the display brightness is low, the display controller can use the first dimming mode to adjust the brightness of the display screen when the display brightness is less than or equal to the preset brightness value; and use the second dimming mode to adjust the brightness when the display brightness is greater than the preset brightness value. The first dimming mode is the PWM dimming mode, and the second dimming mode can be the DC dimming mode. It should be noted that when the display brightness is less than or equal to the preset brightness value, the brightness of the display screen is adjusted by the PWM dimming mode, which can improve the uniformity of the display screen and avoid distortion; when the display brightness is greater than the preset brightness value, the brightness of the display screen is adjusted by the DC dimming mode, which can improve the display effect of the display screen and avoid color cast and distortion.

[0126] In this embodiment, the display driver sends the second dimming profile to the display controller, instructing the display controller to adjust the display brightness of the display screen to a second brightness value based on the second dimming mode. This prevents screen flickering when the display driver uses the second dimming mode that matches the second brightness value to adjust the display brightness of the display screen to the second brightness value.

[0127] In this embodiment, the dimming configuration file includes a dimming mode and dimming mode indication information. The dimming mode includes a first dimming mode and a second dimming mode. The dimming mode indication information is used to instruct the display controller to operate in the corresponding dimming mode and transmit a preset number of control signals in each control cycle.

[0128] In an embodiment of the present application, the first dimming mode is a DC dimming mode, and the second dimming mode is a PWM dimming mode; or the first dimming mode is a PWM dimming mode, and the second dimming mode is a DC dimming mode. Furthermore, when the display controller operates in the DC dimming mode, a first preset number of control signals is transmitted in each control cycle, where the first preset number is 2; and when the display controller operates in the PWM dimming mode, a second preset number of control signals is transmitted in each control cycle, where the second preset number is 32.

[0129] When it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, step S47 is executed to send the second brightness value to the display controller, so that the display controller adjusts the brightness of the display screen to the second brightness value based on the first dimming mode.

[0130] In this embodiment, when it is determined that the dimming mode corresponding to the second brightness value is also the first dimming mode, the display driver confirms and instructs the display controller to adjust the brightness of the display screen from the first brightness value to the second brightness value. There is no need to update the dimming mode. The display driver sends the second brightness value to the display controller, so that the display controller continues to use the first dimming mode to adjust the brightness of the display screen to the second brightness value.

[0131] For example, after the display screen displays the previous display screen, it will then display the next display screen based on the ambient light information or the operation input by the user. Since the first brightness value of the display screen when displaying the previous display screen is different from the second brightness value of the display screen when displaying the next display screen, in the process of the display controller adjusting the display brightness of the display screen from the first brightness value to the second brightness value, in order to avoid not updating the dimming mode corresponding to the second brightness value of the display screen in time, the second brightness value may not match the dimming mode, resulting in a flickering screen phenomenon on the display screen. Through the display method provided in the present application, the display driver can determine the corresponding second dimming mode according to the second brightness value, and generate a second dimming profile, and send the second dimming profile to the display controller, instructing the display controller to adjust the display brightness of the display screen to the second brightness value based on the second dimming mode. In the process of adjusting the brightness of the display screen, the display controller can match the brightness value to be adjusted with the corresponding dimming mode to avoid the flickering screen phenomenon.

[0132] In one embodiment, upon receiving a first brightness value of 80 nits from an application processor, the display driver determines that the first brightness value of 80 nits is less than a preset brightness value and determines that the corresponding first dimming mode is PWM dimming mode. Based on the first brightness value of 80 nits and the PWM dimming mode, the display driver generates a first dimming profile and sends the first dimming profile to the display controller, causing the display controller to adjust the display brightness of the display screen to 80 nits based on the PWM dimming mode. Upon receiving a second brightness value of 91 nits from the application processor, the display driver determines that the second brightness value is greater than the preset brightness value and determines that the second dimming mode corresponding to the second brightness value is DC dimming mode. Based on the second brightness value of 91 nits and the DC dimming mode, the display driver generates a second dimming profile and sends the second dimming profile to the display controller, causing the display controller to adjust the display brightness of the display screen to 91 nits based on the DC dimming mode. When the display controller operates in DC dimming mode, a first preset number of control signals is transmitted within each control cycle, where the first preset number is 2. The display method provided herein ensures that the second brightness value matches the second dimming mode, avoiding screen flickering on the display screen. In addition, when the display controller works in DC dimming mode, two control signals (2 pulses) are transmitted in each control cycle, which can solve the fingerprint calibration failure and ensure that the OD technology improves the afterimage phenomenon while avoiding the screen flickering phenomenon.

[0133] In one embodiment, upon receiving a first brightness value of 95 nits from an application processor, the display driver determines that the first brightness value is greater than a preset brightness value, determines that the corresponding first dimming mode is a DC dimming mode, generates a first dimming profile based on the first brightness value of 95 nits and the DC dimming mode, and sends the first dimming profile to the display controller, causing the display controller to adjust the display brightness of the display screen to 95 nits based on the DC dimming mode. Upon receiving a second brightness value of 88 nits from the application processor, the display driver determines that the second brightness value of 88 nits is less than the preset brightness value, determines that the second dimming mode corresponding to the second brightness value is a PWM dimming mode, generates a second dimming profile based on the second brightness value of 88 nits and the PWM dimming mode, and sends the second dimming profile to the display controller, causing the display controller to adjust the display brightness of the display screen to 88 nits based on the PWM dimming mode. The display controller controls the preset number of control signals sent within each control cycle in the PWM dimming mode to 32. The display method provided in this application ensures that the second brightness value matches the second dimming mode, avoiding screen flickering on the display screen. In addition, when the display controller operates in PWM dimming mode, a second preset number of control signals is transmitted in each control cycle. The second preset number is 32 (32 pulses), which can solve the fingerprint calibration failure and ensure that OD technology improves the afterimage phenomenon while avoiding the screen flickering phenomenon.

[0134] In one embodiment, upon receiving a first brightness value of 80 nits from an application processor, the display driver determines that the first brightness value of 80 nits is less than a preset brightness value and determines that the corresponding first dimming mode is a PWM dimming mode. The display driver generates a first dimming profile based on the first brightness value of 80 nits and the PWM dimming mode and sends the first dimming profile to the display controller, causing the display controller to adjust the display brightness of the display screen to 80 nits based on the PWM dimming mode. Upon receiving a second brightness value of 88 nits from the application processor, the display driver determines that the second brightness value is less than the preset brightness value and determines that the second dimming mode corresponding to the second brightness value is also a PWM dimming mode. That is, when both the first brightness value and the second brightness value are less than the preset brightness value, the display driver determines that the display controller does not need to update the dimming mode during the process of adjusting the brightness of the display screen from the first brightness value to the second brightness value. The display driver sends the second brightness value of 88 nits to the display controller, causing the display controller to continue adjusting the display brightness of the display screen to 88 nits based on the PWM dimming mode. The display controller controls operation in the PWM dimming mode by transmitting a first preset number of control signals within each control cycle, where the first preset number is 2. Through the display method provided in this application, the second brightness value is matched with the second dimming mode, thereby avoiding the screen flickering problem on the display screen.

[0135] In one embodiment, upon receiving a first brightness value of 95 nits from an application processor, the display driver determines that the first brightness value is greater than a preset brightness value and determines that the corresponding first dimming mode is a DC dimming mode. The display driver generates a first dimming profile based on the first brightness value of 95 nits and the DC dimming mode and sends the first dimming profile to the display controller, causing the display controller to adjust the display brightness of the display screen to 95 nits based on the DC dimming mode. Upon receiving a second brightness value of 110 nits from the application processor, the display driver determines that the second brightness value of 110 nits is also greater than the preset brightness value and determines that the second dimming mode corresponding to the second brightness value is still the DC dimming mode. That is, when both the first brightness value and the second brightness value are less than the preset brightness value, the display driver determines that the display controller does not need to update the dimming mode when adjusting the brightness of the display screen from the first brightness value to the second brightness value. The display driver sends the second brightness value to the display controller, causing the display controller to adjust the display brightness of the display screen to 110 nits based on the DC dimming mode. The display controller controls operation in the DC dimming mode, sending a second preset number of control signals within each control cycle, where the second preset number is 32. Through the display method provided in this application, the second brightness value is matched with the second dimming mode, thereby avoiding the screen flickering problem on the display screen.

[0136] Through the above display method, the dimming mode corresponding to the brightness value can be determined according to the change of the brightness value, and the display brightness of the display screen can be adjusted based on the brightness value and the dimming mode corresponding to the brightness value to avoid screen flickering.

[0137] In one embodiment, referring to FIG. 6 , a display method provided in another embodiment of the present application, before step S40 of the display method provided in FIG. 4 , further includes:

[0138] Step S60: Check whether DTS parsing is enabled. If it is enabled, the process goes to step S61. If it is not enabled, the process returns to step S60.

[0139] A Device Tree Source (DTS) file is a text file used to record user configurations. It is a user-readable file consisting of a series of named nodes and properties. A DTS file describes information such as the number and type of CPUs, timers, peripheral connections, interrupt configuration, and serial ports. After the terminal is powered on, the kernel parses the hardware configuration of each node in the DTS file during startup and initializes the terminal based on the hardware configuration of each node.

[0140] The execution of the display method provided in the embodiment of the present application is strongly related to the hardware devices inside the electronic device. In order to determine which devices in the hardware devices are related to the execution of the display method, an enable switch can be set. For example, if the display screen, light sensor and other devices of the terminal are related to the execution of the display method, an enable switch is set for the display screen and light sensor and other devices. DTS parsing is used to determine whether to turn on the enable switch to initialize the display screen and light sensor and other devices. In one embodiment, an enable switch is set in the configuration file of the display screen, wherein the configuration file includes file information on whether to enable the display screen and light sensor and other devices of the terminal.

[0141] Step S61: Set the flag of the TE signal.

[0142] In one embodiment, in an Android system, the traditional image drawing and display process needs to be completed through the collaboration of the software side, the display driver integrated circuit (DDIC) and the display screen. The software side first refreshes the page through the application (App), and then synthesizes the layers obtained by drawing through Surface Flinger to obtain image data. The image data then passes through the HWC and display driver, and then sends the image data to (writes to) the DDIC through the mobile industry processor interface (MIPI). The DDIC stores the image data sent by the software side in a buffer, and controls the display screen to complete the refresh rate switching by scanning (reading) the image data in the buffer, and the display screen performs image refresh display (display). In a high refresh rate display scenario, the software side generates image data at a high frequency, and accordingly, the display screen side performs high-frequency image refresh according to the image data, thereby improving the smoothness of the picture.

[0143] When a user views images or video information on a terminal display, if the display's refresh rate and frame rate are out of sync, and the refresh rate is low (e.g., 30Hz), the screen may freeze or even experience a tearing effect (TE). To prevent this, the DDIC can output a TE signal according to the Vsync cycle after completing the refresh rate switch. The TE signal is used to instruct the software side to send display data, which includes at least the backlight configuration.

[0144] In this embodiment, after the application processor sends a first backlight adjustment request to the backlight thread, the backlight thread determines the first brightness value according to the first backlight adjustment request, and then sends the first brightness value to the display driver. The display driver determines that the corresponding dimming mode is the first dimming mode according to the first brightness value, and generates a first dimming profile. The display driver sends a frame of display data containing the first dimming profile to the display screen. After receiving the display data, the display screen starts to refresh the display. The display driver will send a TE signal to notify the application processor that the display data of the current frame has been refreshed, and it can continue to send another frame of display data containing the second dimming profile to the display screen. In order to prevent two or more dimming profiles from being sent to the display screen in the same frame, resulting in poor display effect on the display screen, the flag bit of the TE signal can be set.

[0145] Step S62: Determine whether dbv is enabled. If dbv is enabled, proceed to step S60 and execute the display method shown in Figure 4. If dbv is not enabled, end the process.

[0146] In this embodiment, when determining whether the display method provided in FIG. 4 of this application is required to adjust the display effect of the display screen, the dbv enable switch is set. If it is determined that the display method provided in FIG. 4 of this application is required to adjust the display effect of the display screen, the dbv enable switch is enabled, the process proceeds to step S60, and the display method shown in FIG. 4 is executed. If it is determined that the display method provided in FIG. 4 of this application is not required to adjust the display effect of the display screen, the dbv enable switch does not need to be enabled, and the process ends.

[0147] In an embodiment of the present application, by enabling devices related to the execution of the display method in the terminal, such as light sensors and display screens, through DTS parsing, by setting the flag bit of the TE signal, it is possible to prevent two or more backlight configurations from being sent to the display screen in the same frame, resulting in poor display effects after the display screen receives multiple dimming configuration files.

[0148] FIG7 is a flow chart of a display method according to another embodiment of the present application. The display method includes the following steps:

[0149] S101: The AP sends a first backlight adjustment request to a backlight thread.

[0150] In this embodiment, the application processor may determine whether the display brightness of the display screen needs to be adjusted based on the ambient light, and when it is determined that the display brightness of the display screen needs to be adjusted, send a first backlight adjustment request to the backlight thread. For example, a light sensor may determine that the display brightness of the display screen needs to be adjusted based on a light signal collected by the terminal's surrounding environment, and send the light signal to the application processor. The application processor may generate a first backlight adjustment request in response to the light signal, and send the first backlight request to the backlight thread.

[0151] In one embodiment, the application processor may also determine whether the display brightness of the display needs to be adjusted based on manual adjustment. In response to a user's brightness adjustment operation on the display, the application processor determines that the display brightness needs to be adjusted, and sends a first backlight request to the backlight thread. For example, in response to a user sliding the brightness bar on the brightness adjustment interface, the application processor determines that the display brightness needs to be adjusted, and sends the first backlight adjustment request to the backlight thread. The first backlight adjustment request includes at least parameters such as the brightness value of the display in the next display screen.

[0152] S102: The backlight thread determines a first brightness value according to a first backlight adjustment request.

[0153] In this embodiment, the backlight thread is generally used to control the backlight brightness of the display screen. When the backlight thread receives a first backlight adjustment request, it can determine a first brightness value according to parameters in the first backlight request.

[0154] S103: The backlight thread sends a first brightness value to a display driver.

[0155] S104: The display driver determines that the dimming mode corresponding to the first brightness value is the first dimming mode.

[0156] In this embodiment, the display driver is used to control the display condition of the display screen. For example, it controls the display brightness of the display screen. When adjusting the number of control signals in the dimming mode within each control cycle to resolve fingerprint calibration failures and ensure that OD technology improves the ghosting phenomenon, the display driver needs to determine the corresponding dimming mode based on the first brightness value, so that the display controller can adjust the brightness of the display screen based on the dimming mode that matches the first brightness value. Otherwise, the display screen will flicker.

[0157] In this embodiment, the display driver determines the dimming mode corresponding to the first brightness value according to the difference between the first brightness value and the preset brightness value.

[0158] S105: The display driver generates a first dimming configuration file.

[0159] In this embodiment, the display driver sets the first dimming mode to the first brightness value and the corresponding dimming mode, and generates a first dimming profile. For example, when the first brightness value is less than or equal to the preset brightness value, to ensure the display effect of the display screen at low brightness, the corresponding first dimming mode is the PWM dimming mode, and the display driver generates the first dimming profile based on the first brightness value and the PWM dimming mode. When the first brightness value is greater than the preset brightness value, to ensure the display effect of the display screen at high brightness, the corresponding first dimming mode is the DC dimming mode, and the display driver generates the first dimming profile based on the first brightness value and the DC dimming mode.

[0160] In one embodiment, the first dimming profile includes a first brightness value, a first dimming mode, and first dimming mode indication information, wherein the first dimming mode indication information is used to instruct the display controller to operate in the first dimming mode and transmit a first preset number of control signals in each control cycle, where the first preset number is 2.

[0161] In one embodiment, the first dimming profile may be stored in a configuration file of the terminal in a list format.

[0162] S106: The display driver sends a first dimming configuration file to the display controller.

[0163] In this embodiment, after the display driver determines the corresponding first dimming mode according to the first brightness value and generates a first dimming configuration file, the first dimming configuration file is sent to the display controller.

[0164] S107: The display controller adjusts the brightness value of the display screen to a first brightness value based on the first dimming mode.

[0165] In this embodiment, after the display driver determines that the corresponding dimming mode is the first dimming mode based on the first brightness value, the first brightness value is matched with the first dimming mode, and no screen flickering phenomenon occurs during the display control period when the brightness value of the display screen is adjusted to the first brightness value based on the first dimming mode.

[0166] S108: The AP sends a second backlight adjustment request to the backlight thread.

[0167] In this embodiment, when the application processor needs to adjust the current first brightness value of the display screen in response to changes in ambient light or in response to a manual brightness adjustment operation, the second backlight adjustment request is sent to the backlight thread.

[0168] S109: The backlight thread determines a second brightness value.

[0169] In this embodiment, when the backlight thread receives the second backlight adjustment request, it can determine the second brightness value according to the parameters in the second backlight request.

[0170] S110, the backlight thread sends a second brightness value to the display driver.

[0171] S111 : The display driver determines whether the dimming mode corresponding to the second brightness value is the first dimming mode or the second dimming mode.

[0172] In this embodiment, in order to ensure that there is no screen flickering when the display controller adjusts the brightness of the display screen from a first brightness value to a second brightness value, the display driver needs to determine whether the dimming mode corresponding to the second brightness value is the first dimming mode or the second dimming mode, so as to send the dimming mode matching the second brightness value to the display controller.

[0173] If it is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, when adjusting the display brightness of the display screen from the first brightness value to the second brightness value, it is necessary to update the dimming mode of the display screen from the first dimming mode to the second dimming mode to adjust the brightness of the display screen, and the process executes steps S112-S114. If it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, when adjusting the display brightness of the display screen from the first brightness value to the second brightness value, it is not necessary to update the dimming mode of the display screen, and the brightness of the display screen can continue to be adjusted using the first dimming mode, and the process executes steps S115-S116.

[0174] It is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, and step S112 is executed to generate a second dimming configuration file.

[0175] In this embodiment, after determining that the dimming mode corresponding to the second brightness value is the second dimming mode, a second dimming configuration file is generated based on the second brightness value and the second dimming mode. It should be noted that the second dimming mode is different from the first dimming mode.

[0176] In one embodiment, the second dimming profile includes a second brightness value, a second dimming mode, and second dimming mode indication information, wherein the second dimming mode indication information is used to instruct the display controller to operate in the second dimming mode and transmit a second preset number of control signals in each control cycle, where the second preset number is 32.

[0177] S113: The display driver sends a second dimming configuration file to the display controller.

[0178] S114: The display controller adjusts the display brightness of the display screen to a second brightness value based on the second dimming mode.

[0179] In this embodiment, the display driver sends the second dimming profile to the display controller, instructing the display controller to adjust the display brightness of the display screen to a second brightness value based on the second dimming mode. This prevents screen flickering when the display driver uses the second dimming mode that matches the second brightness value to adjust the display brightness of the display screen to the second brightness value.

[0180] When it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, step S115 is executed, and the display driver sends the second brightness value to the display controller.

[0181] S116: The display controller adjusts the display brightness of the display screen to a second brightness value based on the first dimming mode.

[0182] In this embodiment, if it is determined that the dimming mode corresponding to the second brightness value is also the first dimming mode, then in the process of the display driver determining to instruct the display controller to adjust the brightness of the display screen from the first brightness value to the second brightness value, there is no need to update the dimming mode. The display driver sends the second brightness value to the display controller, so that the display controller continues to use the first dimming mode to adjust the brightness of the display screen to the second brightness value.

[0183] Through the display method provided in the present application, the display driver can determine that the corresponding dimming mode is the first dimming mode based on the first brightness value, and generate a first dimming configuration file, send the first dimming configuration file to the display controller, and instruct the display controller to adjust the display brightness of the display screen to the first brightness value based on the first dimming mode. When the display screen needs to be adjusted from the first brightness value to the second brightness value, the display driver can determine that the corresponding dimming mode is the second dimming mode based on the second brightness value, and generate a second dimming configuration file, send the second dimming configuration file to the display controller, and instruct the display controller to adjust the display brightness of the display screen to the second brightness value based on the second dimming mode. In the process of adjusting the brightness of the display screen, the display controller can match the brightness value to be adjusted with the corresponding dimming mode to avoid screen flickering.

[0184] Referring to FIG8 , the overall solution of the display method provided by the present application is briefly summarized.

[0185] To improve the problem of image smearing and ghosting during display display, when the brightness value changes, it is necessary to match the brightness value with the corresponding dimming mode to obtain a bound backlight solution. The specific algorithm mainly includes: determining the dimming mode corresponding to the brightness value, binding the brightness value with the corresponding dimming mode to generate a dimming profile, wherein the dimming profile includes the dimming mode and dimming mode indication information, wherein the dimming mode indication information is used to instruct the display controller to operate in the corresponding dimming mode and transmit a preset number of control signals within each control cycle. Specifically, the display driver receives a first brightness value sent by the AP and determines that the dimming mode corresponding to the first brightness value is the first dimming mode. Based on the comparison of the first brightness value with the preset brightness value, the dimming mode is determined to be the first dimming mode, and a first dimming profile is generated based on the first brightness value and the first dimming mode. The brightness value is matched with the corresponding dimming mode. For example, when the first brightness value is greater than the preset brightness value, the corresponding dimming mode is determined to be the first dimming mode (as shown in configuration 1 in the figure), wherein the first dimming mode is the DC dimming mode. When the display controller operates in the DC dimming mode, a first preset number of control signals is transmitted in each control cycle, and the first preset number is 2. When the first brightness value is less than or equal to the preset brightness value, the corresponding dimming mode is determined to be the second dimming mode, wherein the second dimming mode is the PWM dimming mode (configuration 2 as shown in the figure). When the display controller operates in the PWM dimming mode, a second preset number of control signals is transmitted in each control cycle, and the second preset number is 32. When it is determined that the display brightness of the display screen needs to be adjusted from the first brightness value to the second brightness value, the second dimming mode corresponding to the second brightness value is first determined, and a second configuration file is generated. By setting the TE signal flag and enabling the display screen, the display controller is controlled to adjust the brightness of the display screen to the second brightness value based on the second dimming mode. The above scheme can ensure the width of the control signal duty cycle and solve the problem of fingerprint calibration failure. At the same time, by generating a dimming configuration file, it can be ensured that the brightness value matches the corresponding dimming mode and is enabled in the same frame, improving the ghosting and screen flickering problems, and greatly improving the display effect of the display screen.

[0186] The display method provided in the embodiment of the present application can be performed by a display driver included in the electronic device, or can be performed by a display chip included in the electronic device. When the display chip is running, it calls a computer program stored in the memory to implement the steps performed by the electronic device.

[0187] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A display method, applied to an electronic device, characterized in that: The electronic device includes an application processor AP, a display driver and a display screen, the display screen includes a display controller, and the method includes: The display driver receives a first brightness value sent by the AP; The display driver determines that the dimming mode corresponding to the first brightness value is a first dimming mode; The display driver generates a first dimming profile, wherein the first dimming profile includes a first dimming mode corresponding to the first brightness value; The display driver sends the first dimming profile to the display controller, so that the display controller adjusts the brightness value of the display screen to the first brightness value based on the first dimming mode; The display driver receives a second brightness value sent by the AP; When the dimming mode corresponding to the second brightness value is a second dimming mode, and the second dimming mode is different from the first dimming mode, the display driver generates a second dimming profile, where the second dimming profile includes the second dimming mode corresponding to the second brightness value; The display driver sends the second dimming configuration file to the display controller, so that the display controller adjusts the brightness value of the display screen to the second brightness value based on the second dimming mode.

2. The display method according to claim 1, characterized in that: The method further includes: the display driver determining a dimming mode corresponding to the first brightness value according to a magnitude between the first brightness value and a preset brightness value.

3. The display method according to claim 2, characterized in that: The display driver determines the dimming mode corresponding to the first brightness value according to the first brightness value and the preset brightness value, including: When the first brightness value is less than or equal to the preset brightness value, determining that the dimming mode corresponding to the first brightness value is the first dimming mode; or When the first brightness value is greater than the preset brightness value, it is determined that the dimming mode corresponding to the first brightness value is the second dimming mode.

4. The display method according to claim 1, characterized in that: The method further includes: the display driver determining a dimming mode corresponding to the second brightness value according to a magnitude between the second brightness value and a preset brightness value.

5. The display method according to claim 4, characterized in that: The display driver determines the dimming mode corresponding to the second brightness value according to the magnitude between the second brightness value and the preset brightness value, including: When the second brightness value is less than or equal to the preset brightness value, determining that the dimming mode corresponding to the second brightness value is the first dimming mode; or When the second brightness value is greater than the preset brightness value, it is determined that the dimming mode corresponding to the second brightness value is the second dimming mode.

6. The display method according to claim 1, characterized in that: The method further comprises: When it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, the display driver sends the second brightness value to the display controller, so that the display controller adjusts the brightness value of the display screen to the second brightness value based on the first dimming mode.

7. The display method according to claim 1, characterized in that: The dimming configuration file includes a dimming mode and dimming mode indication information, wherein the dimming mode indication information is used to instruct the display controller to operate in a corresponding dimming mode and transmit a preset number of control signals in each control cycle.

8. The display method according to any one of claims 1 to 7, characterized in that: The first dimming mode is a direct current (DC) dimming mode, and the second dimming mode is a pulse width modulation (PWM) dimming mode; or The first dimming mode is the PWM dimming mode, and the second dimming mode is the DC dimming mode.

9. The display method according to claim 8, characterized in that: The display controller operates in the DC dimming mode and transmits a first preset number of control signals in each control cycle, wherein the first preset number is 2; The display controller operates in the PWM dimming mode, and transmits a second preset number of control signals in each control cycle, wherein the second preset number is 32.

10. An electronic device, characterized in that: The electronic device comprises a display screen, a memory and a processor; The memory is used to store program instructions; The processor is used to read the program instructions stored in the memory to implement the display method according to any one of claims 1 to 9 to adjust the display brightness of the display screen.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the display method according to any one of claims 1 to 9 is implemented.