Display method, electronic equipment and storage medium

By determining the dimming mode and adjusting the brightness of the display screen based on the brightness value in the electronic device, the problem of afterimages and screen flickers on the display screen during screen switching is solved, and the display effect and user experience are improved.

CN118865880APending Publication Date: 2024-10-29HONOR DEVICE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310481588.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

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

Method used

By adopting a display driving method in electronic equipment, the corresponding dimming mode is determined according to the change in brightness value, and a dimming configuration file is generated to adjust the brightness value of the display screen to avoid the occurrence of screen flickering. Specific methods include using PWM dimming mode when the brightness value is less than or equal to the preset value, using DC dimming mode when the brightness value is greater than the preset value, and making matching adjustments between the dimming modes.

Benefits of technology

It effectively avoids the occurrence of screen flickering, improves the display effect of the display, and reduces the occurrence of image afterimage while ensuring the success of fingerprint calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865880A_ABST
    Figure CN118865880A_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 the following steps: receiving a first brightness value issued by an application processor AP; determining a dimming mode corresponding to the first brightness value as a first dimming mode; generating a first dimming configuration file; 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; receiving a second brightness value issued 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, generating a second dimming configuration file; 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. By utilizing the embodiment of the invention, the splash screen phenomenon of the display screen can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Sticking image (also called afterimage) refers to the phenomenon that when the display screen of an electronic device switches images, the previous image does not disappear immediately, and the previous image and the next image appear to exist at the same time in visual effect. This phenomenon mostly exists in cathode ray tube (CRT), plasma (PDP) or organic light-emitting diode (OLED) displays. When sticking image occurs in the display screen of an electronic device, it will affect the quality of the image displayed on the display screen. When the related technology improves the sticking image phenomenon, it is easy to cause the display screen to flicker, causing damage to the user's eyes. Summary of the invention

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

[0004] In a first aspect, the present application provides a display method, which is applied to an electronic device, wherein the electronic device includes an application processor AP, a display driver and a display screen, wherein 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, wherein the second dimming profile includes a second dimming mode corresponding to the second brightness value; and the display driver sends 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.

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

[0006] In a possible implementation, the method further includes: the display driver determines a dimming mode corresponding to the first brightness value according to the first brightness value and a preset brightness value. Through the above technical solution, the dimming mode corresponding to the first brightness value can be determined to ensure that the dimming mode matches the first brightness value, thereby avoiding screen flickering.

[0007] In a possible implementation, 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, 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 value conditions to improve the display effect of the display screen.

[0008] In a possible implementation, the method further includes: the display driver determines a dimming mode corresponding to the second brightness value according to the magnitude of the second brightness value and a preset brightness value. Through the above technical solution, the dimming mode corresponding to the second brightness value can be determined to ensure that the dimming mode matches the second brightness value, thereby avoiding screen flickering.

[0009] In a possible implementation, the display driver determines the dimming mode corresponding to the second brightness value according to the magnitude of 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 value conditions to improve the display effect of the display screen.

[0010] In a possible implementation, the method further includes: 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. Through the above technical solution, when it is determined that there is no need to adjust the corresponding dimming mode during the change of the brightness value, only the second brightness value is sent to the display controller, so that the display brightness of the display screen is adjusted according to the first dimming mode and the second brightness value, thereby saving system resources.

[0011] In a possible implementation, the dimming configuration file includes a dimming mode and dimming mode indication information, wherein the dimming mode indication information is used to indicate that the display controller operates in the corresponding dimming mode and transmits a preset number of control signals in each control cycle. Through the above technical solution, the dimming mode corresponding to the brightness value can be determined according to the change of the brightness value, and by adjusting the number of control signals transmitted in each control cycle in the corresponding dimming mode, the fingerprint calibration can be successfully ensured while avoiding the screen flickering phenomenon, thereby improving the user experience.

[0012] In a 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; or the first dimming mode is a PWM dimming mode, and the second dimming mode is a DC dimming mode. Through the above technical solution, the DC dimming mode and the PWM dimming mode can be used respectively according to the change of the brightness value, so as to ensure the display effect of the display screen under different brightness conditions and improve the user experience.

