Display control method, electronic device and storage medium

By eliminating the power-on and power-off process of the display when the screen is off, and directly launching the AOD application, the problem of excessively long screen-off display time is solved, thus improving the user experience.

CN117711310BActive Publication Date: 2024-10-25HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310859332.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-12
Publication Date
2024-10-25
Estimated Expiration
2043-07-12

AI Technical Summary

Technical Problem

In existing technologies, the process of electronic devices switching from a lit screen to a lit screen and then to a lit screen display takes too long, resulting in a poor user experience.

Method used

Under the condition of screen-off triggering, the power management service module only sends backlight command to the display driver and does not send power-off command, directly triggering the AOD application to start, eliminating the power-off and power-on process of the display screen.

Benefits of technology

It significantly shortens the time to start AOD after the screen is off, improves the user experience, and reduces the time spent powering on and off the display, with a total reduction of approximately 300ms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117711310B_ABST
    Figure CN117711310B_ABST
Patent Text Reader

Abstract

The present application provides a display control method, an electronic device and a storage medium, and relates to the field of display technology. When the preset conditions are met, the power management service module only sends a backlight instruction to the display driver, and cancels sending a power-off instruction to the display driver; therefore, the display driver turns off the backlight of the display screen, but does not execute the power-off process, so that the display screen will not be triggered to power off, saving the power-off time. Moreover, when the preset conditions are met, the power management service module directly triggers the start of the AOD application. After the AOD application sends the AOD start-up instruction, since the display screen is already in a powered-on state, the display screen does not need to be powered on, thus saving the power-on time. Through the present application scheme, the AOD process is quickly started after the screen is turned off, and the power-off and power-on processes of the display screen are omitted, so the time consumption of starting AOD is greatly reduced, which improves the user experience.
Need to check novelty before this filing date? Find Prior Art

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 often turn on the screen of their mobile phones to check time, notifications and other information. In order to facilitate users to check basic information such as time and save power of electronic devices, the always on display (AOD) function of electronic devices came into being.

[0003] The implementation principle of the AOD function is: after the screen of the electronic device is turned off, some pixels of the screen can be lit up to display information such as clock, date, battery level, message reminders, etc., while other pixels of the screen are always in a closed state, for example, these closed pixels appear black, so that users can conveniently view the above information without lighting up the entire screen of the electronic device, and can reduce the power consumption of the electronic device.

[0004] Currently, when an electronic device changes from screen on to screen off, the screen-off pattern is displayed after a long time after the screen is turned off. In other words, it takes a long time to enter the screen-off display after the screen is turned off, and there is a problem of taking too long to start the screen-off display. Summary of the invention

[0005] The present application provides a display control method, an electronic device and a storage medium, which eliminates the power-off and power-on processes in the process of starting the AOD after triggering the screen off, thereby greatly reducing the time consumption of starting the AOD and improving the user experience.

[0006] In a first aspect, the present application provides a display control method, which is applied to an electronic device including a display screen, and the method includes:

[0007] When a preset condition is met, the power management service module sends a backlight instruction to the display driver, so that the display driver turns off the backlight of the display screen based on the backlight instruction;

[0008] The power management service module triggers the AOD application to start;

[0009] The power management service module receives an AOD start instruction from the AOD application;

[0010] The power management service module sends the AOD startup instruction to the display driver, so that the display driver controls the display screen to display the screen-off pattern based on the AOD startup instruction.

[0011] Through the display control method provided by the embodiment of the present application, when the preset conditions are met, the power management service module only sends a backlight instruction to the display driver, and cancels sending a power-off instruction to the display driver. Therefore, the display driver turns off the backlight of the display screen, but does not execute the power-off process, so that the display screen will not be triggered to power off, saving the power-off time. In addition, when the preset conditions are met, the power management service module directly triggers the start of the AOD application. After the AOD application sends the AOD start-up instruction, since the display screen is already in a powered-on state, the display screen does not need to be powered on, thus saving the power-on time. Through the solution of the present application, the AOD process is quickly started after the screen is turned off, and the power-off and power-on processes of the display screen are omitted. Therefore, the time consumption of starting AOD is greatly reduced, the screen-off display becomes faster, and the user experience is improved.

[0012] In some possible implementations, after the power management service module sends the AOD start instruction to the display driver, the method further includes: when a first preset duration is met, the power management service module sends a power-off instruction to the display driver, so that the display driver controls the integrated circuit (IC) of the display screen to power off based on the power-off instruction. In actual implementation, the power management service module starts timing from the moment the AOD start instruction is sent; after the timing duration is greater than or equal to the first preset duration, the power management service module sends a power-off instruction to the display driver.

[0013] In the present application scheme, after the preset conditions (also called screen-off trigger conditions) are met and before the first preset duration is met, the IC of the display screen remains powered on. That is to say, when the screen-off trigger conditions are met, the power management service module cancels sending the power-off command to the display driver, so the display driver does not execute the power-off process, so that the IC of the display screen does not need to be powered off, thus saving power-off time. Moreover, after the AOD application sends the AOD start command, since the IC of the display screen is already in a powered-on state, the IC of the display screen does not need to be powered on, thus saving power-on time. Therefore, the time consumption of starting AOD is greatly reduced.

[0014] In the related art, after the user presses the power button or does not operate for a timeout, triggering the screen off, the display turns off the backlight, and then the IC of the display is powered off; then the AOD process is triggered: the display is powered on first, and then the display displays the screen off pattern to complete the AOD process. Among them, it takes a lot of time to power off the display, and it also takes a lot of time to power on the display after powering off. Therefore, in the related art, it takes a lot of time to start the AOD process after triggering the screen off, resulting in the problem of slow implementation of AOD after the screen is turned off.

[0015] On the one hand, compared with the related technology, the improvement of the present application scheme is that: when the screen-off triggering conditions are met, the power management service module directly pulls up the AOD service and triggers the AOD application to start. This can quickly start the AOD process, which to a certain extent reduces the time required to start AOD after triggering the screen-off, thereby improving the user experience.

[0016] On the other hand, compared with the related art, the improvement of the present application scheme also lies in: the time consumed by powering off and on the display screen is omitted in the process of starting the AOD after triggering the screen off, which can greatly reduce the time required to start the AOD after triggering the screen off, thereby improving the user experience.

