EP4604108A1 - Display method, electronic device, and storage medium - Google Patents

Display method, electronic device, and storage medium

Info

Publication number
EP4604108A1
EP4604108A1 EP23935010.1A EP23935010A EP4604108A1 EP 4604108 A1 EP4604108 A1 EP 4604108A1 EP 23935010 A EP23935010 A EP 23935010A EP 4604108 A1 EP4604108 A1 EP 4604108A1
Authority
EP
European Patent Office
Prior art keywords
brightness value
dimming mode
display
dimming
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
EP23935010.1A
Other languages
German (de)
French (fr)
Other versions
EP4604108A4 (en
Inventor
Ruigang ZHUANG
Qifei TIAN
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Publication of EP4604108A1 publication Critical patent/EP4604108A1/en
Publication of EP4604108A4 publication Critical patent/EP4604108A4/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • G09G3/3225Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED] using an active matrix
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2300/00Aspects of the constitution of display devices
    • G09G2300/08Active matrix structure, i.e. with use of active elements, inclusive of non-linear two terminal elements, in the pixels together with light emitting or modulating elements
    • G09G2300/0809Several active elements per pixel in active matrix panels
    • G09G2300/0842Several active elements per pixel in active matrix panels forming a memory circuit, e.g. a dynamic memory with one capacitor
    • G09G2300/0861Several active elements per pixel in active matrix panels forming a memory circuit, e.g. a dynamic memory with one capacitor with additional control of the display period without amending the charge stored in a pixel memory, e.g. by means of additional select electrodes
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0247Flicker reduction other than flicker reduction circuits used for single beam cathode-ray tubes
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0257Reduction of after-image effects
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/04Maintaining the quality of display appearance
    • G09G2320/043Preventing or counteracting the effects of ageing
    • G09G2320/046Dealing with screen burn-in prevention or compensation of the effects thereof
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • G09G2320/0633Adjustment of display parameters for control of overall brightness by amplitude modulation of the brightness of the illumination source
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • G09G2320/064Adjustment of display parameters for control of overall brightness by time modulation of the brightness of the illumination source
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas
    • G09G2340/0435Change or adaptation of the frame rate of the video stream
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/14Detecting light within display terminals, e.g. using a single or a plurality of photosensors
    • G09G2360/144Detecting light within display terminals, e.g. using a single or a plurality of photosensors the light being ambient light
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/08Details of image data interface between the display device controller and the data line driver circuit

