Screen-on display method, electronic equipment and storage medium

By judging the time difference of touch firmware loading during the screen lighting process of electronic devices, avoiding the display refresh rate switching across code interrupting firmware loading, the problem of freezing screen during the screen lighting process is solved, ensuring device responsiveness and stability.

CN119576195APending Publication Date: 2025-03-07HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411429086.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-10
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

During the screen lighting process of electronic devices, the display refresh rate switching across codes causes the touch firmware to be loaded interrupted, resulting in freezing of the screen.

Method used

By determining the time difference between the bright screen time and the refresh rate switching time, and comparing it with the preset threshold, we can determine whether the touch firmware is loaded. If the time difference is less than the threshold, the display refresh rate remains unchanged to avoid the refresh rate switching interrupting firmware loading; if the time difference is not less than the threshold, the display refresh rate switching is allowed.

Benefits of technology

It effectively avoids the freeze phenomenon of electronic devices due to display refresh rate switching, ensuring that touch firmware loading is completed smoothly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119576195A_ABST
    Figure CN119576195A_ABST
Patent Text Reader

Abstract

The invention provides a bright screen display method, electronic equipment and a storage medium, and relates to the technical field of terminal display. The method comprises the following steps: in response to a screen lightening operation of a user for the electronic equipment, lightening a screen and displaying a first screen lightening display image, and recording a screen lightening moment of the electronic equipment; in the process of displaying the first bright screen display image, switching a display refresh rate of the electronic equipment from a first display refresh rate to a second display refresh rate, and recording a refresh rate switching moment of the electronic equipment; judging whether the time difference between the refresh rate switching moment and the screen turn-on moment is within a preset range or not; if yes, the first screen-on display image is maintained to be displayed. Whether loading of the touch firmware is completed or not is determined through the time difference between the screen-on moment and the refresh rate switching moment, and when the time difference is within the preset range, it is indicated that loading of the touch firmware is not completed, so that display of the first screen-on display image is maintained, switching of the display refresh rate is not performed, and the frozen screen phenomenon of the electronic equipment caused by switching of the display refresh rate is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application for the Chinese patent application with application number 202310842027.4, application date July 10, 2023, and invention name “A bright screen display method, electronic device and storage medium”. Technical Field

[0002] The present application relates to the field of terminal display technology, and in particular to a bright screen display method, an electronic device and a storage medium. Background Art

[0003] With the rapid development of electronic devices, touch screens (composed of display screens and touch sensors) have been widely used, so that after the electronic device turns on the screen, it can recognize the user's touch command on the touch screen and execute the touch command corresponding to the touch event. For example, the electronic device can receive a user's click on an application icon of an application on the touch screen and display the corresponding interface of the application.

[0004] In order to pursue smoother images and improve the user's viewing experience, the display refresh rate that the touch screen (display) of electronic devices can support is constantly increasing. In order for electronic devices to smoothly display content sources with various frame rates, the touch screen of electronic devices supports multiple refresh rates. In current technology, two sets of timing tables are generally used to implement seven refresh rates of the touch screen, so that electronic devices can smoothly display content sources with various frame rates.

[0005] During the process of lighting up the touch screen of an electronic device, the touch panel firmware (TP firmware) will be loaded, so as to control the touch screen of the electronic device to recognize the user's touch commands on the touch screen after the screen is turned on, and execute the touch commands corresponding to the touch events.

[0006] However, when the screen of an electronic device is turned on, if there is a refresh rate switch across codes (real frame rate switch), the electronic device after the screen is turned on will not be able to respond to the user's touch event on the touch screen, thus causing the screen to freeze. Summary of the invention

[0007] The present application provides a screen-lighting display method, an electronic device, and a storage medium, which are used to solve the screen freezing problem caused by switching of the display refresh rate across codes during the screen-lighting process of the electronic device.

[0008] In order to achieve the above objectives, this application adopts the following technical solutions:

[0009] In the first aspect, the present application provides a method for displaying a bright screen, which is applied to an electronic device, wherein the touch screen of the electronic device supports a first display refresh rate and a second display refresh rate, and the first display refresh rate and the second display refresh rate correspond to different touch sampling rates respectively; and during the bright screen display process of the electronic device, the process of switching the first display refresh rate to the second display refresh rate will be executed. The method includes: receiving a screen-brightening operation of the user; in response to the screen-brightening operation, lighting the screen and displaying a first image; wherein the first image is a display image synthesized according to the first display refresh rate; in the process of displaying the first image, switching the display refresh rate of the electronic device from the first display refresh rate to the second display refresh rate; determining whether the time difference between the moment of switching from the first display refresh rate to the second display refresh rate and the moment of lighting the screen is less than a preset threshold; when the time difference is less than the preset threshold, maintaining the display of the first image; when the time difference is not less than the preset threshold, displaying the second image; the second image is a display image synthesized according to the second display refresh rate. This application determines whether the touch firmware has been loaded during the screen display process by comparing the time difference between the moment when the first display refresh rate is switched to the second display refresh rate and the moment when the screen is turned on with a preset threshold. When the time difference is less than the preset threshold, it means that the touch firmware has not been loaded, so the first image is maintained and the display refresh rate is not switched, so as to avoid the interruption and reloading of the touch firmware loading due to the switching of the display refresh rate, thereby avoiding the freezing of the electronic device caused by the switching of the display refresh rate. When the time difference is not less than the preset threshold, it means that the touch firmware has been loaded, and the freezing of the electronic device will not be caused by the interruption of the touch firmware loading due to the switching of the display refresh rate, so the second image is displayed to achieve the switching of the display refresh rate.

[0010] In a possible implementation, the screen-lighting operation by the user includes: a triggering operation of a power button by the user.