[0017] The present application solution saves the power-off and power-on of the display screen, thus saving about 120ms of power-off time of the display screen and about 120ms of power-on time of the display screen. Therefore, the present application solution greatly reduces the time required to start the AOD after triggering the screen off.

[0018] On the whole, compared with the process in the related art of turning off the backlight and controlling the IC of the display screen to power off after the screen is triggered, and then starting AOD, controlling the IC of the display screen to power on, and controlling the display screen to display the screen-off pattern, the improvement of the present application is that: when the screen-off triggering condition is met, the power management service module directly pulls up the AOD service and triggers the AOD application to start, so that the AOD process can be started quickly. In addition, after the screen is triggered to go out, only the backlight is turned off, and the IC of the display screen is not powered off, so the time consumed by powering on the display screen can be saved; after starting AOD, the IC of the display screen does not need to be powered on, so the display screen can be controlled to display the screen-off pattern more quickly. Through the scheme of this application, the AOD process can be started quickly, and the time consumed by powering off and powering on the display screen is saved, and the time consumed by starting AOD is greatly reduced. Therefore, after the screen is triggered to go out, starting the screen-off display becomes faster, which improves the user experience.

[0019] In some possible implementations, after the power management service module sends a backlight instruction to the display driver, the method further includes: the power management service module receives a first message from the display driver, where the first message is used to indicate that the backlight of the display screen has been turned off.

[0020] In some possible implementations, the preset condition may be: when the display screen is in the on-screen state, an operation of the user pressing the power button is received. For example, when the mobile phone is in the on-screen state, if the user presses the power button of the mobile phone, the mobile phone screen will be triggered to turn off. In this case, the display screen of the mobile phone will switch from the on-screen state to the off-screen state, at which time all pixels of the display screen will dim and turn off, and then the off-screen pattern will be displayed again. After the first preset time (for example, 5 seconds), the display screen will no longer display the off-screen pattern, and all pixels will dim and turn off.

[0021] In some other possible implementations, the screen-off triggering condition may be: when the display screen is in the on-screen state, the duration of not receiving any user operation is greater than or equal to a second preset duration. For example, the second preset duration may be a system preset duration, such as 15 seconds, or a user-defined duration, such as 1 minute.

[0022] For example, when the phone is in the screen-on state, the timer will count the period of time during which no user input is received. If the timing duration exceeds a preset second preset duration (eg, 1 minute), the phone will automatically trigger the screen to turn off.

[0023] Through the present application scheme, the process of powering off and on the display screen is omitted in the process of starting AOD after triggering the screen off, so the time consumption of starting AOD is greatly reduced. Therefore, after triggering the screen off, starting the screen off display becomes faster, thereby improving the user experience.

[0024] In some possible implementations, the AOD startup instruction includes a power-on instruction and an AOD display instruction.

[0025] The power management service module sends the AOD startup instruction to the display driver, so that the display driver controls the display screen to display the screen off pattern based on the AOD startup instruction, including:

[0026] The power management service module sends the power-on instruction and the AOD display instruction to the display driver respectively, so that the display driver responds to the power-on instruction and returns a message that the IC of the display screen is in a powered-on state. Then the display driver responds to the AOD display instruction and controls the display screen to display the screen-off pattern.

[0027] In some possible implementations, the AOD startup instruction is triggered by the AOD application, transmitted through the power management service module, the surface drawing SurfaceFlinger service module and the hardware synthesis HWC module, and reaches the display driver.

[0028] In some possible implementations, after the power-on instruction is transmitted to the HWC module, the HWC module sends the power-on instruction to the display driver; when the HWC module receives a message that the IC of the display screen is in a powered-on state, the HWC module sends the AOD display instruction to the display driver.

[0029] In some possible implementations, the backlight instruction is triggered by the power management service module, transmitted through the SurfaceFlinger service module and the HWC module, and reaches the display driver.

[0030] It should be noted that the above-mentioned power management service module, AOD application, display driver, SurfaceFlinger service module and HWC are software function modules in the electronic device.

[0031] Through the present application scheme, the time consumption of starting AOD is greatly reduced. Therefore, after the screen off is triggered, starting the screen off display becomes faster, which improves the user experience.

[0032] In a second 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.

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

[0034] In a third 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.

[0035] In a fourth 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 perform the method in the first aspect.

[0036] In a fifth 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.

[0037] In a sixth 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.

[0038] In a seventh 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.

[0039] It can be understood that the beneficial effects of the second to seventh 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

[0040] Figures 1A to 1C A schematic diagram of an application scenario of the display control method provided in an embodiment of the present application;

[0041] Figure 2A and Figure 2B Schematic diagram of two scenarios for applying the display control method provided in the embodiment of the present application;

[0042] Figure 3A and Figure 3B A schematic diagram comparing the display control method provided in the embodiment of the present application with the related art;

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

[0044] Figure 5 A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;

[0045] Figure 6 A flow chart of a display control method provided for related technologies;

[0046] Figure 7 A timing diagram of a display control method provided for related technologies;

[0047] Figure 8 A schematic diagram of the time consumption of a display control method provided for related technologies;

[0048] Fig. 9 A flow chart of a display control method provided in an embodiment of the present application;

[0049] Fig.10 A timing diagram of a display control method provided in an embodiment of the present application;

[0050] Fig.11A and Fig. 11B A schematic diagram of the time consumption of the display control method provided in an embodiment of the present application. DETAILED DESCRIPTION

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

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

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

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

[0055] With the rapid development of electronic technology, electronic devices such as smartphones 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 often turn on the screen of their mobile phones to check time, notifications and other information. In order to facilitate users to check basic information such as time and save power of electronic devices, the screen-off display (AOD) function of electronic devices came into being.

[0056] The implementation principle of the AOD function is: after the electronic device screen is turned off, some pixels of the screen can be lit up to display information such as clock, date, battery level, message reminders, etc., while other pixels of the screen are always in a closed state, for example, these closed pixels are black, so that users can conveniently view the above information without lighting up the entire screen of the electronic device, and the power consumption of the electronic device can be reduced. Electronic devices usually turn on the off-screen display function by default.

[0057] Electronic devices can support the following three ways to trigger AOD:

[0058] Method 1: Turning off the screen after a timeout or pressing the power button can trigger AOD.

