Screen anti-image sticking processing method, electronic device and storage medium

By using Bootloader to obtain and dynamically adjust the display information of the dump interface in the BOOT layer of the electronic device, the afterimage problem that occurs when the screen switches under abnormal system conditions of the electronic device is solved, ensuring the normal display of the screen and the accuracy of the test results.

CN119207305BActive Publication Date: 2025-04-04HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411587790.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-04-04
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

In abnormal situations of electronic device systems, afterimage problems are prone to occur when the screen switches the screen, especially after the DUMP is triggered, the system cannot work normally and cannot dynamically adjust the screen to prevent afterimage.

Method used

In the BOOT layer of an electronic device, use Bootloader to obtain memory dump information, including the display information and duration of the dump interface, determine whether it exceeds the preset duration threshold, and dynamically adjust the dump interface based on the display information to avoid the screen from unchanging for a long time.

Benefits of technology

Even if the device is in a dump state, it can prevent the screen from being displayed for a long time, thereby avoiding the afterimage problem and ensuring the accuracy of the screen test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119207305B_ABST
    Figure CN119207305B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a screen afterimage prevention processing method, an electronic device and a storage medium, which relates to the field of terminal technology and is applied to a boot loader Bootloader in the boot BOOT layer of an electronic device. The method comprises: after triggering a memory dump, obtaining dump information, the dump information includes display information of a dump interface and the duration of the electronic device displaying the same dump interface, the dump interface being the interface displayed when the electronic device is in a dump state; judging whether the duration is greater than or equal to a preset duration threshold; in response to the duration being greater than or equal to the preset duration threshold, dynamically adjusting the dump interface based on the display information. The afterimage problem on the screen can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a screen anti-image sticking processing method, an electronic device and a storage medium. Background Art

[0002] The image sticking phenomenon of the Organic Light Emitting Display (OLED) screen is mainly caused by the OLED screen staying on a static image for a long time, especially a high-contrast static image, which causes the image outline, residual image or ghost image of the original image to appear briefly on the screen when switching to other images. This phenomenon will affect the test and use of the screen.

[0003] At present, in order to prevent the screen from having residual images, when it is determined that the static time of the image on the screen reaches a certain threshold, the image displayed on the screen can be dynamically adjusted in time to prevent the image on the screen from remaining unchanged for a long time and causing residual images. However, when the system of the electronic device is in an abnormal state, for example, the normal system of the electronic device cannot be used due to reasons such as downtime, DUMP (dump) will be triggered. DUMP refers to the process of dumping the memory information of a process or system at a certain point in time into a file for fault location. After DUMP is triggered, the screen of the electronic device will display the image corresponding to DUMP, and will switch back to the normal display image when the system of the electronic device returns to normal. However, if the screen displays the image corresponding to DUMP for a long time, when the normal image is displayed again, the residual image of the image corresponding to DUMP will appear on the screen. Since the normal system of the electronic device cannot be used after DUMP is triggered, it is also impossible to obtain the static time of the image through the normal system of the electronic device and dynamically adjust the image. In this case, the residual image problem is difficult to avoid, which will affect the test results such as the grayscale test related to the screen. Summary of the invention

[0004] The present application provides a screen afterimage prevention processing method, an electronic device and a storage medium to solve the problem of afterimage when the screen switches images under abnormal conditions of the electronic device system.

[0005] In a first aspect, an embodiment of the present application provides a screen anti-afterimage processing method, which is applied to a boot loader Bootloader in a boot BOOT layer of an electronic device, the method comprising: after triggering a memory dump, obtaining dump information, the dump information comprising display information of a dump interface and a duration for which the electronic device displays the same dump interface, the dump interface being an interface displayed when the electronic device is in a dump state; determining whether the duration is greater than or equal to a preset duration threshold; in response to the duration being greater than or equal to the preset duration threshold, dynamically adjusting the dump interface based on the display information.