[0011] In a possible implementation, the power management service sends screen-on indication information to the image synthesis system in response to the screen-on indication information; the image synthesis system synthesizes the first image according to the first display refresh rate in response to the screen-on indication information; the image synthesis system sends the first image to the hardware synthesizer; the hardware synthesizer sends the first image to the display driver; the display driver controls the touch screen to turn on the screen and display the first image. The power management service is located in the application framework layer of the operating system of the electronic device; the image synthesis system is located in the system library of the operating system of the electronic device; the hardware synthesizer is located in the hardware abstraction layer of the operating system of the electronic device; and the display driver is located in the kernel layer of the operating system of the electronic device.

[0012] In one possible implementation, after the image synthesis system synthesizes the first image according to the first display refresh rate, it sets the display refresh rate of the electronic device to the second display refresh rate to switch the display refresh rate of the electronic device from the first display refresh rate to the second display refresh rate; synthesizes the second image according to the second display refresh rate, and sends it to the hardware synthesizer.

[0013] In one possible implementation, the moment when the screen is turned on is: the current system time when the hardware synthesizer receives the first image; the moment when the first display refresh rate is switched to the second display refresh rate is: the current system time when the hardware synthesizer receives the second image; the hardware synthesizer determines whether the time difference between the moment when the first display refresh rate is switched to the second display refresh rate and the moment when the screen is turned on is less than a preset threshold.

[0014] In a possible implementation, when the time difference is less than a preset threshold, the hardware synthesizer returns a refresh rate switching abnormal state to the image synthesis system, thereby notifying the image synthesis system that the refresh rate switching has failed.

[0015] In one possible implementation, the image synthesis system, in response to an abnormal state of the refresh rate switching, resets the display refresh rate of the electronic device to a second display refresh rate until the time difference is not less than a preset threshold, thereby switching the display refresh rate.

[0016] In a possible implementation, when the time difference is not less than a preset threshold, the hardware synthesizer sends the second image to the display driver; and the display driver controls the touch screen to display the second image.

[0017] In a second aspect, the present application provides an electronic device, which includes a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes the method of the first aspect above.

[0018] In a third aspect, the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed, the method of the first aspect described above is implemented.

[0019] In a fourth aspect, the present application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1A It is a mismatch between the TV series frame rate and the display refresh rate in current technology;

[0021] Figure 1B It is a matching situation between the TV series frame rate and the display refresh rate in the current technology;

[0022] Figure 2 A schematic diagram of a process of lighting up the screen of an electronic device in the current technology;

[0023] Figure 3A An exemplary diagram of the composition of an electronic device provided in an embodiment of the present application;

[0024] Figure 3B An example diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0025] Figure 4 A schematic diagram of the internal interaction flow of a method for bright screen display provided in an embodiment of the present application;

[0026] Figure 5 A flowchart of a method for brightening the screen provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.

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

[0029] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given:

[0030] Touch screen: The touch sensor can be set on the display screen, and the touch screen is composed of the touch sensor and the display screen. The touch sensor is used to detect the touch operation acting on its upper surface, pass the detected touch operation to the application processor to determine the type of touch event, and provide visual output related to the touch operation through the display screen. Of course, the touch screen can also be formed by setting the touch sensor on the surface of the electronic device, which is different from the position of the display screen, and the touch sensor and the display screen overlap to form a touch screen.

[0031] Screen freezing phenomenon: Taking a mobile phone as an example, the touch screen of the mobile phone seems to be locked, and no matter how you click the touch screen, the display of the touch screen does not respond. That is, the electronic device cannot recognize the user's touch command on the touch screen and execute the touch command corresponding to the touch event.

[0032] Refresh rate: It can also be called the display refresh rate of the touch screen (the refresh rate of the display screen). The refresh rate is measured in Hz and refers to the number of times the electron beam repeatedly scans the image on the touch screen. In layman's terms, it means how many times the touch screen displays (refreshes) the image per second.

[0033] Touch sampling rate: It can also be called the touch sampling rate (touch frequency) of the touch screen. The touch sampling rate is measured in Hz and refers to the speed at which the touch screen captures touches, for example: the speed at which a finger touches the screen, the speed at which a touch pen touches the screen, etc.

[0034] Cross-code refresh rate switching (real frame rate switching): Since electronic devices can smoothly display various frame rates of content sources, the touch screen of the electronic device needs to support multiple display refresh rates. In the current technology, multiple timing tables are generally configured to achieve multiple display refresh rates, and each timing table is used to achieve at least one display refresh rate, wherein each timing table requires corresponding coding to support the implementation of at least one display refresh rate, and at least one display refresh rate supported by a timing table corresponds to the same touch firmware, that is, at least one display refresh rate supported by a timing table corresponds to the same touch sampling rate. When the display refresh rate of the touch screen is switched from a display refresh rate supported by one timing table to a display refresh rate supported by another timing table, that is, the display refresh rate switched by the touch screen and the display refresh rate not switched correspond to different touch sampling rates (different touch firmware), it means that the touch screen of the electronic device has undergone a cross-code refresh rate switch (real frame rate switch).

[0035] The advantages of a bright screen display method provided by the present application are explained below in conjunction with the problems existing in the current technology.

[0036] When electronic devices with touch screens (display modules composed of touch sensors and display screens) were first widely used, the display refresh rate of the touch screens of electronic devices was fixed at one level. However, the frame rates of the content sources that electronic devices need to display are indeed diverse. For example, the frame rates of movies, TV series, online videos, game interfaces, etc. are all different. At this time, it is easy for the display refresh rate of the touch screen to not match the frame rate of the content source, resulting in jitter, freezes, and other unsmooth display phenomena. For ease of understanding, the following is combined with Figure 1A Give an example.