[0013] In a possible implementation, 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. Through the above technical solution, the brightness value can be matched with the corresponding dimming mode when the number of control signals of the display screen in the DC dimming mode is adjusted, and the number of control signals of the display screen in the PWM dimming mode is adjusted, so that the display controller can adjust the brightness of the display screen according to the dimming mode matching the brightness value to avoid screen flickering.

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

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

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

[0017] Figure 1 This is a hardware architecture diagram of an electronic device provided by an embodiment of the present application;

[0018] Figure 2 is a software architecture diagram of an electronic device provided by an embodiment of the present application;

[0019] Figure 3A A schematic diagram of brightness adjustment through a direct current (DC) dimming mode is provided for an embodiment of the present application;

[0020] Figure 3B A schematic diagram of brightness adjustment through pulse width modulation (PWM) dimming mode is provided for an embodiment of the present application;

[0021] Figure 4 A flow chart of a display method provided in one embodiment of the present application;

[0022] Figure 5 A flowchart of a display method provided in yet another embodiment of the present application;

[0023] Figure 6 A schematic diagram of brightness adjustment through DC dimming mode and PWM dimming mode provided in an embodiment of the present application;

[0024] Figure 7 A flowchart of a display method provided in yet another embodiment of the present application;

[0025] Figure 8 A schematic diagram of an overall display method provided in one embodiment of the present application. DETAILED DESCRIPTION

[0026] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the 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 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 designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way.

[0027] More and more mobile phones and other electronic devices are beginning to use organic light-emitting diode (OLED) screens as display screens. Compared with traditional display screens, OLED screens have the advantages of being thinner and lighter and having higher luminous efficiency. It should be noted that for the sake of convenience, the display screen in the following text refers to the OLED display screen.

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

[0029] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.

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

[0031] It is to be understood that the structure illustrated in the embodiment of the present application does 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

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

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

[0034] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instructions or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

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

[0036] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0037] 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 achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0038] 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 to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0039] The UART interface is a universal serial data bus 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 generally 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 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

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

[0041] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the 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.

[0042] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices 100, such as AR devices, etc.

[0043] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic 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 in the above embodiments, or a combination of multiple interface connection methods.

[0044] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device 100 through the power management module 141.

[0045] 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 supplies power to the processor 110, the internal memory 121, the display screen 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 number, battery health status (leakage, impedance), etc. 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.

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

[0047] 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 the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0048] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., 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.

[0049] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a 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.

[0050] 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 integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0051] 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 the network and other devices through wireless communication technology. The wireless communication technology 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).

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

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

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

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

[0056] 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0057] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0058] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

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

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

[0061] 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 DDR SDRAM is generally referred to as DDR5 SDRAM), etc.;

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

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

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

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

[0066] 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 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.

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

[0068] 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 arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. The speaker 170A, also called a "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.

[0069] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0070] Microphone 170C, also called "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 microphone 170C to input the sound signal into 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 sound source, realize directional recording function, etc.

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

[0072] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0073] The gyro 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 gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro 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 gyro sensor 180B can also be used for navigation and somatosensory game scenes.

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

[0075] 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 leather 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 according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

[0076] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device 100 and is applied to applications such as horizontal and vertical screen switching and pedometers.

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

[0078] 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 holds 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.

[0079] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

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

[0081] 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 a 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 avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0082] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0083] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

[0084] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

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

[0086] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0087] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out 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.

[0088] Figure 2 It is a software structure block diagram of an electronic device 100 provided in an embodiment of the present application.

[0089] The layered architecture divides the software into several layers, each with clear roles and division of labor. The 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, from top to bottom, namely, the application layer, the application framework layer, the system library, and the kernel layer.

[0090] 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, access to application locks, fingerprint photography, fingerprint answering calls, etc. Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

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

[0092] The system library may include multiple functional modules, such as a surface manager, a media library, a 3D graphics processing library (such as OpenGL ES), a 2D graphics engine (such as SGL), an image processing library, etc.

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

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

[0095] Understandably, Figure 2 The layers in the software structure shown 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 in the figure, and each layer may include more or fewer components, which is not limited in the present application.

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