[0059] like Figure 1AAs shown, when the electronic device changes from on screen to off screen, AOD will be automatically triggered, that is, some pixels on the screen will be lit up and an off screen pattern will be displayed. For example, the off screen pattern includes information such as clock, date, and notification, which is convenient for users to view the above commonly used information and can reduce the power consumption of the electronic device. Then, after the off screen pattern is displayed for a period of time (for example, 5 seconds), the off screen pattern will automatically disappear.

[0060] Method 2: Touch the screen with the screen off to trigger AOD.

[0061] like Figure 1B As shown in the figure, when the electronic device is in the off-screen state, if the user touches or clicks the screen, the AOD will be triggered, that is, a local area of ​​the screen will be lit up and the off-screen pattern will be displayed. Then, after a period of time (for example, 5 seconds), the off-screen pattern will automatically disappear. This method of triggering AOD by touching the screen when the screen is off can be called "touch mode".

[0062] Method 3: Gently move the electronic device when the screen is off to trigger AOD.

[0063] like Figure 1C As shown, when the electronic device is in the off-screen state, if the user slightly shakes or moves the electronic device, the AOD will be triggered, that is, a local area of ​​the screen will be lit up and the off-screen pattern will be displayed. Then, after a period of time (for example, 5 seconds), the off-screen pattern will automatically disappear.

[0064] At present, for the case where the electronic device changes from a bright screen to an off screen in the above-mentioned method 1, it takes a long time to enter the off screen display after the screen is off, and there is a problem of too long delay in the off screen display. It should be noted that the embodiment of the present application mainly studies and improves the problem of too long delay in the off screen display in the above-mentioned method 1.

[0065] After research, it was found that the main reasons why the current AOD process takes a long time to enter the screen off display include: the hardware requirements based on the screen IC chip specifications take about 300ms, and the software takes about 300ms to process the AOD process, so the overall process takes a minimum of about 600ms. This will cause the screen off display to take a long time, and therefore give users a feeling that "the screen off display is slow".

[0066] In order to solve the problem of slow display when the screen is turned off, an embodiment of the present application provides a display control method. When the screen-off triggering condition is met, the power management service module only sends a backlight instruction to the display driver, and cancels sending a power-off instruction to the display driver; therefore, the display driver turns off the backlight of the display screen, but does not execute the power-off process, so that the display screen will not be triggered to power off, saving the power-off time. Moreover, when the screen-off triggering condition is met, the power management service module directly triggers the start of the AOD application. After the AOD application sends the AOD start instruction, since the display screen is already in a powered-on state, the display screen does not need to be powered on, thus saving the power-on time. Through the solution of the present application, the AOD process is quickly started after the screen is triggered to turn off, and the power-off and power-on processes of the display screen are omitted, so the time consumption of starting AOD is greatly reduced, which improves the user experience.

[0067] The present application scheme improves the mobile phone software system to shorten the time taken to start the AOD process after the screen is turned off, thereby improving the user experience. The optimization scheme for the off-screen display performance described in the present application embodiment can support all current products and adapt to all domestic and overseas versions, and has universality and versatility.

[0068] In the present application scheme, the integrated circuit (IC) of the display screen remains powered on. That is to say, when the screen-off triggering condition is met, the power management service module cancels the power-off instruction sent to the display driver, so the display driver does not execute the power-off process, so that the IC of the display screen does not need to be powered off, thus saving the power-off time. Moreover, after the AOD application sends the AOD start instruction, since the IC of the display screen is already in the powered-on state, the IC of the display screen does not need to be powered on, thus saving the power-on time. Therefore, the time consumption of starting AOD is greatly reduced.

[0069] In the related art, after the user presses the power button or does not operate for a timeout, triggering the screen off, the display turns off the backlight, and then the IC of the display is powered off; then the AOD process is triggered: the display is powered on first, and then the display displays the screen off pattern to complete the AOD process. Among them, it takes a lot of time to power off the display, and it also takes a lot of time to power on the display after powering off. Therefore, in the related art, it takes a lot of time to start the AOD process after triggering the screen off, resulting in the problem of slow implementation of AOD after the screen is turned off.

[0070] On the one hand, compared with the related technology, the improvement of the present application scheme is that: when the screen-off triggering conditions are met, the power management service module directly pulls up the AOD service and triggers the AOD application to start. This can quickly start the AOD process, which to a certain extent reduces the time required to start AOD after triggering the screen-off, thereby improving the user experience.

[0071] On the other hand, compared with the related technology, the improvement of the present application scheme is that the time consumed by powering off and on the display screen is omitted in the process of starting the AOD after triggering the screen off, which can greatly reduce the time required to start the AOD after triggering the screen off, thereby improving the user experience.

[0072] For example, the present application solution saves powering off and powering on the display screen, thus saving about 120ms of powering off and powering on the display screen, thus greatly reducing the time required to start the AOD after triggering the screen off.

[0073] In the embodiment of the present application, triggering screen off in the screen-on state may include the following two possible implementation scenarios:

[0074] Scenario 1: Press the power button to turn off the screen:

[0075] like Figure 2A As shown in the figure, when the phone is in the on-screen state, if the user presses the power button of the phone, the phone will be triggered to turn off the screen. In this case, the phone's display screen will switch from the on-screen state to the off-screen state, at which time all pixels on the display screen will dim and turn off, and then the off-screen pattern will be displayed again. After a certain period of time (for example, 5 seconds), the off-screen pattern will automatically disappear, and all pixels will dim and turn off.

[0076] Scenario 2: The screen goes off due to timeout and no operation:

[0077] like Figure 2B As shown, when the phone is in the screen-on state, if the phone has not received any user input (no operation has occurred during the timeout), the phone will be triggered to automatically turn off the screen. For example, when the phone is in the screen-on state, the timer will count the time when no user input is received. If the counted time exceeds the sleep time preset by the system or the user (for example, 1 minute), the phone will automatically trigger the screen-off. In this case, the phone's display screen will automatically switch from the screen-on state to the screen-off state. At this time, all pixels on the display screen will dim and turn off, and then the screen-off pattern will be displayed again. After a certain period of time (for example, 5 seconds), the screen-off pattern will automatically disappear, and all pixels will dim and turn off.

[0078] It should be noted that both of the above two application scenarios can be applied to the display control method provided in the embodiment of the present application. That is to say, in the scenario where the screen is turned off by pressing the power button in the bright screen state, the display control method provided in the embodiment of the present application can be executed; or, in the scenario where the screen is turned off due to timeout without operation in the bright screen state, the display control method provided in the embodiment of the present application can also be executed. The display control method provided in the embodiment of the present application can solve the problem of long time consumption to enter the screen off display in the scenario where the screen is turned off due to timeout without operation or the screen is turned off by pressing the power button.