[0037] When the refresh rate of the touch screen of the electronic device is fixed at 60Hz, and the content source is a TV series with a frame rate of 25fps. The 25fps TV series displays 25 frames per second, and the fixed refresh rate of the touch screen of the electronic device is 60Hz, which means it displays 60 frames per second. At this time, the display of the touch screen of the electronic device and the content source are misaligned (e.g. Figure 1AAs shown), it is impossible to display them one by one. Before the touch screen displays the next frame of the picture, the electronic device does not transmit the corresponding picture content to the touch screen, so it can only display the previous frame repeatedly, resulting in the phenomenon of jitter, freeze and other unsmooth display.

[0038] However, when the display refresh rate of the touch screen of the electronic device is 50Hz, and the content source is a TV series with a frame rate of 25fps, the 25fps TV series displays 25 frames per second, and the display refresh rate of the touch screen of the electronic device is 50Hz, that is, the touch screen of the electronic device displays 50 frames per second. At this time, there is no misalignment between the display of the touch screen of the electronic device and the content source, and the frame rate of the TV series strictly matches the display refresh rate of the touch screen (such as Figure 1B As shown), the electronic device can play 25fps TV series without screen jitter, freeze or other unsmooth display phenomena.

[0039] With the rapid development of electronic devices, in order to smoothly display content sources of various frame rates, the touch screen of electronic devices supports multiple display refresh rates, so that it can be suitable for the display of content sources with different frame rates. In the current technology, two sets of timing tables are generally used to enable the touch screen of electronic devices to support seven display refresh rates (30Hz / 48Hz / 50Hz / 60Hz / 90Hz / 120Hz / 144Hz), to achieve full coverage of content sources of various frame rates, and to achieve accurate frame-to-frame matching, thereby achieving smooth display of electronic devices. The specific seven-level display refresh rate distribution and the corresponding touch sampling rate distribution of the touch screen are shown in Table 1.

[0040] Table 1

[0041]

[0042] During the screen-on process of the electronic device, the touch firmware will also load the touch firmware (TP firmware) from the sleep state. After the TP firmware is loaded, it will directly control the touch sensor to detect touch operations on it or its accessories, so that the electronic device can recognize the user's touch commands on the touch screen after the screen is turned on, and execute the touch commands corresponding to the touch events. However, if there is a cross-code refresh rate switch (real frame rate switch) during the screen display process (TP firmware loading process), the original TP firmware loading will be interrupted, and then the corresponding TP firmware will be loaded again, which will cause the TP firmware loading to be abnormal, resulting in a frozen screen on the electronic device.

[0043] As shown in Table 1, two sets of timing tables are used to enable the touch screen of an electronic device to support seven display refresh rates. The display refresh rate supported by timing table 1 corresponds to the same touch sampling rate, that is, the corresponding TP firmware will be loaded to control the touch sensor to achieve the touch sampling rate corresponding to timing table 1, so that the touch screen of the electronic device can achieve the touch sampling rate corresponding to timing table 1; and the display refresh rate supported by timing table 2 corresponds to the same touch sampling rate, that is, the corresponding TP firmware will be loaded to control the touch sensor to achieve the touch sampling rate supported by timingtable 2, so that the touch screen of the electronic device can achieve the touch sampling rate corresponding to timing table 2, but the display refresh rate supported by timing table 1 and timing The display refresh rates supported by table 2 have different corresponding touch sampling rates, so the TP firmware that needs to be loaded is different. Therefore, during the screen display process, the TP firmware corresponding to the current display refresh rate of the touch screen will be loaded. If the refresh rate is switched across codes during the screen display process (for example, the refresh rate is switched from 60Hz to 144Hz during the screen display process), the loading of the TP firmware corresponding to the current display refresh rate will be interrupted. Reloading the TP firmware corresponding to the switched display refresh rate will cause the TP firmware loading time to be too long, resulting in the freezing of the electronic device screen. If the refresh rate is switched across codes during the screen display process (for example, the refresh rate is switched from 60Hz to 120Hz during the screen display process), the TP firmware that needs to be loaded is the same, and the corresponding TP firmware loading will not be interrupted, and the freezing of the screen will not occur.

[0044] For ease of understanding, the following Figure 2 For illustration, take the current display refresh rate of the touch screen of the electronic device when the screen is on as 60Hz, and the display refresh rate is configured to be 144Hz during the screen-on process of the electronic device as an example. That is, when the display refresh rate is configured from 60Hz to 144Hz in the setting interface, the overall process of the electronic device turning on the screen is as follows Figure 2 shown.

[0045] The electronic device enters the screen-off state, that is, when the touch screen is in the screen-off state, the display screen is off, and the touch panel (TP) firmware is in the dormant state; when the user presses the power button of the electronic device, the electronic device enters the screen-on state, that is, after the electronic device responds to the screen-on operation, the electronic device controls the touch screen to light up through the kernel layer. During the touch screen lighting up process (display screen lighting up), the TP firmware corresponding to the 60Hz refresh rate will be loaded almost simultaneously. During the loading process of the TP firmware corresponding to the 60Hz refresh rate, the 144Hz refresh rate is switched, which will interrupt the loading of the TP firmware corresponding to the 60Hz refresh rate, and then the TP firmware corresponding to the 144Hz refresh rate will be loaded again. Since the time taken to light up the touch screen is roughly the same as the time taken to load the TP firmware once, when the touch screen lights up normally and the TP firmware loading is not completed at the same time, the touch screen will light up normally but the touch firmware loading will be abnormal. If the touch firmware loading is abnormal, the touch sensor cannot be controlled to detect the touch operation, thereby causing the touch screen to freeze.

[0046] Furthermore, in order to ensure the screen state of the touch screen of the electronic device, the current technology is generally pre-configured to perform a high refresh operation of the display refresh rate when the electronic device is switched from the screen-off state to the screen-on state, that is, the display refresh rate of the touch screen is configured to a higher display refresh rate, thereby ensuring the screen state of the touch screen of the electronic device.