[0097] After analysis and research, it is 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. Figure 3A As shown in FIG. 1 , the display controller uses the DC dimming mode to adjust the display brightness of the display from 0 nit to 150 nit. Figure 3B As shown, the display controller can use the PWM dimming mode to adjust the display brightness of the display from 0nit to 150nit. However, no matter which dimming mode is used to adjust the brightness of the display, the liquid crystal molecules of the display 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 longer, resulting in the problem of smearing and blurring. Therefore, when the display shows the next picture, the user will see the residual image of the previous picture in the next picture, that is, the phenomenon of afterimage occurs.

[0098] In order to reduce the afterimage phenomenon, the Overdrive (OD) technology can be used to significantly reduce the response time of the display screen, thereby weakening the afterimage. However, setting an OD value that is too high will cause an overshoot error (Over Shooting Error), which will cause the display screen to have a "ghost image" when displaying the picture; and setting an OD value that is too low will still cause the display screen to have afterimages. In order to solve the problem that the OD technology still cannot improve the afterimage of the display screen, a technical solution of adjusting the duty cycle of the EM (Effective-Mean) signal in the pixel circuit can be used, that is, adjusting the proportion of the time that the luminescent material in the display screen actually emits light (EM duty). For example, the EM duty is reduced from 99% to 95%. However, when the EM duty is reduced to 95%, due to the reduction in the duty cycle, the user's fingerprint information obtained by the fingerprint sensor in the electronic device may be incomplete, which will also cause the problem of fingerprint calibration failure. In order to solve the fingerprint calibration failure and ensure that the OD technology improves the afterimage, a solution of adjusting the number of EM signals (pulses) in the pixel circuit of the display screen can be used, but at this time the display screen may still have the problem of flickering.

[0099] In order to improve the above-mentioned afterimage, fingerprint calibration failure and screen flickering, the embodiments of the present application provide a display method, an electronic device and a storage medium, which can determine a 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. Figure 4The display method provided by the embodiment of the present application is described in detail. 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. The application framework layer includes a backlight thread, and the display screen includes a display controller. The display method includes the following steps:

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

[0101] 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. When it is determined that the display brightness of the display screen needs to be adjusted, the application processor may send a first backlight adjustment request to the backlight thread. The backlight thread may determine a first brightness value based on the first backlight adjustment request and send the first brightness value to the display driver.

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

[0103] S41, determining that a dimming mode corresponding to a first brightness value is a first dimming mode, and generating a first dimming configuration file.

[0104] 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, the corresponding dimming mode can be determined according to the size of the first brightness value and the preset brightness value, and a first dimming configuration file is generated. 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 configuration file according to 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 configuration file according to the first brightness value and the DC dimming mode.

[0105] 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 limit this.

[0106] It should be noted that the first dimming mode may be a DC dimming mode or a PWM dimming mode. The second dimming mode may be a DC dimming mode or a PWM dimming mode.

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

[0108] In this embodiment, after the display driver determines that the corresponding dimming mode is the first dimming mode according to the first brightness value, a first dimming configuration file is generated, and the first dimming configuration file is sent to the display controller to instruct the display controller to adjust the display brightness of the display screen to the first brightness value based on the first dimming mode. In this way, when the display driver uses the first dimming mode matching the first brightness value to adjust the display brightness of the display screen to the first brightness value, no screen flickering phenomenon occurs.

[0109] S43, receiving a second brightness value sent by the application processor.

[0110] In this embodiment, the application processor can determine whether it is necessary to continue to adjust the display brightness of the display screen based on the ambient light or manual adjustment method. When it is necessary to continue to adjust 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.

[0111] For example, in one application scenario, when a user carries a handheld 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.

[0112] S44, determining a dimming mode corresponding to the second brightness value.

[0113] 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 is required 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.

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

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

[0116] 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 when the display brightness is low, 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 when the display brightness is high, the corresponding dimming mode is determined to be the second dimming mode, and the second dimming mode is the DC dimming mode.

[0117] In this embodiment, when it is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, when the display brightness of the display screen is adjusted 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 and then adjust the brightness of the display screen, and the process executes steps S45-S46. When it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, when the display brightness of the display screen is adjusted 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 first dimming mode can continue to be used to adjust the brightness of the display screen, and the process executes step S47.

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

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

[0120] S46, sending a 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.

[0121] 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 problems of uneven brightness and poor visual effect; 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.