[0006] According to the embodiment of the present application, after the electronic device triggers a memory dump due to a crash or other problems, the application layer, application framework layer, local layer, hardware abstraction layer, and kernel layer of the electronic device are all unable to work. Therefore, the embodiment of the present application can still use the Bootloader in the normally working BOOT layer to obtain the dump information, and dynamically adjust the dump interface based on the display information when the duration of the electronic device displaying the same dump interface is greater than or equal to the preset duration threshold. In this way, even if the electronic device is in a dump state, the screen displayed by the electronic device can be prevented from being unchanged for a long time, thereby avoiding the problem of residual images.

[0007] In a possible implementation, after determining whether the duration is greater than or equal to a preset duration threshold, the method further includes: in response to the duration being less than the preset duration threshold, returning to the step of obtaining dump information; or, in response to the duration being less than the preset duration threshold, returning to the step of obtaining dump information after a specified duration. In this way, it can be determined in a timely manner whether the dump interface needs to be dynamically adjusted to avoid the problem of residual images.

[0008] In a possible implementation, the method further includes: when triggering the memory dump, starting a timer, storing the timer value in the dump information in real time, and using the timer value as the duration. In this way, the duration of the dump interface continuously displaying the same screen can be accurately obtained, so that the dump interface can be dynamically adjusted in time to avoid the problem of residual image.

[0009] In a possible implementation, after dynamically adjusting the dump interface based on the display information, the method further includes: restarting the timer and storing the timer value in the dump information in real time; and returning to the step of obtaining the dump information. In this way, it is possible to continuously monitor whether the dump interface displays the same screen for a long time, and when the dump interface displays the same screen for a long time again, it can be adjusted in time to avoid the problem of residual image.

[0010] In a possible implementation, the dump information also includes a dump mark value; before determining whether the duration is greater than or equal to a preset duration threshold, the method also includes: obtaining a dump mark value, the dump mark value being used to indicate whether the electronic device is in a dump state; in response to the dump mark value being a preset value, executing a step of determining whether the duration is greater than or equal to a preset duration threshold.

[0011] In one possible implementation, the dump interface is dynamically adjusted based on the display information, including: moving the content displayed on the dump interface by a preset distance in a preset direction based on the display information; or, flipping the content displayed on the dump interface based on the display information; or, adjusting the text color in each display area included in the dump interface based on the display information.

[0012] In one possible implementation, the display information includes the position of the first character displayed on the dump interface; based on the display information, the content displayed on the dump interface is moved in a preset direction and a preset distance, including: adjusting the position of the first character included in the display information according to a preset direction and a preset distance; and redisplaying the dump interface according to the adjusted display information.

[0013] In one possible implementation, the display information includes the position of the first character displayed on the dump interface; based on the display information, the content displayed on the dump interface is flipped, including: mapping the position of the first character included in the display information from the upper left corner of the dump interface to the lower right corner of the dump interface; based on the adjusted display information, redisplaying the content included in the dump interface in a right-to-left and bottom-to-top order.

[0014] In one possible implementation, the display information includes the color of each display area displayed on the dump interface; adjusting the text color in each display area included in the dump interface based on the display information includes: changing the color of any display area included in the display information to a preset color; or, changing the colors of all display areas included in the display information to a preset color; or, changing the color of each display area included in the display information to a different color; and redisplaying the dump interface according to the adjusted display information.

[0015] In a second aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and one or more processors call the computer instructions to enable the electronic device to execute the method described in the first aspect and any possible implementation method of the first aspect.

[0016] In a third aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, which are used to call computer instructions so that the electronic device executes the method described in the first aspect and any possible implementation method of the first aspect.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including a computer program. When the computer program runs on an electronic device, the electronic device executes the method described in the first aspect and any possible implementation method of the first aspect.

[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, the computer program product comprising: a computer program code, when the computer program code runs on an electronic device, enables the electronic device to execute the method described in the first aspect and any possible implementation method of the first aspect.

[0019] It can be understood that the electronic device provided in the second aspect, the chip system provided in the third aspect, the computer storage medium provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0021] Figure 1 It is a flow chart of a method for preventing screen afterimage in the related art;

[0022] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0023] Figure 3 A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0024] Figure 4 A flowchart of a screen anti-image sticking processing method provided in an embodiment of the present application;