[0047] In view of the above phenomenon, the present application provides a screen display method, which includes: in response to a user's screen-on operation on an electronic device, lighting the screen and displaying a first screen display image, and recording the screen-on time of the electronic device; wherein the first screen display image is a display image synthesized according to a first display refresh rate; in the process of displaying the first screen display image, switching the display refresh rate of the electronic device from the first display refresh rate to the second display refresh rate, and recording the refresh rate switching time of the electronic device; judging whether the time difference between the refresh rate switching time and the screen-on time is within a preset range; when the time difference between the refresh rate switching time and the screen-on time is within a preset range, maintaining the display of the first screen display image. The present application judges the time difference between the recorded screen-on time and the recorded refresh rate switching time, and compares it with a preset time range to judge whether the touch firmware is loaded during the screen-on display process. When the time difference is within the preset range, it means that the touch firmware is not loaded, so the first screen display image is maintained, and the display refresh rate is not switched, so as to avoid the interruption and reloading of the touch firmware loading due to the switching of the display refresh rate, thereby avoiding the freezing of the electronic device caused by the switching of the display refresh rate.

[0048] In some embodiments, the electronic device may be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a smart watch, etc. The present application does not impose any special restrictions on the specific form of the above electronic devices. In this embodiment, the structure of the electronic device may be as follows: Figure 3A As shown, Figure 3A A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0049] like Figure 3A As shown, the electronic device may include a processor 110, a charging management module 120, a power management module 130, a battery 140, a display screen 150, a touch sensor 160, an internal memory 170, and a button 180, etc.

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

[0051] 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 processor (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), etc. Among them, different processing units can be independent devices or integrated in one or more processors. For example, in the present application, the electronic device can be controlled to execute the judgment whether the time difference between the screen-on moment and the refresh rate switching moment is within a preset range.

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

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

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

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

[0056] The MIPI interface can be used to connect the processor 110 with the display screen 150, the camera and other peripheral devices. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the display screen 150 communicate through the DSI interface to realize the display function of the electronic device.

[0057] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with a camera, a display screen 150, a wireless communication module, an audio module, a touch sensor module 130, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0058] It is understandable that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation of 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.

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

[0060] The power management module 130 is used to connect the battery 140, the charging management module 120 and the processor 110. The power management module 130 receives input from the battery 140 and / or the charging management module 120, and provides power to the processor 110, the internal memory 170, the display screen 150, and the camera. The power management module 130 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 130 can also be set in the processor 110. In other embodiments, the power management module 130 and the charging management module 120 can also be set in the same device.

[0061] The electronic device implements the display function through a GPU, a display screen 150, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 150 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.

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

[0063] A series of graphical user interfaces (GUIs) can be displayed on the display screen 150 of the electronic device, and these GUIs are the main screens of the electronic device. Generally speaking, the size of the display screen 150 of the electronic device is fixed, and only limited controls can be displayed on the display screen 150 of the electronic device. A control is a GUI element, which is a software component included in an application program, and controls all data processed by the application program and interactive operations on the data. Users can interact with the control through direct manipulation to read or edit relevant information of the application program. Generally speaking, a control can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.

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

[0065] The electronic device can realize video playback through a video codec, a GPU, a display screen 150 and an application processor.

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

[0067] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

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

[0069] The internal memory 170 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 170. For example, in this embodiment, the processor 110 can judge whether the time difference between the screen-on moment and the refresh rate switching moment is within a preset range by executing the instructions stored in the internal memory 170. The internal memory 170 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 sound playback function, an image playback function, etc.). The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.). In addition, the internal memory 170 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. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 170, and / or the instructions stored in the memory provided in the processor.

[0070] The key 180 includes a power key, a volume key, etc. The key 180 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.

[0071] In addition, an operating system is running on the above components, such as the iOS operating system developed by Apple, the Android open source operating system developed by Google, and the Windows operating system developed by Microsoft. Application programs can be installed and run on the operating system.

[0072] The operating 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 embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.

[0073] Figure 3B It is a software structure block diagram of the electronic device according to an embodiment of the present application.

[0074] 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: the application layer, the application framework layer (or framework layer), the Android runtime and system library, the hardware abstraction layer, and the kernel layer. For ease of explanation, Figure 3BThe software structure diagram of the electronic device shown also includes Figure 3A The hardware structure in the system, such as display, touch hardware, processor, and GPU.

[0075] The application layer can include a series of application packages. Figure 3B As shown, the application package may include SystemUI, Gallery, WLAN, Bluetooth, Music, Video, Short Message and other applications.

[0076] 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 3B As shown, the application framework layer may include power management services, input manager, activity manager, window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0077] Power management service, used to implement process management related to turning on or off the screen of electronic devices.

[0078] The input manager is used to manage input device programs. For example, the input system can determine input operations such as mouse click operations, keyboard input operations, and touch slide operations.

[0079] The activity manager is used to manage the life cycle of each application and the navigation back function. It is responsible for creating the Android main thread and maintaining the life cycle of each application.

[0080] The window manager (WMS) is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0081] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

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

[0083] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).

[0084] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0085] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0086] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0087] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0088] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

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

[0090] The image synthesis system is used to control image synthesis and generate vertical synchronization (Vsync) signals. Specifically, its main function is to receive graphics data buffers from multiple sources, synthesize them, and then send them to the display hardware (touch screen); at the same time, the image synthesis system is also responsible for error synchronization with the hardware HW-VSync signal and simulation of the software VSync signal, including SF-VSync and APP-VSync signals; the synthesizer flow control, signal simulator and connection manager collaborate to notify the VSync signal to the application and SurfaceFlinger itself.

[0091] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0092] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

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

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

[0095] The hardware abstraction layer may include multiple library modules, such as hardware composer (HWC), camera library module, etc. The Android system may load the corresponding library module for the device hardware, thereby enabling the application framework layer to access the device hardware.

[0096] The hardware composer (HWC) mainly provides hardware support for the image synthesis system, supporting layer synthesis and display modules.