[0079] For ease of explanation, the following embodiments will take the scenario of triggering screen off by pressing the power button as an example to exemplify the implementation of the display control method. The implementation method adopted for the scenario of triggering screen off due to timeout without operation will not be described in detail. For details, please refer to the detailed description of the implementation method adopted for the scenario of triggering screen off by pressing the power button.

[0080] In order to better understand the embodiments of the present application, Figure 3A and Figure 3B The embodiments of the present application are briefly described in comparison with the related art:

[0081] Figure 3A The AOD process of the related art is shown. Figure 3A As shown, for the screen-off trigger event, the IC of the display screen is first powered off, and then the display screen is turned off. Then the AOD process is entered: first the IC of the display screen is powered on, and then the IC of the display screen can control the display screen to display the screen-off pattern to achieve the screen-off display.

[0082] Specifically, when the power management service module of the electronic device monitors the screen-off trigger event, the power management service module will send a backlight instruction and a power-off instruction to the lower layer (display driver). The backlight instruction is used to control the backlight parameters of the display to be set to 0, that is, it is used to control the backlight of the display to be turned off, and the power-off instruction is used to control the display (specifically the IC of the display) to power off.

[0083] Next, if the power management service module receives a message from the lower layer (display driver) that the backlight 0 setting is completed and the display screen is powered off, the power management service module notifies the status marking module to change the display screen status to the power-off state (for example, marked as OFF).

[0084] Then, the AOD application will monitor that the display screen has been powered off, triggering the AOD event, and entering the AOD process. Then, the display screen (specifically the IC of the display screen) needs to be powered on first, and then the display screen (specifically the IC of the display screen) receives the AOD display instruction issued by the AOD application, and then the IC of the display screen responds to the AOD display instruction, controls the display screen to display the screen-off pattern, and completes the AOD process.

[0085] Figure 3B The AOD process of this application is shown. Figure 3B As shown, in response to the screen-off trigger event, the AOD service is directly activated or started, the power management service module (PMS module for short) does not perform the power-off operation, and directly sets the display state to AOD, so that the AOD process can be quickly entered without going through the power-on and power-off process.

[0086] The difference from the prior art is that in the present application solution, after the power management service module monitors the screen-off triggering event, it performs the following two operations:

[0087] First, the power management service module only sends a backlight instruction to the display driver, but does not send a power-off instruction.

[0088] Second, the power management service module immediately sends a message to the AOD application to instruct the AOD service to be started, so as to activate the AOD service, thereby quickly entering the AOD process.

[0089] In actual implementation, the power management service module can first send a backlight instruction to the display driver, and then launch the AOD application to quickly enter the AOD process.

[0090] Compared with the related art, the present application has the following beneficial effects:

[0091] After monitoring the screen-off trigger event, the power management service module directly activates or starts the AOD service, quickly enters the AOD process, and does not execute the power-on and power-off process. Among them, "not executing the power-on and power-off process" is reflected in: since the power management service module does not issue a power-off command, the IC of the display screen does not go through the power-off process, saving the power-off time. Correspondingly, after entering the AOD process, since the IC of the display screen is in the power-on state, there is no need to go through the power-on process, saving the power-on time.

[0092] Through the present application scheme, the AOD service is directly activated or started after the screen is turned off, and the AOD process is quickly entered, in which the operation processes of powering off and on the IC of the display driver controlling the display screen are omitted. In other words, in the process of starting the AOD process after the screen is turned off, the IC power-on and power-off processes of the display screen are omitted. Therefore, the time consumption of starting AOD is greatly reduced, thereby improving the user experience.

[0093] Among them, the above-mentioned screen-off triggering event can be an event in which the POWER key (power key) is pressed when the screen is on, or an event in which no operation is performed after a timeout when the screen is on.

[0094] It should be noted that the electronic device described in this application is an electronic device with a display screen and a screen-off display function. For example, the electronic device can be a smart terminal such as a mobile phone, a tablet computer, a smart watch, etc. 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.

[0095] See also Figure 4, 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 interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, 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.

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

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

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

[0099] The external memory interface 120 generally refers to an external memory. In the embodiment of the present application, the external memory refers to a storage device other than the memory of the electronic device and the cache memory of the processor, and the storage device is generally a non-volatile memory.

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

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

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

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

[0104] 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 a light-on state, if the user presses the power button, the display screen state changes from the light-on state to the light-off state.

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

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

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

[0108] Figure 5 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0109] 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 5 The hardware layer that interacts with the above software structure is also reflected.

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

[0111] The application layer may include a series of application packages. For example, the application layer may include AOD applications and other applications, which are not limited in any way in the embodiments of the present application.

[0112] 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 and a status marking module, etc., and the embodiments of the present application do not impose any restrictions on this.

[0113] Among them, the power management service module can be used to manage the power on and off of the display screen.

[0114] The status marking module can be used to mark the power-on / power-off status of the display screen according to the instruction of the power management service module.

[0115] For example, after the display screen is powered on, the power management service module instructs the status marking module to mark the display screen status as ON. After the display screen is powered off, the power management service module instructs the status marking module to mark the display screen status as OFF.

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

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

[0118] The kernel layer is the layer between hardware and software. The kernel layer includes display drivers. The display driver can be combined with a display driver integrated circuit or chip (DDIC) to control the display function of the display screen, such as the off-screen display function. 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-screen state; when the backlight parameter of the display screen is set to any value in the range of [1, 255], the display screen switches to the bright screen state.

[0119] The hardware layer may include a display screen (such as an OLED or LCD), and a DDIC is provided corresponding to the display screen, also known as the IC of the display screen. The hardware layer also includes a power button, and by pressing the power button, the display screen can be triggered to change from being on to being off.

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

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

[0122] In order to highlight the improvement of the embodiment of the present application over the related art, the following compares the present application scheme with the related art in terms of the process of starting the AOD after the screen is turned off, the timing diagram, and the time consumption, and explains the improvement. Figures 6 to 8 Describe the AOD process, timing diagram and time consumption in the related technology, and then combine Figures 9 to 11B , the display control method provided by the embodiment of the present application is described in terms of the AOD process, timing diagram, and time consumption. Here, the scene of pressing the power button to trigger the screen off is used as an example for exemplary description.