[0025] Figure 5 An exemplary schematic diagram of a dump interface provided in an embodiment of the present application;

[0026] Figure 6 A comparison diagram of the dump interface before and after adjustment provided in the embodiment of the present application;

[0027] Figure 7 A flowchart of another screen anti-image sticking processing method provided in an embodiment of the present application;

[0028] Figure 8 A structural diagram of the boot loader provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0030] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0031] To facilitate understanding, we first introduce the light-emitting principle of OLED screens.

[0032] The OLED screen's light-emitting principle is: under the drive of an electric field, organic semiconductor materials and luminescent materials emit light through carrier injection and recombination. Carriers are current carriers, which refer to particles that carry electric charge and can transport current through movement.

[0033] This luminescence process includes the following steps:

[0034] 1. Under a certain voltage drive, electrons and holes are injected from the cathode and anode into the electron and hole transport layers respectively.

[0035] 2. Electrons and holes migrate to the light-emitting layer through the electron and hole transport layers respectively, and meet in the light-emitting layer.

[0036] 3. In the light-emitting layer, electrons and holes form excitons, which excite the light-emitting molecules. Holes carry positive charges, while electrons carry negative charges. They are attracted to each other by the Coulomb force, and under certain conditions, they are bound together in space. The complex formed in this way is called an exciton.

[0037] 4. Luminescent molecules emit visible light through radiative relaxation. Radiative relaxation refers to the decay process in which a molecule returns to the ground state through the relaxation process from a higher energy excited state and emits a photon.

[0038] The light-emitting principle of OLED screens makes them self-luminous, so there is no need for backlights, which can achieve thinner screens and better color performance.

[0039] In the above-mentioned light-emitting process, the thin-film transistor (TFT) circuit of the OLED screen plays a very important role. The TFT circuit can control the brightness and color of each pixel. TFT controls the flow of current by changing the gate voltage, thereby achieving pixel brightness and color control. However, there are time delay and inertia effects in TFT. Time delay and inertia effects refer to the fact that the response of current in TFT is affected by time delay, and the inertia phenomenon caused by the accumulation of internal charge during the driving process of TFT.

[0040] The time delay effect is caused by the internal structure and working principle of TFT. That is, when the input signal changes, TFT needs a certain amount of time to respond and adjust the internal conduction state of TFT. This delay will cause the current to not reach the target value immediately, but to reach the expected level after a period of time. This time delay effect will cause a lag in brightness change during the OLED screen driving process, affecting the display effect.

[0041] The inertia effect is related to the accumulation of internal charges in the TFT. When the TFT is continuously driven, the internal charge will gradually accumulate, forming an inertia effect. This inertia effect will affect the conduction performance of the TFT and the stability of the current, further affecting the brightness and color performance of the OLED screen. When the OLED screen is used normally, the attenuation of the brightness of the small light is very slight, but the attenuation speed of the bright and dark areas is different. When the brightness difference between the screen before and after the switch is large, the screen stays for too long before the switch, and the difference in attenuation brightness becomes more and more obvious, resulting in "afterimages". If the screen stays for a longer time before the switch, it may further cause screen burn-in problems on the electronic device.

[0042] In the related art, the afterimage on the screen can be prevented by adjusting the display information of the elements on the screen, such as Figure 1 As shown, the electronic device includes an application layer, a local layer, a kernel layer and a hardware layer.

[0043] Among them, the application layer includes applications such as camera, calendar, map, gallery, desktop, etc.

[0044] The local layer includes SurfaceFlinger (layer deliverer), which is used to synthesize layer data using a graphics processing unit (GPU) or a hardware synthesizer, and provide each layer data to the hardware abstraction layer for subsequent display of the interface synthesized using the layer data on the screen.

[0045] The kernel layer includes the display driver, which is used to drive the display.

[0046] The hardware layer includes a display, which may specifically be an OLED panel.

[0047] See also Figure 1 In the related art, the method for preventing screen residual image includes the following steps:

[0048] S101. SurfaceFlinger obtains display information of each element currently displayed on the screen.

[0049] The display information of each element may include channel values ​​of each color channel of each pixel included in each element, and the element is a display area composed of multiple pixels.