[0097] The kernel layer is the layer between hardware and software. The kernel layer includes at least the touch panel (TP) driver, display driver, Bluetooth driver, WIFI driver, keyboard driver, shared memory driver, ambient light sensor driver and camera driver.

[0098] The display driver can use the API to transmit instructions and data to the graphics processing unit (GPU) or dedicated graphics processing hardware and perform operations such as 3D rendering, video decoding, and GPU computing. The hardware may include display screens, touch hardware, processors, GPUs, etc.

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

[0100] Embodiment 1:

[0101] Combine the following Figure 4, a method for bright screen display provided in an embodiment of the present application is introduced in detail. Among them, the electronic device 100 carries a touch screen composed of a touch sensor and a display screen, and the electronic device 100 is in a powered-on state. And the touch screen of the electronic device 100 is in a screen-off state, that is, the display screen of the electronic device 100 is off, and the TP firmware is in a dormant state. When the electronic device 100 is in the process of bright screen display, a corresponding display refresh rate switching action will be performed, generally from a lower display refresh rate to a higher display refresh rate. In an embodiment of the present application, it is explained by taking the example of when the electronic device 100 is in the process of bright screen display, the display refresh rate switches from the first display refresh rate to the second display refresh rate, and the first display refresh rate and the second display refresh rate correspond to different touch sampling rates (that is, corresponding to different touch firmware).

[0102] S401: The power button detects a user operation and sends a screen-on operation to a power management service.

[0103] The power management service is located in the application framework layer of the operating system of the electronic device 100 .

[0104] User operation refers to a screen-on operation of the electronic device 100 triggered by the user. When the electronic device 100 is in the screen-off state, the user's triggering operation of the power button can be understood as the screen-on operation. Exemplarily, the user operation can be a pressing operation, or a touch operation, etc.

[0105] It should be noted that in the embodiments of the present application, the power button receiving a user operation is taken as an example for explanation. The user operation may be pressing the power button, touching the power button, etc., to trigger the electronic device 100 to light up the screen. In addition, the touch screen may also receive a user operation. The user operation may be double-clicking the touch screen of the electronic device 100 to trigger the electronic device 100 to light up the screen. As long as the operation to trigger the screen to light up is pre-configured / set by the electronic device, this application does not make any specific limitations.

[0106] S402: In response to the screen-lighting operation, the power management service sends screen-lighting instruction information to the image synthesis system.

[0107] The image synthesis system is located in the system library of the operating system of the electronic device 100 .

[0108] Among them, the screen-on indication information is used to indicate that the electronic device 100 is about to enter the screen-on state. That is, it is used to instruct the image synthesis system to execute the screen-on process of the electronic device 100. The screen-on process is set in advance before the electronic device 100 leaves the factory. In the embodiment of the present application, during the screen-on process of the electronic device 100, a corresponding high refresh operation will be performed to ensure the performance of the touch screen, so the screen-on process of the electronic device 100 at least includes: synthesizing a first screen-on display image according to a first display refresh rate - setting a second display refresh rate - synthesizing a second screen-on display image according to the second display refresh rate. The first screen-on display image and the second screen-on display image are only different in display refresh rate.

[0109] In one possible implementation, the power management service responds to the screen-on operation by sending screen-on information to the image composition system through a binder, where the binder is a new type of inter-process communication (IPC) that can achieve data transfer between two processes with only one data copy.

[0110] S403: In response to the bright screen indication information, the image synthesis system synthesizes a first bright screen display image according to the first display refresh rate.

[0111] Specifically, the image synthesis system triggers the application corresponding to the application layer of the operating system of the electronic device 100 to draw image data, and the corresponding application sends the drawn and rendered image data to the image synthesis system. The image synthesis system synthesizes the image data according to the first display refresh rate to obtain a first bright screen display image.

[0112] For ease of understanding, the following example is taken as an example of first displaying the system desktop of the electronic device 100 after the screen of the electronic device 100 is turned on. The image synthesis system triggers the SystemIU of the application layer of the operating system of the electronic device 100 to draw the system desktop image data of the electronic device 100, and then the SystemIU sends the drawn system desktop image data to the image synthesis system (SF), and the image synthesis system synthesizes the system desktop image data according to the first display refresh rate to obtain the bright screen display image.

[0113] S404: The image synthesis system sends a first bright screen display image to a hardware synthesizer (HWC).

[0114] The hardware synthesizer is located in the hardware abstraction layer of the operating system of the electronic device 100 .

[0115] Specifically, the image synthesis system sends the first bright screen display image to the hardware synthesizer through HIDL, where HIDL stands for Hardware Abstraction Layer Interface Definition Language (HAL interface definition language, HIDL), which is the interface language between the system library and the hardware abstraction layer in the operating system.

[0116] Optionally, the first screen-on display image may be carried in the screen-on state information and sent to the hardware synthesizer.

[0117] S405: When the hardware synthesizer receives the first screen-lit display image, it records the current system time as the screen-lit moment.

[0118] Specifically, when the hardware synthesizer receives the first screen-lit display image, it records the current system time by recording the flag bit, and the recorded current system time is the screen-lit moment. That is, the hardware synthesizer records the current system time when the first screen-lit display image is received as the screen-lit moment.

[0119] S406: When recording the screen-on time, the hardware synthesizer simultaneously sends a first screen-on display image to the display driver.

[0120] The display driver is located in the kernel layer of the operating system of the electronic device 100 and is used to control the touch screen to light up and display a first light-up display image.

[0121] After the above S403 is performed, the image synthesis system continues the screen lighting process of the electronic device 100 .

[0122] S407: The image synthesis system sets a second display refresh rate.