[0123] In the embodiment of the present application, the screen-off process involves backlight instructions and power-off instructions. The backlight instruction is used to control the backlight panel of the display screen to be turned off. Among them, the backlight instruction includes the backlight parameter 0. The power-off instruction is used to control the display screen to be powered off, specifically, to control the IC of the display screen to be powered off. Therefore, "powering off the display screen" actually means "powering off the IC of the display screen".

[0124] In the embodiment of the present application, the AOD process involves a power-on instruction and an AOD display instruction. The AOD display instruction is used to control the display screen to display an off-screen pattern. The power-on instruction is used to control the display screen to power on, specifically, to control the IC powering on the display screen. Therefore, "powering on the display screen" actually means "powering on the IC of the display screen".

[0125] It can be understood that when the IC of the display screen is in a powered-on state, images can be sent to the display screen to provide display content; and the IC of the display screen can respond to the AOD display instruction to control the display screen to display an off-screen pattern.

[0126] Figure 6 It is a software architecture diagram of starting the AOD process after triggering the screen off in the related technology. Among them, starting the AOD process after triggering the screen off can be divided into two stages: the first stage: triggering the screen off and completing the screen off process, and the second stage: triggering AOD and completing the AOD process. Among them, the process of triggering the screen off and completing the screen off process refers to the direction indicated by the dotted arrow, and the process of triggering AOD and completing AOD is explained in the direction indicated by the solid arrow.

[0127] Phase 1: The process of triggering and completing screen off:

[0128] When the electronic device is in the screen-on state, if the user presses the power button of the electronic device, the power management service module of the electronic device will receive a message indicating that the user has pressed the power button of the electronic device.

[0129] 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 of the electronic device 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 of the electronic device may be transmitted through multiple modules in the software architecture and reach the power management service module. The specific information can be determined based on actual usage requirements and is not limited in the embodiments of the present application.

[0130] The power management service module sends a screen-off control instruction, which includes a backlight instruction and a power-off instruction. The screen-off control instruction is used to control the shutdown of the display backlight and the power-off of the display IC. The screen-off control instruction passes through the SurfaceFlinger service module and HWC in the software architecture in sequence, and then reaches the display driver. The display driver responds to the screen-off control instruction and sends a backlight instruction (including backlight parameter 0) and a power-off instruction to the display screen to drive the display screen to turn off the backlight and power off. In response to the backlight instruction and the power-off instruction, the display screen turns off the backlight and powers off, completing the screen-off.

[0131] After the display screen is turned off, the display driver returns a message of "screen off completion" to the upper layer. The message of "screen off completion" is transmitted through the HWC and SurfaceFlinger service modules in the software architecture in turn, and then reaches the power management service module.

[0132] After receiving the message of "complete screen off", the power management service module instructs the status marking module to mark the display screen status as OFF. OFF means that the display screen has been powered off.

[0133] Phase 2: Triggering AOD and completing the AOD process:

[0134] The AOD application will continue to monitor the mark content of the status mark module. When the AOD application monitors that the mark content is OFF, the AOD application knows that the display screen has been powered off, and the AOD trigger condition is met, so the AOD process is triggered.

[0135] The AOD application sends an AOD startup instruction, which includes a power-on instruction and an AOD display instruction. The AOD startup instruction is transmitted through the power management service module and the SurfaceFlinger service module in the software architecture in turn, and then reaches the HWC. The HWC first sends a power-on instruction to the display driver, and accordingly, the display driver responds to the power-on instruction and drives the IC of the display screen to power on. Then, the HWC sends the AOD display instruction to the display driver. The display driver sends the AOD display instruction to the IC of the display screen. In response to the AOD display instruction, the IC of the display screen obtains the screen-off pattern, and controls the display screen to display the screen-off pattern, completing the screen-off display.

[0136] pass Figure 6 It can be seen that in the process of starting the AOD process after triggering the screen off, according to relevant technologies, the display screen needs to be powered off first, and after the display screen is powered off, the AOD will be triggered to start. Since the display screen is powered off, the display screen needs to be powered on first in the AOD implementation process, and then the display screen is triggered to display the screen off pattern, thereby completing the screen off display. Among them, powering off the display screen will take a lot of time, and similarly, powering on the display screen will also take a lot of time.

[0137] exist Figure 6 On the basis of Figure 7 FIG. 1 shows a timing diagram of starting the AOD process after triggering screen off in the related art. Figure 7 As shown, the method includes the following steps S101-S118.

[0138] S101, the AOD application monitors the marking content of the status marking module to obtain the power-on / power-off state change of the display screen.

[0139] The AOD application monitors in real time whether the mark content of the status mark module changes to OFF. OFF means that the display screen has been powered off. When the AOD application monitors that the mark content of the status mark module changes to OFF, the AOD application starts the AOD process. When the AOD application does not monitor that the mark content of the status mark module changes to OFF, the AOD application does not respond.

[0140] S102: When the display screen is on, the power button receives an operation of pressing the power button by the user.

[0141] Among them, the event that the power button is pressed when the display screen is on can be called a screen-off trigger event. It can be understood that the screen-off trigger event meets the screen-off trigger condition.

[0142] S103, the power button reports the screen-off triggering event to the power management service module.

[0143] S104, after monitoring the screen-off triggering event, the power management service module sends a screen-off control instruction, which is transmitted through the SurfaceFlinger service module and HWC in turn to the display driver. The display driver sends the screen-off control instruction to the display screen to drive the display screen to turn off the backlight and power off.

[0144] The power management service module can issue a screen-off control instruction according to the screen-off trigger event and enter the screen-off process. The screen-off control instruction includes a backlight instruction and a power-off instruction.

[0145] S105, in response to the backlight instruction, turning off the backlight of the display screen.

[0146] The backlight instruction is used to control the backlight parameter of the display screen to be set to 0. When the backlight parameter of the display screen is set to 0, the backlight of the display screen is turned off.

[0147] S106, in response to the power-off instruction, controlling the IC of the display screen to power off.

[0148] The power-off instruction is used to control the IC of the display screen to power off.

[0149] In actual implementation, the display driver sends the backlight instruction and the power-off instruction to the IC of the display screen. Then the IC of the display screen controls the display screen to turn off the backlight according to the backlight instruction, and controls the IC of the display screen to power off according to the power-off instruction to complete the screen turning off.