[0050] S102: Determine the static duration of each element.

[0051] After obtaining the display information of each element, SurfaceFlinger can determine whether the element is in a static state within the specified duration for each element by comparing the element information obtained this time with the element information obtained last time. If the element information obtained twice changes, or the element information of the element is not obtained this time, it means that the element is not static, so the static duration of the element can be cleared. If the element information obtained twice does not change, the static duration of the element is accumulated by the specified duration.

[0052] S103. SurfaceFlinger determines whether the static duration of each element exceeds a preset threshold.

[0053] If there is any element whose static duration exceeds the preset threshold, S104 is executed. For ease of understanding, the element whose static duration exceeds the preset threshold is referred to as a target element.

[0054] S104. SurfaceFlinger dynamically adjusts the display data of the target element.

[0055] S105: The display driver obtains the superimposed display data.

[0056] The superimposed display data is display data obtained by dynamically adjusting the target element and replacing the original target element with the adjusted target element and superimposing it on the current display screen.

[0057] Then the display driver can drive the OLED panel to display the picture according to the superimposed display data.

[0058] According to the above method, if the system of the electronic device is already in an abnormal state, the application layer, SurfaceFlinger and kernel layer will not be able to work normally, and thus the static time of each element cannot be obtained and the display data of the target element cannot be dynamically adjusted. Therefore, the above method is not suitable for the scenario where the electronic device triggers DUMP.

[0059] In order to solve this problem, an embodiment of the present application provides a screen anti-image sticking processing method, which is executed by an electronic device.

[0060] The electronic device may be a mobile phone, tablet computer, television, wearable device, vehicle-mounted device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA) and other electronic devices with screens. The screen of the electronic device may be an OLED screen or the like. The embodiment of the present application does not limit the type of electronic device.

[0061] Figure 2 A schematic diagram of an electronic device provided in an embodiment of the present application, Figure 2 The electronic device shown may include a processor 110, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a button 190, a motor 191, an indicator 192, cameras 1-N 193, a display screen 194, and subscriber identification module (SIM) card interfaces 1-N 195, etc. Among them, the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0062] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

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

[0064] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

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

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

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

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

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

[0070] In the application embodiment, the mobile communication module may also be referred to as a cellular module, and the two may be described interchangeably.

[0071] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0072] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (WIFI) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, at least some functional modules of the wireless communication module 160 can be set in the processor 110.

[0073] In some embodiments of the present application, the electronic device can establish a wireless connection with other electronic devices through the wireless communication module 160 (such as a Bluetooth module and a WLAN module) and the antenna 2 to achieve data transmission between the electronic device and the other electronic devices.

[0074] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.

[0075] It is understandable that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0076] The charging management module 140 is used to receive charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also power the electronic device through the power management module 141 .

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

[0078] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device may include 1 or N display screens 194 , where N is a positive integer greater than 1.

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

[0080] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture static images or videos. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0081] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.

[0082] The electronic device can implement audio functions such as music playing and recording through the audio module 170, speakers, receivers, microphones, headphone jacks, and application processors.

[0083] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.

[0084] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a screen projection function, a network sharing function, etc.), etc. The data storage area may store data (such as video data, etc.) created during the use of the electronic device, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

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

[0086] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. Indicator 192 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0087] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device by inserting the SIM card interface 195 or removing the SIM card interface 195. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.

[0088] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes the Android system of the layered architecture as an example to illustrate the software system of the electronic device. Figure 3 As shown, the layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer, the native layer, the hardware abstract layer (HAL), and the kernel layer, wherein the kernel layer is also connected to the hardware layer.

[0089] The application layer can include a series of application packages. Figure 3 As shown, the application package may include camera, gallery, calendar, lock screen, map, desktop, WLAN, video, music, settings, short message and other applications.

[0090] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include system servers, launchers, window managers, content providers, view systems, phone managers, resource managers, notification managers, and algorithm frameworks.

[0091] The system service launcher is used to start the system of the electronic device, such as the Android system, and provides underlying services for other modules included in the application framework layer.

