Display control method, electronic equipment and storage medium
By splitting the issuance of 11 commands and 29 commands, the simultaneous delivery of pictures and backlight parameters during power-on and initialization of the display screen IC is realized, solving the problem of long-term wake-up of the display screen, and improving the screen brightness speed and user Experience.
Patent Information
- Application Number
- CN202310857487.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-12
- Publication Date
- 2025-01-14
AI Technical Summary
The display screen of existing electronic devices takes a long time to wake up from the sleep state, and the screen light is slow, which affects the user experience.
By splitting the issuance of 11 commands and 29 commands in the display driver, the power-up and initialization process of the display screen IC are performed in advance, and the image sending and backlight parameters are issued simultaneously during this process, shortening the display wake-up process Time-consuming.
It significantly shortens the time-consuming process of display wake-up, improves the screen brightness speed, and improves the user experience.
Smart Images

Figure CN119314427A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a display control method, an electronic device and a storage medium. Background Art
[0002] With the rapid development of electronic technology, electronic devices such as smart phones and tablets have more and more functions and have become indispensable tools in people's lives and work. Taking mobile phones as an example, users can turn on or off the display of their mobile phones at any time according to actual usage needs. For example, when the screen of the mobile phone is off, the user can trigger the mobile phone to light up the display by pressing the power button, double-clicking the screen, etc. The display is awakened from the sleep state and switched to the bright screen state, at which time all pixels of the display are illuminated. After the display is awakened, the display can display the lock screen interface or the system desktop.
[0003] Currently, when the display screen of an electronic device is awakened from a sleep state, there are problems such as a long awakening time and a slow screen lighting. Summary of the invention
[0004] The present application provides a display control method, an electronic device and a storage medium, which shorten the time consumption of the display screen wake-up process, increase the screen lighting speed, and thus improve the user experience.
[0005] In a first aspect, the present application provides a display control method, which is applied to an electronic device including a display screen, wherein the display screen is provided with a first display integrated chip IC, and the method comprises:
[0006] When the preset conditions are met, the display driver receives a power-on instruction from the power management service module; in response to the power-on instruction, the display driver triggers the first display IC to power on, and sends a start instruction to the first display IC, the start instruction is used to instruct the first display IC to initialize; the display driver returns a completion message to the power management service module, the completion message is used to indicate that the first display IC has completed power-on and initialization; the display driver receives a bright screen pattern and sends the bright screen pattern to the first display IC; the display driver receives backlight parameters; when the first timing duration is greater than or equal to the first preset duration, the display driver sends a preparation instruction to the first display IC, the preparation instruction is used to instruct the display screen integrated chip IC to complete initialization; the first timing duration is the duration from the start of the start instruction being issued; the display driver sends the backlight parameters to the first display IC to trigger the first display IC to light up the display screen according to the backlight parameters and control the display screen to display the bright screen pattern.
[0007] Through the display control method provided in the embodiment of the present application, when the preset conditions are met, the display screen is notified to power on, a start command is issued to trigger the initialization of the display screen, and a completion message is immediately returned, triggering processes such as sending pictures and sending backlight parameters. Then, when the delay conditions are met, the display driver sends a preparation command to the display screen to indicate that the initialization is complete. The display screen is then lit according to the backlight parameters, and the display screen displays the lock screen interface, thereby waking up the display screen. The present application scheme splits the start command and the preparation command and sends them down, so that while the display screen is powered on and initialized, steps such as sending pictures and sending backlight parameters are executed, thereby shortening the time consumption of the display screen wake-up process and improving the screen lighting speed.
[0008] The first preset duration is related to the hardware specification of the first display IC.
[0009] Exemplarily, for the first display IC, the first preset time length may be 120 milliseconds (ms).
[0010] The start instruction may be instruction 11, which is used to instruct the display screen IC (or display IC) to start parameter configuration initialization after power is turned on. The preparation instruction may be instruction 29, which is used to indicate that the display screen IC parameter configuration initialization has been completed. After the initialization is completed, the display screen IC can work normally, for example, it can control the display screen to light up, and it can control the display screen to display content.
[0011] In actual implementation, instruction 11 is usually issued first, and then instruction 29 is issued, so as to complete the power-on and parameter configuration initialization of the display IC. It should be noted that after instruction 11 is issued, the display IC parameter configuration is initialized, and the initialization process takes a certain amount of time. Therefore, after instruction 11 is issued, it is necessary to wait for a preset interval and then issue instruction 29 to ensure that the display IC parameter configuration initialization is completed.
[0012] It should be noted that the display driver sends instructions 11 and 29 to the display IC in sequence at a preset time interval (ie, the first preset duration), which means that the display IC has completed initialization and is ready to execute the display task sent by the display driver.
[0013] It should be noted that for different types of display screen ICs, the preset interval durations specified for instructions 11 and 29 are different. Exemplarily, for the first display IC, the preset interval duration specified for instructions 11 and 29 is 120ms. That is to say, after instruction 11 is issued, instruction 29 is issued after an interval of 120ms. Moreover, the time difference between the issuance time of instruction 29 and the screen-on time is 0ms, that is, after instruction 29 is issued, the screen-on time is triggered immediately. Among them, the time difference between the issuance time of instruction 11 and the screen-on time is 120ms. Among them, the specific value of the first preset duration can be determined according to actual usage requirements, and the embodiments of the present application are not limited thereto.
[0014] In the related technology, after the user triggers the screen to light up by pressing the power button, the display IC needs to be powered on and initialized first (time T1); after the display IC is powered on and initialized, the image is sent (time T2); and the backlight parameters are sent (time T3). In summary, it takes at least T1+T2+T3 to complete the display wake-up process.
[0015] Compared with the related art, in the display screen wake-up process of the present application, after the screen light trigger event occurs, the display driver immediately executes the power-on process, first sends the 11 instruction to trigger the initialization of the display screen IC, and the display driver immediately returns the OK message, thereby triggering the image sending and backlight parameter sending processes. In this way, the image sending process and the backlight parameter sending process can be executed while the display screen is initialized.
[0016] Then, after the display driver receives the lock screen interface and the backlight parameters, the display driver determines whether the timing duration is greater than or equal to 120ms. If the timing duration is greater than or equal to 120ms, it issues instruction 29. If the timing duration is less than 120ms, it waits for 120ms before issuing instruction 29. Issuing instruction 29 means that the display IC has completed initialization and is ready to execute the display task issued by the display driver. In this case, the display IC can light up the display according to the backlight parameters and control the display to display the lock screen interface, thereby completing the display wake-up.
[0017] In this application, it takes T1 (120ms) to complete the power-on and initialization of the display IC. When the display IC is powered on and initialized, the image is sent and the backlight parameters are sent. In summary, it takes at least T1 (120ms) or slightly more than T1 (120ms) to complete the display wake-up process.
[0018] Since in the display screen wake-up process of the present application, the process of powering on and initializing the display screen is carried out simultaneously with the process of sending images and sending backlight parameters, the time consumption of the display screen wake-up process is significantly shortened. Therefore, the display control method provided in the embodiment of the present application can greatly shorten the time required to wake up the display screen and improve the user experience.
[0019] In some possible implementations, after the display driver receives the backlight parameters, the method further includes: when the first timing duration is less than the first preset duration, waiting until the first timing duration is greater than or equal to the first preset duration, and the display driver sends a preparation instruction to the first display IC.
[0020] In some possible implementations, the method further includes: in response to the completion message, the power management service module sends a screen pattern and backlight parameters to the first display IC. In some embodiments, the completion message may be a message indicating that the display screen has completed powering on and initialization. In other embodiments, the completion message may be a message indicating that the display screen has completed powering on.
[0021] In some possible implementations, in response to the completion message, the power management service module sends a screen-lighting pattern to the first display IC, including: in response to the completion message, the power management service module notifies the drawing module to send the screen-lighting pattern; the power management service module receives the screen-lighting pattern from the drawing module and sends the screen-lighting pattern to the first display IC.
[0022] The screen-lit pattern may be a lock screen interface or a system desktop.
[0023] In some possible implementations, the method further includes: when a preset condition is met, the power management service module notifies the drawing module to draw a bright screen pattern.
[0024] In some possible implementations, in response to the completion message, the power management service module sends backlight parameters to the first display IC, including: in response to the completion message, the power management service module notifies the backlight module to send the backlight parameters; the power management service module receives the backlight parameters from the backlight module and sends the backlight parameters to the first display IC.
[0025] In some possible implementations, the method further includes: the backlight module determines a backlight parameter according to the ambient light brightness of the environment in which the electronic device is located. For example, the value range of the backlight parameter is (0, 255).
[0026] In some possible implementations, the power-on instruction is sent by the power management service module, transmitted through the surface drawing SurfaceFlinger service module and the hardware synthesis HWC module, and reaches the display driver.
[0027] In some possible implementations, the completion message is sent by the display driver, transmitted through the HWC and SurfaceFlinger service modules, and reaches the power management service module.
[0028] In some possible implementations, the preset condition is: when the display screen is in the off state, a user presses the power button; or when the display screen is in the off state, a user performs a preset operation on the display screen. The preset condition is also called a screen-on trigger condition.
[0029] In a second aspect, the present application provides a display control method, which is applied to an electronic device including a display screen, wherein the display screen is provided with a second display IC, and the method comprises:
[0030] When the preset conditions are met, the display driver receives a power-on instruction from the power management service module; in response to the power-on instruction, the display driver triggers the second display IC to power on and sends a start instruction to the second display IC, wherein the start instruction is used to instruct the second display IC to initialize; the display driver returns a completion message to the power management service module; the display driver receives a bright screen pattern and sends the bright screen pattern to the second display IC; the display driver receives a backlight parameter; when the first timing duration is greater than or equal to the second preset duration, the display driver sends a preparation instruction to the second display IC; then, when the first timing duration is greater than or equal to the third preset duration, the display driver sends the backlight parameter to the second display IC to trigger the second display IC to light up the display screen according to the backlight parameter and control the display screen to display the bright screen pattern; the third preset duration is greater than the second preset duration, and the first timing duration is the duration from when the start instruction is issued.
[0031] Through the display control method provided by the embodiment of the present application, after the screen lighting trigger condition is met, the display screen is notified to power on, a start instruction is issued to trigger the initialization of the display screen, and a completion message is immediately returned, triggering processes such as sending pictures and sending backlight parameters. Then, if the delay condition is met, the display driver sends a preparation instruction to the display screen to indicate that the initialization is complete; if the delay condition is not met, the display driver sends a preparation instruction to the display screen after the delay condition is met. The display screen is then lit according to the backlight parameters, and the display screen displays the lock screen interface, thereby waking up the display screen. The present application scheme splits the start instruction and the preparation instruction and sends them down, so that while the display screen is powered on and initialized, steps such as sending pictures and sending backlight parameters are executed, thereby shortening the time consumption of the display screen wake-up process and improving the screen lighting speed.
[0032] The second preset time length and the third preset time length are related to the hardware specifications of the second display IC.
[0033] Exemplarily, for the second display IC, the second preset time length may be 80 milliseconds, and the third preset time length may be 120 milliseconds.
[0034] It should be noted that for display screen ICs provided by different manufacturers, the preset interval durations specified for instructions 11 and 29 are different. For example, for the second display IC, the interval duration between instructions 11 and 29 (the second preset duration) is 80ms, and the time difference between the issuance time of instruction 29 and the screen light-up time is 40ms. In other words, after instruction 11 is issued, instruction 29 will be issued after an interval of 80ms, and after instruction 29 is issued, the screen will be turned on after an interval of 40ms. Among them, the time difference between the issuance time of instruction 11 and the screen light-up time (the third preset duration) is 120ms.
[0035] After the display driver receives the backlight parameters, the method further includes: when the first timing duration is less than the second preset duration, waiting until the first timing duration is greater than or equal to the second preset duration, the display driver sends a preparation instruction to the second display IC.
[0036] It should be noted that the display driver determines whether the first timing duration is greater than or equal to the second preset duration; if the first timing duration is greater than or equal to the second preset duration, the delay condition is met, and the display driver sends a preparation instruction to the display screen to indicate that the initialization is completed; if the first timing duration is less than the second preset duration, the delay condition is not met, and the display driver waits until the first timing duration is greater than or equal to the second preset duration. After the delay condition is met, the display driver sends a preparation instruction to the display screen.
[0037] In some possible implementations, after the display driver sends the preparation instruction to the second display IC, the method further includes: when the first timing duration is less than a third preset duration, waiting until the first timing duration is greater than or equal to the third preset duration, and the display driver sends the backlight parameters to the second display IC.
[0038] In some possible implementations, the method further includes: in response to the completion message, the power management service module sends a screen lighting pattern and backlight parameters to the second display IC.
[0039] In a third aspect, the present application provides a display control device, the device comprising a unit for executing the method in the first aspect. The device may correspond to executing the method described in the first aspect, and the relevant description of the unit in the device can refer to the description of the first aspect, which will not be repeated here for the sake of brevity.
[0040] The method described in the first aspect above can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a processing module or unit, a display module or unit, etc.
[0041] In a fourth aspect, the present application provides an electronic device, comprising a display screen, a processor, a computer program or instructions stored in the processor and a memory, wherein the processor is used to execute the computer program or instructions so that the method in the first aspect is executed.
[0042] In a fifth aspect, the present application provides a computer-readable storage medium on which a computer program (also referred to as instructions or codes) for implementing the method in the first aspect is stored. For example, when the computer program is executed by a computer, the computer can execute the method in the first aspect.
[0043] In a sixth aspect, the present application provides a chip, including a processor. The processor is used to read and execute a computer program stored in a memory to perform the method in the first aspect and any possible implementation thereof. Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.
[0044] In a seventh aspect, the present application provides a chip system, including a processor. The processor is used to read and execute a computer program stored in a memory to perform the method in the first aspect and any possible implementation thereof. Optionally, the chip system also includes a memory, and the memory is connected to the processor via a circuit or wire.
[0045] In an eighth aspect, the present application provides a computer program product, which includes a computer program (also referred to as instructions or codes). When the computer program is executed by an electronic device, the electronic device implements the method in the first aspect.
[0046] It can be understood that the beneficial effects of the second to eighth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1A and Figure 1B A schematic diagram of an application scenario of the display control method provided in an embodiment of the present application;
[0048] Figure 2A and Figure 2B A schematic diagram of an improved process in a display control method provided in an embodiment of the present application;
[0049] Figure 3A and Figure 3BA schematic diagram of the delay parameters between instruction 11 and instruction 29 in the display control method provided in an embodiment of the present application;
[0050] Figure 4A and Figure 4B A schematic diagram comparing the display control method provided in the embodiment of the present application with the related art;
[0051] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0052] Figure 6 A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0053] Figure 7 A flow chart of a display control method provided for related technologies;
[0054] Figure 8 A timing diagram of a display control method provided for related technologies;
[0055] Fig. 9 A schematic diagram of the time consumption of a display control method provided for related technologies;
[0056] Fig.10 A flow chart of a display control method provided in an embodiment of the present application;
[0057] Fig.11 A timing diagram of a display control method provided in an embodiment of the present application;
[0058] Fig. 12A and Fig. 12B A schematic diagram of the time consumption of the display control method provided in an embodiment of the present application;
[0059] Fig.13 Another timing diagram of the display control method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0061] The term "and / or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol " / " in this article indicates that the associated objects are in an "or" relationship, for example, A / B means A or B.
[0062] The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of objects. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two, for example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.
[0063] 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.
[0064] With the rapid development of electronic technology, electronic devices such as smart phones and tablets have more and more functions and have become indispensable tools in people's lives and work. Taking mobile phones as an example, users can turn on or off the display of their mobile phones at any time according to actual usage needs. For example, when the screen of the mobile phone is off, the user can trigger the mobile phone to light up the display by pressing the power button or double-clicking the screen.
[0065] For example, Figure 1A As shown, the display screen of the mobile phone is in a dormant state. When the mobile phone receives an operation of the user pressing the power button (POWER button), the mobile phone can light up the display screen (referred to as turning on the screen).
[0066] For example, Figure 1B As shown, the display screen of the mobile phone is in a dormant state. When the mobile phone receives an operation of double-clicking the display screen by the user, the mobile phone can light up the display screen.
[0067] The display screen is awakened from the sleep state and switched to the bright screen state, at which time all pixels of the display screen are lit. After the display screen is awakened, the display screen can display the lock screen interface or the system desktop.
[0068] Currently, when the display screen of an electronic device is awakened from a sleep state, there are problems such as a long awakening time and a slow screen lighting.
[0069] In order to solve the problem of long wake-up time and slow screen lighting, the embodiment of the present application provides a display control method, which shortens the time of the display screen wake-up process by improving the mobile phone software system to improve the user experience. The optimization solution for quickly waking up the display screen described in the embodiment of the present application can support all current products and adapt to all domestic and overseas versions, with universality and versatility.
[0070] This application mainly studies and improves how to shorten the display screen wake-up process.
[0071] Research has found that the power management service module (PMS module for short) in electronic devices takes a lot of time to process the display screen wake-up process. Figure 2A As shown in the figure, in the display wake-up process, the power management service module takes about 150ms. The reasons are:
[0072] 1) It takes about 100ms for the PMS module to process events such as pressing the power button.
[0073] 2) The PMS module notifies the display driver to execute the power-on process, which takes about 50ms.
[0074] After research and analysis, it was found that the process corresponding to the above-mentioned "PMS module notifies the display driver to execute the power-on process" can be optimized to shorten the wake-up time and increase the screen lighting speed.
[0075] In addition, research has also found that the display screen in electronic devices takes a long time to process the display screen wake-up process. Figure 2B As shown in the figure, in the display screen wake-up process, the integrated circuit (IC) of the display screen will take about 135ms. The reasons are:
[0076] 1) The display IC has strict timing requirements for accessing three power lines and resetting, which takes 35ms.
[0077] 2) Display IC parameter configuration initialization requires about 120ms.
[0078] Among them, the display IC is one of the main control components of the display (also called display panel), and is also called the "brain" of the display. The main function of the display IC is to control the brightness and color of the display, send drive signals and image data to display panels such as LEDs in the form of electrical signals, and control the display to display image data through the drive signal. In other words, the display IC is an integrated circuit that controls the pixels on the display, enabling the display to display images and videos.
[0079] Among them, the three circuits connected to the display IC are power input, display data output and control signal output. Power input refers to converting the power into the voltage required by the display for use by the display; display data output refers to outputting display data to the display; control signal output refers to outputting control signals to the display in order to control the brightness, contrast and other parameters of the display.
[0080] Through research and analysis, it is found that the process corresponding to the above-mentioned "display IC parameter configuration initialization" can be optimized to shorten the display wake-up time and increase the screen lighting speed.
[0081] It should be noted that, with respect to “the PMS module notifies the display driver to execute the power-on process” and “display IC parameter configuration initialization”, the embodiment of the present application provides corresponding process optimization solutions.
[0082] For ease of understanding, instructions 11 and 29 involved in the process of powering on and initializing the display IC in an embodiment of the present application are first described below.
[0083] The 11 instruction is equivalent to the start instruction, which is used to instruct the display IC to start parameter configuration initialization after power is turned on.
[0084] The 29 instruction is equivalent to the ready instruction, which is used to indicate that the initialization of the display IC parameter configuration has been completed. After the initialization is completed, the display IC can work normally, for example, it can control the display screen to light up and control the display content.
[0085] In actual implementation, command 11 is issued first, and then command 29 is issued, so as to complete the power-on and parameter configuration initialization of the display IC. It should be noted that after command 11 is issued, the display IC parameter configuration is initialized, and the initialization process takes a certain amount of time. Therefore, after command 11 is issued, it is necessary to wait for a preset interval and then issue command 29 to ensure that the display IC parameter configuration initialization is completed.
[0086] It should be noted that the display driver sends instructions 11 and 29 to the display IC in sequence according to the preset time interval, which means that the display IC has completed initialization and is ready to execute the display task issued by the display driver. The preset time interval can be determined based on the hardware specifications of the display IC. For different models of display IC, the preset interval durations specified for instructions 11 and 29 are different.
[0087] For example, Figure 3AAs shown, for the display screen IC 1, the preset interval time length for the 11 instruction and the 29 instruction is 120ms. That is, after the 11 instruction is issued, the 29 instruction is issued after an interval of 120ms. In addition, the time difference between the issuance time of the 29 instruction and the screen light time is 0ms, that is, after the 29 instruction is issued, the screen light is triggered immediately. Among them, the time difference between the issuance time of the 11 instruction and the screen light time is 120ms.
[0088] For example, Figure 3B As shown, for the display screen IC 2, the preset interval time length for the 11 instruction and the 29 instruction is 80ms, and the time difference between the issuance time of the 29 instruction and the screen lighting time is 40ms. That is, after the 11 instruction is issued, the 29 instruction will be issued after an interval of 80ms, and after the 29 instruction is issued, the screen will be lit after an interval of 40ms. Among them, the time difference between the issuance time of the 11 instruction and the screen lighting time is 120ms.
[0089] The preset intervals specified for the 11th and 29th instructions are exemplary, and can be set according to actual usage requirements, and are not limited in the embodiments of this application. For ease of explanation, the following embodiments of this application take the example of issuing the 29th instruction after issuing the 11th instruction at an interval of 120ms as an example for exemplary explanation.
[0090] In order to better understand the optimization scheme provided in the embodiments of the present application, Figure 4A and Figure 4B The solution of the embodiment of the present application is compared with the related technology:
[0091] Figure 4A FIG. 2 shows a display screen wake-up process in the related art. Figure 4A As shown, in the display screen wake-up process of the related technology, power is turned on and initialized first, then the image is sent, and finally the backlight parameters are sent.
[0092] Specifically, when the PMS module monitors the screen-on trigger event, the PMS module broadcasts the screen-on trigger event and notifies the display driver to execute the power-on process, which takes about 50ms; then the display IC is powered on and initialized, which takes about 150ms to 170ms. Then, the image sending process is notified to execute, and then the drawing (for example, drawing the lock screen interface) and the image sending process are executed, and then the backlight parameters are notified to be sent, and then the backlight parameters are determined and sent, which takes about 60ms. Finally, the display screen is lit according to the backlight parameters and the lock screen interface (referred to as the screen-on) is displayed on the display screen, thereby waking up the display screen.
[0093] It should be noted that in the related art, instruction 11 is issued first, and instruction 29 is issued after 120ms, thereby completing the power-on and initialization of the display IC. After the initialization is completed, the image sending process and the backlight parameter sending process are executed. Since in the display wake-up process of the related art, power-on and initialization are performed first, and then the image is sent after initialization, and then the backlight parameters are sent, each step is executed in sequence, which makes the display wake-up process take a long time.
[0094] It should be noted that in the related art, instructions 11 and 29 are sent to the display screen in sequence in a program code block or data packet, that is, instructions are sent in sequence through a program code block or data packet: instruction 11 is first sent to the display screen, and instruction 29 is sent to the display screen after 120ms.
[0095] The difference from the related art is that the embodiment of the present application uses two program code blocks to send instructions 11 and 29 to the display screen in sequence, that is: first, instruction 11 is sent through one program code block or data packet, and then instruction 29 is sent through another program code block or data packet after 120ms.
[0096] The embodiment of the present application can realize the simultaneous execution of the process of powering on and initializing the display screen and the process of sending images and issuing backlight parameters by "splitting" the 11 instructions and the 29 instructions. The specific implementation process will be described in detail below.
[0097] Figure 4B The display screen wake-up process in this application is shown. Figure 4B As shown, in the display screen wake-up process of this application, the process of powering on and initializing the display screen is carried out simultaneously with the process of sending images and sending backlight parameters, thereby shortening the time required to wake up the display screen. The optimization solution provided by this application for the display screen wake-up process includes the following three improvements:
[0098] Improvement point 1: When the PMS module monitors the screen-on trigger event, the PMS module immediately notifies the display driver to execute the power-on process, so that the display driver will start the power-on process in advance.
[0099] Improvement point 2: When the PMS module monitors the screen-on trigger event, the PMS module notifies the drawing module in advance to execute the drawing process, so that the drawing module can draw the pattern displayed after the display screen wakes up in advance (taking the lock screen interface as an example), saving time.
[0100] Improvement 3: During the power-on and initialization process of the display IC, instructions 11 and 29 are split and issued in a manner different from that of the related art. In the program code of this application, instructions 11 and 29 are split, and the processing logic is different from that of the related art.
[0101] Specifically, if Figure 4B As shown, the PMS module notifies the display driver in advance to execute the power-on process. After the display driver receives the notification to execute the power-on process, the display driver triggers the display IC to power on, and sends the 11 instruction to the display, and then immediately returns the power-on completion (OK) message to the PMS module. This application starts timing from the issuance of the 11 instruction. After the display receives the 11 instruction, the display starts initialization, where the display initialization includes the display IC initialization and the display panel initialization.
[0102] In addition, after the PMS module receives the completion (OK) message, the PMS module notifies the drawing module and the backlight module (black light, BL) of the completion message, the drawing module sends the drawn lock screen interface to the display screen, and then the backlight module obtains the backlight parameters and sends the backlight parameters to the display driver. Among them, the backlight parameters are determined according to the ambient light brightness. For example, the value range of the backlight parameters is (0, 255].
[0103] In the present application, the process of powering on and initializing the display screen is performed simultaneously with the process of sending images and issuing backlight parameters.
[0104] After the display driver receives the lock screen interface and the backlight parameters, the display driver determines whether the timing duration (denoted as T) is greater than or equal to 120ms.
[0105] If the timing time T is greater than or equal to 120ms, it means that the display IC has completed initialization, and the display driver sends 29 instructions.
[0106] If the timing time T is less than 120ms, it means that the display IC has not completed initialization, and the display driver waits for the timing time T to be equal to 120ms before issuing the 29 instruction.
[0107] When the display IC receives instruction 29, the display IC lights up the display according to the backlight parameters and controls the display to display the lock screen interface, thereby waking up the display.
[0108] It should be noted that in the present application, when the PMS module monitors the screen light trigger event, the PMS module immediately notifies the display driver to execute the power-on process, so that the display driver will start the power-on process in advance. The display driver first issues the 11 instruction, and while the display IC is initialized, it executes the image sending process and the backlight parameter sending process. After the display driver receives the image of the lock screen interface and receives the backlight parameters, it determines whether the time from issuing the 11 instruction reaches 120ms. If it reaches 120ms, issue the 29 instruction. If it does not reach 120ms, wait until it reaches 120ms before issuing the 29 instruction. Because in the display screen wake-up process of the present application, the process of powering on and initializing the display screen is carried out simultaneously with the process of sending the image and sending the backlight parameters, the time consumption of the display screen wake-up process is significantly shortened.
[0109] Through the display control method provided by the embodiment of the present application, after the screen light triggering condition is met, the display screen is notified to power on, and the 11 instructions are issued to trigger the initialization of the display screen, and the completion message is immediately returned, triggering the process of sending pictures and sending backlight parameters. Then, it is determined whether the duration of the issuance of the 11 instructions meets the delay condition. If the delay condition is met, the display driver sends the 29 instructions to the display screen to indicate that the initialization is completed; if the delay condition is not met, the display driver sends the 29 instructions to the display screen after the delay condition is met. The display screen is then lit according to the backlight parameters, and the display screen displays the lock screen interface, thereby waking up the display screen. The present application solution splits the 11 instructions and the 29 instructions and sends them down, so that while the display screen is powered on and initialized, the steps of sending pictures and sending backlight parameters are executed, which shortens the time consumption of the display screen wake-up process and improves the screen light speed.
[0110] It should be noted that the above-mentioned screen lighting trigger event refers to pressing the power button to trigger the screen to light up, or double-clicking the screen to trigger the screen to light up, or an event that triggers the screen to light up in other ways, such as raising your hand above the screen to light up the screen. The specific event can be determined based on actual usage requirements and is not limited in the embodiments of this application.
[0111] The display control method provided in the embodiment of the present application can be applied to the scenario of triggering the screen to light up by pressing the power button, or the scenario of triggering the screen to light up by double-clicking the screen. For the convenience of explanation, the following embodiment will take the scenario of triggering the screen to light up by pressing the power button as an example to exemplify the implementation method of the display control method. The implementation method adopted for the scenario of triggering the screen to light up by double-clicking the screen will not be described in detail. For details, please refer to the detailed description of the implementation method adopted for the scenario of triggering the screen to light up by pressing the power button.
[0112] It should be noted that the electronic device described in this application is an electronic device with a display screen, for example, the electronic device can be a smart terminal such as a mobile phone, a tablet computer, a smart watch, etc., and the specific technology and specific device form used by the electronic device are not limited here. For the convenience of description, the subsequent embodiments are all exemplified by the electronic device being a mobile phone.
[0113] See also Figure 5 , is a structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a touch sensor 180K, an ambient light sensor 180L, and the like.
[0114] 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 memory, 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, the processor 110 is used to execute the display control method in the embodiment of the present application.
[0115] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0116] 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.
[0117] The external memory 120 generally refers to an external memory. In the embodiment of the present application, the external memory refers to a memory other than the memory of the electronic device and the cache of the processor, and the memory is generally a non-volatile memory.
[0118] The internal memory 121, which may also be referred to as "memory", may be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. 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.), and the like.
[0119] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel may be an organic light-emitting diode (OLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0120] The touch sensor 180K is also called a "touch panel" or a touch screen (TP) sensor. The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect a touch operation acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194.
[0121] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0122] The button 190 includes a power button, which is used to trigger turning on or off the display screen. For example, when the display screen is in an off-screen state, if the user presses the power button, the display screen state changes from the off-screen state to the on-screen state.
[0123] The above is a specific description of the embodiment of the present application using the electronic device 100 as an example. It should be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. The electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0124] 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.
[0125] The operating system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel 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 100.
[0126] Figure 6 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0127] 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: application layer (applications), application framework layer (application framework), system Native library (called Native layer), hardware abstraction layer (HAL) and kernel layer (kernel). For ease of explanation, Figure 6 The hardware layer that interacts with the above software structure is also reflected.
[0128] It should be noted that the Android system is a Linux-based operating system, mainly used for portable devices. The development of upper-layer applications (such as the application layer and application framework layer) in the Android system is generally completed based on Java. Since some low-level tasks are not easy to implement in Java, when it comes to tasks such as local services, link libraries or hardware drivers, it is usually necessary to allow C programs to implement them, and C programs run in the system Native library. The system Native library includes an interface for Java to call C++ code.
[0129] The application layer may include a series of application packages. For example, the application layer may include AOD applications and other applications, and the embodiments of the present application do not impose any limitation on this.
[0130] The application framework layer provides an application programming interface (API) and a programming framework for the application of the application layer. The application framework layer includes some predefined functions. Exemplarily, the application framework layer may include a power management service (PMS) module, a backlight module, and a drawing module.
[0131] Among them, the power management service module is used to manage the power on and off of the display IC.
[0132] Among them, the backlight (BL) module is used to provide backlight parameters for the display driver, and the display IC lights up the display according to the backlight parameters, that is, wakes up the display. The backlight parameters are determined according to the ambient light brightness. In other words, the ambient light brightness is proportional to the brightness of the display when it is awakened. For example, the higher the ambient light brightness, the higher the brightness of the display when it is awakened. This ensures that the content displayed on the screen is clearly visible when the display is awakened and the screen is lit, and will not be affected by the ambient light; the lower the ambient light brightness, the lower the brightness of the display when it is awakened. This ensures that the content displayed on the screen is clearly visible when the display is awakened and the screen is lit, and the screen light will not be dazzling.
[0133] Among them, the drawing module is used to provide a lock screen interface for the display driver, and the display IC controls the display to display the lock screen interface when the screen is on.
[0134] The Native layer can include multiple functional modules. For example, in the present application, the Native layer includes a surface drawing (SurfaceFlinger) service module. Among them, the function of the SurfaceFlinger service module is to accept graphic display data from multiple sources, synthesize them, and then send them to the display device. Image display can be specifically completed by multiple classes such as SurfaceFlinger, HWC, display screen, etc.
[0135] The HAL layer may include a hardware composition module (hwcomposer, HWC), which has the function or ability to use hardware to complete image data combination and display, and provide hardware support for the SurfaceFlinger service.
[0136] The kernel layer is the layer between hardware and software. The kernel layer includes display drivers. The display driver can be combined with the integrated circuit (IC) of the display to control the display screen from off to on. The display driver can also be used to set the backlight parameters of the display screen; when the backlight parameter of the display screen is set to 0, the display screen switches to the off state; when the backlight parameter of the display screen is set to any value in the range of (0, 255], the display screen switches to the on state.
[0137] The hardware layer may include a display screen (such as OLED or LCD), and the display screen is provided with a display screen IC corresponding to the display screen. The display screen IC and the display screen may be provided independently or integratedly.
[0138] The hardware layer also includes a power button. When the display screen is in the off state, by pressing the power button, the display screen can be triggered to change from off (also called screen-off) to on, thereby waking up the display screen.
[0139] 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 or Windows.
[0140] The execution subject of the display control method provided in the embodiment of the present application can be the above-mentioned electronic device, or it can be a functional module and / or functional entity in the electronic device that can implement the display control method, and the present application scheme can be implemented by hardware and / or software, which can be determined according to actual use requirements, and the embodiment of the present application is not limited. The following takes an electronic device as an example, and combines the accompanying drawings to exemplarily illustrate the display control method provided in the embodiment of the present application.
[0141] In the embodiment of the present application, the display screen is awakened from the dormant state and switched to the bright screen state, at which time all pixels of the display screen are lit. After the display screen is awakened, the display screen can display the lock screen interface or the system desktop.
[0142] It should be noted that after the display screen is awakened, whether the display screen specifically displays the lock screen interface or the system desktop is determined by whether the display screen is set to a lock screen. That is to say, when the display screen is set to a lock screen, the display screen will display the lock screen interface after the display screen is awakened. When the display screen is not set to a lock screen, the display screen will display the system desktop after the display screen is awakened. For the sake of convenience, the following is an exemplary description of the display screen displaying the lock screen interface after the display screen is awakened.
[0143] It should also be noted that, as described above, in the embodiment of the present application, the display screen wake-up process involves instructions 11 and 29. Instruction 11 is used to instruct the display screen IC to power on and initialize. The display screen IC power-on and initialization actually refers to the display screen IC that can control the display screen to power on and initialize. In addition, the display driver will send instructions 11 and 29 to the display screen IC in sequence according to the preset time interval to complete the display screen IC power-on and initialization. Among them, the embodiment of the present application does not limit the specific value of the preset time interval, and takes the preset time interval of 120ms as an example for explanation.
[0144] It is understandable that after the display IC is powered on and initialized, the display IC is ready to execute the display task issued by the display driver. Specifically for the present application, when the display IC is powered on, the display IC can light up the display according to the backlight parameters and control the display to display the lock screen interface.
[0145] In order to highlight the improvements of the embodiments of the present application over the related art, the following compares the present application scheme with the related art display screen wake-up process, timing diagram and time consumption, and explains the improvements. Figures 7 to 9 Describe the display screen wake-up process, timing diagram and time consumption in the related technology, and then combine Figures 10 to 13 , the display control method provided by the embodiment of the present application is described in terms of the display screen wake-up process, timing diagram, and time consumption. Here, the scenario of pressing the power button to trigger the screen to turn on is used as an example for exemplary description.
[0146] Figure 7 The software architecture diagram of the display screen wake-up process in the related technology. The display screen wake-up process can be divided into two stages: the first stage: the process of completing the display screen initialization by issuing 11 instructions and 29 instructions, and the second stage: the image sending process and the backlight parameter sending process. Figure 7 As shown, the display IC power-on process refers to the direction indicated by the dotted arrow, and the image sending process and backlight parameter sending process refer to the direction indicated by the solid arrow.
[0147] Phase 1: Complete the display initialization process by issuing 11 instructions and 29 instructions
[0148] When the electronic device is in the screen-off state, if the user presses the power button of the electronic device, the power management service module of the electronic device will receive the message that the user presses the power button to trigger the screen to turn on, and determine that a screen-on triggering event occurs.
[0149] It should be noted here that, for the sake of ease of explanation, it is schematically shown here that the message of the user pressing the power button to trigger the screen to turn on is directly transmitted from the power button to the power management service module; in actual implementation, the message of the user pressing the power button to trigger the screen to turn on may be transmitted through multiple modules in the software architecture and reach the power management service module. The specific details can be determined based on actual usage requirements and are not limited to the embodiments of the present application.
[0150] The power management service module sends a power-on instruction (also called a power-on notification) to the display driver, notifying the display driver to execute the power-on process. The power-on instruction is transmitted to the display driver through the SurfaceFlinger service module and HWC in the software architecture. The display driver responds to the power-on instruction, triggers the display screen to power on, and then sends the 11 instruction to the display screen to instruct the display screen IC to power on and initialize the parameter configuration. When the 11 instruction has been issued, the 29 instruction is issued again at an interval of 120ms to instruct the display screen IC to complete the parameter configuration initialization.
[0151] Then, the display driver returns a power-on completion message (also called a completion message) to the upper layer. The power-on completion message is sequentially transmitted to the power management service module through the HWC and SurfaceFlinger service modules in the software architecture.
[0152] After receiving the power-on completion message, the power management service module sends a power-on completion message to the drawing module and the backlight module.
[0153] Phase 2: Image submission process and backlight parameter distribution process
[0154] The drawing module listens to the power-on completion message sent by the power management service module and starts the drawing sending process. Specifically, the drawing module obtains the lock screen interface, and transmits the lock screen interface through the SurfaceFlinger service module and HWC in the software architecture in turn, and then transmits it to the display driver.
[0155] The backlight module listens to the power-on completion message sent by the power management service module and starts the backlight parameter sending process. Specifically, the backlight module obtains the backlight parameters, and after the image sending process is completed, the backlight module transmits the backlight parameters in turn through the SurfaceFlinger service module and HWC in the software architecture, and then transmits them to the display driver. Among them, the backlight parameters are determined according to the brightness value of the environment in which the electronic device is located.
[0156] After the display driver receives the backlight parameters and the lock screen interface, the display driver sends the backlight parameters and the lock screen interface to the display IC to trigger the display IC to complete the following display tasks: light up the display according to the backlight parameters, and control the display to display the lock screen interface.
[0157] pass Figure 7 It can be seen that in the display wake-up process, according to relevant technologies, when a screen-on trigger event occurs, the display IC needs to be powered on and initialized first, which takes about 150ms to 170ms. After the display IC is powered on and initialized, the image sending and backlight parameter sending processes are completed, which takes about 60ms.
[0158] exist Figure 7 On the basis of Figure 8 The timing diagram of the display screen wake-up process in the related art is shown. Figure 8 As shown, the method includes the following steps S101-S115.
[0159] S101, when the display screen is off, the electronic device receives an operation of a user pressing a power button.
[0160] Among them, the event that the power button is pressed when the display screen is off can be called a screen-on trigger event. It can be understood that the screen-on trigger event meets the screen-on trigger condition.
[0161] S102, the power button reports a screen-on triggering event to the power management service module.
[0162] S103, after monitoring the screen-on triggering event, the power management service module issues a power-on instruction, which is transmitted to the display driver through the SurfaceFlinger service module and HWC in sequence.
[0163] The power-on instruction includes instruction 11 and instruction 29. Instruction 11 is equivalent to the start instruction, which is used to instruct the display IC to power on and start parameter configuration initialization. Instruction 29 is equivalent to the ready instruction, which is used to indicate that the display IC parameter configuration initialization has been completed and is ready to execute the display task.
[0164] S104, the display driver sends 11 instructions to the display screen.
[0165] S105, in response to instruction 11, the display screen starts to power on and initialize parameter configuration.
[0166] S106, 120ms after instruction 11 is sent, the display driver sends instruction 29 to the display screen.
[0167] It should be noted that the display driver sends instructions 11 and 29 to the display IC in sequence at preset time intervals, which means that the display IC has completed initialization and is ready to execute the display task sent by the display driver.
[0168] S107, in response to instruction 29, the display screen completes parameter configuration initialization.
[0169] In actual implementation, when the display screen IC completes parameter configuration initialization, the display screen can return a response message to the display driver to feedback to the display driver that the display screen IC has completed parameter configuration initialization.
[0170] S108, the display driver returns a power-on completion message to the upper layer, and the power-on completion message is transmitted to the power management service module through the HWC and SurfaceFlinger service modules in sequence.
[0171] S109, the power management service module broadcasts the power-on completion message.
[0172] S110, after the drawing module monitors the power-on completion message, the drawing module obtains the lock screen interface.
[0173] S111, the drawing module sends the lock screen interface to the display driver. The lock screen interface is transmitted to the display driver through the power management service module, the SurfaceFlinger service module, and the HWC in sequence, and then the display driver sends the lock screen interface to the display screen.
[0174] In actual implementation, when the display screen IC receives the lock screen interface, the display screen can return a response message to the display driver to feedback to the display driver that the display screen IC has received the lock screen interface.
[0175] S112, the display driver reports a message that the drawing sending is completed to the drawing module.
[0176] S113, after the backlight module receives the power-on completion message, the backlight module obtains backlight parameters.
[0177] S114, after receiving the message of completing the image sending, the drawing module sends the backlight parameters to the display driver. The backlight parameters are transmitted to the display driver through the power management service module, the SurfaceFlinger service module, and the HWC in sequence, and then the display driver sends the backlight parameters to the display screen.
[0178] S115, lighting up the display screen according to the backlight parameters, and the display screen displays a lock screen interface.
[0179] Specifically, the display driver sends the backlight parameters and the lock screen interface to the display IC, and the display IC completes the following display tasks: lights up the display according to the backlight parameters, and controls the display to display the lock screen interface.
[0180] Above through Figure 7 and Figure 8 The display screen wake-up process and timing diagram in the related technology are respectively described. Fig. 9 Analyze the time consumption of display screen wake-up in related technologies.
[0181] like Fig. 9 As shown, in the display screen wake-up process of the related technology, it is necessary to first complete the display screen IC power-on and initialization, which takes time T1; after completing the display screen IC power-on and initialization, the image is sent, which takes time T2; and the backlight parameters are sent, which takes time T3. In summary, it takes at least T1+T2+T3 to complete the display screen wake-up process. Therefore, the display screen wake-up process has the problem of being time-consuming.
[0182] In view of the problem that the display screen wake-up process in the above-mentioned related technologies takes a long time, the embodiment of the present application makes the following improvements in the process:
[0183] When the PMS module monitors the screen-on trigger event, the PMS module immediately notifies the display driver to execute the power-on process, so that the display driver will start the power-on process in advance. At the same time, the PMS module notifies the execution of the image sending process in advance, so that the pattern displayed after the display wakes up (taking the lock screen interface as an example) will be drawn and sent in advance.
[0184] In addition, during the power-on and initialization process of the display IC, the 11th and 29th instructions in the power-on instructions are split and sent in a manner different from the related art. For example, after the display driver receives the notification to execute the power-on process, the display driver first sends the 11th instruction and returns the power-on completion (OK) message to the PMS module, which in turn triggers the image sending process and the backlight parameter sending process.
[0185] In this case, the steps of powering on and initializing the display IC, sending images, and sending backlight parameters are performed simultaneously.
[0186] It should be noted that the timing of this application starts from the issuance of instruction 11.
[0187] After the display driver receives the lock screen interface and the backlight parameters, the display driver determines whether the timing duration (denoted as T) is greater than or equal to 120ms.
[0188] If the timing duration T is greater than or equal to 120ms, it means that the display IC has completed initialization, and the display driver sends a 29 instruction to the display IC.
[0189] If the timing time T is less than 120ms, it means that the display IC has not completed initialization, and the display driver waits for the timing time T to be equal to 120ms, and then sends the 29 instruction to the display IC.
[0190] When the display IC receives instruction 29, the display IC lights up the display according to the backlight parameters, and controls the display to display the lock screen interface, thereby waking up the display.
[0191] Since the process of powering on and initializing the display screen in the present application is carried out simultaneously with the process of sending images and sending backlight parameters, the time consumption is greatly reduced, thereby achieving rapid wake-up of the display screen, accelerating the screen lighting speed, and improving the user experience.
[0192] Fig.10 The software architecture diagram of the display screen wake-up process provided by the embodiment of the present application is shown. The display screen wake-up process can be divided into two stages: the first stage: the process of triggering the display screen IC power-on by issuing 11 instructions, the second stage: the image sending process and the backlight parameter sending process, and the third stage: issuing 29 instructions when the conditions are met.
[0193] Phase 1: The process of triggering the display IC power-on by issuing 11 instructions
[0194] When the electronic device is in the screen-off state, if the user presses the power button of the electronic device, the PMS module of the electronic device will receive a message that the user presses the power button to trigger the screen to turn on, and determine that a screen-on triggering event occurs.
[0195] Different from Figure 7 In the related technical process shown in the embodiment of the present application, after the PMS module monitors the screen-on trigger event, the PMS module immediately notifies the display driver to execute the power-on process, so that the display driver will start the power-on process in advance. After the display driver receives the notification to execute the power-on process, the display driver first issues a power-on instruction, then issues an 11 instruction, and returns a power-on completion (OK) message to the PMS module, and then the PMS module broadcasts a power-on completion message, which triggers the image sending process and the backlight parameter sending process.
[0196] Unlike the related technology which returns to complete the power-on message after issuing instruction 29, thereby triggering the picture sending process and the backlight parameter sending process, the optimized steps of the present application are: after issuing instruction 11, immediately return to complete the power-on message, thereby triggering the picture sending process and the backlight parameter sending process. Therefore, the improved solution of the present application performs the steps of power-on and initialization, picture sending and backlight parameter sending at the same time to save the time of waking up the display.
[0197] Phase 2: Image submission process and backlight parameter distribution process
[0198] The drawing module listens to the power-on completion message broadcast by the power management service module and starts the drawing sending process. Specifically, the drawing module obtains the lock screen interface, and transmits the lock screen interface through the SurfaceFlinger service module and HWC in the software architecture in sequence, and then transmits it to the display driver.
[0199] The backlight module listens to the power-on completion message broadcast by the power management service module and starts the backlight parameter delivery process. Specifically, the backlight module obtains the backlight parameters, and transmits the backlight parameters in turn through the SurfaceFlinger service module and HWC in the software architecture, and then transmits them to the display driver. Among them, the backlight parameters are determined according to the brightness value of the environment in which the electronic device is located.
[0200] Phase 3: Issue 29 instructions when conditions are met
[0201] It should be noted that the display driver sends instructions 11 and 29 to the display IC in sequence according to the preset time interval, which means that the display IC has completed initialization and is ready to execute the display task issued by the display driver. In other words, taking the preset interval of 120ms as an example, it takes at least 120ms to complete the initialization work. Therefore, after sending instruction 11, at least 120ms is required before sending instruction 29.
[0202] This application starts timing from the issuance of instruction 11. After the display driver receives the lock screen interface and the backlight parameters, the display driver determines whether the timing duration T is greater than or equal to 120ms.
[0203] If the timing duration T is greater than or equal to 120ms, it means that the display IC has completed initialization and meets the conditions, then the display driver sends a 29 instruction to the display IC.
[0204] If the timing time T is less than 120ms, it means that the display IC has not completed initialization and does not meet the conditions, then the display driver waits for the timing time T to be equal to 120ms and then sends the 29 instruction to the display IC.
[0205] When the display IC receives instruction 29, the display IC completes initialization and is ready to execute the display task issued by the display driver. The display driver sends the backlight parameters and the lock screen interface to the display IC, triggering the display IC to complete the display wake-up and screen lighting tasks. The display IC can light up the display according to the backlight parameters and control the display to display the lock screen interface, thereby realizing the display wake-up and screen lighting.
[0206] Since the process of powering on and initializing the display screen in the present application is carried out simultaneously with the process of sending images and sending backlight parameters, the time consumption is greatly reduced, thereby achieving rapid wake-up of the display screen, accelerating the screen lighting speed, and improving the user experience.
[0207] For example, in the related art, based on the hardware requirements of the screen chip specifications, it takes about 150ms to 170ms to power on and initialize the display IC; in addition, the image sending process and the backlight parameter sending process take about 60ms. Since the present application executes the image sending process and the backlight parameter sending process while the display IC is powered on and initialized, it can save about 60ms. Therefore, the time required to wake up the display is greatly reduced.
[0208] exist Fig.10 On the basis of Fig.11 FIG. 1 shows a timing diagram of the display screen wake-up process in an embodiment of the present application. Fig.11 As shown, the method includes the following steps S201-S219.
[0209] S201, when the display screen is off, receiving an operation of a user pressing a power button.
[0210] S202, the power button reports a screen-on triggering event to the power management service module.
[0211] S203, the power management service module sends a power-on notification, which is transmitted through the SurfaceFlinger service module and HWC in sequence and reaches the display driver.
[0212] S204, the power management service module notifies the drawing module to perform lock screen drawing.
[0213] Compared with the process in the related art in which after issuing instructions 11 and 29 and returning the power-on completion message, the drawing module is notified to draw the lock screen, the present application solution immediately notifies the drawing module to draw the lock screen after the screen is turned on. Since the lock screen drawing is notified in advance, the drawing module can draw the lock screen interface in advance or obtain the lock screen interface in other ways, which can save time.
[0214] It should be noted that the embodiment of the present application does not limit the execution order of S203 and S204. For example, S203 may be executed first and then S204; S204 may be executed first and then S203; or S203 and S204 may be executed simultaneously.
[0215] S205, after receiving the power-on notification, the display driver triggers the display screen to power on and sends an instruction 11 to the display screen.
[0216] S206, in response to instruction 11, the display screen starts initialization.
[0217] In actual implementation, when the display screen starts to be initialized, the display screen may return a response message to the display driver to feed back to the display driver that the display screen starts to be initialized.
[0218] S207, the display driver starts timing after issuing the 11 instruction.
[0219] S208, the display driver returns a power-on completion message to the upper layer, and the power-on completion message is transmitted to the power management service module through the HWC and SurfaceFlinger service modules in sequence.
[0220] Compared with the process of the display driver sending the 11th instruction in the related art, sending the 29th instruction after 120ms, and then returning the power-on message, the difference of the present application scheme is that the display driver directly returns the power-on message after sending the 11th instruction, and sends the 29th instruction at 120ms or after 120ms. It should be noted that whether the 29th instruction is sent at 120ms or after 120ms can be determined by the judgment logic of S215 below.
[0221] S209: The power management service module broadcasts the power-on completion message.
[0222] S210: After the drawing module receives the power-on completion message, the drawing module obtains a lock screen interface.
[0223] For example, the drawing module can directly obtain the lock screen interface drawn in advance.
[0224] S211, the drawing module sends the lock screen interface to the display driver. The lock screen interface is transmitted to the display driver through the power management service module, the SurfaceFlinger service module, and the HWC in sequence, and then the display driver sends the lock screen interface to the display screen.
[0225] In actual implementation, when the display screen IC receives the lock screen interface, the display screen can return a response message to the display driver to feedback to the display driver that the display screen IC has received the lock screen interface.
[0226] S212, the drawing module receives a picture sending completion message reported by the display driver, and then sends the picture sending completion message to the backlight module.
[0227] S213: After the backlight module receives the power-on completion message, the backlight module obtains backlight parameters.
[0228] In actual implementation, the backlight parameter can be stored in the backlight register. For example, the backlight instruction can carry the backlight parameter 0, and 0 can be written into the backlight register. The backlight parameter 0 indicates turning off the backlight of the display. In this way, in response to the backlight instruction, the display IC can read the backlight parameter 0 from the backlight register and control turning off the backlight of the display according to the backlight parameter 0.
[0229] S214, after the backlight module receives the message that the image is sent, the backlight module sends backlight parameters to the display driver. The backlight parameters are transmitted to the display driver via the power management service module, the SurfaceFlinger service module, and the HWC in sequence.
[0230] S215, after the display driver receives the backlight parameters, the display driver determines whether the timing duration reaches 120ms.
[0231] Compared with the process in the related art where the display driver receives the backlight parameters and then sends the backlight parameters to the display screen, the present application solution is different in that after receiving the backlight parameters, the display driver first determines whether the timing duration reaches the first preset duration, and then determines whether to send the 29 instruction to the display screen based on the determination result. After sending the 29 instruction to the display screen, the backlight parameters are sent to the display screen.
[0232] Here, the first preset time length of 120 ms is still taken as an example for exemplary description.
[0233] If the timing duration reaches 120ms (for example, the timing duration is 130ms, which exceeds 120ms), the following S216 is continued to be executed, that is, instruction 29 is sent to the display screen.
[0234] If the timing duration does not reach 120ms, the process returns to continue executing S215, that is, waits for the timing duration to reach 120ms, and then sends instruction 29 to the display screen.
[0235] S216, the display driver sends 29 instructions to the display screen.
[0236] S217, in response to instruction 29, the display screen completes initialization.
[0237] When the display screen has completed initialization, the display screen may return a response message to the display driver to feedback to the display driver that the display screen has completed initialization.
[0238] S218: The display driver sends the backlight parameters to the display screen.
[0239] S219, the display screen lights up according to the backlight parameters and displays the lock screen interface.
[0240] Specifically, the display driver sends the backlight parameters to the display IC, and the display IC lights up the display according to the backlight parameters and controls the display to display the lock screen interface.
[0241] Above through Fig.10 and Fig.11 The display screen wake-up process and timing diagram in this application are respectively described. Fig. 12A and Fig. 12B Analyze the time consumption of display screen wake-up in this application.
[0242] refer to Fig. 12A As shown, in the related technology display screen wake-up process, it is necessary to first complete the display screen IC power-on and initialization, which takes time T1, in which 11 instructions are issued first, and 29 instructions are issued after an interval of 120ms, and then an OK message is returned. Then, after the display screen IC is powered on and initialized, the image is sent, which takes time T2; and the backlight parameters are sent, which takes time T3. In summary, it takes at least T1+T2+T3 to complete the display screen wake-up process.
[0243] Refer to Fig. 12B As shown, in the display screen wake-up process of the present application, after the screen light trigger event occurs, the display driver immediately executes the power-on process, the display driver first sends the 11 instruction to the display screen to trigger the initialization of the display screen, and then the display driver immediately returns the OK message to trigger the image sending and backlight parameter sending process. In this way, the image sending process and the backlight parameter sending process can be executed while the display screen is initialized.
[0244] Then, after the display driver receives the lock screen interface and the backlight parameters, the display driver determines whether the timing duration is greater than or equal to 120ms. If the timing duration is greater than or equal to 120ms, it issues instruction 29. If the timing duration is less than 120ms, it waits for 120ms before issuing instruction 29. Issuing instruction 29 means that the display IC has completed initialization and is ready to execute the display task issued by the display driver.
[0245] In this case, the display IC can light up the display according to the backlight parameters and control the display to display the lock screen interface, thereby completing the display wake-up.
[0246] In this application, it takes T1 (120ms) to complete the power-on and initialization of the display IC. When the display IC is powered on and initialized, the image is sent and the backlight parameters are sent. In summary, it takes at least T1 (120ms) or slightly more than T1 (120ms) to complete the display wake-up process.
[0247] Since in the display screen wake-up process of the present application, the process of powering on and initializing the display screen is carried out simultaneously with the process of sending images and sending backlight parameters, the time consumption of the display screen wake-up process is significantly shortened. Therefore, the display control method provided in the embodiment of the present application can greatly shorten the time required to wake up the display screen and improve the user experience.
[0248] above Fig.11 This is explained for the case where the interval between issuing command 11 and issuing command 29 is 120ms, that is, after issuing command 11, wait for 120ms before issuing command 29, and there is no delay after issuing command 29, that is to say, only one delay is required between issuing command 11 and lighting up the display screen.
[0249] The following Fig.13 Another timing diagram of the display screen wake-up process in an embodiment of the present application is shown. Fig.13 and Fig.11 The difference is that in Fig.13 In the example, there is a delay between issuing the 11 command and issuing the 29 command, and there is also a delay between issuing the 29 command and lighting up the display. For example, according to the display IC specification requirements: after issuing the 11 command, you need to wait for 80ms before issuing the 29 command, and after issuing the 29 command, you need to wait for 40ms before lighting up the display. In other words, there are two delays between issuing the 11 command and lighting up the display.
[0250] Reference Fig.13 As shown, the method includes the following steps S301-S320.
[0251] For instructions on S301-S314, see Fig.11 The detailed description of S201-S214 is omitted here.
[0252] S315, the display driver determines whether the timing duration reaches 80ms.
[0253] If the timing duration reaches 80ms, then continue to execute the following S316. If the timing duration does not reach 80ms, then return to continue to execute S315, that is, wait for the timing duration to reach 80ms, and then execute S316, which is the first delayed waiting.
[0254] S316, the display driver sends 29 instructions to the display screen.
[0255] S317, in response to instruction 29, the display screen completes initialization.
[0256] When the display screen has completed initialization, the display screen may return a response message to the display driver to feedback to the display driver that the display screen has completed initialization.
[0257] S318, the display driver determines whether the timing duration reaches 120ms.
[0258] If the timing duration reaches 120ms, then continue to execute the following S319. If the timing duration does not reach 120ms, then return to continue to execute S318, that is, wait for the timing duration to reach 120ms, and then execute S318, which is the second delayed waiting.
[0259] S319, the display driver sends the backlight parameters to the display screen.
[0260] S320: The display screen lights up according to the backlight parameters and displays the lock screen interface.
[0261] Specifically, the display driver sends the backlight parameters to the display IC, and the display IC lights up the display according to the backlight parameters and controls the display to display the lock screen interface.
[0262] It should be noted that, in the embodiments of the present application, "greater than" can be replaced by "greater than or equal to", "less than or equal to" can be replaced by "less than", or "greater than or equal to" can be replaced by "greater than", and "less than" can be replaced by "less than or equal to".
[0263] The various embodiments described herein may be independent solutions or may be combined according to internal logic, and all of these solutions fall within the protection scope of this application.
[0264] The present application also provides a chip, which is coupled to a memory and is used to read and execute computer programs or instructions stored in the memory to execute the methods in the above embodiments.
[0265] The present application also provides an electronic device, which includes a chip, and the chip is used to read and execute a computer program or instruction stored in a memory, so that the method in each embodiment is executed.
[0266] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the display control method in the above-mentioned embodiment.
[0267] This embodiment further provides a computer program product, wherein the computer-readable storage medium stores program codes. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement the display control method in the above-mentioned embodiment.
[0268] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the display control method in the above-mentioned method embodiments.
[0269] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0270] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0271] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which 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 display control method, characterized in that: Applied to an electronic device including a display screen, the display screen is provided with a first display integrated chip IC, the method comprising: When the preset conditions are met, the display driver receives a power-on instruction from the power management service module; In response to the power-on instruction, the display driver triggers the first display IC to power on, and sends a start instruction to the first display IC, wherein the start instruction is used to instruct the first display IC to initialize; The display driver returns a completion message to the power management service module; The display driver receives a bright screen pattern and sends the bright screen pattern to the first display IC; The display driver receives backlight parameters; When the first timing duration is greater than or equal to the first preset duration, the display driver sends a preparation instruction to the first display IC, wherein the preparation instruction is used to instruct the first display IC to complete initialization; the first timing duration is the duration from when the start instruction is issued; The display driver sends the backlight parameters to the first display IC to trigger the first display IC to light up the display screen according to the backlight parameters and control the display screen to display the light-screen pattern.
2. The method according to claim 1, characterized in that After the display driver receives the backlight parameter, the method further includes: In the case that the first timing duration is less than the first preset duration, the display driver waits until the first timing duration is greater than or equal to the first preset duration, and then sends the preparation instruction to the first display IC.
3. The method according to claim 1 or 2, characterized in that: The first preset duration is related to the hardware specification of the first display IC.
4. The method according to any one of claims 1 to 3, characterized in that The first preset time length is 120 milliseconds.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: In response to the completion message, the power management service module sends the screen-lit pattern and the backlight parameters to the first display IC.
6. The method according to claim 5, characterized in that In response to the completion message, the power management service module sends the screen-lit pattern to the first display IC, including: In response to the completion message, the power management service module notifies the drawing module to send the screen-lighting pattern; The power management service module receives the screen-lighting pattern from the drawing module, and sends the screen-lighting pattern to the first display IC.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When the preset condition is met, the power management service module notifies the drawing module to draw the bright screen pattern.
8. The method according to claim 5, characterized in that In response to the completion message, the power management service module sends the backlight parameter to the first display IC, including: In response to the completion message, the power management service module notifies the backlight module to send backlight parameters; The power management service module receives the backlight parameters from the backlight module, and sends the backlight parameters to the first display IC.
9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: The backlight module determines the backlight parameter according to the ambient light brightness of the environment in which the electronic device is located.
10. The method according to any one of claims 1 to 9, characterized in that The power-on instruction is sent by the power management service module, transmitted through the surface drawing SurfaceFlinger service module and the hardware synthesis HWC module, and reaches the display driver; The completion message is sent by the display driver, transmitted through the HWC module and the SurfaceFlinger service module, and reaches the power management service module.
11. The method according to any one of claims 1 to 10, characterized in that The preset condition is: when the display screen is in the off state, an operation of the user pressing the power button is received; or when the display screen is in the off state, a preset operation of the user on the display screen is received.
12. A display control method, characterized in that: The method is applied to an electronic device including a display screen, wherein the display screen is provided with a second display IC, and the method includes: When the preset conditions are met, the display driver receives a power-on instruction from the power management service module; In response to the power-on instruction, the display driver triggers the second display IC to power on, and sends a start instruction to the second display IC, wherein the start instruction is used to instruct the second display IC to initialize; The display driver returns a completion message to the power management service module; The display driver receives a bright screen pattern and sends the bright screen pattern to the second display IC; The display driver receives backlight parameters; When the first timing duration is greater than or equal to the second preset duration, the display driver sends a preparation instruction to the second display IC; then, when the first timing duration is greater than or equal to the third preset duration, the display driver sends the backlight parameters to the second display IC to trigger the second display IC to light up the display screen according to the backlight parameters and control the display screen to display the bright screen pattern; the third preset duration is greater than the second preset duration, and the first timing duration is the duration starting from when the start instruction is issued.
13. The method according to claim 12, characterized in that After the display driver receives the backlight parameter, the method further includes: In the case where the first timing duration is less than the second preset duration, the display driver waits until the first timing duration is greater than or equal to the second preset duration, and then sends the preparation instruction to the second display IC.
14. The method according to claim 12 or 13, characterized in that After the display driver sends the preparation instruction to the second display IC, the method further includes: In the case where the first timing duration is less than the third preset duration, the display driver waits until the first timing duration is greater than or equal to the third preset duration, and then sends the backlight parameter to the second display IC.
15. The method according to any one of claims 12 to 14, characterized in that The second preset time length and the third preset time length are related to the hardware specification of the second display IC.
16. The method according to any one of claims 12 to 15, characterized in that The second preset time length is 80 milliseconds, and the third preset time length is 120 milliseconds.
17. The method according to any one of claims 12 to 16, characterized in that The method further comprises: In response to the completion message, the power management service module sends the screen-lit pattern and the backlight parameters to the second display IC.
18. An electronic device, characterized in that: The electronic device comprises a display screen, a processor, a memory and a computer program stored in the memory, wherein the processor is used to execute the computer program so that the electronic device implements the method as claimed in any one of claims 1 to 17.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 17.
Citation Information
Cited By
Display control method, electronic device, and storage medium
EP4708038A1
Display control method, electronic device, and storage medium
WO2025011041A1