[0150] S107, the display driver returns a message of "screen off completion" to the upper layer, and the message of "screen off completion" is transparently transmitted through the HWC and SurfaceFlinger service modules in turn and reaches the power management service module.

[0151] S108: The power management service module notifies the status marking module to mark the display screen status as OFF.

[0152] S109, the status marking module marks the display screen status as OFF according to the instruction. OFF means that the display screen is powered off.

[0153] S110, the status marking module sends a message that the display screen status changes to OFF to the AOD application, and the AOD application monitors that the display screen status changes to OFF.

[0154] When the AOD application monitors that the display screen state changes to OFF, the AOD application learns that the display screen is powered off, and the AOD trigger condition is met, thus triggering the start of the AOD process.

[0155] S111, the AOD application sends an AOD startup instruction to the power management service module. The AOD startup instruction is transparently transmitted through the power management service module and the SurfaceFlinger service module in sequence and reaches the HWC.

[0156] S112, the HWC sends a power-on instruction to the display driver in response to the AOD startup instruction, where the power-on instruction is used to control the IC of the display screen to power on.

[0157] S113, the display driver sends a power-on instruction to the display screen to drive the IC of the display screen to power on.

[0158] S114, in response to the power-on instruction, the display screen is powered on.

[0159] In actual implementation, the display driver sends a power-on instruction to the display driver integrated chip, and then the display driver integrated chip controls the IC of the display screen to power on according to the power-on instruction.

[0160] S115, the display driver returns a completion message to the HWC.

[0161] S116, after receiving the completion message, the HWC sends an AOD display instruction to the display driver.

[0162] S117, the display driver sends the AOD display instruction to the IC of the display screen to drive the display screen to display the screen-off pattern.

[0163] S118, in response to the AOD display instruction, the IC of the display screen controls the display screen to display a screen-off pattern.

[0164] Among them, in response to the AOD display instruction, the IC of the display screen first obtains the screen-off image, and then controls the display screen to display the screen-off pattern to complete the AOD process.

[0165] pass Figure 7It can be seen that in the process of starting the AOD process after the screen is turned off, according to the relevant technology, the display screen needs to be powered off first, and after the display screen is powered off, the AOD will be triggered. Since the display screen is powered off, the display screen needs to be powered on first in the AOD implementation process before the screen-off pattern can be displayed, thereby completing the screen-off display.

[0166] Above through Figure 6 and Figure 7 The AOD process and timing diagram of the related art are respectively described. Figure 8 Analyze the time consumption of the AOD process in related technologies.

[0167] like Figure 8 As shown, in the related art, after the user presses the power button or does not operate for a timeout, triggering the screen off, the display turns off the backlight, and then the IC of the display is powered off; then the AOD process is triggered: the display is powered on first, and then the display displays the screen off pattern to complete the AOD process. Among them, it will take a lot of time to power off the display, and it will also take a lot of time to power on the display after powering off. Therefore, it is more time-consuming to start the AOD process after triggering the screen off in the related art, resulting in the problem of slow implementation of AOD after the screen is turned off.

[0168] In response to the problem of long time spent in starting the AOD process after triggering the screen off in the above-mentioned related technologies, the embodiment of the present application has made improvements in the process. By controlling the IC of the display screen to not power off after triggering the screen off, the IC power-off and power-on processes of the display screen are omitted, and the time consumption is greatly reduced. Therefore, AOD can be quickly implemented and the user experience is improved.

[0169] Fig. 9 The software architecture diagram of starting the AOD process after triggering screen off provided by an embodiment of the present application is shown. Among them, the process of starting AOD after triggering screen off can be divided into two stages: the first stage: triggering screen off and completing the screen off process, and the second stage: quickly pulling up the AOD service and completing the AOD process.

[0170] Phase 1: The process of triggering and completing screen off:

[0171] When the electronic device is in the screen-on state, if the user presses the power button of the electronic device, the power management service module of the electronic device will receive a message indicating that the user has pressed the power button of the electronic device.

[0172] Different from Figure 6 In the related technical process shown in the embodiment of the present application, after the power management service module receives the message that the user presses the power button of the electronic device, the power management service module performs the following actions:

[0173] Reference Fig. 9In the direction indicated by the thin solid arrow, the power management service module sends the screen off control instruction. The screen off control instruction includes the backlight instruction, but does not include the power off instruction. The backlight instruction is used to instruct to turn off the backlight of the display screen, and the power off instruction is used to instruct to power off the IC of the display screen. Fig. 9 As shown, the backlight instruction passes through the SurfaceFlinger service module, HWC and display driver in the software architecture in sequence, and then reaches the IC of the display screen; the IC of the display screen turns off the backlight of the display screen based on the backlight instruction.

[0174] It should be noted that, unlike Figure 6 The related technical process shown in the present application scheme is as follows: Fig. 9 As shown by the “×” in the figure, the power management service module does not issue a power-off command, so the IC of the display screen is not powered off, which can reduce the time consumption by about 120ms.

[0175] Phase 2: Quickly launch the AOD service and complete the AOD process:

[0176] Different from Figure 6 In the related technical process shown in the embodiment of the present application, after the power management service module receives the message that the user presses the power button of the electronic device, the power management service module also performs another action: Fig. 9 In the direction indicated by the thick solid arrow, the power management service module reports the AOD trigger event to the AOD application, quickly starts the AOD service, starts the AOD application, and enters the AOD process.

[0177] On the one hand, compared with the related art which needs to wait for the display screen to turn off the backlight and the display screen IC to be powered off before starting the AOD process, the present application solution can quickly start the AOD process.

[0178] On the other hand, compared with the related art in which the AOD application determines that the AOD trigger condition is satisfied by monitoring the marking content of the status marking module to be OFF, the AOD application in the embodiment of the present application does not need to monitor the marking content of the status marking module. In the present application scheme, when the AOD application receives the AOD trigger event reported by the power management service module, the AOD service can be directly started to enter the AOD process.