[0092] The Native layer may also be referred to as a local layer, a local framework layer, a local algorithm layer, or a local service layer, etc. In the embodiment of the present application, the local layer may include SurfaceFlinger (layer deliverer), which is used to synthesize layer data using a graphics processing unit (GPU) or a hardware synthesizer, and provide each layer data to the hardware abstraction layer, so as to display the interface synthesized using the layer data on the screen later.

[0093] The hardware abstraction layer is an abstract interface of the device kernel driver, which is used to provide an application programming interface for accessing the underlying device to a higher-level API framework. In this embodiment, the hardware abstraction layer may include a hardware composer, which is used to obtain the layer data generated by SurfaceFlinger that needs to be displayed, and to overlay each layer based on the layer data.

[0094] The kernel layer includes the kernel system driver and the display driver. The kernel system driver is used to start the kernel, such as starting the operating system (Linux) kernel, and the display driver is used to drive the display. The hardware layer includes the display, such as Figure 3 As shown, the display may specifically be an OLED panel.

[0095] like Figure 3 As shown in the figure, there is also a boot (BOOT) layer between the kernel layer and the hardware layer, in which the boot loader (Bootloader) program runs. Bootloader is the first program that runs when an electronic device is turned on, and is used to load the operating system into the memory so that the network device can start and run normally. In short, Bootloader can be regarded as a guide in the startup process of an electronic device, which can guide the electronic device to correctly load and start the operating system.

[0096] At present, different platforms may use different Bootloaders. There are two main types of Bootloaders: Universal Boot Loader (U-Boot) and Unified Extensible Firmware Interface (UEFI).

[0097] Among them, U-Boot is an open source boot loader mainly used for embedded devices. UEFI is a modern firmware interface standard used to replace the traditional Basic Input Output System (BIOS).

[0098] UEFI includes an extended bootloader (XBL). When the electronic device system crashes or has a specific fault, XBL can trigger a memory dump (RAM DUMP) process. The memory dump process refers to saving the current memory data (including status information at the time of the fault, register content, and system logs, etc.) to a predetermined storage area for subsequent analysis and troubleshooting.

[0099] The embodiment of the present application has Figure 2 and Figure 3 Taking the electronic device with the structure shown in FIG. 1 as an example, the screen anti-image sticking method provided by the embodiment of the present application is described in detail. The method is applied to the Bootloader in the BOOT layer of the electronic device, such as Figure 4 As shown, the method includes:

[0100] S401: Obtain dump information.

[0101] Among them, S401 is executed after the Bootloader triggers the memory dump. The dump information includes the display information of the dump interface and the duration of the electronic device displaying the same dump interface. The dump interface is the interface displayed when the electronic device is in the dump state.

[0102] When the bootloader triggers a memory dump, the data in the memory of the electronic device is saved to a predetermined storage area as dump information, and a dump mark value is set in the dump information. When the dump mark value is a preset value, it is used to indicate that the electronic device is in a dump state. In addition, when the bootloader triggers a memory dump, a timer can be started, and the timing value of the timer is stored in the dump information in real time, and the timing value is used as the duration.

[0103] In addition, the bootloader will also generate display information of the dump interface based on information such as the cause of the failure of the electronic device, store the display information in the dump information, and display the dump interface based on the display information. Currently, the bootloader will generate and display the dump interface, and the embodiment of the present application does not limit the method for generating the dump interface.

[0104] It can be understood that when the electronic device is in the memory dump state, it cannot display the normal display interface, but will display the dump interface. The normal display interface will not be displayed until the electronic device returns to normal.

[0105] As an example, dump interface like Figure 5 As shown, the dump interface specifically displays the title, fault cause, and prompt information, for example, Figure 5 The title is CrashDump Mode. The reasons include mReason:PANIC, sReason:sysrq_crash, and info:sysrq triggeredcrash by 'sh'. The prompt is: Dumping logs, restartautomatically after a few minutes...

[0106] It should be noted that Figure 5 This is only an example. In actual implementation, the form of the dump interface is related to the system platform used by the electronic device and the cause of the failure, and the embodiments of the present application do not limit this.

[0107] S402: Determine whether the duration is greater than or equal to a preset duration threshold.