[0123] In order to ensure the screen state of the electronic device 100, when the electronic device 100 enters the screen-on state from the screen-off state, the corresponding high refresh operation is performed, that is, switching the lower display refresh rate to the higher display refresh rate. In the embodiment of the present application, the electronic device 100 switches the first display refresh rate to the second display refresh rate during the screen-on display process, and the first display refresh rate and the second display refresh rate are pre-configured. In the embodiment of the present application, the first display refresh rate and the second display refresh rate correspond to different touch sampling rates, and then correspond to different touch firmware, that is, the first display refresh rate and the second display refresh rate are cross-code display refresh rates.

[0124] S408: The image synthesis system synthesizes a second bright screen display image according to the second display refresh rate.

[0125] Specifically, the image synthesis system triggers the application corresponding to the application layer of the operating system of the electronic device 100 to draw image data, and the corresponding application sends the drawn and rendered image data to the image synthesis system. The image synthesis system synthesizes the image data according to the second display refresh rate to obtain a second bright screen display image.

[0126] S409: The image synthesis system sends a second bright screen display image to the hardware synthesizer (HWC).

[0127] Specifically, the image synthesis system sends the first bright screen display image to the hardware synthesizer through HIDL.

[0128] S410: When the hardware synthesizer receives the second bright screen display image, it records the current system time as the refresh rate switching time.

[0129] The refresh rate switching moment is the current system moment when the hardware synthesizer receives the second bright screen display image.

[0130] S411. The hardware synthesizer determines whether the time difference between the refresh rate switching moment and the screen lighting moment is within a preset range.

[0131] The preset range is set in advance according to the screen-on time required by the electronic device 100 and the time to load the touch firmware. Exemplarily, the preset range can be 600ms. Since the time required for the touch screen of the electronic device 100 to turn on is about 300ms and the time for loading the TP firmware of the electronic device 100 is about 300ms, the preset range can be set to 600ms. Depending on the configuration of the electronic device 100, the size of the preset range may vary, depending on the actual situation, and this application does not make specific limitations.

[0132] If yes, proceed to S412; if no, proceed to S413.

[0133] S412: The hardware synthesizer sends the second bright screen display image to the display driver.

[0134] Specifically, after the hardware synthesizer sends the synthesized second bright screen display image to the display driver, the display driver drives the display screen to display the second bright screen display image. That is, the display of the electronic device 100 is switched from the first bright screen display image to the second bright screen display image, and the display refresh rate of the electronic device 100 is switched from the first display refresh rate to the second display refresh rate, thereby switching the display refresh rate of the electronic device 100.

[0135] It should be noted that the first display refresh rate is switched to the second display refresh rate only after the hardware synthesizer sends the second bright screen display image to the display driver, that is, the cross-code display refresh rate switching is realized during the bright screen display process.

[0136] When the hardware synthesizer determines that the time difference between the refresh rate switching moment and the screen lighting moment is not within the preset range, it means that the electronic device has completed the touch screen lighting and the loading of the TP firmware. Since the loading of the TP firmware has been completed, the cross-code refresh rate switching will not interrupt the loading of the TP firmware, thereby not causing the electronic device to freeze the screen, and the touch screen display refresh rate switching can be achieved normally.

[0137] S413: The hardware synthesizer returns a refresh rate switching abnormal state to the image synthesis system.

[0138] When the hardware synthesizer determines that the time difference between the refresh rate switching moment and the screen lighting moment is within the preset range, it means that the electronic device has not completed the touch screen lighting and the loading of the TP firmware, that is, the TP firmware is still in the loading process. If the refresh rate is switched across codes at this time, the currently ongoing TP firmware loading will be interrupted and the TP firmware will be loaded again. However, the refresh rate switching across codes will not affect the touch screen lighting display, which will cause the electronic device 100 to freeze the screen.

[0139] In this case, the hardware synthesizer returns the abnormal refresh rate switching status to the image synthesis system and does not send the second bright screen display image to the display driver, thereby interrupting the cross-code refresh rate switching of the electronic device 100, avoiding the screen freezing phenomenon caused by the interruption of the currently ongoing TP firmware loading due to the cross-code refresh rate switching.

[0140] When the display driver does not receive the second bright screen display image sent by the hardware synthesizer, the display refresh rate of the touch screen will not be switched, so the loading of the TP firmware will not be interrupted. That is, if the second bright screen display image is not sent to the display driver, the switching of the display refresh rate will be interrupted.

[0141] In a possible implementation, when the hardware synthesizer returns the abnormal refresh rate switching state to the image synthesis system, the display driver still controls the touch screen of the electronic device 100 to display the first bright screen display image.

[0142] In one possible implementation, after receiving the abnormal refresh rate switching state, the image synthesis system resets the second display refresh rate in response to the abnormal refresh rate switching state, that is, performs S407 to S412 again until the time when the screen is turned on and the time when the refresh rate is switched are no longer within a preset range, and sends the second screen display image to the display driver, thereby realizing the display refresh rate switching operation of the electronic device and ensuring the screen state of the electronic device.

[0143] In a possible implementation, when the image synthesis system receives a refresh rate switching abnormal state, it directly abandons switching of the display refresh rate of the electronic device 100 .