[0122] For example, Figure 5 As shown, 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; when the display brightness of the display screen is greater than the preset brightness value, the second dimming mode is used to adjust the brightness. Among them, the first dimming mode is the PWM dimming mode, and the second dimming mode can be a 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.

[0123] In this embodiment, the display driver sends the second dimming configuration file to the display controller to instruct the display controller to adjust the display brightness of the display screen to the second brightness value based on the second dimming mode, so that the display driver does not flicker when adjusting the display brightness of the display screen to the second brightness value using the second dimming mode matching the second brightness value.

[0124] 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 indicate that the display controller operates in the corresponding dimming mode and transmits a preset number of control signals in each control cycle.

[0125] In the 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. And when the display controller works in the DC dimming mode, a first preset number of control signals are transmitted in each control cycle, wherein the first preset number is 2; when the display controller works in the PWM dimming mode, a second preset number of control signals are transmitted in each control cycle, wherein the second preset number is 32.

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

[0127] 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 that 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.

[0128] For example, after the display screen displays the previous display screen, it will then display the next display screen according to the ambient light information or the operation input by the user. Since the first brightness value of the display screen displaying the previous display screen is different from the second brightness value of the display screen 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, 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 the flickering screen phenomenon.

[0129] In one embodiment, when receiving a first brightness value of 80nit sent by an application processor, the display driver determines that the first brightness value 80nit is less than a preset brightness value, and determines that the corresponding first dimming mode is a PWM dimming mode, generates a first dimming profile based on the first brightness value 80nit and the PWM dimming mode, and sends the first dimming profile to the display controller, so that the display controller adjusts the display brightness of the display screen to 80nit based on the PWM dimming mode. When receiving a second brightness value of 91nit sent by 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 a DC dimming mode, generates a second dimming profile based on the second brightness value 91nit and the DC dimming mode, and sends the second dimming profile to the display controller, so that the display controller adjusts the display brightness of the display screen to 91nit based on the DC dimming mode. Wherein, when the display controller controls to work 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. Through the display method provided by the present application, the second brightness value matches the second dimming mode, avoiding the problem of 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.

[0130] In one embodiment, when receiving a first brightness value of 95 nit sent by 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 95 nit and the DC dimming mode, and sends the first dimming profile to the display controller, so that the display controller adjusts the display brightness of the display screen to 95 nit based on the DC dimming mode. When receiving a second brightness value of 88 nit sent by the application processor, the display driver determines that the second brightness value 88 nit is less than the preset brightness value, and 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 88 nit and the PWM dimming mode, and sends the second dimming profile to the display controller, so that the display controller adjusts the display brightness of the display screen to 88 nit based on the PWM dimming mode. Among them, the display controller controls the preset number of control signals sent in each control cycle in the PWM dimming mode to be 32. Through the display method provided by the present application, the second brightness value matches the second dimming mode to avoid the screen flickering problem on the display screen. In addition, when the display controller works 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 screen flickering.

[0131] In one embodiment, when receiving a first brightness value of 80 nit sent by an application processor, the display driver determines that the first brightness value 80 nit 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 configuration file based on the first brightness value 80 nit and the PWM dimming mode, and sends the first dimming configuration file to the display controller, so that the display controller adjusts the display brightness of the display screen to 80 nit based on the PWM dimming mode. When receiving a second brightness value of 88 nit sent by 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 the PWM dimming mode. That is, when the first brightness value is less than the preset brightness value, and the second brightness value is also less than the preset brightness value. It is determined that the display controller does not need to update the dimming mode in 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 88 nit to the display controller, so that the display controller continues to adjust the display brightness of the display screen to 88 nit based on the PWM dimming mode. Among them, the display controller controls the transmission of a first preset number of control signals in each control cycle working in the PWM dimming mode, and the first preset number is 2. Through the display method provided in the present application, the second brightness value is matched with the second dimming mode, thereby avoiding the screen flickering problem on the display screen.