[0108] If yes, execute S403; if no, directly return to S401, or return to S401 after a specified time, that is, the dump information can be re-obtained every specified time.

[0109] The preset duration threshold may be preset based on experience. Optionally, in one embodiment, the preset duration thresholds set for different displays may be the same. In another embodiment, due to different display performances of different displays, the preset duration thresholds set for different displays may be different. For example, for a display with better display performance, the value of the preset duration threshold may be relatively small; for a display with poorer display performance, the value of the preset duration threshold may be relatively large.

[0110] S403: Dynamically adjust the dump interface based on the displayed information.

[0111] The embodiments of the present application provide three methods for dynamically adjusting the dump interface.

[0112] Method 1: Based on the display information, the content displayed on the dump interface is moved in a preset direction and by a preset distance.

[0113] The displayed information includes the position of the first character displayed on the dump interface, Figure 5 For example, if the first character displayed in the dump interface is "C", the displayed information includes the position of the character "C", which may specifically be a pixel coordinate.

[0114] After obtaining the position of the first character, the bootloader may move the position of the first character by a preset distance in a preset direction, and then redisplay the dump interface according to the adjusted display information.

[0115] The preset direction may be vertical or horizontal, for example, moving 3 pixels downward or 3 pixels to the right. After adjusting the display information, the bootloader may re-display the dump interface on the screen according to the adjusted display information, so that the original displayed content is moved by a preset distance in the preset direction as a whole. The bootloader may display the dump interface on the screen in a single-page display mode.

[0116] Taking the downward movement as an example, the effect before and after the movement is as follows: Figure 6 shown.

[0117] Method 2: Flip the content displayed on the dump interface based on the displayed information.

[0118] The displayed information includes the position of the first character displayed on the dump interface, Figure 5 For example, if the first character displayed in the dump interface is "C", the displayed information includes the position of the character "C", which may specifically be a pixel coordinate.

[0119] After obtaining the position of the first character, the Bootloader can map the position of the first character included in the display information from the upper left corner of the dump interface to the lower right corner of the dump interface, and then redisplay the content included in the dump interface in a right-to-left and bottom-to-top order based on the adjusted display information.

[0120] Assuming that the upper left corner of the dump interface is the origin, the absolute value of the X coordinate of the position of the first character displayed on the dump interface is the distance a between the character and the left side of the dump interface, and the absolute value of the Y coordinate is the distance b between the character and the top of the dump interface, that is, the pixel coordinates of the character are (-a, -b). After mapping the character to the lower right corner, it is considered that the distance between the character and the right side of the dump interface is a, and the distance between the character and the bottom of the dump interface is b. Based on this, the upper left corner of the dump interface is still used as the origin, and the X coordinate and Y coordinate of the character are recalculated, so that the calculated pixel coordinates are used as the coordinates of the character, and the position of the character can be mapped to the lower right corner of the dump interface.

[0121] Currently, the Bootloader displays the contents of the dump interface in order from left to right and from top to bottom. In an embodiment of the present application, after mapping the position of the first character from the upper left corner of the dump interface to the lower right corner, the contents of the dump interface can be displayed in order from right to left and from bottom to top, thereby realizing the flipping of the original contents displayed on the dump interface.

[0122] Method 3: Adjust the text color in each display area included in the dump interface based on the display information.

[0123] The display information includes the colors of each display area displayed on the dump interface.

[0124] For example, the color of the title area is red, the color of the fault cause area is yellow, and the color of the prompt information area is green.

[0125] The bootloader can change the color of any display area included in the display information to a preset color.

[0126] For example, the preset color may be blue, and the color of the title area, the fault cause area, or the prompt information area may be changed to blue. The preset color may be flexibly set in advance, and it is only necessary to ensure that the color of each display area before and after the change is different.

[0127] Alternatively, the bootloader may change the colors of all display areas included in the display information to preset colors.

[0128] Still taking the preset color of blue as an example, the Bootloader can change the colors of the title area, the fault cause area, and the prompt information area to blue.

[0129] Alternatively, the bootloader may change the color of each display area included in the display information to a different color.