[0144] An embodiment of the present application provides a method for bright screen display. In response to a user's screen brightening operation on an electronic device, a second display refresh rate is set, and a second bright screen display image is synthesized according to the second display refresh rate; it is determined whether the time difference between the moment when a hardware synthesizer receives the second bright screen display image (i.e., the refresh rate switching moment) and the screen brightening moment is within a preset range. If it is within the preset range, it indicates that the refresh rate switching is abnormal, and the electronic device still displays the first bright screen display image; if it is not within the preset range, the electronic device displays the second bright screen display image. Among them, the screen-on time is the current system time when the hardware synthesizer receives the first screen-on display image. If the time difference between the time when the hardware synthesizer receives the second screen-on display image and the screen-on time is within a preset range, it means that the TP firmware has not been loaded. If the refresh rate is switched across codes, the TP firmware loading will be interrupted and reloaded, which will cause the electronic device to freeze. When the time difference is within the preset range, the refresh rate switching across codes is prohibited; if the time difference between the time when the hardware synthesizer receives the second screen-on display image and the screen-on time is not within the preset range, it means that the TP firmware has been loaded. If the refresh rate is switched across codes, the TP firmware loading will not be interrupted, and the screen display of the electronic device will switch from the first screen display image to the second screen display image, completing the switching of the display refresh rate across codes. The time difference between the screen-on moment and the refresh rate switching moment is used to determine whether the touch firmware loading is completed during the screen-on display process. When the time difference is within the preset range, it means that the touch firmware has not been loaded, and the first screen display image is continuously displayed without switching the display refresh rate. This avoids the screen freezing phenomenon of the electronic device caused by the interruption of the touch firmware loading due to the switching of the display refresh rate, thereby improving the user experience.

[0145] Embodiment 2:

[0146] Combine the following Figure 5 , another method for bright screen display provided by an embodiment of the present application is introduced in detail. The method is applied to an electronic device, the touch screen of the electronic device supports a first display refresh rate and a second display refresh rate, and the first display refresh rate and the second display refresh rate correspond to different touch sampling rates, respectively, then the first display refresh rate and the second display refresh rate correspond to different TP firmwares, and the first display refresh rate and the second display refresh rate belong to cross-code display refresh rates. When the electronic device is in the process of bright screen display, the action of switching the first display refresh rate to the second display refresh rate will be executed.

[0147] S501. In response to a screen-lighting operation of the user on the electronic device, the screen is turned on and a first screen-lighting display image is displayed, and the screen-lighting time of the electronic device is recorded.

[0148] The user's screen-lighting operation for the electronic device may be a user clicking a power button of the electronic device, or a user double-clicking the touch screen surface of the electronic device, etc., which can wake up the electronic device and light up the screen.

[0149] The first bright screen display image is a display image synthesized according to the first display refresh rate.

[0150] Specifically, the power management service of the electronic device sends screen-lighting indication information to the image synthesis system of the electronic device in response to the user's screen-lighting operation on the electronic device; the image synthesis system of the electronic device synthesizes a first screen-lighting display image according to a first display refresh rate in response to the screen-lighting indication information; and sends the first screen-lighting display image to the hardware synthesizer of the electronic device; the hardware synthesizer of the electronic device records the current system time when the first screen-lighting display image is received as the screen-lighting moment; and simultaneously sends the first screen-lighting display image to the display driver; the display driver controls the touch screen of the electronic device to light up the screen and display the first screen-lighting display image.

[0151] Among them, the power management service is located in the application framework layer of the operating system of the electronic device; the image synthesis system is located in the system library of the operating system of the electronic device; the hardware synthesizer is located in the hardware abstraction layer of the operating system of the electronic device; and the display driver is located in the kernel layer of the operating system of the electronic device.

[0152] The screen-on time is the current system time when the hardware synthesizer receives the first screen-on display image.

[0153] S502: During display of the first bright screen display image, switch the display refresh rate of the electronic device from the first display refresh rate to the second display refresh rate, and record the refresh rate switching time of the electronic device.

[0154] Specifically, after the image synthesis system synthesizes the first bright screen display image according to the first display refresh rate, the display refresh rate of the electronic device is set to the second display refresh rate to switch the display refresh rate of the electronic device from the first display refresh rate to the second display refresh rate; according to the second display refresh rate, the second bright screen display image is synthesized and sent to the hardware synthesizer; the hardware synthesizer records the current system time when the second bright screen display image is received as the refresh rate switching moment.

[0155] The refresh rate switching moment is the current system time when the hardware synthesizer receives the second bright screen display image.

[0156] S503, determining whether the time difference between the refresh rate switching moment and the screen lighting moment is within a preset range;

[0157] Specifically, the hardware synthesizer of the electronic device determines whether the time difference between the refresh rate switching moment and the screen lighting moment is within a preset range.

[0158] If yes, proceed to S504; if no, proceed to S505.

[0159] By judging whether the time difference between the refresh rate switching moment and the screen lighting moment is within a preset range, it is predicted whether the electronic device has completed the TP firmware loading; if the time difference is within the preset range, it means that the electronic device has not completed the TP firmware loading; if the time difference is not within the preset range, it means that the electronic device has completed the TP firmware loading.

[0160] S504: When the time difference between the refresh rate switching moment and the screen-on moment is within a preset range, keep displaying the first screen-on display image.

[0161] When the time difference between the refresh rate switching moment and the screen lighting moment is within the preset range, it means that the electronic device has not completed the TP firmware loading. If the touch screen of the electronic device is controlled to display the second screen display image at this time to switch the display refresh rate, the loading of the TP firmware being loaded will be interrupted, and then the corresponding TP firmware will be reloaded, resulting in the electronic device freezing the screen. Therefore, in the embodiment of the present application, the first screen display image is maintained, and the second screen display image is not displayed, that is, the display refresh rate is not switched, so the loading of the TP firmware being loaded will not be interrupted, thereby avoiding the freezing of the electronic device caused by the switching of the display refresh rate across codes.

[0162] In one possible implementation, when the time difference between the refresh rate switching moment and the screen lighting moment is within a preset range, the hardware synthesizer will return the refresh rate switching abnormal status to the image synthesis system, thereby notifying the image synthesis system that the refresh rate switching has failed.

[0163] In one possible implementation, the image synthesis system of the electronic device responds to an abnormal state of the refresh rate switching by resetting the display refresh rate of the electronic device to a second display refresh rate until the hardware synthesizer determines that the time difference between the screen lighting moment and the refresh rate switching moment is not within a preset range, thereby achieving the switching of the display refresh rate.

[0164] In one possible implementation, the image synthesis system of the electronic device directly abandons switching of the display refresh rate in response to an abnormal state of the refresh rate switching.