Definitions

  • Embodiments of this application relate to the field of terminal technologies, and in particular, to a display method, an electronic device, and a storage medium.
  • a sticking image (sticking image, also referred to as a ghost image) phenomenon refers to a phenomenon in which when picture switching is performed on a display screen of an electronic device, a previous picture does not disappear immediately, and the previous picture and a next picture simultaneously exist in a visual effect. This phenomenon mostly exists on a cathode ray tube (CRT, cathode ray tube), plasma display panel (PDP, plasma display panel), or organic light-emitting diode (OLED, organic light-emitting diode) display screen.
  • CTR cathode ray tube
  • PDP plasma display panel
  • OLED organic light-emitting diode
  • a dimming mode corresponding to a brightness value can be determined based on a change of the brightness value, and display brightness of the display screen is adjusted based on the brightness value and the dimming mode corresponding to the brightness value, to avoid a screen flickering phenomenon.
  • the method further includes: The display driver determines the dimming mode corresponding to the first brightness value based on magnitudes of the first brightness value and a preset brightness value. According to the foregoing 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, and avoid a screen flickering phenomenon.
  • that the display driver determines the dimming mode corresponding to the first brightness value based on magnitudes of the first brightness value and a preset brightness value includes: 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, determining that the dimming mode corresponding to the first brightness value is the second dimming mode.
  • the method further includes: The display driver determines the dimming mode corresponding to the second brightness value based on magnitudes of the second brightness value and a preset brightness value. According to the foregoing 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, and avoid a screen flickering phenomenon.
  • the dimming configuration file includes a dimming mode and dimming mode indication information
  • the dimming mode indication information is used to indicate the display controller to operate in a corresponding dimming mode and transmit a preset quantity of control signals in each control period.
  • the display controller operates in the DC dimming mode and transmits a first preset quantity of control signals in each control period, where the first preset quantity is 2; and the display controller operates in the PWM dimming mode, and transmits a second preset quantity of control signals in each control period, where the second preset quantity is 32.
  • a brightness value can match a corresponding dimming mode by adjusting a quantity of control signals of the display screen in the DC dimming mode and adjusting a quantity of control signals of the display screen in the PWM dimming mode, so that the display controller performs brightness adjustment on the display screen based on the dimming mode matching the brightness value, thereby avoiding a screen flickering phenomenon.
  • this application provides an electronic device, and the electronic device includes a display screen, a memory, and a processor.
  • the memory is configured to store program instructions.
  • the processor is configured to read the program instructions stored in the memory, to adjust display brightness of the display screen by using the foregoing display method.
  • this application provides a computer-readable storage medium.
  • the computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the foregoing display method is implemented.
  • first and second are used only for the purpose of description, and shall not be construed as indicating or implying relative importance or implicitly indicating a quantity of indicated technical features. Therefore, features defined with “first” and “second” may explicitly or implicitly include one or more of the features.
  • words such as “example” or “for example” are used to mean an example, an illustration, or a description. Any embodiment or design solution described as “example” or “for example” in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Exactly, the words such as “example” or “for example” are intended to present related concepts in a specific manner.
  • OLED organic light-emitting diode
  • the electronic device may be in various forms, such as a mobile phone (mobile phone), a tablet computer (Pad), a computer having a wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), an in-vehicle terminal device, a wireless terminal in self-driving (self-driving), a wireless terminal in remote medical (remote medical), a wireless terminal in a smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in a smart city (smart city), a wireless terminal in a smart home (smart home), and a wearable terminal device.
  • a mobile phone mobile phone
  • a tablet computer Pad
  • a computer having a wireless transceiver function such as a mobile phone (mobile phone), a tablet computer (Pad), a computer having a wireless transceiver function, a virtual reality (virtual reality, VR)
  • FIG. 1 is a schematic diagram of a structure of an electronic device according to an embodiment of this application.
  • An electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a subscriber identification module (subscriber identification module, SIM) card interface 195, and the like.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (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,
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
  • the structure illustrated in this embodiment of this application constitutes no specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, combine some components, split some components, or have different component arrangements.
  • the components shown in the figure may be implemented by hardware, software, or a combination of software and hardware.
  • the controller may generate an operation control signal based on instruction operation code and a timing signal, to complete control of instruction fetching and instruction execution.
  • a memory may be further disposed in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data just used or cyclically used by the processor 110. If the processor 110 needs to use the instructions or the data again, the processor 110 may directly invoke the instructions or the data from the memory. This avoids repeated access and reduces a waiting time of the processor 110, thereby improving system efficiency.
  • the processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (inter-integrated circuit, I2C) interface, an inter-integrated circuit sound (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver/transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI) interface, a general-purpose input/output (general-purpose input/output, GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, a universal serial bus (universal serial bus, USB) interface, and/or the like.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • the I2S interface may be used for audio communication.
  • the processor 110 may include a plurality of groups of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through the I2S bus, to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transfer an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call by using a Bluetooth headset.
  • the PCM interface may also be used for audio communication, to sample, quantize, and encode an analog signal.
  • the audio module 170 may be coupled to the wireless communication module 160 through a PCM bus interface.
  • the audio module 170 may also transfer an audio signal to the wireless communication module 160 through the PCM interface, to implement a function of answering a call by using a Bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
  • the USB interface 130 is an interface that complies with USB standard specifications, and may be specifically a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like.
  • the USB interface 130 may be configured to connect to the charger to charge the electronic device 100, or may be configured to transmit data between the electronic device 100 and a peripheral device, or may be configured to connect to a headset to play audio by using the headset.
  • the interface may be further configured to connect to another electronic device 100, such as an AR device.
  • the power management module 141 is configured to connect to the battery 142, the charging management module 140, and the processor 110.
  • the power management module 141 receives an 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, the wireless communication module 160, and the like.
  • the power management module 141 may be further configured to monitor parameters such as a battery capacity, a quantity of battery cycles, and a battery health status (leakage or impedance).
  • the power management module 141 may alternatively be disposed in the processor 110.
  • the power management module 141 and the charging management module 140 may alternatively be disposed in a same device.
  • the antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 may be configured to cover one or more communication frequency bands. Different antennas may be further multiplexed to improve antenna utilization.
  • the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna may be used together with a tuning switch.
  • the mobile communication module 150 may provide a solution applied to the electronic device 100 for wireless communication including 2G/3G/4G/5G and the like.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), and the like.
  • the mobile communication module 150 may receive an electromagnetic wave by using the antenna 1, perform processing such as filtering or amplification on the received electromagnetic wave, and transmit a processed electromagnetic wave to the modem processor for demodulation.
  • the mobile communication module 150 may further amplify a signal obtained after modulation by the modem processor, and convert an amplified signal into an electromagnetic wave for radiation through the antenna 1.
  • at least some functional modules in the mobile communication module 150 may be disposed in the processor 110.
  • at least some functional modules in the mobile communication module 150 may be disposed in a same device as at least some modules in the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is configured to modulate a to-be-sent low frequency baseband signal into a medium or high frequency signal.
  • the demodulator is configured to demodulate a received electromagnetic wave signal into a low frequency baseband signal. Then, the demodulator transfers, to the baseband processor for processing, the low frequency baseband signal obtained through demodulation.
  • the low frequency baseband signal is processed by the baseband processor and then transferred to the application processor.
  • the application processor outputs a sound signal by using an audio device (not limited to the speaker 170A, the receiver 170B, and the like), or displays an image or a video by using the display screen 194.
  • the modem processor may be an independent device. In some other embodiments, the modem processor may be independent of the processor 110 and disposed in a same device as the mobile communication module 150 or another functional module.
  • the wireless communication module 160 may provide a solution for wireless communication that is applied to the electronic device 100 and that includes a wireless local area network (wireless local area network, WLAN) (for example, a wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (Bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), a near field communication (near field communication, NFC) technology, an infrared (infrared, IR) technology, and the like.
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the antenna 1 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and another device by using a wireless communication technology.
  • the wireless communication technology may include a global system for mobile communications (global system for mobile communications, GSM), a general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, a GNSS, a WLAN, NFC, FM, an IR technology, and/or the like.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA wideband code division multiple access
  • WCDMA wideband code division multiple access
  • time-division code division multiple access time-division code
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a BeiDou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi-zenith satellite system, QZSS), and/or a satellite based augmentation system (satellite based augmentation system, SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BeiDou navigation satellite system beidou navigation satellite system
  • BDS BeiDou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 100 may implement a shooting function by using the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
  • the ISP is configured to process data fed back by the camera 193. For example, during photographing, a shutter is opened, light is transmitted to a photosensitive element of the camera through a lens, an optical signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, to convert the electrical signal into a visible image.
  • the ISP may further perform algorithm optimization on noise, brightness, and complexion of the image.
  • the ISP may further optimize parameters such as exposure and a color temperature of a shooting scenario.
  • the ISP may be disposed in the camera 193.
  • the camera 193 is configured to capture a still image or a video.
  • An optical image of an object is generated through a lens and is projected onto a photosensitive element.
  • the photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts an optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert the electrical signal into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • the DSP converts the digital image signal into an image signal in a standard format, for example, RGB or YUV.
  • the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
  • the digital signal processor is configured to process a digital signal, and may process another digital signal in addition to a digital image signal. For example, when the electronic device 100 selects a frequency, the digital signal processor is configured to perform Fourier transform and the like on frequency energy.
  • the NPU is a neural-network (neural-network, NN) computing processor, which quickly processes input information by referring to a biological neural network structure, for example, by referring to a transferring mode between human brain neurons, and may further perform self-learning continuously.
  • Applications such as intelligent cognition of the electronic device 100, for example, image recognition, face recognition, voice recognition, and text understanding, may be implemented by using the NPU.
  • the random access memory may include a static random-access memory (static random-access memory, SRAM), a dynamic random access memory (dynamic random access memory, DRAM), a synchronous dynamic random access memory (synchronous dynamic random access memory, SDRAM), a double data rate synchronous dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, where for example, a fifth generation DDR SDRAM is usually referred to as a DDR5 SDRAM), and the like.
  • SRAM static random-access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate synchronous dynamic random access memory double data rate synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • the receiver 170B also referred to as an "earpiece", is configured to convert an audio electrical signal into a sound signal.
  • the receiver 170B may be put close to a human ear to listen to a voice.
  • the electronic device 100 may also calculate a touch location based on a detected signal of the pressure sensor 180A.
  • touch operations performed at a same touch location but having different touch operation intensity may correspond to different operation instructions. For example, when a touch operation whose touch operation intensity is less than a first pressure threshold is performed on an SMS message application icon, an instruction for viewing an SMS message is executed. When a touch operation whose touch operation intensity is greater than or equal to the first pressure threshold is performed on the SMS message application icon, an instruction for creating a new SMS message is executed.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may detect opening/closing of a flip leather case by using the magnetic sensor 180D.
  • the electronic device 100 may detect opening/closing of a flip cover based on the magnetic sensor 180D, and further set features such as automatic unlocking of the flip cover based on a detected opening/closing state of the leather case or a detected opening/closing state of the flip cover.
  • the acceleration sensor 180E may detect magnitudes of acceleration in various directions (usually on three axes) of the electronic device 100, and may detect a magnitude and a direction of gravity when the electronic device 100 is still.
  • the acceleration sensor 180E may be further configured to recognize a posture of the electronic device 100, and is applied to switching between a landscape mode and a portrait mode, a pedometer, or another application.
  • the optical proximity sensor 180G may include, for example, a light-emitting diode (LED) and an optical detector, for example, a photodiode.
  • the light-emitting diode may be an infrared light-emitting diode.
  • the electronic device 100 emits infrared light to the outside by using the light-emitting diode.
  • the electronic device 100 uses the photodiode to detect reflected infrared light from a nearby object. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100.
  • the electronic device 100 may detect, by using the optical proximity sensor 180G, that the user holds the electronic device 100 close to an ear for a call, to implement automatic screen-off to save power.
  • the optical proximity sensor 180G may alternatively be used in a leather case mode or a pocket mode to automatically unlock or lock a screen.
  • the temperature sensor 180J is configured to detect a temperature.
  • the electronic device 100 executes a temperature processing policy by using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 degrades performance of a processor located near the temperature sensor 180J, to reduce power consumption and implement thermal protection.
  • the electronic device 100 heats the battery 142, to prevent the electronic device 100 from being abnormally powered off due to a low temperature.
  • the electronic device 100 boosts an output voltage of the battery 142, to avoid abnormal power-off due to a low temperature.
  • the motor 191 may generate a vibration prompt.
  • the motor 191 may be configured to provide a vibration prompt for an incoming call, and may also be configured to provide vibration feedback for a touch.
  • touch operations performed on different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194.
  • Different application scenarios for example, a time reminder, information receiving, an alarm clock, and a game
  • a touch vibration feedback effect may be further customized.
  • the indicator 192 may be an indicator light, may be configured to indicate a charging status or a power change, and may be further configured to indicate a message, a missed incoming call, a notification, and the like.
  • the SIM card interface 195 is configured to connect to a SIM card.
  • the SIM card may be inserted into the SIM card interface 195 or removed from the SIM card interface 195 to implement contact with and separation from the electronic device 100.
  • the electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, and the like.
  • a plurality of cards may be simultaneously inserted into a same SIM card interface 195.
  • the plurality of cards may be of a same type or different types.
  • the SIM card interface 195 may be further compatible with SIM cards of different types.
  • the SIM card interface 195 may also be compatible with an external memory card.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for an application at the application layer.
  • the application framework layer includes some predefined functions. As shown in FIG. 2 , the application framework layer may further include: a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
  • the kernel layer is a layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the display controller may adjust the brightness of the display screen of the electronic device by using a direct current (Direct Current, DC) dimming mode and a pulse width modulation (Pulse Width Modulation, PWM) dimming mode.
  • DC Direct Current
  • PWM Pulse Width Modulation
  • the display controller adjusts the display brightness of the display screen from 0 nit (nit) to 150 nits by using the DC dimming mode.
  • the display controller may adjust the display brightness of the display screen from 0 nit to 150 nits by using the PWM dimming mode.
  • a response time of the display screen may be greatly reduced by using an Overdrive (OD for short) technology, thereby weakening the sticking image.
  • OD Overdrive
  • setting an excessive high OD value may cause an over shooting error (Over Shooting Error), which causes ghosting to occur when the display screen displays a picture; and setting an excessive low OD value may still cause a sticking image to occur on the display screen.
  • a solution of adjusting a quantity (pulses) of EM signals in the pixel circuit of the display screen may be used, but in this case, a problem of screen flickering may further occur on the display screen.
  • the application processor may determine, based on ambient light, whether display brightness of the display screen needs to be adjusted; and when determining that the display brightness of the display screen needs to be adjusted, send a first backlight adjustment request to the backlight thread.
  • the backlight thread determines the first brightness value based on the first backlight adjustment request, and sends the first brightness value to the display driver.
  • the application processor may alternatively determine, in a manual adjustment manner, whether the display brightness of the display screen needs to be adjusted. For example, in response to a sliding operation performed by a user on a brightness bar of a brightness adjustment interface, the application processor determines that the display brightness of the display screen needs to be adjusted, and sends the first backlight adjustment request to the backlight thread. The backlight thread determines the first brightness value based on the first backlight adjustment request, and sends the first brightness value to the display driver.
  • a dimming mode matching a brightness value needs to be used to adjust brightness of the display screen.
  • the display driver may determine a corresponding dimming mode based on magnitudes of the first brightness value and a preset brightness value, and generate the first dimming configuration file.
  • the first dimming mode is a PWM dimming mode
  • the display driver generates the first dimming configuration file based on the first brightness value and the PWM dimming mode.
  • a corresponding dimming mode is a second dimming mode
  • the second dimming mode is a DC dimming mode
  • the display driver generates the first dimming configuration file based on the first brightness value and the DC dimming mode.
  • the preset brightness value is 90 nits. In another embodiment, the preset brightness value is not limited to 90 nits. This is not limited in this application.
  • the first dimming mode may be the DC dimming mode, or may be the PWM dimming mode.
  • the second dimming mode may be the DC dimming mode, or may be the PWM dimming mode.
  • the display driver after determining, based on the first brightness value, that the corresponding dimming mode is the first dimming mode, the display driver generates the first dimming configuration file, and sends the first dimming configuration file to the display controller, to indicate the display controller to adjust the display brightness of the display screen to the first brightness value based on the first dimming mode. Therefore, in a process in which the display driver adjusts the display brightness of the display screen to the first brightness value by using the first dimming mode matching the first brightness value, the screen flickering phenomenon does not occur.
  • the application processor may determine, based on ambient light or in a manual adjustment manner, whether the display brightness of the display screen needs to be further adjusted; and when the brightness of the display screen needs to be further adjusted, send a second backlight adjustment request to the backlight thread.
  • the backlight thread determines the second brightness value based on the second backlight adjustment request, and sends the second brightness value to the display driver.
  • the application processor may determine, based on indoor ambient light, that the display brightness of the display screen needs to be adjusted, and the application processor sends the second backlight adjustment request to the backlight thread.
  • the backlight thread determines the second brightness value based on the second backlight adjustment request, and sends the second brightness value to the display driver.
  • the display driver needs to determine whether the dimming mode corresponding to the second brightness value is the first dimming mode or the second dimming mode, to send a dimming mode matching the second brightness value to the display controller.
  • the dimming mode corresponding to the second brightness value is determined based on magnitudes of the second brightness value and a preset brightness value.
  • the dimming mode corresponding to the second brightness value is the first dimming mode.
  • the dimming mode corresponding to the second brightness value is the second dimming mode.
  • the corresponding dimming mode is the first dimming mode
  • the first dimming mode is the PWM dimming mode.
  • the second dimming mode is the second dimming mode
  • the second dimming mode is the DC dimming mode
  • the dimming mode corresponding to the second brightness value is the second dimming mode
  • the display brightness of the display screen is adjusted from the first brightness value to the second brightness value
  • to-be-configured display brightness is less than or equal to the preset brightness value
  • brightness adjustment is performed on the display screen by using the PWM dimming mode
  • the display screen has good uniformity and no distortion phenomena occurs.
  • brightness adjustment may be performed on the display screen by using different dimming modes for different display brightness.
  • the display controller may perform brightness adjustment on the display screen by using the first dimming mode when the display brightness is less than or equal to the preset brightness value, and perform brightness adjustment by using the second dimming mode when the display brightness of the display screen is greater than the preset brightness value.
  • the first dimming mode is the PWM dimming mode
  • the second dimming mode may be the DC dimming mode.
  • the first dimming mode is the DC dimming mode
  • the second dimming mode is the PWM dimming mode
  • the first dimming mode is the PWM dimming mode
  • the second dimming mode is the DC dimming mode
  • the display controller operates in the DC dimming mode and transmits a first preset quantity of control signals in each control period, where the first preset quantity is 2; and the display controller operates in the PWM dimming mode, and transmits a second preset quantity of control signals in each control period, where the second preset quantity is 32.
  • the display driver determines, in a process of indicating the display controller to adjust the brightness of the display screen from the first brightness value to the second brightness value, that the dimming mode does not need to be updated.
  • the display driver sends the second brightness value to the display controller, so that the display controller continues to adjust the brightness of the display screen to the second brightness value by using the first dimming mode.
  • the display screen displays a next display picture based on ambient light information or a user input operation. Because the first brightness value of the display screen for displaying the previous display picture is different from the second brightness value for displaying the next display picture, in a process in which the display controller adjusts the display brightness of the display screen from the first brightness value to the second brightness value, to avoid the screen flickering phenomenon caused by the second brightness value possibly not matching the dimming mode due to a failure to update the dimming mode corresponding to the second brightness value of the display screen in a timely manner, according to the display method provided in this application, the display driver can determine the corresponding second dimming mode based on the second brightness value, generate the second dimming configuration file, and send the second dimming configuration file to the display controller, to indicate the display controller to adjust display brightness of the display screen to the second brightness value based on the second dimming mode. Therefore, in a process of adjusting the brightness of the display screen, the display controller can match a to-be-
  • the display driver determines that the first brightness value 80 nits is less than the preset brightness value, determines the corresponding first dimming mode as the PWM dimming mode, generates the first dimming configuration file based on the first brightness value 80 nits 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 nits based on the PWM dimming mode.
  • the display driver determines that the second brightness value is greater than the preset brightness value, determines the second dimming mode corresponding to the second brightness value as the DC dimming mode, generates the second dimming configuration file based on the second brightness value 91 nits and the DC dimming mode, and sends the second dimming configuration file to the display controller, so that the display controller adjusts the display brightness of the display screen to 91 nits based on the DC dimming mode.
  • the display controller controls the first preset quantity of control signals to be transmitted in each control period, where the first preset quantity is 2.
  • the second brightness value is enabled to match the second dimming mode, thereby preventing a screen flickering problem from occurring on the display screen.
  • the display controller transmits two control signals (2 pulses) in each control period, which can avoid the screen flickering phenomenon while resolving a fingerprint calibration failure and ensuring that an OD technology alleviates a sticking image phenomenon.
  • the display driver determines that the first brightness value is greater than the preset brightness value, determines the corresponding first dimming mode as the DC dimming mode, generates the first dimming configuration file based on the first brightness value 95 nits 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 nits based on the DC dimming mode.
  • the display driver determines that the second brightness value 88 nits is less than the preset brightness value, determines the second dimming mode corresponding to the second brightness value as the PWM dimming mode, generates the second dimming configuration file based on the second brightness value 88 nits and the PWM dimming mode, and sends the second dimming configuration file to the display controller, so that the display controller adjusts the display brightness of the display screen to 88 nits based on the PWM dimming mode.
  • the display controller controls the preset quantity of control signals sent in each control period in the PWM dimming mode to be 32.
  • the second brightness value is enabled to match the second dimming mode, thereby preventing a screen flickering problem from occurring on the display screen.
  • the display controller transmits the second preset quantity of control signals in each control period, and the second preset quantity is 32 (32 pulses), which can avoid the screen flickering phenomenon while resolving a fingerprint calibration failure and ensuring that the OD technology alleviates a sticking image phenomenon.
  • the display driver determines that the first brightness value 80 nits is less than the preset brightness value, and determines the corresponding first dimming mode as the PWM dimming mode, and the display driver generates the first dimming configuration file based on the first brightness value 80 nits 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 nits based on the PWM dimming mode.
  • the display driver determines that the second brightness value is less than the preset brightness value, and determines the second dimming mode corresponding to the second brightness value as also the PWM dimming mode.
  • the first brightness value is less than the preset brightness value
  • the second brightness value is also less than the preset brightness value
  • the display driver sends the second brightness value 88 nits to the display controller, so that the display controller continues to adjust the display brightness of the display screen to 88 nits based on the PWM dimming mode.
  • the display driver determines that the first brightness value is greater than the preset brightness value, and determines the corresponding first dimming mode as the DC dimming mode, and the display driver generates the first dimming configuration file based on the first brightness value 95 nits 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 nits based on the DC dimming mode.
  • the display controller When operating in the DC dimming mode, the display controller controls the second preset quantity of control signals to be sent in each control period, where the second preset quantity is 32. According to the display method provided in this application, the second brightness value is enabled to match the second dimming mode, thereby preventing a screen flickering problem from occurring on the display screen.
  • a dimming mode corresponding to a brightness value can be determined based on a change of the brightness value, and the display brightness of the display screen is adjusted based on the brightness value and the dimming mode corresponding to the brightness value, to avoid the screen flickering phenomenon.
  • the display method further includes the following steps.
  • Step S60 Whether dts parsing is enabled, and if it is determined that dts parsing is enabled, go to step S61; or if it is determined that dts parsing is disabled, a procedure returns to step S60.
  • the display screen refreshes and displays (display) an image.
  • the software side generates image data at a high frequency. Accordingly, a display screen side performs high frequency image refresh based on the image data, thus improving picture smoothness.
  • the first brightness value is sent to the display driver.
  • the display driver determines, based on the first brightness value, that a corresponding dimming mode is a first dimming mode, and generates a first dimming configuration file.
  • the display driver sends a frame of display data that includes the first dimming configuration file to the display screen. After receiving the display data, the display screen starts to refresh display.
  • the display driver sends a TE signal to notify the application processor that a current frame of display data has been refreshed, and another frame of display data that includes the second dimming configuration file can continue to be sent to the display screen.
  • the flag bit of the TE signal may be set.
  • Step S62 Determine whether to enable dbv, and if it is determined that the dbv is enabled, go to step S60, and perform the display method shown in FIG. 4 . If it is determined that the dbv is disabled, the procedure ends.
  • An AP sends a first backlight adjustment request to a backlight thread.
  • the application processor may alternatively determine, in a manual adjustment manner, whether the display brightness of the display screen needs to be adjusted.
  • the application processor determines that the display brightness of the display screen needs to be adjusted, and sends the first backlight adjustment request to the backlight thread.
  • the application processor determines that the display brightness of the display screen needs to be adjusted, and sends the first backlight adjustment request to the backlight thread.
  • the first backlight adjustment request includes at least a parameter such as a brightness value of a next display picture on the display screen.
  • the backlight thread determines a first brightness value based on the first backlight adjustment request.
  • the display driver determines that a dimming mode corresponding to the first brightness value is a first dimming mode.
  • the display driver generates a first dimming configuration file.
  • the corresponding first dimming mode is a DC dimming mode
  • the display driver When the first brightness value is greater than the preset brightness value, to ensure a display effect of the display screen with high display brightness, the corresponding first dimming mode is a DC dimming mode, and the display driver generates the first dimming configuration file based on the first brightness value and the DC dimming mode.
  • the first dimming configuration file includes the first brightness value, the first dimming mode, and first dimming mode indication information.
  • the first dimming mode indication information is used to indicate the display controller to operate in the first dimming mode, and transmit a first preset quantity of control signals in each control period, where the first preset quantity is 2.
  • the display controller adjusts a brightness value of the display screen to the first brightness value based on the first dimming mode.
  • step S112 Generate a second dimming configuration file.
  • the 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.
  • the second dimming configuration file includes the second brightness value, the second dimming mode, and second dimming mode indication information.
  • the second dimming mode indication information is used to indicate the display controller to operate in the second dimming mode, and transmit a second preset quantity of control signals in each control period, where the second preset quantity is 32.
  • the display driver sends the second dimming configuration file to the display controller.
  • the display controller adjusts the display brightness of the display screen to the second brightness value based on the second dimming mode.
  • the display driver sends the second dimming configuration file to the display controller, to indicate the display controller to adjust the display brightness of the display screen to the second brightness value based on the second dimming mode. Therefore, the screen flickering phenomenon does not occur in a process in which the display driver adjusts the display brightness of the display screen to the second brightness value by using the second dimming mode matching the second brightness value.
  • step S115 When it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, step S115 is performed: The display driver sends the second brightness value to the display controller.
  • the display controller adjusts the display brightness of the display screen to the second brightness value based on the first dimming mode.
  • the display driver determines, in a process of indicating the display controller to adjust the brightness of the display screen from the first brightness value to the second brightness value, that the dimming mode does not need to be updated.
  • the display driver sends the second brightness value to the display controller, so that the display controller continues to adjust the brightness of the display screen to the second brightness value by using the first dimming mode.
  • the display driver can determine, based on the first brightness value, that the corresponding dimming mode is the first dimming mode, generate the first dimming configuration file, and send the first dimming configuration file to the display controller, to indicate the display controller to adjust the display brightness of the display screen to the first brightness value based on the first dimming mode.
  • the display driver can determine that the corresponding dimming mode is the second dimming mode based on the second brightness value, generate the second dimming configuration file, and send the second dimming configuration file to the display controller, to indicate the display controller to adjust the display brightness of the display screen to the second brightness value based on the second dimming mode. Therefore, in a process of adjusting the brightness of the display screen, the display controller can match a to-be-adjusted brightness value with a corresponding dimming mode, to avoid the screen flickering phenomenon.
  • a specific algorithm mainly includes: determining a dimming mode corresponding to the brightness value, and binding the brightness value to the corresponding dimming mode to generate a dimming configuration file, where the dimming configuration file includes the dimming mode and dimming mode indication information, and the dimming mode indication information is used to indicate the display controller to operate in a corresponding dimming mode and transmit a preset quantity of control signals in each control period.
  • the display driver receives the first brightness value delivered by the AP, and determines that the dimming mode corresponding to the first brightness value is the first dimming mode; and determines, based on a comparison between magnitudes of the first brightness value and the preset brightness value, that the dimming mode is the first dimming mode, and generates the first dimming configuration file based on the first brightness value and the first dimming mode.
  • This implements matching between the brightness value and the corresponding dimming mode. For example, when the first brightness value is greater than the preset brightness value, it is determined that the corresponding dimming mode is the first dimming mode (a configuration 1 as shown in the figure), and the first dimming mode is the DC dimming mode.
  • the display controller operates in the DC dimming mode and transmits the first preset quantity of control signals in each control period, where the first preset quantity is 2.
  • the first brightness value is less than or equal to the preset brightness value
  • the second dimming mode is the PWM dimming mode (a configuration 2 as shown in the figure).
  • the display controller operates in the PWM dimming mode, and transmits the second preset quantity of control signals in each control period, where the second preset quantity is 32.
  • the second dimming mode corresponding to the second brightness value is first determined, and the second configuration file is generated.
  • the flag bit of the TE signal is set and the display screen is enabled, to control the display controller to adjust the brightness of the display screen to the second brightness value based on the second dimming mode.
  • the display method provided in the embodiments of this application may be steps performed by the display driver included in the electronic device, or may be performed by a display chip included in the electronic device.
  • the display chip invokes, when running, a computer program stored in the memory to implement the steps performed by the foregoing electronic device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephone Function (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

This application provides a display method, an electronic device, and a storage medium, and relates to the field of terminal technologies. The display method includes: receiving a first brightness value delivered by an application processor AP; determining that a dimming mode corresponding to the first brightness value is 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 a brightness value of a display screen to the first brightness value based on the first dimming mode; receiving a second brightness value delivered by the AP; when a 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 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. By using embodiments of this application, it can prevent a screen flickering phenomenon from occurring on the display screen.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application claims priority to Chinese Patent Application No. 202310481588.6, filed with the China National Intellectual Property Administration on April 27, 2023 and entitled "DISPLAY METHOD, ELECTRONIC DEVICE, AND STORAGE MEDIUM", which is incorporated herein by reference in its entirety.
  • TECHNICAL FIELD
  • Embodiments of this application relate to the field of terminal technologies, and in particular, to a display method, an electronic device, and a storage medium.
  • BACKGROUND
  • A sticking image (sticking image, also referred to as a ghost image) phenomenon refers to a phenomenon in which when picture switching is performed on a display screen of an electronic device, a previous picture does not disappear immediately, and the previous picture and a next picture simultaneously exist in a visual effect. This phenomenon mostly exists on a cathode ray tube (CRT, cathode ray tube), plasma display panel (PDP, plasma display panel), or organic light-emitting diode (OLED, organic light-emitting diode) display screen. When a sticking image phenomenon occurs on the display screen of the electronic device, quality of a display picture on the display screen is affected. When the sticking image phenomenon is alleviated in a related technology, it is easy to cause a screen flickering phenomenon on the display screen, causing damage to eyes of a user.
  • SUMMARY
  • In view of the foregoing content, it is necessary to provide a display method, an electronic device, and a storage medium, to improve a display effect of a display screen.
  • According to a first aspect, this application provides a display method, applied to an electronic device. The electronic device includes an application processor AP, a display driver, and a display screen, and the display screen includes a display controller. The method includes: The display driver receives a first brightness value delivered by the AP; the display driver determines that a dimming mode corresponding to the first brightness value is a first dimming mode; the display driver generates a first dimming configuration file, where the first dimming configuration file includes the first dimming mode corresponding to the first brightness value; the display driver sends the first dimming configuration file to the display controller, so that the display controller adjusts a 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 delivered by the AP; when a 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 configuration file, where the second dimming configuration file includes the second dimming mode corresponding to the second brightness value; and 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.
  • According to the display method provided in this application, a dimming mode corresponding to a brightness value can be determined based on a change of the brightness value, and display brightness of the display screen is adjusted based on the brightness value and the dimming mode corresponding to the brightness value, to avoid a screen flickering phenomenon.
  • In a possible implementation, the method further includes: The display driver determines the dimming mode corresponding to the first brightness value based on magnitudes of the first brightness value and a preset brightness value. According to the foregoing 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, and avoid a screen flickering phenomenon.
  • In a possible implementation, that the display driver determines the dimming mode corresponding to the first brightness value based on magnitudes of the first brightness value and a preset brightness value includes: 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, determining that the dimming mode corresponding to the first brightness value is the second dimming mode. According to the foregoing technical solution, brightness adjustment can be performed on the display screen by using different dimming modes in a case of different brightness values, to improve a display effect of the display screen.
  • In a possible implementation, the method further includes: The display driver determines the dimming mode corresponding to the second brightness value based on magnitudes of the second brightness value and a preset brightness value. According to the foregoing 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, and avoid a screen flickering phenomenon.
  • In a possible implementation, that the display driver determines the dimming mode corresponding to the second brightness value based on magnitudes of the second brightness value and a preset brightness value includes: 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, determining that the dimming mode corresponding to the second brightness value is the second dimming mode. According to the foregoing technical solution, brightness adjustment can be performed on the display screen by using different dimming modes in a case of different brightness values, to improve a display effect of the display screen.
  • 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. According to the foregoing technical solution, when it can be determined that a corresponding dimming mode does not need to be adjusted in a process of changing the brightness value, only the second brightness value is sent to the display controller, to adjust the display brightness of the display screen based on the first dimming mode and the second brightness value, thereby reducing system resources.
  • In a possible implementation, the dimming configuration file includes a dimming mode and dimming mode indication information, the dimming mode indication information is used to indicate the display controller to operate in a corresponding dimming mode and transmit a preset quantity of control signals in each control period. According to the foregoing technical solution, a dimming mode corresponding to the brightness value can be determined based on a change of the brightness value, and a quantity of control signals transmitted in each control period in the corresponding dimming mode can be adjusted, so that successful fingerprint calibration can be ensured while avoiding a screen flickering phenomenon, thereby improving user experience.
  • 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 the PWM dimming mode, and the second dimming mode is the DC dimming mode. According to the foregoing technical solution, the DC dimming mode and the PWM dimming mode can be respectively used based on a change of the brightness value, to ensure a display effect of the display screen in different brightness cases, thereby improving user experience.
  • In a possible implementation, the display controller operates in the DC dimming mode and transmits a first preset quantity of control signals in each control period, where the first preset quantity is 2; and the display controller operates in the PWM dimming mode, and transmits a second preset quantity of control signals in each control period, where the second preset quantity is 32. According to the foregoing technical solution, a brightness value can match a corresponding dimming mode by adjusting a quantity of control signals of the display screen in the DC dimming mode and adjusting a quantity of control signals of the display screen in the PWM dimming mode, so that the display controller performs brightness adjustment on the display screen based on the dimming mode matching the brightness value, thereby avoiding a screen flickering phenomenon.
  • According to a second aspect, this application provides an electronic device, and the electronic device includes a display screen, a memory, and a processor. The memory is configured to store program instructions. The processor is configured to read the program instructions stored in the memory, to adjust display brightness of the display screen by using the foregoing display method.
  • According to a third aspect, this application provides a computer-readable storage medium. The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the foregoing display method is implemented.
  • In addition, for technical effects brought by the second aspect and the third aspect, refer to the related descriptions of the method in the designs of the method part. Details are not described herein again.
  • BRIEF DESCRIPTION OF DRAWINGS
    • FIG. 1 is a diagram of a hardware architecture of an electronic device according to an embodiment of this application;
    • FIG. 2 is a diagram of a software architecture of an electronic device according to an embodiment of this application;
    • FIG. 3A is a schematic diagram of performing brightness adjustment by using a direct current DC dimming mode according to an embodiment of this application;
    • FIG. 3B is a schematic diagram of performing brightness adjustment by using a pulse width modulation PWM dimming mode according to an embodiment of this application;
    • FIG. 4 is a flowchart of a display method according to an embodiment of this application;
    • FIG. 5 is a flowchart of a display method according to another embodiment of this application;
    • FIG. 6 is a schematic diagram of performing brightness adjustment by using a DC dimming mode and a PWM dimming mode according to an embodiment of this application;
    • FIG. 7 is a flowchart of a display method according to still another embodiment of this application; and
    • FIG. 8 is a schematic diagram of an overall solution of a display method according to an embodiment of this application.
    DESCRIPTION OF EMBODIMENTS
  • In the following descriptions, the terms "first" and "second" are used only for the purpose of description, and shall not be construed as indicating or implying relative importance or implicitly indicating a quantity of indicated technical features. Therefore, features defined with "first" and "second" may explicitly or implicitly include one or more of the features. In the descriptions of embodiments of this application, words such as "example" or "for example" are used to mean an example, an illustration, or a description. Any embodiment or design solution described as "example" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Exactly, the words such as "example" or "for example" are intended to present related concepts in a specific manner.
  • Increasing more electronic devices such as a mobile phone start to use an organic light-emitting diode (organic light-emitting diode, OLED) screen as a display screen. Compared with a conventional display screen, the OLED screen has advantages of being thinner and lighter, having high light emitting efficiency, and so on. It should be noted that, for ease of description, the following display screen refers to an OLED display screen.
  • In embodiments of this application, the electronic device may be in various forms, such as a mobile phone (mobile phone), a tablet computer (Pad), a computer having a wireless transceiver function, a virtual reality (virtual reality, VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), an in-vehicle terminal device, a wireless terminal in self-driving (self-driving), a wireless terminal in remote medical (remote medical), a wireless terminal in a smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in a smart city (smart city), a wireless terminal in a smart home (smart home), and a wearable terminal device.
  • FIG. 1 is a schematic diagram of a structure of an electronic device according to an embodiment of this application.
  • An electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a subscriber identification module (subscriber identification module, SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
  • It can be understood that the structure illustrated in this embodiment of this application constitutes no specific limitation on the electronic device 100. In some other embodiments of this application, the electronic device 100 may include more or fewer components than those shown in the figure, combine some components, split some components, or have different component arrangements. The components shown in the figure may be implemented by hardware, software, or a combination of software and hardware.
  • The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural-network processing unit (neural-network processing unit, NPU). Different processing units may be independent devices, or may be integrated into one or more processors.
  • The controller may generate an operation control signal based on instruction operation code and a timing signal, to complete control of instruction fetching and instruction execution.
  • A memory may be further disposed in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data just used or cyclically used by the processor 110. If the processor 110 needs to use the instructions or the data again, the processor 110 may directly invoke the instructions or the data from the memory. This avoids repeated access and reduces a waiting time of the processor 110, thereby improving system efficiency.
  • In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (inter-integrated circuit, I2C) interface, an inter-integrated circuit sound (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver/transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI) interface, a general-purpose input/output (general-purpose input/output, GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, a universal serial bus (universal serial bus, USB) interface, and/or the like.
  • The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (serial clock line, SCL). In some embodiments, the processor 110 may include a plurality of groups of I2C buses. The processor 110 may be separately coupled to the touch sensor 180K, a charger, a flash, the camera 193, and the like 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, to implement a touch function of the electronic device 100.
  • The I2S interface may be used for audio communication. In some embodiments, the processor 110 may include a plurality of groups of I2S buses. The processor 110 may be coupled to the audio module 170 through the I2S bus, to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transfer an audio signal to the wireless communication module 160 through the I2S interface, to implement a function of answering a call by using a Bluetooth headset.
  • The PCM interface may also be used for audio communication, to sample, quantize, and encode an analog signal. In some embodiments, the audio module 170 may be coupled to the wireless communication module 160 through a PCM bus interface. In some embodiments, the audio module 170 may also transfer an audio signal to the wireless communication module 160 through the PCM interface, to implement a function of answering a call by using a Bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
  • The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus, and converts to-be-transmitted data between serial communication and parallel communication. In some embodiments, the UART interface is usually configured to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with a Bluetooth module in the wireless communication module 160 through the UART interface, to implement a Bluetooth function. In some embodiments, the audio module 170 may transfer an audio signal to the wireless communication module 160 through the UART interface, to implement a function of playing music through a Bluetooth headset.
  • The MIPI interface may be configured to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and the like. In some embodiments, the processor 110 communicates with the camera 193 through the CSI interface, to implement a shooting function of the electronic device 100. The processor 110 communicates with the display screen 194 through the DSI interface, to implement a display function of the electronic device 100.
  • The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or may be configured as a data signal. In some embodiments, the GPIO interface may be configured to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may alternatively be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, or the like.
  • The USB interface 130 is an interface that complies with USB standard specifications, and may be specifically a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be configured to connect to the charger to charge the electronic device 100, or may be configured to transmit data between the electronic device 100 and a peripheral device, or may be configured to connect to a headset to play audio by using the headset. The interface may be further configured to connect to another electronic device 100, such as an AR device.
  • It may be understood that, an interface connection relationship between the modules shown in this embodiment of this application is merely an example for description, and constitutes no limitation on the structure of the electronic device 100. In some other embodiments of this application, the electronic device 100 may alternatively use an interface connection manner different from that in the foregoing embodiment, or a combination of a plurality of interface connection manners.
  • The charging management module 140 is configured to receive a charging input from the charger. The charger may be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 may receive a charging input from a wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive a wireless charging input by using a wireless charging coil of the electronic device 100. When charging the battery 142, the charging management module 140 may further supply power to the electronic device 100 by using the power management module 141.
  • The power management module 141 is configured to connect to the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives an 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, the wireless communication module 160, and the like. The power management module 141 may be further configured to monitor parameters such as a battery capacity, a quantity of battery cycles, and a battery health status (leakage or impedance). In some other embodiments, the power management module 141 may alternatively be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may alternatively be disposed in a same device.
  • A wireless communication function of the electronic device 100 may be implemented by using the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
  • The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 may be configured to cover one or more communication frequency bands. Different antennas may be further multiplexed to improve antenna utilization. For example, the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna may be used together with a tuning switch.
  • The mobile communication module 150 may provide a solution applied to the electronic device 100 for wireless communication including 2G/3G/4G/5G and the like. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), and the like. The mobile communication module 150 may receive an electromagnetic wave by using the antenna 1, perform processing such as filtering or amplification on the received electromagnetic wave, and transmit a processed electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may further amplify a signal obtained after modulation by the modem processor, and convert an amplified signal into an electromagnetic wave for radiation through the antenna 1. In some embodiments, at least some functional modules in the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some functional modules in the mobile communication module 150 may be disposed in a same device as at least some modules in the processor 110.
  • The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a to-be-sent low frequency baseband signal into a medium or high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low frequency baseband signal. Then, the demodulator transfers, to the baseband processor for processing, the low frequency baseband signal obtained through demodulation. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal by using an audio device (not limited to the speaker 170A, the receiver 170B, and the like), or displays an image or a video by using the display screen 194. In some embodiments, the modem processor may be an independent device. In some other embodiments, the modem processor may be independent of the processor 110 and disposed in a same device as the mobile communication module 150 or another functional module.
  • The wireless communication module 160 may provide a solution for wireless communication that is applied to the electronic device 100 and that includes a wireless local area network (wireless local area network, WLAN) (for example, a wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (Bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), a near field communication (near field communication, NFC) technology, an infrared (infrared, IR) technology, and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave by using the antenna 2, performs frequency modulation and filtering processing on an electromagnetic wave signal, and sends a processed signal to the processor 110. The wireless communication module 160 may further receive a to-be-sent signal from the processor 110, perform frequency modulation and amplification on the to-be-sent signal, and convert, by using the antenna 2, the to-be-sent signal into an electromagnetic wave for radiation.
  • In some embodiments, in the electronic device 100, the antenna 1 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and another device by using a wireless communication technology. The wireless communication technology may include a global system for mobile communications (global system for mobile communications, GSM), a general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, a GNSS, a WLAN, NFC, FM, an IR technology, and/or the like. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a BeiDou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi-zenith satellite system, QZSS), and/or a satellite based augmentation system (satellite based augmentation system, SBAS).
  • The electronic device 100 implements a display function by using the GPU, the display screen 194, the application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is configured to perform mathematical and geometric computing for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • The display screen 194 is configured to display an image, a video, and the like. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED), an active-matrix organic light emitting diode or active-matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), a flexible light-emitting diode (flex light-emitting diode, FLED), a Miniled, a MicroLed, a Micro-oled, a quantum dot light emitting diode (quantum dot light emitting diode, QLED), or the like. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
  • The electronic device 100 may implement a shooting function by using the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
  • The ISP is configured to process data fed back by the camera 193. For example, during photographing, a shutter is opened, light is transmitted to a photosensitive element of the camera through a lens, an optical signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, to convert the electrical signal into a visible image. The ISP may further perform algorithm optimization on noise, brightness, and complexion of the image. The ISP may further optimize parameters such as exposure and a color temperature of a shooting scenario. In some embodiments, the ISP may be disposed in the camera 193.
  • The camera 193 is configured to capture a still image or a video. An optical image of an object is generated through a lens and is projected onto a photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts an optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert the electrical signal into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format, for example, RGB or YUV. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
  • The digital signal processor is configured to process a digital signal, and may process another digital signal in addition to a digital image signal. For example, when the electronic device 100 selects a frequency, the digital signal processor is configured to perform Fourier transform and the like on frequency energy.
  • The video codec is configured to compress or decompress a digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a plurality of encoding formats, for example, moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, and MPEG4.
  • The NPU is a neural-network (neural-network, NN) computing processor, which quickly processes input information by referring to a biological neural network structure, for example, by referring to a transferring mode between human brain neurons, and may further perform self-learning continuously. Applications such as intelligent cognition of the electronic device 100, for example, image recognition, face recognition, voice recognition, and text understanding, may be implemented by using the NPU.
  • The internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (non-volatile memory, NVM).
  • The random access memory may include a static random-access memory (static random-access memory, SRAM), a dynamic random access memory (dynamic random access memory, DRAM), a synchronous dynamic random access memory (synchronous dynamic random access memory, SDRAM), a double data rate synchronous dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, where for example, a fifth generation DDR SDRAM is usually referred to as a DDR5 SDRAM), and the like.
  • The non-volatile memory may include a magnetic disk storage component and a flash memory (flash memory).
  • The flash memory may fall into types such as NOR FLASH, NAND FLASH, and 3D NAND FLASH, according to a principle of operation; the flash memory may fall into types such as single-level cell (single-level cell, SLC), multi-level cell (multi-level cell, MLC), triple-level cell (triple-level cell, TLC), and quad-level cell (quad-level cell, QLC), based on a potential quantity of a memory cell; and the flash memory may fall into types such as a universal flash storage (English: universal flash storage, UFS), and embedded multimedia card (embedded multimedia Card, eMMC) according to a storage specification.
  • The processor 110 may directly perform reading from or writing into the random access memory. The random access memory may be configured to store an executable program (for example, machine instructions) of an operating system or another running program, and may be further configured to store data of a user and data of an application, and the like.
  • The non-volatile memory may also store the executable program, the data of the user, and the data of the application, and the like, which may be loaded into the random access memory in advance for directly reading and writing by the processor 110.
  • The external memory interface 120 may be configured to connect to an external non-volatile memory, to extend a storage capability of the electronic device 100. The external non-volatile memory communicates with the processor 110 by using the external memory interface 120, to implement a data storage function. For example, files such as music and a video are stored in the external non-volatile memory.
  • The electronic device 100 may implement an audio function such as media data playing or recording by using the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headset jack 170D, the application processor, and the like.
  • The audio module 170 is configured to convert digital audio information into an analog audio signal for output, and is further configured to convert an analog audio input into a digital audio signal. The audio module 170 may be further configured to encode and decode an audio signal. In some embodiments, the audio module 170 may be disposed in the processor 110 or some functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also referred to as a "loudspeaker", is configured to convert an audio electrical signal into a sound signal. The electronic device 100 may be used to listen to music or answer a call in a hands-free mode by using the speaker 170A.
  • The receiver 170B, also referred to as an "earpiece", is configured to convert an audio electrical signal into a sound signal. When a call is answered or a voice message is listened to by using the electronic device 100, the receiver 170B may be put close to a human ear to listen to a voice.
  • The microphone 170C, also referred to as a "mic" or "mike", is configured to convert a sound signal into an electrical signal. When making a call or sending a voice message, a user may make a sound by approaching the mouth to the microphone 170C, to input a sound signal to the microphone 170C. At least one microphone 170C may be disposed in the electronic device 100. In some other embodiments, two microphones 170C may be disposed in the electronic device 100, to implement a noise reduction function in addition to collecting a sound signal. In some other embodiments, three, four, or more microphones 170C may alternatively be disposed in the electronic device 100, to collect a sound signal, reduce noise, further recognize a sound source, implement a directional sound recording function, and so on.
  • The headset jack 170D is configured to connect to a wired headset. The headset jack 170D may be the USB interface 130, or may be a 3.5 mm open mobile electronic device 100 platform (open mobile terminal platform, OMTP) standard interface or a cellular telecommunications industry association of the USA (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • The pressure sensor 180A is configured to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. There are many types of pressure sensors 180A, such as a resistive pressure sensor, an inductive pressure sensor, and a capacitive pressure sensor. The capacitive pressure sensor may include at least two parallel plates having a conductive material. When force is applied to the pressure sensor 180A, capacitance between electrodes changes. The electronic device 100 determines intensity of a pressure based on a change of the capacitance. When a touch operation is performed on the display screen 194, the electronic device 100 detects intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 may also calculate a touch location based on a detected signal of the pressure sensor 180A. In some embodiments, touch operations performed at a same touch location but having different touch operation intensity may correspond to different operation instructions. For example, when a touch operation whose touch operation intensity is less than a first pressure threshold is performed on an SMS message application icon, an instruction for viewing an SMS message is executed. When a touch operation whose touch operation intensity is greater than or equal to the first pressure threshold is performed on the SMS message application icon, an instruction for creating a new SMS message is executed.
  • The gyroscope sensor 180B may be configured to determine a motion posture of the electronic device 100. In some embodiments, angular velocities of the electronic device 100 around three axes (namely, x, y, and z axes) may be determined by using the gyroscope sensor 180B. The gyroscope sensor 180B may be configured to implement image stabilization during shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects an angle at which the electronic device 100 jitters, calculates, based on the angle, a distance for which a lens module needs to compensate, and allows the lens to cancel the jitter of the electronic device 100 through reverse motion, to implement image stabilization. The gyroscope sensor 180B may be further used in scenarios of navigation and a motion sensing game.
  • The barometric pressure sensor 180C is configured to measure barometric pressure. In some embodiments, the electronic device 100 calculates an altitude based on a barometric pressure value measured by the barometric pressure sensor 180C, to assist in positioning and navigation.
  • The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may detect opening/closing of a flip leather case by using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect opening/closing of a flip cover based on the magnetic sensor 180D, and further set features such as automatic unlocking of the flip cover based on a detected opening/closing state of the leather case or a detected opening/closing state of the flip cover.
  • The acceleration sensor 180E may detect magnitudes of acceleration in various directions (usually on three axes) of the electronic device 100, and may detect a magnitude and a direction of gravity when the electronic device 100 is still. The acceleration sensor 180E may be further configured to recognize a posture of the electronic device 100, and is applied to switching between a landscape mode and a portrait mode, a pedometer, or another application.
  • The distance sensor 180F is configured to measure a distance. The electronic device 100 may measure a distance in an infrared manner or a laser manner. In some embodiments, in a shooting scenario, the electronic device 100 may measure a distance by using the distance sensor 180F, to implement fast focusing.
  • The optical proximity sensor 180G may include, for example, a light-emitting diode (LED) and an optical detector, for example, a photodiode. The light-emitting diode may be an infrared light-emitting diode. The electronic device 100 emits infrared light to the outside by using the light-emitting diode. The electronic device 100 uses the photodiode to detect reflected infrared light from a nearby object. When sufficient reflected light is detected, it may be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100. The electronic device 100 may detect, by using the optical proximity sensor 180G, that the user holds the electronic device 100 close to an ear for a call, to implement automatic screen-off to save power. The optical proximity sensor 180G may alternatively be used in a leather case mode or a pocket mode to automatically unlock or lock a screen.
  • The ambient light sensor 180L is configured to sense ambient light brightness. The electronic device 100 may adaptively adjust brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L may be further configured to automatically adjust white balance during photographing. The ambient light sensor 180L may further cooperate with the optical proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent an accidental touch.
  • The fingerprint sensor 180H is configured to collect a fingerprint. The electronic device 100 may implement fingerprint unlocking, application lock accessing, fingerprint-based photographing, fingerprint-based incoming call answering, and the like by using a feature of the collected fingerprint.
  • The temperature sensor 180J is configured to detect a temperature. In some embodiments, the electronic device 100 executes a temperature processing policy by using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 degrades performance of a processor located near the temperature sensor 180J, to reduce power consumption and implement thermal protection. In some other embodiments, when the temperature is less than another threshold, the electronic device 100 heats the battery 142, to prevent the electronic device 100 from being abnormally powered off due to a low temperature. In some other embodiments, when the temperature is less than still another threshold, the electronic device 100 boosts an output voltage of the battery 142, to avoid abnormal power-off due to a low temperature.
  • The touch sensor 180K is also referred to as a "touch control device". The touch sensor 180K may be disposed in the display screen 194. The touch sensor 180K and the display screen 194 form a touchscreen, also referred to as a "touch control screen". The touch sensor 180K is configured to detect a touch operation performed on or near the touch sensor. The touch sensor may transfer the detected touch operation to the application processor to determine a type of a touch event. A visual output related to the touch operation may be provided by using the display screen 194. In some other embodiments, the touch sensor 180K may alternatively be disposed on a surface of the electronic device 100, at a location different from that of the display screen 194.
  • The bone conduction sensor 180M may obtain a vibration signal. In some embodiments, the bone conduction sensor 180M may obtain a vibration signal of a vibration bone in a human vocal-cord part. The bone conduction sensor 180M may alternatively be in contact with a human pulse to receive a blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may alternatively be disposed in a headset, to form a bone conduction headset in combination with the headset. The audio module 170 may obtain a voice signal through parsing based on the vibration signal that is of the vibration bone of the vocal-cord part and that is obtained by the bone conduction sensor 180M, to implement a voice function. The application processor may parse heart rate information based on the blood pressure pulse signal obtained by the bone conduction sensor 180M, to implement a heart rate detection function.
  • The key 190 includes a power on/off key, a volume key, and the like. The key 190 may be a mechanical key, or may be a touch key. The electronic device 100 may receive a key input and generate a key signal input related to user settings and function control of the electronic device 100.
  • The motor 191 may generate a vibration prompt. The motor 191 may be configured to provide a vibration prompt for an incoming call, and may also be configured to provide vibration feedback for a touch. For example, touch operations performed on different applications (for example, photographing and audio playback) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (for example, a time reminder, information receiving, an alarm clock, and a game) may also correspond to different vibration feedback effects. A touch vibration feedback effect may be further customized.
  • The indicator 192 may be an indicator light, may be configured to indicate a charging status or a power change, and may be further configured to indicate a message, a missed incoming call, a notification, and the like.
  • The SIM card interface 195 is configured to connect to a SIM card. The SIM card may be inserted into the SIM card interface 195 or removed from the SIM card interface 195 to implement contact with and separation from the electronic device 100. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, and the like. A plurality of cards may be simultaneously inserted into a same SIM card interface 195. The plurality of cards may be of a same type or different types. The SIM card interface 195 may be further compatible with SIM cards of different types. The SIM card interface 195 may also be compatible with an external memory card. The electronic device 100 interacts with a network by using the SIM card, to implement functions such as a call and data communication. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card may be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • FIG. 2 is a block diagram of a software structure of an electronic device 100 according to an embodiment of this application.
  • In a layered architecture, software is divided into several layers, and each layer has a clear role and task. The layers communicate with each other through software interfaces. An Android system is used as an example. In some embodiments, the Android system is divided into four layers: an application layer, an application framework layer, a system library, and a kernel layer from top to bottom.
  • The application layer may include a series of application packages. In this embodiment of this application, the application package may include an application related to fingerprint recognition, such as fingerprint recognition. For example, fingerprint recognition is used to implement fingerprint-based unlocking, application lock accessing, fingerprint-based photographing, or fingerprint-based incoming call answering. Optionally, as shown in FIG. 2, the application packages may include applications such as Camera, Gallery, Calendar, Phone, Maps, Navigation, WLAN, Bluetooth, Music, Videos, and Messages.
  • The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for an application at the application layer. The application framework layer includes some predefined functions. As shown in FIG. 2, the application framework layer may further include: a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
  • The system library may include a plurality of functional modules, for example, a surface manager (surface manager), a media library (Media Library), a three-dimensional graphics processing library (for example, OpenGL ES), and a two-dimensional graphics engine (for example, SGL), and an image processing library.
  • The kernel layer is a layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • In this embodiment of this application, a hardware layer may include a hardware module such as a display screen, the display screen includes a display controller, and the display controller is configured to control and manage an output of the display screen.
  • It may be understood that the layers in the software structure shown in FIG. 2 and the components included in the layers do not constitute a specific limitation on the electronic device. In some other embodiments of this application, the electronic device may include more or fewer layers than those shown in the figure, and each layer may include more or fewer components. This is not limited in this application.
  • It should be noted that although the Android system is used as an example for description in this embodiment of this application, a basic principle is also applicable to an electronic device based on an operating system such as Harmony OS (Harmony OS), iOS or Windows.
  • After analysis and research, it is found that in a change process of display brightness of the display screen of the electronic device, the display controller may adjust the brightness of the display screen of the electronic device by using a direct current (Direct Current, DC) dimming mode and a pulse width modulation (Pulse Width Modulation, PWM) dimming mode. For example, as shown in FIG. 3A, the display controller adjusts the display brightness of the display screen from 0 nit (nit) to 150 nits by using the DC dimming mode. For another example, as shown in FIG. 3B, the display controller may adjust the display brightness of the display screen from 0 nit to 150 nits by using the PWM dimming mode. However, no matter which dimming mode is used to perform brightness adjustment on the display screen, a liquid crystal molecule of the display screen needs to change from dark to bright or from bright to dark. Due to an aging problem, movement of the liquid crystal molecule slows down, and in this case, a response time of the display screen is relatively long, and a motion blur problem occurs. Therefore, when the display screen displays a next picture, a user sees a sticking image of a previous picture in the next picture, that is, a sticking image phenomenon occurs.
  • To reduce the sticking image phenomenon, a response time of the display screen may be greatly reduced by using an Overdrive (OD for short) technology, thereby weakening the sticking image. However, setting an excessive high OD value may cause an over shooting error (Over Shooting Error), which causes ghosting to occur when the display screen displays a picture; and setting an excessive low OD value may still cause a sticking image to occur on the display screen. To resolve a problem that the OD technology still cannot alleviate the sticking image occurring on the display screen, a technical solution of adjusting a duty ratio of an EM (Effective-Mean, effective-mean) signal in a pixel circuit may be used, that is, an EM duty (EM duty) of duration of a light-emitting material on the display screen actually emitting light is adjusted. For example, the EM duty is reduced from 99% to 95%. However, when the EM duty decreases to 95%, due to a decrease in the duty ratio, user fingerprint information obtained by the fingerprint sensor in the electronic device may be incomplete, which causes a problem of a fingerprint calibration failure. To resolve the fingerprint calibration failure and ensure that the OD technology alleviates the sticking image, a solution of adjusting a quantity (pulses) of EM signals in the pixel circuit of the display screen may be used, but in this case, a problem of screen flickering may further occur on the display screen.
  • To alleviate the foregoing phenomena of the sticking image, the fingerprint calibration failure, and screen flickering, embodiments of this application provide a display method, an electronic device, and a storage medium, to determine, based on a change of a brightness value of a display screen, a dimming mode corresponding to the brightness value, and adjust display brightness of the display screen based on the brightness value and the dimming mode corresponding to the brightness value. The display method provided in this embodiment of this application is described below in detail with reference to FIG. 4. The display method is applied to the electronic device, and the electronic device may include an application processor (Application processor, AP), an application framework layer, a display driver, and the 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.
  • S40. Receive a first brightness value delivered by the application processor.
  • In this embodiment, the application processor may determine, based on ambient light, whether display brightness of the display screen needs to be adjusted; and when determining that the display brightness of the display screen needs to be adjusted, send a first backlight adjustment request to the backlight thread. The backlight thread determines the first brightness value based on the first backlight adjustment request, and sends the first brightness value to the display driver.
  • In another embodiment, the application processor may alternatively determine, in a manual adjustment manner, whether the display brightness of the display screen needs to be adjusted. For example, in response to a sliding operation performed by a user on a brightness bar of a brightness adjustment interface, the application processor determines that the display brightness of the display screen needs to be adjusted, and sends the first backlight adjustment request to the backlight thread. The backlight thread determines the first brightness value based on the first backlight adjustment request, and sends the first brightness value to the display driver.
  • S41. Determine that a dimming mode corresponding to the first brightness value is a first dimming mode, and generate a first dimming configuration file.
  • To ensure that a screen flickering phenomenon does not occur in a process of adjusting the display brightness of the display screen by the display controller, a dimming mode matching a brightness value needs to be used to adjust brightness of the display screen. After receiving the first brightness value, the display driver may determine a corresponding dimming mode based on magnitudes of the first brightness value and a preset brightness value, and generate the first dimming configuration file. For example, when the first brightness value is less than or equal to the preset brightness value, to ensure a display effect of the display screen with low display brightness, it is determined that a corresponding dimming mode is the first dimming mode, the first dimming mode is a PWM dimming mode, and the display driver generates the first dimming configuration file based on the first brightness value and the PWM dimming mode. When the first brightness value is greater than the preset brightness value, to ensure a display effect of the display screen with high display brightness, it is determined that a corresponding dimming mode is a second dimming mode, the second dimming mode is a DC dimming mode, and the display driver generates the first dimming configuration file based on the first brightness value and the DC dimming mode.
  • In this embodiment of this application, the preset brightness value is 90 nits. In another embodiment, the preset brightness value is not limited to 90 nits. This is not limited in this application.
  • It should be noted that the first dimming mode may be the DC dimming mode, or may be the PWM dimming mode. The second dimming mode may be the DC dimming mode, or may be the PWM dimming mode.
  • S42. Send the first dimming configuration file to the display controller, so that the display controller adjusts the display brightness of the display screen to the first brightness value based on the first dimming mode.
  • In this embodiment, after determining, based on the first brightness value, that the corresponding dimming mode is the first dimming mode, the display driver generates the first dimming configuration file, and sends the first dimming configuration file to the display controller, to indicate the display controller to adjust the display brightness of the display screen to the first brightness value based on the first dimming mode. Therefore, in a process in which the display driver adjusts the display brightness of the display screen to the first brightness value by using the first dimming mode matching the first brightness value, the screen flickering phenomenon does not occur.
  • S43. Receive a second brightness value delivered by the application processor.
  • In this embodiment, the application processor may determine, based on ambient light or in a manual adjustment manner, whether the display brightness of the display screen needs to be further adjusted; and when the brightness of the display screen needs to be further adjusted, send a second backlight adjustment request to the backlight thread. The backlight thread determines the second brightness value based on the second backlight adjustment request, and sends the second brightness value to the display driver.
  • For example, in an application scenario, when the user holding the electronic device enters indoors from outside, the application processor may determine, based on indoor ambient light, that the display brightness of the display screen needs to be adjusted, and the application processor sends the second backlight adjustment request to the backlight thread. The backlight thread determines the second brightness value based on the second backlight adjustment request, and sends the second brightness value to the display driver.
  • S44. Determine a dimming mode corresponding to the second brightness value.
  • In this embodiment, to ensure that the screen flickering phenomenon still does not occur in a process in which the display controller adjusts the brightness of the display screen from the first brightness value to the second brightness value, the display driver needs to determine whether the dimming mode corresponding to the second brightness value is the first dimming mode or the second dimming mode, to send a dimming mode matching the second brightness value to the display controller.
  • In this embodiment, the dimming mode corresponding to the second brightness value is determined based on magnitudes of the second brightness value and a preset brightness value.
  • When the second brightness value is less than or equal to the preset brightness value, it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode. Alternatively, 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.
  • For example, when the second brightness value is less than or equal to the preset brightness value, to ensure a display effect of the display screen with low display brightness, it is determined that the corresponding dimming mode is 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, to ensure a display effect of the display screen with high display brightness, it is determined that the corresponding dimming mode is the second dimming mode, and the second dimming mode is the DC dimming mode.
  • In this embodiment, when it is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, and the display brightness of the display screen is adjusted from the first brightness value to the second brightness value, brightness adjustment needs to be performed on the display screen after the dimming mode of the display screen is updated from the first dimming mode to the second dimming mode, and steps S45-S46 are performed in a procedure. When it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, and 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, brightness adjustment may continue to be performed on the display screen by using the first dimming mode, and step S47 is performed in a procedure.
  • When it is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, step S45 is performed: Generate a second dimming configuration file, where the second dimming configuration file includes the second dimming mode corresponding to the second brightness value.
  • In this embodiment, after it is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, the 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.
  • S46. Send the second dimming configuration file to the display controller, so that the display controller adjusts the display brightness of the display screen to the second brightness value based on the second dimming mode.
  • In an embodiment, when to-be-configured display brightness is greater than the preset brightness value, if brightness adjustment is performed on the display screen by using the DC dimming mode, a display effect of the display screen is very good. When to-be-configured display brightness is less than or equal to the preset brightness value, if brightness adjustment is performed by using the DC dimming mode, an obvious color cast and a distortion phenomenon may occur on the display screen. When to-be-configured display brightness is greater than the preset brightness value, if brightness adjustment is performed on the display screen by using the PWM dimming mode, a problem of non-uniform brightness and a poor visual effect may occur on the display screen. When to-be-configured display brightness is less than or equal to the preset brightness value, if brightness adjustment is performed on the display screen by using the PWM dimming mode, the display screen has good uniformity and no distortion phenomena occurs. To ensure a display effect of the display screen when the display brightness is less than or equal to the preset brightness value, and ensure a display effect of the display screen when the display brightness is greater than the preset brightness value, brightness adjustment may be performed on the display screen by using different dimming modes for different display brightness.
  • For example, as shown in FIG. 5, to ensure a display effect of the display screen with relatively low display brightness, the display controller may perform brightness adjustment on the display screen by using the first dimming mode when the display brightness is less than or equal to the preset brightness value, and perform brightness adjustment by using the second dimming mode when the display brightness of the display screen is greater than the preset brightness value. The first dimming mode is the PWM dimming mode, and the second dimming mode may be the DC dimming mode. It should be noted that when the display brightness is less than or equal to the preset brightness value, brightness adjustment is performed on the display screen by using the PWM dimming mode, thereby improving uniformity of the display screen and avoiding a distortion phenomenon. When the display brightness is greater than the preset brightness value, brightness adjustment is performed on the display screen by using the DC dimming mode, thereby improving a display effect of the display screen, and avoiding a color cast and a distortion phenomenon.
  • In this embodiment, the display driver sends the second dimming configuration file to the display controller, to indicate the display controller to adjust the display brightness of the display screen to the second brightness value based on the second dimming mode. Therefore, the screen flickering phenomenon does not occur in a process in which the display driver adjusts the display brightness of the display screen to the second brightness value by using the second dimming mode matching the second brightness value.
  • In this embodiment, the dimming configuration file includes a dimming mode and dimming mode indication information. The dimming mode includes the first dimming mode and the second dimming mode. The dimming mode indication information is used to indicate the display controller to operate in a corresponding dimming mode and transmit a preset quantity of control signals in each control period.
  • In this embodiment of this application, the first dimming mode is the DC dimming mode, and the second dimming mode is the PWM dimming mode. Alternatively, the first dimming mode is the PWM dimming mode, and the second dimming mode is the DC dimming mode. In addition, the display controller operates in the DC dimming mode and transmits a first preset quantity of control signals in each control period, where the first preset quantity is 2; and the display controller operates in the PWM dimming mode, and transmits a second preset quantity of control signals in each control period, where the second preset quantity is 32.
  • When it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, step S47 is performed: 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.
  • 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 determines, in a process of indicating the display controller to adjust the brightness of the display screen from the first brightness value to the second brightness value, that the dimming mode does not need to be updated. The display driver sends the second brightness value to the display controller, so that the display controller continues to adjust the brightness of the display screen to the second brightness value by using the first dimming mode.
  • For example, after completely displaying a previous display picture, the display screen displays a next display picture based on ambient light information or a user input operation. Because the first brightness value of the display screen for displaying the previous display picture is different from the second brightness value for displaying the next display picture, in a process in which the display controller adjusts the display brightness of the display screen from the first brightness value to the second brightness value, to avoid the screen flickering phenomenon caused by the second brightness value possibly not matching the dimming mode due to a failure to update the dimming mode corresponding to the second brightness value of the display screen in a timely manner, according to the display method provided in this application, the display driver can determine the corresponding second dimming mode based on the second brightness value, generate the second dimming configuration file, and send the second dimming configuration file to the display controller, to indicate the display controller to adjust display brightness of the display screen to the second brightness value based on the second dimming mode. Therefore, in a process of adjusting the brightness of the display screen, the display controller can match a to-be-adjusted brightness value with a corresponding dimming mode, to avoid the screen flickering phenomenon.
  • In an embodiment, when the received first brightness value delivered by the application processor is 80 nits, the display driver determines that the first brightness value 80 nits is less than the preset brightness value, determines the corresponding first dimming mode as the PWM dimming mode, generates the first dimming configuration file based on the first brightness value 80 nits 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 nits based on the PWM dimming mode. When the received second brightness value delivered by the application processor is 91 nits, the display driver determines that the second brightness value is greater than the preset brightness value, determines the second dimming mode corresponding to the second brightness value as the DC dimming mode, generates the second dimming configuration file based on the second brightness value 91 nits and the DC dimming mode, and sends the second dimming configuration file to the display controller, so that the display controller adjusts the display brightness of the display screen to 91 nits based on the DC dimming mode. When operating in the DC dimming mode, the display controller controls the first preset quantity of control signals to be transmitted in each control period, where the first preset quantity is 2. According to the display method provided in this application, the second brightness value is enabled to match the second dimming mode, thereby preventing a screen flickering problem from occurring on the display screen. In addition, when operating in the DC dimming mode, the display controller transmits two control signals (2 pulses) in each control period, which can avoid the screen flickering phenomenon while resolving a fingerprint calibration failure and ensuring that an OD technology alleviates a sticking image phenomenon.
  • In an embodiment, when the received first brightness value delivered by the application processor is 95 nits, the display driver determines that the first brightness value is greater than the preset brightness value, determines the corresponding first dimming mode as the DC dimming mode, generates the first dimming configuration file based on the first brightness value 95 nits 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 nits based on the DC dimming mode. When the received second brightness value delivered by the application processor is 88 nits, the display driver determines that the second brightness value 88 nits is less than the preset brightness value, determines the second dimming mode corresponding to the second brightness value as the PWM dimming mode, generates the second dimming configuration file based on the second brightness value 88 nits and the PWM dimming mode, and sends the second dimming configuration file to the display controller, so that the display controller adjusts the display brightness of the display screen to 88 nits based on the PWM dimming mode. The display controller controls the preset quantity of control signals sent in each control period in the PWM dimming mode to be 32. According to the display method provided in this application, the second brightness value is enabled to match the second dimming mode, thereby preventing a screen flickering problem from occurring on the display screen. In addition, when operating in the PWM dimming mode, the display controller transmits the second preset quantity of control signals in each control period, and the second preset quantity is 32 (32 pulses), which can avoid the screen flickering phenomenon while resolving a fingerprint calibration failure and ensuring that the OD technology alleviates a sticking image phenomenon.
  • In an embodiment, when the received first brightness value delivered by the application processor is 80 nits, the display driver determines that the first brightness value 80 nits is less than the preset brightness value, and determines the corresponding first dimming mode as the PWM dimming mode, and the display driver generates the first dimming configuration file based on the first brightness value 80 nits 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 nits based on the PWM dimming mode. When the received second brightness value delivered by the application processor is 88 nits, the display driver determines that the second brightness value is less than the preset brightness value, and determines the second dimming mode corresponding to the second brightness value as also the PWM dimming mode. In other words, 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, in a process in which the display controller adjusts the brightness of the display screen from the first brightness value to the second brightness value, that the dimming mode does not need to be updated. The display driver sends the second brightness value 88 nits to the display controller, so that the display controller continues to adjust the display brightness of the display screen to 88 nits based on the PWM dimming mode. When operating in the PWM dimming mode, the display controller controls the first preset quantity of control signals to be transmitted in each control period, where the first preset quantity is 2. According to the display method provided in this application, the second brightness value is enabled to match the second dimming mode, thereby preventing a screen flickering problem from occurring on the display screen.
  • In an embodiment, when the received first brightness value delivered by the application processor is 95 nits, the display driver determines that the first brightness value is greater than the preset brightness value, and determines the corresponding first dimming mode as the DC dimming mode, and the display driver generates the first dimming configuration file based on the first brightness value 95 nits 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 nits based on the DC dimming mode. When the received second brightness value delivered by the application processor is 110 nits, the display driver determines that the second brightness value 110 nits is also greater than the preset brightness value, and determines the second dimming mode corresponding to the second brightness value as still the DC dimming mode. In other words, 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, in a process in which the display controller adjusts the brightness of the display screen from the first brightness value to the second brightness value, that the dimming mode does not need to be updated. 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 nits based on the DC dimming mode. When operating in the DC dimming mode, the display controller controls the second preset quantity of control signals to be sent in each control period, where the second preset quantity is 32. According to the display method provided in this application, the second brightness value is enabled to match the second dimming mode, thereby preventing a screen flickering problem from occurring on the display screen.
  • According to the foregoing display method, a dimming mode corresponding to a brightness value can be determined based on a change of the brightness value, and the display brightness of the display screen is adjusted based on the brightness value and the dimming mode corresponding to the brightness value, to avoid the screen flickering phenomenon.
  • In an embodiment, referring to FIG. 6, according to a display method provided in another embodiment of this application, before step S40 of the display method provided in FIG. 4, the display method further includes the following steps.
  • Step S60: Whether dts parsing is enabled, and if it is determined that dts parsing is enabled, go to step S61; or if it is determined that dts parsing is disabled, a procedure returns to step S60.
  • A device tree source (Device Tree Source, DTS) file is a text file, is used to record a user configuration, is a user-readable file, and includes a series of named nodes (node) and properties (property). In the DTS file, information that can be described includes a quantity and types of CPUs, a timer clock, a peripheral device connection, an interrupt configuration, a serial port, and the like. After a terminal is powered on, a kernel parses a hardware configuration of each node in the DTS file during startup, and initializes the terminal based on the hardware configuration of each node.
  • Performing of the display method provided in this embodiment of this application is strongly related to hardware devices inside the electronic device. To determine which components in the hardware device are related to performing of the display method, an enabling switch may be provided. For example, components such as a display screen and an optical sensor of the terminal are related to performing of the display method, and in this case, an enabling switch is provided for the components such as the display screen and the optical sensor. It is determined, through dts parsing, whether to enable the enabling switch, to initialize the components such as the display screen and the optical sensor. In an embodiment, an enabling switch is provided in a configuration file of the display screen, and the configuration file includes file information indicating whether to enable the components such as the display screen and the optical sensor of the terminal.
  • Step S61: Set a flag bit of a TE signal.
  • In an embodiment, in an Android (Android) system, conventional processes of image drawing and display are to be collaboratively completed by a software side, a display driver integrated circuit (display driver integrated circuit, DDIC), and the display screen. The software side first performs page refresh by an application (application, App), and then performs layer composition on a drawn layer by using Surface Flinger, to obtain image data. Then, the image data is sent and displayed (written) into the DDIC through a mobile industry processor interface (mobile industry processor interface, MIPI) after passing an HWC and a display driver. The DDIC stores the image data sent by the software side for display in a buffer (buffer), and controls the display screen to complete switching of a refresh rate by scanning (reading) the image data in the buffer. The display screen refreshes and displays (display) an image. In a high refresh rate display scenario, the software side generates image data at a high frequency. Accordingly, a display screen side performs high frequency image refresh based on the image data, thus improving picture smoothness.
  • When a user watches image or video information by using the display screen of the terminal to display a picture, if a refresh rate and a frame rate of the display screen are not synchronous, and the refresh rate is relatively low (for example, 30 Hz), picture freezing occurs, and even a tearing effect (tearing effect, TE) due to misalignment of a screen picture occurs. To avoid an occurrence of the tearing effect of the screen picture, after completing switching of the refresh rate, the DDIC may output a TE signal based on a Vsync period. The TE signal is used to indicate the software side to send display data. The display data includes at least a backlight configuration.
  • In this embodiment, after an application processor sends a first backlight adjustment request to a backlight thread, and the backlight thread determines a first brightness value based on the first backlight adjustment request, the first brightness value is sent to the display driver. The display driver determines, based on the first brightness value, that a corresponding dimming mode is a first dimming mode, and generates a first dimming configuration file. The display driver sends a frame of display data that includes the first dimming configuration file to the display screen. After receiving the display data, the display screen starts to refresh display. The display driver sends a TE signal to notify the application processor that a current frame of display data has been refreshed, and another frame of display data that includes the second dimming configuration file can continue to be sent to the display screen. To prevent two or more dimming configuration files from being sent to the display screen in a same frame, which results in a poor display effect of the display screen, the flag bit of the TE signal may be set.
  • Step S62: Determine whether to enable dbv, and if it is determined that the dbv is enabled, go to step S60, and perform the display method shown in FIG. 4. If it is determined that the dbv is disabled, the procedure ends.
  • In this embodiment, a dbv enabling switch is set when it is determined whether a display effect of the display screen needs to be adjusted by using the display method provided in FIG. 4 of this application. When it is determined that the display effect of the display screen needs to be adjusted by using the display method provided in FIG. 4 of this application, the dbv enabling switch is enabled to go to step S60, and perform the display method shown in FIG. 4. When it is determined that the display effect of the display screen does not need to be adjusted by using the display method provided in FIG. 4 of this application, the dbv enabling switch does not need to be enabled, and the procedure ends.
  • In this embodiment of this application, the components such as the optical sensor and the display screen of the terminal that are related to performing of the display method are enabled through dts parsing and the flag bit of the TE signal is set. This can prevent two or more backlight configurations from being sent to the display screen in a same frame, causing the display screen to have a poor display effect after receiving a plurality of dimming configuration files.
  • FIG. 7 is a schematic flowchart of a display method according to still another embodiment of this application. The display method includes the following steps.
  • S101. An AP sends a first backlight adjustment request to a backlight thread.
  • In this embodiment, the application processor may determine, based on ambient light, whether display brightness of a display screen needs to be adjusted; and when determining that the display brightness of the display screen needs to be adjusted, send the first backlight adjustment request to the backlight thread. For example, an optical sensor determines, based on an optical signal collected based on a surrounding environment of a terminal, that the display brightness of the display screen needs to be adjusted, sends the optical signal to the application processor. The application processor generates the first backlight adjustment request in response to the optical signal, and sends the first backlight adjustment request to the backlight thread.
  • In an embodiment, the application processor may alternatively determine, in a manual adjustment manner, whether the display brightness of the display screen needs to be adjusted. In response to a brightness adjustment operation performed by a user on the display screen, the application processor determines that the display brightness of the display screen needs to be adjusted, and sends the first backlight adjustment request to the backlight thread. For example, in response to a sliding operation performed by the user on a brightness bar of a brightness adjustment interface, the application processor determines that the display brightness of the display screen needs to be adjusted, and sends the first backlight adjustment request to the backlight thread. The first backlight adjustment request includes at least a parameter such as a brightness value of a next display picture on the display screen.
  • S102. The backlight thread determines a first brightness value based on the first backlight adjustment request.
  • In this embodiment, the backlight thread is usually configured to control backlight brightness of the display screen. When receiving the first backlight adjustment request, the backlight thread may determine the first brightness value based on a parameter in the first backlight adjustment request.
  • S103. The backlight thread sends the first brightness value to a display driver.
  • S104. The display driver determines that a dimming mode corresponding to the first brightness value is a first dimming mode.
  • In this embodiment, the display driver is configured to control a display status of the display screen, for example, control the display brightness of the display screen. When a quantity of control signals in a dimming mode in each control period is adjusted to resolve a fingerprint calibration failure and ensure that an OD technology alleviates a sticking image phenomenon, the display driver needs to determine the corresponding dimming mode based on the first brightness value, so that a display controller can perform brightness adjustment on the display screen based on a dimming mode matching the first brightness value. If the display controller performs brightness adjustment on the display screen based on a dimming mode mismatching the first brightness value, a screen flickering phenomenon occurs on the display screen.
  • In this embodiment, the display driver determines, based on magnitudes of the first brightness value and a preset brightness value, the dimming mode corresponding to the first brightness value.
  • S105. The display driver generates a first dimming configuration file.
  • In this embodiment, the display driver generates the first dimming configuration file based on the first brightness value and the corresponding dimming mode being the first dimming mode. For example, when the first brightness value is less than or equal to the preset brightness value, to ensure a display effect of the display screen with low display brightness, the corresponding first dimming mode is a PWM dimming mode, and the display driver generates the first dimming configuration file based on the first brightness value and the PWM dimming mode. When the first brightness value is greater than the preset brightness value, to ensure a display effect of the display screen with high display brightness, the corresponding first dimming mode is a DC dimming mode, and the display driver generates the first dimming configuration file based on the first brightness value and the DC dimming mode.
  • In an embodiment, the first dimming configuration file includes the first brightness value, the first dimming mode, and first dimming mode indication information. The first dimming mode indication information is used to indicate the display controller to operate in the first dimming mode, and transmit a first preset quantity of control signals in each control period, where the first preset quantity is 2.
  • In an embodiment, the first dimming configuration file may be stored in a configuration file of the terminal in a list form.
  • S106. The display driver sends the first dimming configuration file to the display controller.
  • In this embodiment, after determining the corresponding first dimming mode based on the first brightness value, and generating the first dimming configuration file, the display driver sends the first dimming configuration file to the display controller.
  • S107. The display controller adjusts a brightness value of the display screen to the first brightness value based on the first dimming mode.
  • In this embodiment, after the display driver determines, based on the first brightness value, that the corresponding dimming mode is the first dimming mode, the first brightness value matches the first dimming mode, so that a screen flickering phenomenon does not occur in a process in which the display controller adjusts the brightness value of the display screen to the first brightness value based on the first dimming mode.
  • S108. The AP sends a second backlight adjustment request to the backlight thread.
  • In this embodiment, when the application processor needs to adjust the current first brightness value of the display screen in response to a change of ambient light or in response to an operation of manually adjusting brightness, the application processor, the application processor sends the second backlight adjustment request to the backlight thread.
  • S109. The backlight thread determines a second brightness value.
  • In this embodiment, when receiving the second backlight adjustment request, the backlight thread may determine the second brightness value based on a parameter in the second backlight adjustment request.
  • S110. The backlight thread sends the second brightness value to the display driver.
  • S111. The display driver determines whether a dimming mode corresponding to the second brightness value is the first dimming mode or a second dimming mode.
  • In this embodiment, to ensure that the screen flickering phenomenon still does not occur in a process in which the display controller adjusts the brightness of the display screen from the first brightness value to the second brightness value, the display driver needs to determine whether the dimming mode corresponding to the second brightness value is the first dimming mode or the second dimming mode, to send a dimming mode matching the second brightness value to the display controller.
  • 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, a dimming mode of the display screen needs to be updated from the first dimming mode to the second dimming mode to perform brightness adjustment on the display screen, and steps S112-S114 are performed in a procedure. 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, brightness adjustment may continue to be performed on the display screen by using the first dimming mode, and steps S115-S116 are performed in the procedure.
  • It is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, and step S112 is performed: Generate a second dimming configuration file.
  • In this embodiment, after it is determined that the dimming mode corresponding to the second brightness value is the second dimming mode, the 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.
  • In an embodiment, the second dimming configuration file includes the second brightness value, the second dimming mode, and second dimming mode indication information. The second dimming mode indication information is used to indicate the display controller to operate in the second dimming mode, and transmit a second preset quantity of control signals in each control period, where the second preset quantity is 32.
  • S113. The display driver sends the second dimming configuration file to the display controller.
  • S114. The display controller adjusts the display brightness of the display screen to the second brightness value based on the second dimming mode.
  • In this embodiment, the display driver sends the second dimming configuration file to the display controller, to indicate the display controller to adjust the display brightness of the display screen to the second brightness value based on the second dimming mode. Therefore, the screen flickering phenomenon does not occur in a process in which the display driver adjusts the display brightness of the display screen to the second brightness value by using the second dimming mode matching the second brightness value.
  • When it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, step S115 is performed: The display driver sends the second brightness value to the display controller.
  • S116. The display controller adjusts the display brightness of the display screen to the second brightness value based on the first dimming mode.
  • In this embodiment, if it is determined that the dimming mode corresponding to the second brightness value is also the first dimming mode, the display driver determines, in a process of indicating the display controller to adjust the brightness of the display screen from the first brightness value to the second brightness value, that the dimming mode does not need to be updated. The display driver sends the second brightness value to the display controller, so that the display controller continues to adjust the brightness of the display screen to the second brightness value by using the first dimming mode.
  • According to the display method provided in this application, the display driver can determine, based on the first brightness value, that the corresponding dimming mode is the first dimming mode, generate the first dimming configuration file, and send the first dimming configuration file to the display controller, to indicate the display controller to adjust the display brightness of the display screen to the first brightness value based on the first dimming mode. When the display screen needs to be adjusted from the first brightness value to the second brightness value, the display driver can determine that the corresponding dimming mode is the second dimming mode based on the second brightness value, generate the second dimming configuration file, and send the second dimming configuration file to the display controller, to indicate the display controller to adjust the display brightness of the display screen to the second brightness value based on the second dimming mode. Therefore, in a process of adjusting the brightness of the display screen, the display controller can match a to-be-adjusted brightness value with a corresponding dimming mode, to avoid the screen flickering phenomenon.
  • Referring to FIG. 8, an overall solution of the display method provided in this application is briefly summarized and described.
  • To alleviate a problem of motion blur/a sticking image of the display screen in a display process, when a brightness value changes, the brightness value needs to be matched with a corresponding dimming mode, to obtain a bound backlight solution. A specific algorithm mainly includes: determining a dimming mode corresponding to the brightness value, and binding the brightness value to the corresponding dimming mode to generate a dimming configuration file, where the dimming configuration file includes the dimming mode and dimming mode indication information, and the dimming mode indication information is used to indicate the display controller to operate in a corresponding dimming mode and transmit a preset quantity of control signals in each control period. Specifically, the display driver receives the first brightness value delivered by the AP, and determines that the dimming mode corresponding to the first brightness value is the first dimming mode; and determines, based on a comparison between magnitudes of the first brightness value and the preset brightness value, that the dimming mode is the first dimming mode, and generates the first dimming configuration file based on the first brightness value and the first dimming mode. This implements matching between the brightness value and the corresponding dimming mode. For example, when the first brightness value is greater than the preset brightness value, it is determined that the corresponding dimming mode is the first dimming mode (a configuration 1 as shown in the figure), and the first dimming mode is the DC dimming mode. The display controller operates in the DC dimming mode and transmits the first preset quantity of control signals in each control period, where the first preset quantity is 2. When the first brightness value is less than or equal to the preset brightness value, it is determined that the corresponding dimming mode is the second dimming mode, and the second dimming mode is the PWM dimming mode (a configuration 2 as shown in the figure). The display controller operates in the PWM dimming mode, and transmits the second preset quantity of control signals in each control period, where the second preset quantity 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 the second configuration file is generated. The flag bit of the TE signal is set and the display screen is enabled, to control the display controller to adjust the brightness of the display screen to the second brightness value based on the second dimming mode. By using the foregoing solution, a width of a duty ratio of the control signal can be ensured, and a problem of a fingerprint calibration failure is resolved. In addition, by generating the dimming configuration file, it can be ensured that the brightness value matches the corresponding dimming mode, and both are enabled in a same frame. Therefore, the sticking image and the screen flickering problem are alleviated, and the display effect of the display screen is greatly improved.
  • The display method provided in the embodiments of this application may be steps performed by the display driver included in the electronic device, or may be performed by a display chip included in the electronic device. The display chip invokes, when running, a computer program stored in the memory to implement the steps performed by the foregoing electronic device.
  • The foregoing embodiments are merely used to describe the technical solutions of this application, but are not used to limit this application. Although this application is described in detail with reference to the foregoing embodiments, it should be understood by a person of ordinary skill in the art that the technical solutions described in the foregoing embodiments may still be modified, or some technical features thereof are equivalently replaced. These modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of this application.

Claims (11)

  1. A display method, applied to an electronic device, wherein the electronic device comprises an application processor AP, a display driver, and a display screen, the display screen comprises a display controller, and the method comprises:
    receiving, by the display driver, a first brightness value delivered by the AP;
    determining, by the display driver, that a dimming mode corresponding to the first brightness value is a first dimming mode;
    generating, by the display driver, a first dimming configuration file, wherein the first dimming configuration file comprises the first dimming mode corresponding to the first brightness value;
    sending, by the display driver, the first dimming configuration file to the display controller, so that the display controller adjusts a brightness value of the display screen to the first brightness value based on the first dimming mode;
    receiving, by the display driver, a second brightness value delivered by the AP;
    when a 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, by the display driver, a second dimming configuration file, wherein the second dimming configuration file comprises the second dimming mode corresponding to the second brightness value; and
    sending, by the display driver, 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, wherein the method further comprises: determining, by the display driver, the dimming mode corresponding to the first brightness value based on magnitudes of the first brightness value and a preset brightness value.
  3. The display method according to claim 2, wherein the determining, by the display driver, the dimming mode corresponding to the first brightness value based on magnitudes of the first brightness value and a preset brightness value comprises:
    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, determining that the dimming mode corresponding to the first brightness value is the second dimming mode.
  4. The display method according to claim 1, wherein the method further comprises: determining, by the display driver, the dimming mode corresponding to the second brightness value based on magnitudes of the second brightness value and a preset brightness value.
  5. The display method according to claim 4, wherein the determining, by the display driver, the dimming mode corresponding to the second brightness value based on magnitudes of the second brightness value and a preset brightness value comprises:
    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, determining that the dimming mode corresponding to the second brightness value is the second dimming mode.
  6. The display method according to claim 1, wherein the method further comprises:
    when it is determined that the dimming mode corresponding to the second brightness value is the first dimming mode, sending, by the display driver, 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, wherein the dimming configuration file comprises a dimming mode and dimming mode indication information, the dimming mode indication information is used to indicate the display controller to operate in a corresponding dimming mode and transmit a preset quantity of control signals in each control period.
  8. The display method according to any one of claims 1 to 7, wherein
    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, wherein
    the display controller operates in the DC dimming mode and transmits a first preset quantity of control signals in each control period, wherein the first preset quantity is 2; and
    the display controller operates in the PWM dimming mode, and transmits a second preset quantity of control signals in each control period, wherein the second preset quantity is 32.
  10. An electronic device, wherein the electronic device comprises a display screen, a memory, and a processor;
    the memory is configured to store program instructions; and
    the processor is configured 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 display brightness of the display screen.
  11. A computer-readable storage medium, wherein 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.
EP23935010.1A 2023-04-27 2023-11-13 DISPLAY METHOD, ELECTRONIC DEVICE AND STORAGE MEDIUM Pending EP4604108A4 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310481588.6A CN118865880A (en) 2023-04-27 2023-04-27 Display method, electronic device and storage medium
PCT/CN2023/131298 WO2024221842A1 (en) 2023-04-27 2023-11-13 Display method, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
EP4604108A1 true EP4604108A1 (en) 2025-08-20
EP4604108A4 EP4604108A4 (en) 2026-03-11

Family

ID=93170544

Family Applications (1)

Application Number Title Priority Date Filing Date
EP23935010.1A Pending EP4604108A4 (en) 2023-04-27 2023-11-13 DISPLAY METHOD, ELECTRONIC DEVICE AND STORAGE MEDIUM

Country Status (3)

Country Link
EP (1) EP4604108A4 (en)
CN (2) CN118865880A (en)
WO (1) WO2024221842A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI429331B (en) * 2010-07-23 2014-03-01 Au Optronics Corp Light emitting diode driving method and driving circuit
KR102081408B1 (en) * 2013-10-04 2020-02-26 삼성디스플레이 주식회사 dimming driving method for Organic Light Emitting Display Device
CN109215549B (en) * 2017-06-30 2021-01-22 昆山国显光电有限公司 Display screen dimming method and device, storage medium and electronic equipment
CN109859721A (en) * 2019-04-02 2019-06-07 Oppo广东移动通信有限公司 Display screen brightness adjusting method and device, mobile terminal and storage medium
CN111599296B (en) * 2020-06-02 2022-09-13 昆山国显光电有限公司 Dimming method and device of display screen
CN114694588A (en) * 2022-04-28 2022-07-01 武汉华星光电半导体显示技术有限公司 Brightness adjusting method and device, display device and storage medium

Also Published As

Publication number Publication date
CN120202500A (en) 2025-06-24
EP4604108A4 (en) 2026-03-11
CN118865880A (en) 2024-10-29
WO2024221842A1 (en) 2024-10-31

Similar Documents

Publication Publication Date Title
US11990075B2 (en) Drive control method and related device
EP3907981B1 (en) Recording frame rate control method and related apparatus
EP4105773A1 (en) Refresh rate switching method and electronic device
EP4421626A1 (en) Display method for foldable screen and related apparatus
US20240224023A1 (en) Method and system for avoiding missing call, electronic device, and storage medium
WO2021036785A1 (en) Message reminding method and electronic device
US12027112B2 (en) Always on display method and mobile device
WO2021190314A1 (en) Sliding response control method and apparatus of touch screen, and electronic device
WO2023030168A1 (en) Interface display method and electronic device
EP4390655A1 (en) Always-on display method and terminal device
EP4395290B1 (en) Bluetooth audio playback method, electronic device, and storage medium
EP4604108A1 (en) Display method, electronic device, and storage medium
CN116939559B (en) Bluetooth audio coding data distribution method, electronic equipment and storage medium
EP4134903B1 (en) Image data calling method and system for application, and electronic device and storage medium
CN116939560B (en) Bluetooth audio data encoding method, electronic device and storage medium
CN115529379B (en) Method, electronic device and storage medium for preventing bluetooth audio track from shaking
EP4507397A1 (en) Method and system for controlling power consumption of device, and electronic device
HK40068163B (en) Method and system for avoiding missing call, electronic device and storage medium
HK40068163A (en) Method and system for avoiding missing call, electronic device and storage medium
CN118447141A (en) Image display method and related device
CN116935869A (en) Audio data distribution method, electronic device and storage medium
CN117707449A (en) Display control method and related equipment
CN116939090A (en) Method for switching Bluetooth device to play audio data and related device
CN114385282A (en) Theme color conversion method, electronic device, and computer-readable storage medium

Legal Events

Date Code Title Description
STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE

PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE

17P Request for examination filed

Effective date: 20250512

AK Designated contracting states

Kind code of ref document: A1

Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR

A4 Supplementary search report drawn up and despatched

Effective date: 20260210

RIC1 Information provided on ipc code assigned before grant

Ipc: G09G 3/20 20060101AFI20260204BHEP

Ipc: G09G 3/22 20060101ALI20260204BHEP

Ipc: G09G 3/3225 20160101ALI20260204BHEP

Ipc: G09G 5/10 20060101ALI20260204BHEP