[0130] For example, the color of the title area is changed to yellow, the color of the fault cause area is changed to green, and the color of the prompt information area is changed to red.

[0131] After adjusting the color of the display area in any of the above methods, the dump interface can be redisplayed according to the adjusted display information, thereby achieving an effect of changing the color of the content displayed in the dump area.

[0132] It should be noted that after the dump interface is dynamically adjusted based on the display information, the timer can be restarted, and the timer value is stored in the dump information in real time, and then the process returns to S401. In this way, after the dump interface is dynamically adjusted once, it can be determined whether dynamic adjustment is needed again according to the duration of the adjustment to prevent the problem of residual image.

[0133] According to the embodiment of the present application, after the electronic device triggers a memory dump due to a crash or other problems, the application layer, application framework layer, local layer, hardware abstraction layer, and kernel layer of the electronic device are all unable to work. Therefore, the embodiment of the present application can still use the Bootloader in the normally working BOOT layer to obtain the dump information, and dynamically adjust the dump interface based on the display information when the duration of the electronic device displaying the same dump interface is greater than or equal to the preset duration threshold. In this way, even if the electronic device is in a dump state, the screen displayed by the electronic device can be prevented from being unchanged for a long time, thereby avoiding the problem of residual images.

[0134] The following is an introduction to the screen image retention prevention method provided by the embodiment of the present application in combination with the software architecture of the electronic device. Figure 7 As shown in the figure, when an electronic device starts, it is first powered on, and then the Bootloader of the BOOT layer starts the electronic device, initializes the hardware components of the electronic device, such as memory, processor, and peripherals, and loads the operating system boot program. It can also perform specific security checks, hardware configurations, and startup environment settings, thereby providing a basis for the smooth loading and operation of the operating system.

[0135] The Bootloader then triggers the kernel layer to start the Linux kernel, and then the application framework layer starts the Android system.

[0136] Later, when the electronic device is working, if the Linux kernel or Android system fails, it will send a message to the Bootloader that the system is down abnormally, and then the Bootloader triggers a memory dump. During the memory dump process, the key contents of the memory can be captured, the data in the current memory can be saved, and the dump interface can be displayed. For technicians or maintenance personnel, they can promptly know the cause of the failure and the status of the device based on the information displayed in the dump interface.

[0137] The Bootloader can then perform the following steps:

[0138] S701: Obtain dump information.

[0139] The dump information includes display information (DisplayInfo) of the dump interface.

[0140] S702: Determine whether to enter the dump exception phase.

[0141] Among them, the dump exception stage is the stage in which the electronic device is in the dump state. If the dump mark value included in the dump information is a preset value, it is determined that the electronic device has entered the dump exception stage, and S703 is executed; if the dump mark value included in the dump information is not a preset value, it is determined that the electronic device has not yet entered the dump exception stage, and S702 is re-executed.

[0142] S703: Determine whether the duration reaches a preset duration threshold T1.

[0143] If yes, execute S704, S705 or S706; if no, return to S703.

[0144] S704: Move the displayed content horizontally or vertically.

[0145] S705: Flip the displayed content.

[0146] S706: Change the color of the displayed content.

[0147] Among them, the specific implementation method of S704-S706 has been introduced in the above embodiment and will not be repeated here.

[0148] By adopting this method, after the electronic device enters the dump state, the content displayed in the dump interface can still be adjusted through the Bootloader, avoiding the problem of afterimage or even screen burn-in caused by the picture remaining unchanged for a long time. It can avoid the failure of related tests due to the afterimage problem and affect the pass rate, and can extend the service life of the OLED material.

[0149] In the present application embodiment, Figure 8 As shown, the Bootloader can be logically divided into a dump interface detection unit 801, an anti-afterimage condition determination unit 802 and an anti-afterimage execution unit 803.

[0150] The dump interface detection unit 801 is used to obtain dump information and determine whether the electronic device is in a dump state.

[0151] The anti-afterimage condition determination unit 802 is used to determine whether the duration reaches a preset duration threshold, so as to determine whether it is necessary to dynamically adjust the dump interface.