[0165] S505: When the time difference between the refresh rate switching moment and the screen-on moment is not within a preset range, display a second screen-on display image.

[0166] Specifically, when the time difference between the refresh rate switching moment and the screen lighting moment is not within a preset range, the hardware synthesizer of the electronic device sends the second screen lighting display image to the display driver of the electronic device; the display driver controls the touch screen of the electronic device to display the second screen lighting display image, thereby realizing the switching of the display refresh rate.

[0167] When the time difference between the refresh rate switching moment and the screen lighting moment is within the preset range, it means that the electronic device has completed the TP firmware loading. If the touch screen of the electronic device is controlled to display the second screen display image at this time to realize the switching of the display refresh rate, it will not cause the loading of the TP firmware being loaded to be interrupted. At this time, the second screen display image is displayed, which will not cause the electronic device to freeze the screen. Therefore, the second screen display image is displayed to realize the switching of the display refresh rate. The embodiment of the present application provides a screen display method, including: in response to the user's screen lighting operation on the electronic device, the screen is lit and a first screen display image is displayed, and the screen lighting moment of the electronic device is recorded; in the process of displaying the first screen display image, the display refresh rate of the electronic device is switched from the first display refresh rate to the second display refresh rate, and the refresh rate switching moment of the electronic device is recorded; it is determined whether the time difference between the refresh rate switching moment and the screen lighting moment is within the preset range; when the time difference between the refresh rate switching moment and the screen lighting moment is within the preset range, the first screen display image is maintained. The present application determines whether the TP firmware has been loaded during the screen display process by judging the time difference between the recorded screen-on moment and the recorded refresh rate switching moment, and comparing it with a preset time range. When the time difference is within the preset range, it means that the TP firmware has not been loaded, so the first screen display image is maintained and the display refresh rate is not switched, thereby avoiding the interruption and reloading of TP firmware loading due to the switching of the display refresh rate, thereby avoiding the screen freezing phenomenon of the electronic device caused by the switching of the display refresh rate.

[0168] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is executed, the electronic device implements the above-mentioned functions or steps.

[0169] An embodiment of the present application also provides a computer program product, including a computer program or instructions, which, when executed by a processor, enables an electronic device to implement the above-mentioned functions or steps.

[0170] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A bright screen display method, characterized in that: Applied to an electronic device, the touch screen of the electronic device supports a first display refresh rate and a second display refresh rate; The first display refresh rate and the second display refresh rate correspond to different touch sampling rates respectively; the method comprises: Receive the user's screen-lighting operation; In response to the screen-lighting operation, the screen is lit up and a first image is displayed; the first image is a display image synthesized according to the first display refresh rate; During display of the first image, switching a display refresh rate of the electronic device from the first display refresh rate to the second display refresh rate; Determine whether the time difference between the moment when the first display refresh rate is switched to the second display refresh rate and the moment when the screen is turned on is less than a preset threshold; wherein the preset threshold is pre-set according to the screen turn-on time of the touch screen and the loading time of the touch firmware; When the time difference is less than the preset threshold, maintaining display of the first image; When the time difference is not less than the preset threshold, a second image is displayed; the second image is a display image synthesized according to the second display refresh rate.

2. The method according to claim 1, characterized in that: The screen-lighting operation of the user includes: a triggering operation of the power button by the user.

3. The method according to claim 1, characterized in that: In response to the screen lighting operation, lighting up the screen and displaying the first image, comprises: The power management service sends screen-lighting indication information to the image synthesis system in response to the screen-lighting operation; the power management service is located in the application framework layer of the operating system of the electronic device; the image synthesis system is located in the system library of the operating system of the electronic device; The image synthesis system synthesizes the first image according to the first display refresh rate in response to the screen-lighting indication information; The image synthesis system sends the first image to a hardware synthesizer; the hardware synthesizer is located in a hardware abstraction layer of an operating system of the electronic device; The hardware synthesizer sends the first image to a display driver; the display driver is located in the kernel layer of the operating system of the electronic device; The display driver controls the touch screen to light up and display the first image.

4. The method according to claim 3, characterized in that The step of switching the display refresh rate of the electronic device from the first display refresh rate to the second display refresh rate during displaying the first image includes: After the image synthesis system synthesizes the first image according to the first display refresh rate, the display refresh rate of the electronic device is set to a second display refresh rate; The image synthesis system synthesizes the second image according to the second display refresh rate; The image synthesis system sends the second image to a hardware synthesizer of the electronic device to switch the display refresh rate of the electronic device from the first display refresh rate to the second display refresh rate.

5. The method according to claim 4, characterized in that The screen lighting time is: the current system time when the hardware synthesizer receives the first image, and the time of switching from the first display refresh rate to the second display refresh rate is: the current system time when the hardware synthesizer receives the second image; The determining whether a time difference between a moment when the first display refresh rate is switched to the second display refresh rate and a moment when the screen is turned on is less than a preset threshold includes: The hardware synthesizer determines whether a time difference between a moment of switching from the first display refresh rate to the second display refresh rate and a moment of lighting up the screen is less than a preset threshold.

6. The method according to claim 5, characterized in that When the time difference is less than the preset threshold, the method further includes: The hardware synthesizer returns a refresh rate switching abnormal state to the image synthesis system.

7. The method according to claim 6, characterized in that The method further comprises: In response to the abnormal state of the refresh rate switching, the image synthesis system resets the display refresh rate of the electronic device to the second display refresh rate.

8. The method according to claim 4, characterized in that When the time difference is not less than the preset threshold, displaying the second image includes: When the time difference is not less than the preset threshold, the hardware synthesizer sends the second image to the display driver; The display driver controls the touch screen to display the second image.

9. An electronic device, characterized in that: including a processor and a memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method according to any one of claims 1 to 8 is implemented.