[0179] Specifically, the AOD application sends an AOD startup instruction to the lower layer, and the AOD startup instruction includes a power-on instruction and an AOD display instruction. The AOD startup instruction passes through the power management service module and the SurfaceFlinger service module in the software architecture in turn, and then reaches the HWC. The HWC first sends a power-on instruction to the display driver. Since the display screen is not powered off, the display driver does not need to drive the IC of the display screen to power on. The display driver directly returns an OK response message. After the HWC receives the OK response message returned by the display driver, the HWC sends the AOD display instruction to the display driver, and then the display driver sends the AOD display instruction to the IC of the display screen. In response to the AOD display instruction, the IC of the display screen obtains the screen-off pattern and controls the display screen to display the screen-off pattern.

[0180] It should be noted that the present application scheme improves the screen-off process and the AOD process. Two possible implementation methods are given below:

[0181] Method 1: In the screen-off process, the IC of the display screen is not powered off by not sending a power-off command to the display screen; then, according to the conventional AOD process, the AOD application sends a power-on command and an AOD display command to the display screen. When the display driver receives the power-on command, since the display driver determines that the display screen is in the power-on state, the display driver does not need to send a power-on command to the display screen, and accordingly the display screen does not receive the power-on command, so the IC of the display screen remains in the power-on state.

[0182] Method 2: In the screen-off process, the IC of the display screen is not powered off by not sending a power-off command to the display screen; then, in the improved AOD process, the AOD application only sends an AOD display command to the display screen, but does not send a power-on command to the display screen. Accordingly, the display screen will not receive a power-on command, so the IC of the display screen remains powered on.

[0183] It should be noted that both the above-mentioned method 1 and method 2 can achieve the effect of not powering off or not powering on the display screen. Fig. 9 and Fig.10 Mode 1 is used as an example for illustrative description, and mode 2 may also be used in actual implementation. The specific configuration may be based on actual use requirements, and the present application embodiment does not limit this.

[0184] In the embodiment of the present application, since the display screen is not actually powered off, the display screen responds to the AOD display instruction issued by the upper layer of the software architecture, and there is no need to execute the power-on process. The display screen can directly display the screen-off pattern to complete the screen-off display. In the AOD implementation process provided by the embodiment of the present application, the power-off and power-on of the display screen are omitted, so the time consumption of powering off and powering on the IC of the display screen can be reduced, and the time required to start the AOD after the screen is triggered to turn off the screen is greatly reduced.

[0185] For example, in the related art, the hardware requirements based on the screen chip specifications take about 300ms, which mainly refers to the time required to power off and power on the display screen. Since the present application solution omits the power off and power on of the display screen, about 300ms can be saved. Compared with the time required for the AOD process in the related art, which takes at least 600ms, the present application can save about 300ms, thus greatly reducing the time required to start AOD after the screen is turned off.

[0186] exist Fig. 9 On the basis of Fig.10 FIG. 1 shows a timing diagram of starting the AOD process after triggering screen off in an embodiment of the present application. Fig.10 As shown, the method includes the following steps S201-S202, S203A-S206A and S203B-S210B.

[0187] S201, when the display screen is on, the power button receives an operation of the user pressing the power button.

[0188] S202, the power button reports the screen-off triggering event to the power management service module.

[0189] On the one hand, when the power management service module receives a screen-off triggering event, the power management service module sends a backlight instruction to the lower layer and enters the screen-off process.

[0190] On the other hand, when the power management service module receives a screen-off triggering event, the power management service module reports the AOD triggering event to the AOD application, and can directly start the AOD service and enter the AOD process.

[0191] It should be noted that Fig.10 The timing diagram of the embodiment of the present application shown in FIG. Figure 7 Compared with the related technology timing diagram shown in the figure, the main difference is Fig.10 S203A-S206A (screen off process) and S203B-S210B (AOD process) are shown in the dotted box.

[0192] The following first describes the screen-off process in conjunction with S203A-S206A.

[0193] S203A, the power management service module sends a screen-off control instruction (including only the backlight instruction), which passes through the SurfaceFlinger service module and HWC in sequence, and then reaches the display driver.

[0194] Compared with the related art, the screen-off control instruction does not include a power-off instruction.

[0195] S204A-S205A, the display driver sends a backlight instruction to the IC of the display screen. In response to the backlight instruction, the IC of the display screen controls to turn off the backlight of the display screen.

[0196] In actual implementation, when the display screen turns off the backlight, the display screen can return a response message to the display driver to feedback to the display driver that the display screen has turned off the backlight.

[0197] 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 at this time. The backlight parameter 0 indicates turning off the backlight of the display. In this way, in response to the backlight instruction, the IC of the display screen 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.

[0198] Compared with the related art, the embodiment of the present application does not issue a power-off instruction, and the IC of the display screen is not powered off. Fig.10 As shown by the “×” in the figure, in the screen off process, only the backlight command is issued, but no power off command is issued, so the IC of the display screen is not powered off. Fig.10 As shown in the bold box in FIG, since the IC power-off action of the display is omitted, the purpose of reducing time consumption can be achieved.

[0199] S206A, the display driver returns a message of "screen off completion" to the upper layer, and the message of "screen off completion" passes through the HWC and SurfaceFlinger service modules in sequence, and finally reaches the power management service module.

[0200] The AOD process is first described below in conjunction with S203B-S210B.

[0201] S203B: The power management service module reports the AOD triggering event to the AOD application.

[0202] S204B, after receiving the AOD triggering event, the AOD application starts the AOD service.

[0203] S205B, the AOD application sends an AOD startup instruction. The AOD startup instruction is transmitted through the power management service module and the SurfaceFlinger service module in sequence, and finally reaches the HWC. Among them, the AOD startup instruction includes a power-on instruction and an AOD display instruction.

[0204] S206B, HWC first sends a power-on instruction to the display driver.

[0205] S207B, the display driver returns an OK message to the HWC to notify that the IC of the display screen is in a powered-on state.

[0206] It should be noted that since the IC of the display screen was not powered off before, the display screen does not need to be powered on again, and the display driver can directly return an OK message to the HWC.

[0207] Compared with the related art, in the embodiment of the present application, since the display screen is not powered off, there is no need to power it on in the AOD process. Fig.10 As shown in the bold box in FIG, the display screen does not have a power-on action, thereby achieving the purpose of reducing time consumption.

[0208] S208B, in response to the OK message, the HWC sends an AOD display instruction to the display driver again.

[0209] S209B, the display driver sends the AOD display instruction to the IC of the display screen.

[0210] S210B, in response to the AOD display instruction, the IC of the display screen controls the display screen to display a screen-off pattern.