[0152] The anti-afterimage execution unit 803 is used to dynamically adjust the dump interface.

[0153] In a specific implementation, the present application also provides a computer-readable storage medium, including a computer program, wherein when the computer program is run on an electronic device, the electronic device executes some or all of the steps in the above embodiment. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0154] In a specific implementation, an embodiment of the present application further provides a computer program product, which includes a computer program code. When the computer program code runs on an electronic device, the electronic device executes some or all of the steps in the above method embodiment.

[0155] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0156] Program code can be applied to input instructions to perform each function described in the present application and generate output information. Output information can be applied to one or more output devices in a known manner. For the purpose of the present application, the processing system includes any system with a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC) or a microprocessor.

[0157] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0158] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to floppy disks, optical disks, optical disks, compact disc read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or tangible machine-readable memories for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0159] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the accompanying drawings of the specification. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0160] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0161] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0162] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. A screen image retention prevention method, characterized in that: The method is applied to a boot loader Bootloader in a boot BOOT layer of an electronic device, and comprises: After triggering the memory dump, obtaining dump information, the dump information including display information of the dump interface and the duration of the electronic device displaying the same dump interface, the duration being: the timing value of the timer started when the memory dump is triggered, the dump interface being the interface displayed when the electronic device is in the dump state; Determine whether the duration is greater than or equal to a preset duration threshold; In response to the duration being greater than or equal to the preset duration threshold, the dump interface is dynamically adjusted based on the display information.

2. The method according to claim 1, characterized in that After determining whether the duration is greater than or equal to a preset duration threshold, the method further includes: In response to the duration being less than the preset duration threshold, returning to the step of obtaining dump information; or, In response to the duration being less than the preset duration threshold, after a specified duration, the process returns to the step of obtaining dump information.

3. The method according to claim 1, characterized in that: The method further comprises: When the memory dump is triggered, a timer is started, and a timing value of the timer is stored in the dump information in real time.

4. The method according to claim 3, characterized in that After dynamically adjusting the dump interface based on the display information, the method further includes: Restarting the timer, and storing the timing value of the timer in the dump information in real time; Return to the step of obtaining dump information.

5. The method according to any one of claims 1 to 4, characterized in that: The dump information also includes a dump mark value; before determining whether the duration is greater than or equal to a preset duration threshold, the method further includes: Acquire a dump mark value, where the dump mark value is used to indicate whether the electronic device is in a dump state; In response to the dump mark value being a preset value, the step of determining whether the duration is greater than or equal to a preset duration threshold is performed.

6. The method according to claim 1, characterized in that The dynamically adjusting the dump interface based on the display information includes: Based on the display information, the content displayed on the dump interface is moved in a preset direction and by a preset distance; or, Flipping the content displayed on the dump interface based on the display information; or, The text colors in each display area included in the dump interface are adjusted based on the display information.

7. The method according to claim 6, characterized in that The display information includes the position of the first character displayed on the dump interface; and moving the content displayed on the dump interface by a preset distance in a preset direction based on the display information includes: Adjusting the position of the first character included in the display information according to the preset direction and the preset distance; The dump interface is redisplayed according to the adjusted display information.

8. The method according to claim 6, characterized in that The display information includes the position of the first character displayed on the dump interface; and the flipping of the content displayed on the dump interface based on the display information includes: Mapping the position of the first character included in the display information from the upper left corner of the dump interface to the lower right corner of the dump interface; Based on the adjusted display information, the contents included in the dump interface are redisplayed in order from right to left and from bottom to top.

9. The method according to claim 6, characterized in that The display information includes the color of each display area displayed on the dump interface; and adjusting the text color in each display area included in the dump interface based on the display information includes: Changing the color of any display area included in the display information to a preset color; or changing the colors of all display areas included in the display information to the preset color; or changing the colors of each display area included in the display information to a different color; The dump interface is redisplayed according to the adjusted display information.

10. An electronic device, characterized in that: include: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to perform the method as claimed in any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that: The invention comprises a computer program, which, when being executed on an electronic device, enables the electronic device to execute the method as claimed in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Displayer burn-in prevention method and device and storage medium

    CN108492767A