[0132] In one embodiment, when receiving a first brightness value of 95 nit sent by 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 configuration file based on the first brightness value 95 nit and the DC dimming mode, and sends the first dimming configuration file to the display controller, so that the display controller adjusts the display brightness of the display screen to 95 nit based on the DC dimming mode. When receiving a second brightness value of 110 nit sent by the application processor, the display driver determines that the second brightness value 110 nit 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 the first brightness value is less than the preset brightness value, and the second brightness value is also less than the preset brightness value. It is determined that the display controller does not need to update the dimming mode in 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 to the display controller, so that the display controller adjusts the display brightness of the display screen to 110 nit based on the DC dimming mode. Wherein, the display controller controls the second preset number of control signals sent in each control cycle when working in the DC dimming mode, and the second preset number is 32. Through the display method provided in the present application, the second brightness value is matched with the second dimming mode, thereby avoiding the screen flickering problem on the display screen.

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

[0134] In one embodiment, see Figure 6 As shown, another embodiment of the present application provides a display method, in Figure 4 Before step S40 of the display method provided, the display method further includes:

[0135] Step S60, whether DTS parsing is enabled, if it is enabled, proceed to step S61. If it is not enabled, the process returns to step S60.

[0136] The Device Tree Source (DTS) file is a text file used to record user configurations. It is a user-readable file that includes a series of named nodes and properties. In the DTS file, the information that can be described includes the number and type of CPUs, timer clocks, peripheral connections, interrupt configurations, serial ports, etc. After the terminal is powered on, the kernel will parse the hardware configuration of each node in the DTS file during the startup process and initialize the terminal according to the hardware configuration of each node.

[0137] 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. Determine whether to turn on the enable switch through dts parsing 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.

[0138] Step S61, setting the flag bit of the TE signal.

[0139] In one embodiment, in an Android system, the traditional image drawing and display process needs to be completed through 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 drawn through SurfaceFlinger to obtain image data. The image data then passes through the HWC and the display driver, and then sends the image data to (writes) 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.

[0140] When a user watches an image or video information on a terminal display screen, if the refresh rate and frame rate of the display screen are not synchronized and the refresh rate is low (e.g., 30Hz), the screen may freeze or even experience a tearing effect (TE) where the screen is dislocated. To avoid the tearing effect, the DDIC can output a TE signal according to the Vsync cycle after completing the refresh rate switching. The TE signal is used to instruct the software side to send display data. The display data includes at least the backlight configuration.

[0141] 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 the corresponding dimming mode as the first dimming mode according to the first brightness value, and generates a first dimming configuration file. The display driver sends a frame of display data containing the first dimming configuration file to the display screen. After receiving the display data, the display screen starts to refresh the display. The display driver sends a TE signal to notify the application processor that the display data of the current frame has been refreshed, and another frame of display data containing the second dimming configuration file can continue to be sent to the display screen. In order to prevent two or more dimming configuration files from being sent to the display screen in the same frame, resulting in poor display effect of the display screen, the flag bit of the TE signal can be set.

[0142] Step S62, determine whether to enable dbv, if dbv is enabled, go to step S60 and execute Figure 4 The display method shown in the figure. If dbv is not enabled, the process ends.

[0143] In this embodiment, when determining whether to adopt this application Figure 4 When the display method provided adjusts the display effect of the display screen, set the dbv enable switch. Figure 4 When the display method provided adjusts the display effect of the display screen, the dbv enable switch is enabled, and the process goes to step S60, and the execution Figure 4 The display method shown; if it is determined that this application does not need to be used Figure 4 When the display method provided adjusts the display effect of the display screen, there is no need to enable the dbv enable switch and the process ends.

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

[0145] Figure 7 A flowchart of a display method provided in another embodiment of the present application. The display method comprises the following steps:

[0146] S101, the AP sends a first backlight adjustment request to a backlight thread.

[0147] In this embodiment, the application processor may determine whether the display brightness of the display screen needs to be adjusted according to the ambient light, and send a first backlight adjustment request to the backlight thread when it is determined that the display brightness of the display screen needs to be adjusted. For example, the light sensor determines that the display brightness of the display screen needs to be adjusted according to the light signal collected by the terminal environment, and sends the light signal to the application processor. The application processor generates a first backlight adjustment request in response to the light signal, and sends the first backlight request to the backlight thread.

[0148] In one embodiment, the application processor may also determine whether the display brightness of the display screen needs to be adjusted according to a manual adjustment method. In response to the user's brightness adjustment operation on the display screen, it is determined that the display brightness of the display screen needs to be adjusted, and the application processor sends a first backlight request to the backlight thread. For example, in response to the user's sliding operation on the brightness bar of the brightness adjustment interface, it is determined that the display brightness of the display screen needs to be adjusted, and the application processor sends a 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 screen in the next display screen.

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