[0211] The solution of the related technology is that when the screen-off triggering conditions are met, the IC of the display screen usually turns off the backlight of the display screen and controls the IC of the display screen to power off to complete the screen off. Then the AOD is triggered to start, and according to the conventional AOD process execution rules, the IC of the display screen is first controlled to power on, and then the IC of the display screen controls the display screen to display the screen-off pattern.

[0212] Compared with the related art, when the screen-off triggering conditions are met, the embodiment of the present application can quickly enter the AOD process and eliminate the IC power-off and power-on process of the display screen, greatly reducing the time required to start AOD after the screen-off is triggered.

[0213] Above through Fig. 9 and Fig.10 The AOD process and timing diagram of starting the AOD after triggering the screen off in the embodiment of the present application are respectively described. Fig.11A and Fig. 11B A comparative analysis is made of the time consumption of starting the AOD process after triggering screen off provided in the embodiment of the present application.

[0214] like Fig.11A As shown, in the related art, after the user presses the power button or does not operate for a timeout, triggering the screen off, the display screen turns off the backlight, and then the IC of the display screen is powered off; then the AOD process is triggered: the IC of the display screen is powered on first, and then the display driver controls the display screen to display the screen off pattern obtained from the IC of the display screen, completing the AOD process. Among them, it takes a lot of time to power off the display screen, and it also takes a lot of time to power on the display screen after powering off.

[0215] like Fig. 11BAs shown, through the embodiment of the present application, when the user presses the power button or there is no operation after a timeout, triggering the screen off, the display screen turns off the backlight, but the IC of the display screen is not powered off. Since the IC of the display screen is not powered off, the time consumed by powering off the display screen can be saved. Then the AOD process is triggered to start: the display screen displays the screen off pattern, and the AOD process is completed. Since there is no need to power on again, the time consumed by powering on the display screen can be saved. Therefore, the AOD process of starting after triggering the screen off provided in the embodiment of the present application can greatly reduce the time required to start AOD after triggering the screen off, thereby improving the user experience.

[0216] In the display control method provided in the embodiment of the present application, when the screen-off triggering condition is met, the power management service module only sends a backlight instruction to the display driver, and cancels sending a power-off instruction to the display driver; therefore, the display driver turns off the backlight of the display screen, but does not execute the power-off process, so that the IC of the display screen will not be triggered to power off, saving the power-off time. Moreover, when the screen-off triggering condition is met, the power management service module directly triggers the start of the AOD application. After the AOD application sends the AOD start instruction, since the IC of the display screen is already in a powered-on state, the IC of the display screen does not need to be powered on, thus saving the power-on time. Through the solution of the present application, the AOD process is quickly started after the screen is triggered to go off, and the display screen IC power-off and power-on process is omitted, so the time consumption of starting AOD is greatly reduced, improving the user experience.

[0217] Compared with the related art, the improvement of the present application scheme is that: when the screen-off triggering conditions are met, the power management service module directly pulls up the AOD service and triggers the AOD application to start, so that the AOD process can be started quickly, which reduces the time required to start AOD after the screen is turned off to a certain extent, and improves the user experience. On the other hand, compared with the related art, the improvement of the present application scheme is that: in the process of starting the AOD after the screen is turned off, the time consumed by powering off and powering on the display screen is omitted, which can greatly reduce the time required to start AOD after the screen is turned off, and improve the user experience.

[0218] The present application solution saves the power-off and power-on of the display screen, thus saving about 120ms of power-off time of the display screen and about 120ms of power-on time of the display screen. Therefore, the present application solution greatly reduces the time required to start the AOD after triggering the screen off.

[0219] The present application scheme improves the mobile phone software system to shorten the time taken to start the AOD process after the screen is turned off, thereby improving the user experience. The optimization scheme for the off-screen display performance described in the present application embodiment can support all current products and adapt to all domestic and overseas versions, and has universality and versatility.

[0220] 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".

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

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

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

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

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

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

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

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

[0229] 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 method comprises: When a preset condition is met, the power management service module sends a backlight instruction to the display driver, so that the display driver turns off the backlight of the display screen based on the backlight instruction; The power management service module triggers the start of the screen-off display AOD application; The power management service module receives an AOD start instruction from the AOD application; The power management service module sends the AOD startup instruction to the display driver, so that the display driver controls the display screen to display a screen-off pattern based on the AOD startup instruction; After the power management service module sends the AOD startup instruction to the display driver, the method also includes: when a first preset time period is met, the power management service module sends a power-off instruction to the display driver, so that the display driver controls the integrated circuit IC of the display screen to power off based on the power-off instruction.

2. The method according to claim 1, characterized in that After the preset condition is met and before the first preset time period is met, the IC of the display screen remains powered on.

3. The method according to claim 1, characterized in that: After the power management service module sends a backlight instruction to the display driver, the method further includes: The power management service module receives a first message from the display driver, where the first message is used to indicate that the backlight of the display screen has been turned off.

4. The method according to any one of claims 1 to 3, characterized in that The preset condition is: when the display screen is in the screen-on state, an operation of the user pressing the power button is received; or, when the display screen is in the screen-on state, a time period in which no user operation is received is greater than or equal to a second preset time period.

5. The method according to any one of claims 1 to 3, characterized in that The AOD startup instruction includes a power-on instruction and an AOD display instruction; The power management service module sends the AOD startup instruction to the display driver, so that the display driver controls the display screen to display a screen-off pattern based on the AOD startup instruction, including: The power management service module sends the power-on instruction and the AOD display instruction to the display driver respectively, so that the display driver responds to the power-on instruction and returns a message that the IC of the display screen is in a powered-on state, and then the display driver responds to the AOD display instruction and controls the display screen to display the screen-off pattern.

6. The method according to claim 5, characterized in that The AOD startup instruction is triggered by the AOD application, transmitted through the power management service module, the surface drawing SurfaceFlinger service module and the hardware synthesis HWC module, and reaches the display driver.

7. The method according to claim 6, characterized in that After the power-on instruction is transmitted to the HWC module, the HWC module sends the power-on instruction to the display driver; when the HWC module receives a message that the IC of the display screen is in a powered-on state, the HWC module sends the AOD display instruction to the display driver.

8. The method according to claim 6 or 7, characterized in that: The backlight instruction is triggered by the power management service module, transmitted through the SurfaceFlinger service module and the HWC module, and reaches the display driver.

9. 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 8.

10. 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 8.