[0150] 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, a first brightness value may be determined according to parameters in the first backlight request.

[0151] S103, the backlight thread sends a first brightness value to a display driver.

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

[0153] In this embodiment, the display driver is used to control the display condition of the display screen. For example, the display brightness of the display screen is controlled. When the fingerprint calibration failure is solved and the OD technology is guaranteed to improve the afterimage phenomenon by adjusting the number of control signals in the dimming mode in each control cycle, the display driver needs to determine the corresponding dimming mode according to the first brightness value, so that the display controller can adjust the brightness of the display screen based on the dimming mode matching the first brightness value. Otherwise, the display screen will flicker.

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

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

[0156] In this embodiment, the display driver is a first dimming mode according to the first brightness value and the corresponding dimming mode, and generates a first dimming configuration file. 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 first dimming mode is a PWM dimming mode, and the display driver generates a first dimming configuration file according to 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 first dimming mode is a DC dimming mode, and the display driver generates a first dimming configuration file according to the first brightness value and the DC dimming mode.

[0157] In one embodiment, the first dimming configuration file 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, wherein the first preset number is 2.

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

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

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

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

[0162] In this embodiment, after the display driver determines that the corresponding dimming mode is the first dimming mode according to the first brightness value, the first brightness value is matched with the first dimming mode, and no screen flickering occurs during the process in which the display control adjusts the brightness value of the display screen to the first brightness value based on the first dimming mode.

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

[0164] 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 an operation of manually adjusting brightness, the second backlight adjustment request is sent to the backlight thread.

[0165] S109, the backlight thread determines a second brightness value.

[0166] In this embodiment, when the backlight thread receives the second backlight adjustment request, the second brightness value may be determined according to the parameters in the second backlight request.

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

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

[0169] 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 is required 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.

[0170] If it is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, when the display brightness of the display screen is adjusted from the first brightness value to the second brightness value, the dimming mode of the display screen needs to be updated 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 the display brightness of the display screen is adjusted from the first brightness value to the second brightness value, the dimming mode of the display screen does not need to be updated, and the first dimming mode can continue to be used to adjust the brightness of the display screen, and the process executes steps S115-S116.

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

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

[0173] In one embodiment, the second dimming configuration file 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, wherein the second preset number is 32.

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

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

[0176] In this embodiment, the display driver sends the second dimming configuration file to the display controller to instruct the display controller to adjust the display brightness of the display screen to the second brightness value based on the second dimming mode, so that the display driver does not flicker when adjusting the display brightness of the display screen to the second brightness value using the second dimming mode matching the second brightness value.

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

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

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

[0180] Through the display method provided in the present application, the display driver can determine that the corresponding dimming mode is the first dimming mode according to 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 according to 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.

[0181] See also Figure 8 , briefly summarizes the overall solution of the display method provided by this application.

[0182] In order to improve the problem of smearing / afterimage of the display screen during the display process, when the brightness value changes, it is necessary to match the brightness value with the corresponding dimming mode to obtain a binding 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 configuration file, the dimming configuration file includes a dimming mode and a dimming mode indication information, wherein the dimming mode indication information is used to indicate that the display controller works in the corresponding dimming mode and transmits a preset number of control signals in each control cycle. Specifically, the display driver receives the first brightness value sent by the AP, and determines that the dimming mode corresponding to the first brightness value is the first dimming mode. According to the comparison between the first brightness value and the preset brightness value, the dimming mode is determined to be the first dimming mode, and the first dimming configuration file 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 (configuration 1 as shown 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 are 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 are 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 bit 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 it is enabled in the same frame to take effect, improve the afterimage and screen flickering problems, and greatly improve the display effect of the display screen.

[0183] A display method provided in an embodiment of the present application may be a step executed by a display driver included in an electronic device, or may be executed by a display chip included in the electronic device. When the display chip is running, the computer program stored in the memory is called to implement the steps executed by the above electronic device.

[0184] 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions 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.

Citation Information

Cited By

  • Display method, electronic device, and storage medium

    EP4604108A1