Control method for always-on display, and electronic device and storage medium
By omitting the power-off and power-on process of screen-off display in electronic devices and directly displaying the screen-off pattern, the problem of long screen-off display delay is solved, the user experience is improved and the startup time is reduced.
Patent Information
- Application Number
- PCT/CN2023/134750
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2023-11-28
- Publication Date
- 2024-10-31
AI Technical Summary
When existing electronic devices change the screen from on to off, the screen-off display delay is too long, resulting in a long time to start the screen-off display and affecting the user experience.
When the screen-off triggering conditions are met, the power-off and power-on processes of the display are omitted, and the backlight of the display is directly controlled to turn off and the IC chip is kept powered on, thereby quickly displaying the screen-off pattern.
It significantly reduces the startup time of the screen-off display, improves the user experience, saves about 300ms of time, and increases the speed of the screen-off display.
Smart Images

Figure CN2023134750_31102024_PF_FP_ABST
Abstract
Description
Screen-off display control method, electronic device, and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 28, 2023, with application number 202310491114.X and application name “Control method, electronic device and storage medium for off-screen display”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a method for controlling off-screen display, an electronic device, and a storage medium. Background Art
[0003] With the rapid development of electronic technology, electronic devices such as smartphones and tablets are becoming increasingly versatile and have become indispensable tools in people's lives and work. For example, users frequently turn on their mobile phone screens to check information such as the time and notifications. To facilitate basic information like the time while conserving battery life, the always-on display (AOD) feature has emerged.
[0004] The implementation principle of the AOD function is: assuming that the mobile phone has turned on the off-screen display function, after 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 the off state. For example, these pixels in the off state 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.
[0005] Currently, when an electronic device changes from screen on to screen off, the screen-off pattern will not be displayed until a long time after the screen is turned off. That is to say, it takes a long time to enter the screen-off display after the screen is turned off, and there is a problem of long delay in starting the screen-off display.
[0006] Summary of the Invention
[0007] The present application provides a control method, electronic device and storage medium for off-screen display, which eliminates the power-off and power-on processes in the process of starting AOD after triggering the screen off, thereby greatly reducing the time consumption of starting AOD and improving the user experience.
[0008] In a first aspect, the present application provides a method for controlling an off-screen display, which is applied to an electronic device, the electronic device including a display and a processor, the processor including an AOD application, a display driver, and a power management service module, the method comprising:
[0009] When the screen-off triggering conditions are met, the display driver receives backlight instructions and power-off instructions from the power management service module;
[0010] The display driver sends only the backlight instruction in the backlight instruction and the power-off instruction to the display screen, so that the display screen turns off the backlight of the display screen based on the backlight instruction and keeps the integrated circuit (IC) chip of the display screen in a powered-on state;
[0011] The display driver receives the AOD display instruction from the AOD application;
[0012] In response to the AOD display instruction, the display driver controls the display screen to display a screen-off pattern.
[0013] Through the control method for off-screen display provided by the embodiment of the present application, when the screen-off triggering conditions are met, the display driver will receive the backlight instruction and the power-off instruction issued by the upper layer, and the display driver responds to the backlight instruction to control the backlight of the display screen to turn off, and the display driver intercepts the power-off instruction and does not control the display screen to power off, so that the IC chip of the display screen will not be triggered to power off, saving the time of powering off. Then, when the display driver receives the AOD display instruction issued by the AOD application, since the IC chip of the display screen is in the power-on state, there is no need to trigger the IC chip of the display screen to power on, so the display driver can trigger the display screen to display the screen-off pattern more quickly. Through the solution of the present application, the process of powering off and powering 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 off-screen display becomes faster, which improves the user experience.
[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 chip 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, completing 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, starting the AOD process after triggering the screen off is time-consuming, resulting in the problem of slow implementation of AOD after the screen is off.
[0015] Compared with related technologies, the present application solution eliminates the time consumption caused by powering off and on the display screen 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, and improve the user experience.
[0016] For example, in the related art, the hardware requirements based on the screen chip specifications require about 300ms, which mainly refers to the time required to power off and power on the display. Since the present application solution omits the power-off and power-on of the display, it can save about 300ms. Compared with 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 the AOD after the screen is turned off.
[0017] It should be noted that although the process of sending a no-power-off indication message to the display driver in Example 1 of the present application also consumes time, compared with the time consumed in powering off and on the display screen, the time required for transmitting the no-power-off indication message is very small and can be ignored.
[0018] In some possible implementations, the method further includes: when the screen-off triggering condition is met, the display driver receives a no-power-off indication message from the power management service module.
[0019] In this case, the display driver only sends the backlight instruction and the backlight instruction in the power-off instruction to the display screen, including: in response to the no power-off indication message, the display driver only sends the backlight instruction and the backlight instruction in the power-off instruction to the display screen.
[0020] It should be noted that the time when the display driver receives the non-power-off instruction message is earlier than the time when the display driver receives the backlight instruction and the power-off instruction.
[0021] According to the solution provided by the present application, when the screen-off triggering condition is met, the display screen is not powered off first, but a no-power-off indication message is first sent to the display driver. The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. Then when the display driver receives the power-off instruction, the display driver executes the no-power-off logic, that is, it does not drive the IC chip of the display screen to power off. In the process of triggering the start of AOD, since the display screen is not powered off, the screen-off pattern can be directly displayed after the AOD is triggered to complete the screen-off display, without the need to display the screen-off pattern after the display screen is powered on as in the related art. In the AOD implementation process provided by the present application, the power-off and power-on of the display screen are omitted, which greatly reduces the time required to start the AOD after the screen is triggered.
[0022] In some possible implementations, the screen-off triggering condition may be: when the display screen is in the on-screen state, a user presses the power button. For example, when the phone screen is in the on-screen state, if the user presses the power button, the phone screen will be turned off. In this case, the phone screen will switch from the on-screen state to the off-screen state, at which point all pixels on the display screen will dim and turn off, and then the off-screen pattern will be displayed again. After a first preset duration (e.g., 5 seconds), the screen screen will no longer display the off-screen pattern, and all pixels will dim and turn off.
[0023] In other possible implementations, the screen-off triggering condition may be: when the display screen is in the on state, no user operation is continuously received for a period greater than or equal to a second preset time period. For example, the second preset time period may be a system-preset time period, such as 15 seconds, or a user-defined time period, such as 1 minute.
[0024] For example, when the phone is in the screen-on state, the timer will count the period during which no user input is received. If the counted time exceeds a preset second preset time (for example, 1 minute), the phone will automatically trigger the screen to turn off.
[0025] Through this application solution, the display screen power-off and power-on process 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.
[0026] In some possible implementations, after the display driver sends only the backlight instruction and the backlight instruction in the power-off instruction to the display screen, the above method also includes: the display driver generates a first message, which is used to indicate that the IC chip of the display screen is in a power-off state; the display driver sends the first message to the power management service module.
[0027] Unlike the solution in the related art in which the display driver sends backlight instructions and power-off instructions to the display screen, through the solution of this application, after receiving the backlight instructions and power-off instructions from the power management service module, the display driver only sends the backlight instructions to the display screen, and intercepts the power-off instructions, keeping the IC chip of the display screen in the powered-on state.
[0028] Furthermore, unlike related technologies, the display driver returns a false message to the power management service module, confirming that the display's IC chip has been powered off, without actually powering off the display. This message allows the power management service module to confirm the completion of the display power-off process. Because the display's IC chip remains powered off, the time required to power off the display is reduced.
[0029] In some possible implementations, the processor further includes a surface drawing SurfaceFlinger service module and a hardware composition module HWC.
[0030] The AOD display instruction is triggered by the AOD application when the AOD application monitors the first message. After the AOD application triggers the AOD display instruction, it is transmitted through the SurfaceFlinger service module and the HWC to reach the display driver.
[0031] In some possible implementations, the above-mentioned display driver receives the AOD display instruction from the AOD application, including: the display driver receives a power-on instruction from the HWC, which is triggered by the HWC after receiving the AOD display instruction; the display driver returns a response message of the power-on instruction to the HWC, which is used to indicate that the display screen is in a powered-on state; the display driver receives the AOD display instruction transmitted through the HWC.
[0032] In some possible implementations, the power-off command and backlight command are triggered by the power management service module, transmitted through the SurfaceFlinger service module and HWC, and then reach the display driver. The first message is triggered by the display driver, transmitted through the HWC and SurfaceFlinger service module, and then returned to the power management service module.
[0033] In some possible implementations, the above-mentioned response to the AOD display instruction, the display driver controls the display screen to display the screen off pattern, including: in response to the AOD display instruction, the display driver obtains the screen off pattern from the IC chip of the display screen; the display driver sends the AOD display instruction and the screen off pattern to the display screen.
[0034] In other possible implementations, the above-mentioned response to the AOD display instruction, the display driver controls the display screen to display the screen-off pattern, including: in response to the AOD display instruction, the display driver sends the AOD display instruction to the display screen; in response to the AOD display instruction, the display screen obtains the screen-off pattern from the IC chip of the display screen and displays the screen-off pattern.
[0035] Through the solution of this application, since the IC chip of the display screen is in a powered-on state, the IC chip of the display screen does not need to be powered on again after starting the AOD. The display driver can quickly obtain the screen-off pattern from the IC chip of the display screen, and send the AOD display instruction and the screen-off pattern to the display screen to control the display screen to display the screen-off pattern. Through the solution of this application, the time taken to start the AOD is greatly reduced. Therefore, after triggering the screen-off, starting the screen-off display becomes faster, which improves the user experience.
[0036] In some possible implementations, after the display driver controls the display screen to display a screen-off pattern, the above method further includes: after the display screen displays the screen-off pattern for a time period greater than or equal to a first preset time period, the display driver sends a power-off instruction to the display screen to control the IC chip of the display screen to power off.
[0037] In the related art, after the screen is triggered to go out, the backlight is turned off and the IC chip of the display screen is powered off, and then the AOD is started, and after the IC chip of the display screen is powered on, the display screen is controlled to display the screen-off pattern. Unlike the related art, in the present application, after the screen is triggered to go out, only the backlight is turned off, and the IC chip of the display screen is not powered off, and then the AOD is started, and the IC chip of the display screen does not need to be powered on. This can more quickly control the display screen to display the screen-off pattern, and after the display screen displays the screen-off pattern, the IC chip of the display screen is controlled to power off. Since the IC chip of the display screen is in a powered-on state, the IC chip of the display screen does not need to be powered on again after the AOD is started, so the time consumed by powering on the display screen can be saved. Through the present application solution, the time consumed by starting the AOD is greatly reduced, so after the screen is triggered to go out, starting the screen-off display becomes faster, which improves the user experience.
[0038] The processor may further include a touch screen service module, a touch screen interface, and a touch screen driver.
[0039] In some possible implementations, the above-mentioned no-power-off indication message is generated by the power management service module, and reaches the display driver after being transmitted through the AOD application, the touch screen service module, the touch screen interface, and the touch screen driver.
[0040] In some other possible implementations, the above-mentioned non-power-off indication message is generated by the power management service module, and reaches the display driver after being transmitted through the touch screen service module, the touch screen interface and the touch screen driver.
[0041] The processor may further include a display service module and a display interface.
[0042] In some possible implementations, the above-mentioned non-power-off indication message is generated by the power management service module, and reaches the display driver after being transmitted through the AOD application, the display service module and the display interface.
[0043] In some of the possible implementations described above, the non-power-off indication message is generated by the power management service module, and is transmitted through the display service module and the display interface before reaching the display driver.
[0044] Through this application solution, the time taken to start AOD is greatly reduced. Therefore, after the screen is turned off, starting the screen-off display becomes faster, which improves the user experience.
[0045] In a second aspect, the present application provides a device for controlling an off-screen display, the device comprising a unit for executing the method described in the first aspect. The device may be configured to execute the method described in the first aspect. For a description of the units in the device, please refer to the description of the first aspect above. For the sake of brevity, these descriptions are omitted here.
[0046] 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.
[0047] 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 configured to execute the computer program or instructions so that the method in the first aspect is executed.
[0048] In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program (also referred to as instructions or code) for implementing the method in the first aspect. For example, when the computer program is executed by a computer, the computer can perform the method in the first aspect.
[0049] In a fifth aspect, the present application provides a chip comprising a processor. The processor is configured to read and execute a computer program stored in a memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip further comprises a memory, the memory being connected to the processor via a circuit or wire.
[0050] In a sixth aspect, the present application provides a chip system comprising a processor. The processor is configured to read and execute a computer program stored in a memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip system further comprises a memory, the memory being connected to the processor via a circuit or wire.
[0051] 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.
[0052] 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
[0053] FIG1 is a schematic diagram of an application scenario of a method for controlling off-screen display provided in an embodiment of the present application;
[0054] FIG2 is a schematic diagram of two application scenarios of the method for controlling the off-screen display provided in an embodiment of the present application;
[0055] FIG3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0056] FIG4 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0057] FIG5 is a flowchart of a method for starting screen-off display after screen-off is triggered, provided by the related art;
[0058] FIG6 is a timing diagram of a method for starting screen-off display after screen-off is triggered, provided by the related art;
[0059] FIG7 is a schematic diagram showing the time consumption of a method for starting screen-off display after screen-off is triggered, provided by the related art;
[0060] FIG8 is a flow chart of a method for controlling off-screen display provided in Example 1 of the present application;
[0061] FIG9 is a timing diagram of a method for controlling off-screen display provided in Example 1 of the present application;
[0062] FIG10 is a schematic diagram showing the time consumption of the method for controlling the off-screen display provided in the first embodiment of the present application;
[0063] FIG11 is a flow chart of a method for controlling the off-screen display provided in the second embodiment of the present application;
[0064] FIG12 is a timing diagram of a method for controlling screen-off display provided in Example 2 of the present application;
[0065] FIG13 is a flow chart of a method for controlling the off-screen display provided in Example 3 of the present application;
[0066] FIG14 is a timing diagram of a method for controlling screen-off display provided in Example 3 of the present application;
[0067] FIG15 is a flow chart of a method for controlling off-screen display provided in a fourth embodiment of the present application;
[0068] Figure 16 is a timing diagram of the control method for off-screen display provided in Example 4 of the present application. DETAILED DESCRIPTION
[0069] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0070] The term "and / or" as used herein describes an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. The symbol " / " as used herein indicates that the related objects are in an "or" relationship, for example, A / B means either A or B.
[0071] In the specification and claims herein, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. In the description of the embodiments of this application, unless otherwise specified, the meaning of "plurality" refers to two or more. For example, "multiple processing units" refers to two or more processing units, etc.; "multiple components" refers to two or more components, etc.
[0072] In the embodiments of this 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 this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0073] With the rapid development of electronic technology, electronic devices such as smartphones and tablets are becoming increasingly versatile and have become indispensable tools in people's lives and work. For example, users frequently turn on their mobile phone screens to check information such as the time and notifications. To facilitate basic information like the time while conserving battery life, the always-on display (AOD) feature has emerged.
[0074] The implementation principle of the AOD function is: assuming that the mobile phone has turned on the off-screen display function, after 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 the off state. For example, these pixels in the off state 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.
[0075] For example, when the off-screen display function is turned on on an electronic device, when the electronic device changes from a bright screen to a dark screen, AOD is triggered, that is, a local area of the screen is illuminated and a dark screen pattern is displayed. After a period of time (5 seconds), the dark screen pattern automatically disappears and the entire screen is turned off. For ease of explanation, the following electronic device is used as an example for an example mobile phone.
[0076] Exemplarily, Figure 1 shows a schematic diagram of the off-screen display effect of a mobile phone after the screen changes from on to off. As shown in (a) in Figure 1, the display screen of the mobile phone is in a lit state, referred to as the on-screen state. As shown in (b) in Figure 1, the mobile phone changes from the on-screen state to the off-screen state (or referred to as the off-screen state), and all pixels of the display screen are turned off. As shown in (c) in Figure 1, the mobile phone switches from the off-screen state to the off-screen display state. When an electronic device is in the off-screen display state, some pixels of the screen are lit to display information such as the clock, date, and notifications, which makes it easier for users to view the above information and reduces the power consumption of the electronic device.
[0077] Currently, when an electronic device changes from screen on to screen off, the screen-off pattern will be displayed after a long time. That is to say, it takes a long time to enter the screen-off display after the screen is turned off, and there is a problem of long screen-off display delay.
[0078] Among them, the main reasons for the slowness in the current process are: the hardware requirements based on the screen 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, which will cause the screen to take a long time to turn off, and then the display will be slow.
[0079] In order to solve the problem of slow display when the screen is off, an embodiment of the present application provides a control method for displaying when the screen is off. By improving the mobile phone software system, the time taken to start the AOD process after triggering the screen off is shortened to improve the user experience.
[0080] In order to better understand the embodiments of the present application, the embodiments of the present application are briefly described below:
[0081] In the case where the screen is triggered to turn off when the screen is on, the power management service can send a no-power-off indication message to the display driver in advance to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. In this way, when the display driver receives the screen-off indication message sent by the upper layer, the display driver responds to the screen-off indication message and does not turn off the screen, so that the display screen will not be triggered to power off and turn off the screen, saving the time of powering off. Then, when the display driver receives the screen-off display instruction sent by the AOD application, the display driver will trigger the display screen to display the screen-off pattern and directly start the AOD process without the need for the display screen to power on and light up the screen first and then display the screen-off pattern, saving the time of powering on. Through the solution of this application, the power-off and power-on processes are omitted in the process of starting the AOD process after triggering the screen off, so the time consumption of starting AOD is greatly reduced, which improves the user experience.
[0082] The optimization solution for off-screen display performance described in the embodiment of this application can support all current products and be adapted to all domestic and overseas versions, and is universal and applicable.
[0083] In the embodiment of the present application, triggering screen off in the screen-on state may include the following two possible implementation scenarios:
[0084] Scenario 1: Turn off the screen by pressing the power button
[0085] As shown in Figure 2 (a), when the phone's screen is on, if the user presses the power button, the screen will be turned off. In this case, the phone's display switches from the on state to the off state, at which point all pixels on the display dim and turn off, and then the off-screen pattern appears again. After a certain period of time (for example, 5 seconds), the off-screen pattern disappears, and all pixels on the display dim and turn off.
[0086] Scenario 2: Screen off due to timeout and no operation
[0087] As shown in (b) of Figure 2, when the phone is in the screen-on state and has not received any user input (no operation has occurred during the timeout period), the phone will be triggered to automatically turn off the screen. For example, when the phone is in the screen-on state, a timer will count the period during which no user input has been received. If the count exceeds a preset time (e.g., 1 minute), the phone will automatically trigger the screen-off state. In this case, the phone's display will switch from the screen-on state to the screen-off state, at which point all pixels on the display will dim and turn off, and then the screen-off pattern will be displayed again. After a certain period of time, the screen will no longer display the screen-off pattern, and all pixels will dim and turn off.
[0088] It should be noted that both of the above-mentioned application scenarios are applicable to the control method for the off-screen display provided in the embodiment of the present application. That is, in the scenario where the screen is turned off by pressing the power button in the bright screen state, the control method for the off-screen display 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 control method for the off-screen display provided in the embodiment of the present application can be executed. The control method for the off-screen display provided in the embodiment of the present application can solve the problem of a long time-consuming process of entering the off-screen display in the scenario where the screen is turned off due to timeout without operation or when the screen is turned off by pressing the power button.
[0089] For ease of explanation, the following embodiments will use the scenario where the screen is turned off by pressing the power button as an example to illustrate the implementation of the method for controlling the screen off display. The implementation method used in the scenario where the screen is turned off due to no operation after a timeout will not be described in detail. For details, please refer to the detailed description of the implementation method used in the scenario where the screen is turned off by pressing the power button.
[0090] It should be noted that the electronic device described in this application is an electronic device with a display screen and an off-screen display function, which can be a smart terminal such as a mobile phone, tablet computer, smart watch, etc. The specific technology and specific device form used in the electronic device are not limited here. For ease of description, the subsequent embodiments all use the electronic device as an example of a mobile phone.
[0091] 3 , which is a schematic diagram of the structure 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 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, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, etc.
[0092] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. For example, the processor 110 is used to execute the control method for the off-screen display in the embodiment of the present application.
[0093] 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.
[0094] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly retrieve it from the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0095] 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.
[0096] Internal memory 121, also referred to as "memory," can be used to store computer-executable program code, including instructions. Internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system and at least one application required for a function (e.g., sound playback, image playback, etc.).
[0097] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be an organic light-emitting diode (OLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0098] The touch sensor 180K is also called a "touch panel" or a touch screen (TP) sensor. The touch sensor 180K can be mounted on the display screen 194. 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 touch operations applied to or near the touch sensor. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided via the display screen 194.
[0099] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0100] 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 bright screen state, if the user presses the power button, the display screen state changes from the bright screen state to the dark screen state.
[0101] The above is a specific description of the embodiments of the present application using the electronic device 100 as an example. It should be understood that the structure illustrated in the embodiments 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 shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in the figure may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.
[0102] Furthermore, operating systems run 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 these operating systems.
[0103] The operating system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0104] FIG4 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
[0105] A layered architecture divides software into several layers, each with distinct roles and divisions of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers: from top to bottom, the application layer (applications), the application framework layer (application framework), the system native library (referred to as the native layer), the hardware abstraction layer (HAL), and the kernel layer (kernel). For ease of illustration, Figure 4 also shows the hardware layer that interacts with the above software structure.
[0106] It should be noted that Android is a Linux-based operating system primarily used for portable devices. Upper-layer application development in the Android system (e.g., the application layer and application framework layer) is generally done in Java. Because some underlying tasks are not easily implemented in Java, tasks involving local services, linked libraries, or hardware drivers are often implemented using C programs, which run in the system's native libraries. These libraries contain interfaces for Java to call C++ code.
[0107] 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 this embodiment of the present application.
[0108] The application framework layer provides an application programming interface (API) and programming framework for the application layer's applications. The application framework layer includes some predefined functions. For example, the application framework layer may include a power management service (PMS) module and a status marking module, etc., which are not limited in this embodiment of the application.
[0109] Among them, the power management service module is used to manage the power on and off of the display screen.
[0110] The status marking module is used to mark the power-on / power-off status of the display screen according to the instruction of the power management service module.
[0111] 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.
[0112] The Native layer can include multiple functional modules.
[0113] For example, in this application, the Native layer includes a SurfaceFlinger service module. The SurfaceFlinger service module accepts graphics display data from multiple sources, synthesizes them, and then sends them to the display device. Image display can be collaboratively implemented by multiple classes, such as SurfaceFlinger, HWC, and display screens.
[0114] For example, in the present application, the Native layer may further include a TP service module, wherein the TP service module is used to provide touch screen services and complete touch screen processing in combination with TP_HAL and TP driver.
[0115] For another example, in the present application, the Native layer may further include a display service module, wherein the function of the display service module is to provide display services and complete display processing in combination with the display HAL and display driver.
[0116] 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, providing hardware support for the SurfaceFlinger service.
[0117] For example, in the solution of the present application, the HAL layer may also include TP_HAL to provide hardware support for TP services.
[0118] For another example, in the solution of the present application, the HAL layer may also include a display HAL to provide hardware support for display services.
[0119] The hardware layer may include a display driver integrated circuit (DDIC) and a display screen (such as an OLED or LCD). DDIC is not shown in the figure.
[0120] The kernel layer is the layer between hardware and software. The kernel layer includes the display driver. The display driver is used to drive the DDIC to complete display processing and implementation.
[0121] 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.
[0122] The execution subject of the control method for the off-screen display provided in the embodiment of the present application can be the above-mentioned electronic device, or a functional module and / or functional entity in the electronic device that can implement the control method for the off-screen display, and the present application solution can be implemented in hardware and / or software. The specific implementation can be determined according to actual use requirements and is not limited by the embodiment of the present application. The following uses an electronic device as an example and combines the accompanying drawings to illustrate the control method for the off-screen display provided in the embodiment of the present application.
[0123] In order to highlight the improvements of the embodiments of the present application over the related art, the following compares the present application solution with the related art in terms of starting the AOD process, timing diagram, and time consumption after triggering the screen off, and explains the improvements. First, the AOD process, timing diagram, and time consumption in the related art are explained in conjunction with Figures 5 to 7, and then the control method for the off-screen display provided by the embodiment of the present application is explained in conjunction with Figures 8 to 16 with respect to the AOD process, timing diagram, and time consumption. Here, the scenario of pressing the power button to trigger the screen off is used as an example for exemplary explanation.
[0124] First of all, it should be noted that the display screen consists of the following three parts:
[0125] (1) IC chip: When the IC chip is powered on, it can provide display content for the screen.
[0126] (2) Screen, i.e., LCD screen, used to display the image provided by the IC chip.
[0127] (3) Backlight, located behind the screen. The backlight provides light to the screen. When the backlight is off, the screen is off. When the backlight is on, the screen is illuminated and the content displayed on the screen is visible.
[0128] In an embodiment of the present application, the screen-off process involves backlight instructions and power-off instructions.
[0129] The backlight instruction is used to instruct to turn off the backlight panel of the display screen.
[0130] The power-off instruction is used to instruct the IC chip of the display screen to power off. Powering off the IC chip of the display screen can be referred to as powering off the display screen.
[0131] The AOD process involves power-on instructions and AOD instructions.
[0132] The power-on instruction, also called the AOD display instruction, is used to instruct the IC chip of the display screen to power on. Powering on the IC chip of the display screen can be referred to as simply powering on the display screen.
[0133] The AOD instruction is used to instruct the display screen to display a screen-off pattern. The AOD instruction is also called an AOD display instruction.
[0134] Figure 5 is a schematic diagram of the software architecture for starting the AOD process after triggering screen off in the related art. Among them, starting the AOD process 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: triggering AOD and completing the AOD process. Among them, the process of triggering screen off and completing screen off is shown in 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.
[0135] Phase 1: Triggering and completing the screen-off process
[0136] 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.
[0137] It should be noted here that, for the sake of convenience, 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 details can be determined according to actual usage requirements and are not limited in the embodiments of this application.
[0138] The power management service module sends a screen-off instruction message, which passes through the SurfaceFlinger service module and HWC in the software architecture in sequence before reaching the display driver. In response to the screen-off instruction message, the display driver sends a backlight instruction 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.
[0139] After the display screen is turned off, the display driver returns a "screen off completion" message to the upper layer. This "screen off completion" message passes through the HWC and SurfaceFlinger service modules in the software architecture in sequence, and then reaches the power management service module.
[0140] After receiving the "screen off completion" message, 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.
[0141] Phase 2: Triggering AOD and completing the AOD process
[0142] 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 has been powered off, and the AOD trigger condition is met, so the AOD process is triggered.
[0143] The AOD application sends an AOD startup message, which contains an AOD instruction. The AOD startup message passes through the power management service module and the SurfaceFlinger service module in the software architecture in sequence, and then reaches the HWC. In response to the AOD startup message, the HWC first sends a power-on instruction to the display driver. Correspondingly, the display driver responds to the power-on instruction and drives the IC chip of the display screen to power on. Then, the HWC sends an AOD instruction to the display driver. The display driver responds to the AOD instruction and obtains a preset screen-off pattern from the IC chip. Then, the display driver sends the AOD instruction and the screen-off pattern to the display screen, and then the display screen displays the screen-off pattern to complete the screen-off display.
[0144] As shown in Figure 5, 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. After the display screen is powered off, the AOD will be triggered to start. Because the display screen is powered off, the AOD implementation process needs to trigger the display screen to power on first, and then trigger the display screen to display the screen off pattern, thereby completing the screen off display. Among them, powering off the display screen will take a long time, and similarly, powering on the display screen will also take a long time.
[0145] Based on Figure 5, Figure 6 shows a timing diagram of starting the AOD process after triggering screen off in the related art. Referring to Figure 6, the method includes the following steps S101-S118.
[0146] S101: The AOD application monitors the marking content of the status marking module to obtain the power-on / power-off status change of the display screen.
[0147] The AOD application monitors in real time whether the mark content of the status mark module changes to OFF, and OFF indicates that the display screen is powered off.
[0148] When the AOD application monitors that the mark content of the status mark module has changed to OFF, the AOD application knows that the display screen has been powered off, and thus starts the AOD process.
[0149] When the flag content of the AOD application not monitoring status flag module changes to OFF, the AOD application does not respond.
[0150] S102: When the display screen is on, the power button receives an operation of pressing the power button by the user.
[0151] S103: The power button reports to the power management service module that the user has pressed the power button when the display screen is on.
[0152] S104, the power management service module sends a screen-off instruction message, which passes through the SurfaceFlinger service module and HWC in sequence, and then reaches the display driver.
[0153] S105 , the display driver sends a backlight instruction and a power-off instruction to the display screen in response to the screen-off instruction message, driving the display screen to turn off the backlight and power off.
[0154] The backlight instruction is used to instruct to turn off the backlight panel of the display screen.
[0155] The power-off instruction is used to control the power-off of the IC chip of the display screen.
[0156] It should be noted that, in actual implementation, when the screen-off conditions are met, the display screen will usually turn off the backlight panel and power off the IC chip of the display screen to complete the screen-off.
[0157] S106 , the display screen responds to the backlight instruction and turns off the backlight; the display screen responds to the power-off instruction and powers off.
[0158] In actual implementation, the display driver sends the backlight instruction and the power-off instruction to the display driver integrated chip, and then the display driver integrated chip controls the display to turn off the backlight according to the backlight instruction, and controls the IC chip of the display to power off according to the power-off instruction.
[0159] S107, the display driver returns a "screen off completion" message to the upper layer, and the completion message passes through the HWC and SurfaceFlinger service modules in sequence, and finally reaches the power management service module.
[0160] S108: The power management service module notifies the status marking module to mark the display screen status as OFF.
[0161] S109: The status marking module marks the display screen status as OFF according to the instruction.
[0162] OFF indicates that the display is powered off.
[0163] S110 , the status marking module sends a message to the AOD application indicating that the display screen status has changed to OFF, and the AOD application monitors that the display screen status has changed to OFF.
[0164] When the AOD application detects that the display screen status changes to OFF, the AOD application is informed that the display screen is powered off, and the AOD trigger condition is met, so the AOD process is triggered.
[0165] S111: The AOD application sends an AOD startup message to the power management service module. The AOD startup message passes through the power management service module and the SurfaceFlinger service module in sequence, and then reaches the HWC.
[0166] S112 , the HWC sends a power-on instruction to the display driver in response to the AOD startup message.
[0167] The power-on instruction is used to control the power-on of the IC chip of the display screen.
[0168] S113 , the display driver sends a power-on instruction to the display screen to drive the IC chip of the display screen to power on.
[0169] S114 , in response to the power-on instruction, the display screen is powered on.
[0170] 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 chip of the display screen to power on according to the power-on instruction.
[0171] S115, the display driver returns a completion message to the HWC.
[0172] S116, after receiving the completion message, the HWC sends an AOD instruction to the display driver.
[0173] Among them, the AOD instruction is used to instruct the display screen to display a screen-off pattern, and the screen-off pattern is an image sent to the display screen by the IC chip.
[0174] S117, the display driver sends the AOD instruction to the display screen, driving the display screen to display the screen-off pattern.
[0175] S118, in response to the AOD instruction, the display screen displays a screen-off pattern.
[0176] The display driver responds to the AOD instruction and obtains a preset screen-off pattern from the IC chip. Then, the display driver sends the AOD instruction and the screen-off pattern to the display screen, which then displays the screen-off pattern, completing the AOD process.
[0177] As shown in Figure 6, 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. Because the display screen is powered off, the AOD implementation process needs to power on the display screen first before the screen off pattern can be displayed, thereby completing the screen off display.
[0178] The above respectively illustrates the process of starting the AOD after triggering screen off in the related art and the timing diagram through FIG5 and FIG6. The time consumption of the AOD process in the related art is analyzed in conjunction with FIG7 below.
[0179] As shown in Figure 7, 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 chip 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, completing 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.
[0180] 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. After triggering the screen off, the IC chip that controls the display screen does not power off, thereby eliminating the power-off and power-on processes of the IC chip of the display screen, greatly reducing the time consumption, thereby quickly realizing AOD and improving user experience.
[0181] The embodiments of the present application provide four embodiments of the method for controlling the off-screen display, which are described in detail below with reference to the accompanying drawings.
[0182] Embodiment 1: The power management service module sends a non-power-off indication message through the AOD application and the touch screen channel.
[0183] Figure 8 shows a schematic diagram of the software architecture for starting the AOD process after triggering screen off, as provided in Example 1 of the present application. The process of starting AOD after triggering screen off can be divided into two stages: the first stage: triggering screen off, indicating not to power off, and completing the screen off process; and the second stage: triggering AOD and completing the AOD process.
[0184] Phase 1: Triggering screen off, indicating no power off, and completing screen off process
[0185] 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.
[0186] Different from the related technical process shown in FIG6 , 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 two actions in succession:
[0187] First, referring to the process direction marked ① in Figure 8, the power management service module reports a no-power-off indication message to the AOD application based on the message; the AOD application forwards the no-power-off indication message to the lower-level display driver. As shown in Figure 8, the no-power-off indication message passes through the AOD application, TP service, TP_HAL, TP driver in sequence, and then reaches the display driver. The no-power-off indication message is used to indicate that the display driver executes the no-power-off logic when it receives a power-off instruction. It can be understood that if the display driver receives a power-off instruction, the display driver will execute the no-power-off logic, that is, it will not drive the IC chip of the display screen to power off.
[0188] Then, referring to the process direction marked ② in Figure 8, the power management service module sends a screen-off indication message to instruct the start of the screen-off process. The screen-off indication message may include a backlight instruction and a 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 chip of the display screen. As shown in Figure 8, the screen-off indication message passes through the SurfaceFlinger service module and HWC in the software architecture in sequence, and then reaches the display driver. Since the display driver has received the no-power-off indication message before receiving the screen-off indication message, the display driver executes the no-power-off logic in response to the screen-off indication message sent by the upper layer of the software architecture, that is, does not drive the IC chip of the display screen to power off, thereby reducing time consumption.
[0189] It should be noted that, unlike the related technical process shown in Figure 6, in the present application scheme, since the display driver executes the no-power-off logic, as shown by the "×" in Figure 8, the display driver does not send a power-off command to the display screen, so the IC chip of the display screen is not powered off.
[0190] After the display driver completes the power-off logic, it returns a completion message to the upper layer of the software architecture. This completion message passes through the HWC and SurfaceFlinger service modules in the software architecture, and finally reaches the power management service module.
[0191] After receiving the completion message, the power management service module instructs the status marking module to mark the display screen status as OFF. OFF means that the display screen is powered off.
[0192] Phase 2: Triggering AOD and completing the AOD process
[0193] As shown in the process direction marked ③ in Figure 8, the AOD application will continue to monitor the marked content of the status marking module. When the AOD application monitors that the marked display status has changed to OFF, the AOD application is informed that the display is powered off, and the AOD trigger condition is met, thereby triggering the start of the AOD process.
[0194] The AOD application sends an AOD startup message to the lower layer, and the AOD startup message is used to indicate the start of the AOD process. The AOD startup message passes through the power management service module and the SurfaceFlinger service module in the software architecture in sequence, and then reaches the HWC. The HWC responds to the AOD startup message and 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 chip of the display screen to power on. After the HWC receives the OK response message returned by the display driver, the HWC sends an AOD instruction to the display driver. The display driver responds to the AOD instruction and obtains the screen-off pattern from the IC chip. Then the display driver sends the AOD instruction and the screen-off pattern to the display screen. In response to the AOD instruction, the display screen displays the screen-off pattern.
[0195] Unlike the related technology shown in Figure 6, in an embodiment of the present application, as shown in Figure 8, since the display screen is not actually powered off, the display screen responds to the AOD instruction issued by the upper layer of the software architecture without executing the power-on process. The display screen can directly display the screen-off pattern to complete the screen-off display, thereby reducing time consumption.
[0196] As can be seen from Figure 8, in the process of entering the AOD process after triggering the screen off, according to the solution provided in Example 1 of the present application, after triggering the screen off, the display screen is not powered off first, but a no-power-off indication message is sent through the AOD application after triggering the screen off. The no-power-off indication message passes through the TP service, TP_HAL and TP driver in sequence, and then reaches the display driver. The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. Then when the display driver receives the power-off instruction, the display driver executes the no-power-off logic, that is, does not drive the IC chip of the display screen to power off. Then trigger AOD again. In the AOD implementation process, since the display screen is not powered off, the screen-off pattern can be directly displayed after triggering AOD, and the screen-off display is completed, without the need to display the screen-off pattern after the display screen is powered on as in the related art. Among them, in the AOD implementation process provided in Example 1 of the present application, the power-off and power-on of the display screen are omitted, which greatly reduces the time required to start AOD after triggering the screen off.
[0197] For example, in the related art, the hardware requirements based on the screen chip specifications require about 300ms, which mainly refers to the time required to power off and power on the display. Since the present application solution omits the power-off and power-on of the display, it can save about 300ms. Compared with 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 the AOD after the screen is turned off.
[0198] It should be noted that although the process of sending a no-power-off indication message to the display driver in Example 1 of the present application also consumes time, compared with the time required to power off and on the display screen, the time required to send a no-power-off indication message from the power management service module to the display driver in the present application is very small and can basically be omitted.
[0199] Based on Figure 8 , Figure 9 shows a timing diagram of starting the AOD process after triggering screen off in Example 1 of the present application. Referring to Figure 9 , the method includes the following steps S201 - S218 .
[0200] S201: The AOD application monitors the marking content of the status marking module to obtain the power-on / power-off status change of the display screen.
[0201] The AOD application monitors in real time whether the mark content of the status mark module changes to OFF, and OFF indicates that the display screen is powered off.
[0202] When the AOD application monitors that the content of the status mark module changes to OFF, the AOD application knows that the display screen is powered off and thus starts the AOD process. If the AOD application does not monitor that the content of the status mark module changes to OFF, it does not respond.
[0203] S202: When the display screen is on, the power button receives an operation of pressing the power button by the user.
[0204] S203, the power button reports to the power management service module a message indicating that the user pressed the power button when the display screen was on (referred to as a screen-off trigger message).
[0205] When the power management service module receives the screen-off triggering message, the power management service module triggers a start AOD event (or called an enter AOD event).
[0206] It should be noted that the main difference between the timing diagram of Example 1 of the present application shown in Figure 9 and the related art timing diagram shown in Figure 7 lies in S204-S209 and S214-S218 shown in the dotted box in Figure 9.
[0207] The following first describes how the power management service module triggers the process of not powering off after receiving the screen off trigger message.
[0208] S204 : In response to the AOD event being initiated, the power management service module reports a non-power-off indication message to the AOD module.
[0209] The above-mentioned no-power-off indication message is used to instruct the display driver to execute the no-power-off logic upon receiving the power-off instruction.
[0210] The non-power-off logic includes: not triggering the display screen to power off, and returning a message indicating that the display screen has been powered off.
[0211] S205: The AOD module transmits the non-power-off indication message through the touch screen channel, which includes the TP service, TP_HAL and TP driver, and then reaches the display driver.
[0212] In the embodiment of the present application, the no-power-off indication message starts from the power management service module, passes through the AOD module, TP service, TP_HAL, TP driver in sequence, and then reaches the display driver.
[0213] It should be noted that TP service, TP_HAL and TP driver are usually used to process touch screen data and can ensure that the display screen is in the bright screen state. The improvement of Example 1 of the present application is that after the screen is triggered to go out, the TP service, TP_HAL and TP driver are used to transmit the power-off indication message to the display driver to control the display driver to execute the power-off logic, so that the IC chip of the display screen does not turn off the power after the screen is triggered to go out, and the screen-off pattern is directly displayed before the power is turned off. In this way, the AOD process can be quickly entered after the screen is triggered to go out, thereby improving the user experience.
[0214] In embodiment 1, the transmission path of the non-power-off indication message may be: power management service module—AOD module—TP service—TP_HAL—TP driver—display driver.
[0215] It can be understood that if the display driver receives a power-off instruction, the display driver will execute a non-power-off logic, that is, will not drive the IC chip of the display screen to power off.
[0216] The above steps describe the process of sending a no-power-off indication message to the display driver after the power management service module receives the screen-off trigger message. The following steps describe how to complete the screen-off process after the power management service module receives the screen-off trigger message.
[0217] S206, the power management service module sends a screen-off instruction message, which passes through the SurfaceFlinger service module and HWC in sequence, and then reaches the display driver.
[0218] Among them, the screen off instruction message includes backlight instruction and power off instruction.
[0219] In actual implementation, the backlight register is used to control whether the display backlight is turned off. For example, according to the backlight instruction, writing 0 to the backlight register means turning off the display backlight. By reading the content of the backlight register, it is determined whether the display backlight needs to be turned off based on the content.
[0220] S207, in response to the screen-off instruction message, the display driver executes the rules according to the screen-off process and sends a backlight instruction to the display screen.
[0221] S208: The display screen turns off the backlight in response to the backlight instruction.
[0222] It should be noted that after receiving the screen off indication message, the display driver does not send a power-off instruction to the display screen according to the regular screen off process execution rules, but executes the no-power-off logic, that is, the display driver does not send a power-off instruction to the display screen.
[0223] Compared to related technologies, in this embodiment, the display driver implements no-power-off logic, meaning it doesn't power off the display's IC chip. As indicated by the "×" in Figure 9, the display driver doesn't send a power-off command to the display, so the display's IC chip doesn't power off. Furthermore, as indicated by the bold box in Figure 9, the display doesn't power off, thus reducing power consumption.
[0224] S209, the display driver returns a "screen off completion" message to the upper layer. The "screen off completion" message passes through the HWC and SurfaceFlinger service modules in sequence, and finally reaches the power management service module.
[0225] S210: The power management service module notifies the status marking module to mark the display screen status as OFF.
[0226] S211: The status marking module marks the display screen status as OFF according to the instruction, wherein OFF indicates that the display screen is powered off.
[0227] S212: The status marking module sends a status change message to the AOD application, and the AOD application monitors that the display screen status changes to OFF.
[0228] When the AOD application detects that the display screen status has changed to OFF, the AOD application is informed that the display screen has been powered off, and the AOD trigger condition is met, so the AOD process is triggered.
[0229] S213: The AOD application sends an AOD startup message, which passes through the power management service module, the SurfaceFlinger service module, and finally reaches the HWC.
[0230] S214, HWC sends a power-on instruction to the display driver according to the AOD process execution rules.
[0231] S215: The display driver returns an OK message to the HWC to notify that the display screen power-on is completed.
[0232] Since the IC chip of the display screen was not powered off before, the display screen does not need to be powered on again. The display driver can directly return an OK message to the HWC.
[0233] 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 on the display screen during the AOD implementation process. As shown in the bold box in Figure 9, the display screen does not power on, thereby reducing the time consumption.
[0234] S216, the HWC executes the AOD process rules and sends an AOD instruction to the display driver.
[0235] S217: The display driver sends the AOD instruction to the display screen.
[0236] S218, in response to the AOD instruction, the display screen displays a screen-off pattern.
[0237] The solution of related technologies is that when the screen-off conditions are met, the display usually turns off the backlight panel and controls the display's IC chip to power down, completing the screen-off process. Then, the AOD is triggered and executed according to the normal AOD process rules. First, the display's IC chip is controlled to power up, and then the display displays the screen-off pattern.
[0238] As can be seen from Figure 9, in the process of starting the AOD process after triggering the screen off, according to the solution provided in Example 1 of the present application, after triggering the screen off, the display screen is not powered off first. Instead, the AOD application sends a no-power-off indication message after triggering the screen off. The no-power-off indication message passes through the TP service, TP_HAL and TP driver in sequence, and then reaches the display driver. The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. Then when the display driver receives the power-off instruction, the display driver executes the no-power-off logic, that is, does not drive the IC chip of the display screen to power off. Then trigger AOD again. In the AOD implementation process, since the display screen is not powered off, the screen-off pattern can be directly displayed after triggering AOD, and the screen-off display is completed, without the need to display the screen-off pattern after the display screen is powered on as in the related art. Among them, in the AOD implementation process provided in Example 1 of the present application, the power-off and power-on of the display screen are omitted, which greatly reduces the time required to start AOD after triggering the screen off.
[0239] It should be noted that although the process of sending a no-power-off indication message to the display driver in Example 1 of the present application also consumes time, compared with the time consumed in powering off and on the display screen, the time required for transmitting the no-power-off indication message is very small and can be ignored.
[0240] The above illustrates the AOD process and timing diagram for starting after triggering screen off in the embodiment of the present application through Figures 8 and 9 respectively. The time consumption of starting the AOD process after triggering screen off provided in Example 1 of the present application is analyzed in conjunction with Figure 10.
[0241] As shown in Figure 10 (a), in related technologies, when the user presses the power button or no operation is performed after a timeout, triggering the screen to go off, the display backlight turns off, and the display IC chip is powered off. This then triggers the start of the AOD process: the display IC chip is powered on first, and then the display driver controls the display to display the screen-off pattern obtained from the IC chip, completing the AOD process. Powering off the display takes a considerable amount of time, and powering it back on after powering off also takes a considerable amount of time.
[0242] As shown in (b) of Figure 10, through Example 1 of the present application, when the user presses the power button or there is no operation after a timeout, triggering the screen to go out, the display screen turns off the backlight, but the IC chip of the display screen is not powered off. Since the IC chip 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 to go out provided in Example 1 of the present application can greatly reduce the time required to start AOD after triggering the screen to go out, thereby improving the user experience.
[0243] Embodiment 2: The power management service module sends a non-power-off indication message through the AOD application and display channel.
[0244] Figure 11 shows a schematic diagram of the software architecture for starting the AOD process after triggering screen off, provided in Example 2 of the present application. The process of starting AOD after triggering screen off may include two stages: the first stage: triggering screen off, indicating not to power off, and completing the screen off process; and the second stage: triggering AOD and completing the AOD process.
[0245] First of all, it should be noted that the difference between Example 2 and Example 1 is that: in Example 1, the no-power-off indication message sent by the AOD application passes through the TP service, TP_HAL, TP driver in sequence, and finally reaches the display driver; in Example 2, the no-power-off indication message sent by the AOD application passes through the display service and display HAL in sequence, and finally reaches the display driver.
[0246] Phase 1: Triggering screen off, indicating no power off, and completing screen off process
[0247] 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.
[0248] Different from the related technical process shown in FIG6 , 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 two actions in succession:
[0249] First, referring to the process direction marked ① in Figure 11, the power management service module reports a no-power-off indication message to the AOD application based on the message; the AOD application forwards the no-power-off indication message to the lower-level display driver. As shown in Figure 11, the no-power-off indication message passes through the AOD application, display service, display HAL in sequence, and then reaches the display driver. The no-power-off indication message is used to indicate that the display driver executes the no-power-off logic when receiving the power-off instruction. It can be understood that if the display driver receives the power-off instruction, the display driver will execute the no-power-off logic, that is, it will not drive the IC chip of the display screen to power off.
[0250] Then, referring to the process direction marked ② in Figure 11, the power management service module sends a screen-off instruction message to the lower layer to instruct the start of the screen-off process. As shown in Figure 8, the screen-off instruction message passes through the SurfaceFlinger service module and HWC in the software architecture in sequence, and then reaches the display driver. Because the display driver has received the do not power off instruction message before receiving the screen-off instruction message, in response to the screen-off instruction message sent by the upper layer of the software architecture, the display driver executes the do not power off logic, that is, does not drive the IC chip of the display screen to power off, thereby reducing time consumption.
[0251] It should be noted that, unlike the related technical process shown in Figure 6, in the present application scheme, since the display driver executes the no-power-off logic, as shown by "×" in Figure 11, the display driver does not send a power-off instruction to the display screen, so the IC chip of the display screen is not powered off.
[0252] After the display driver completes the power-off logic, it returns a completion message to the upper layer of the software architecture. This completion message passes through the HWC and SurfaceFlinger service modules in the software architecture, and finally reaches the power management service module.
[0253] After receiving the completion message, the power management service module instructs the status marking module to mark the display screen status as OFF. OFF means that the display screen is powered off.
[0254] Phase 2: Triggering AOD and completing the AOD process
[0255] As shown in the process direction marked ③ in Figure 11, the AOD application will continue to monitor the marked content of the status marking module. When the AOD application monitors that the marked display screen status has changed to OFF, the AOD application is informed that the display screen is powered off, and the AOD trigger condition is met, thereby triggering the start of the AOD process.
[0256] The AOD application sends an AOD instruction to the lower layer. The AOD instruction passes through the power management service module, SurfaceFlinger service module, HWC, and display driver in the software architecture in sequence, and finally reaches the display screen at the hardware layer.
[0257] Unlike the related technology shown in Figure 6, in Example 2 of the present application, as shown in Figure 11, since the display screen is not actually powered off, the display screen responds to the AOD instruction issued by the upper layer of the software architecture without executing the power-on process. The display screen can directly display the screen-off pattern to complete the screen-off display, thereby reducing time consumption.
[0258] As can be seen from Figure 11, in the process of starting the AOD process after triggering the screen off, according to the solution provided in Example 2 of the present application, after triggering the screen off, the display screen is not powered off first. Instead, the AOD application sends a no-power-off indication message after triggering the screen off. The no-power-off indication message passes through the display service and display HAL in sequence, and then reaches the display driver. The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. Then when the display driver receives the power-off instruction, the display driver executes the no-power-off logic, that is, it does not drive the IC chip of the display screen to power off. Then trigger the AOD. In the AOD implementation process, since the display screen is not powered off, the screen-off pattern can be directly displayed after triggering the AOD, and the screen-off display is completed without the need to power on the display screen first and then display the screen-off pattern. Among them, in the AOD implementation process provided in Example 2 of the present application, the power-off and power-on of the display screen are omitted, which greatly reduces the time required to start the AOD after triggering the screen off.
[0259] It should be noted that although the process of sending a non-power-off indication message to the display driver in Example 2 of the present application also consumes time, the time consumption is very small. Compared with the time consumption incurred by powering off and on the display screen, the solution provided in Example 2 of the present application greatly reduces the time to start AOD after triggering the screen to turn off.
[0260] Based on Figure 11 , Figure 12 shows a timing diagram of starting the AOD process after triggering screen off in Example 2 of the present application. Referring to Figure 12 , the method includes the following steps S301 - S318 .
[0261] S301: The AOD application monitors the marking content of the status marking module to obtain the power-on / power-off status change of the display screen.
[0262] The AOD application monitors in real time whether the mark content of the status mark module changes to OFF, and OFF indicates that the display screen is powered off.
[0263] When the AOD application monitors that the content of the status mark module changes to OFF, the AOD application knows that the display screen is powered off and thus starts the AOD process. If the AOD application does not monitor that the content of the status mark module changes to OFF, it does not respond.
[0264] S302: When the display screen is on, the power button receives an operation of pressing the power button by the user.
[0265] S303: The power button reports to the power management service module that the user has pressed the power button when the display screen is on.
[0266] When the power management service module receives a message that the user presses the power button when the display screen is on, the power management service module triggers an AOD start event.
[0267] It should be noted that the main difference between the timing diagram of Example 2 of the present application shown in Figure 12 and the related technology timing diagram shown in Figure 7 lies in S304-S309 and S314-S318 shown in the dotted box in Figure 12.
[0268] The following first describes how the power management service module triggers the process of not powering off after receiving the screen off trigger message.
[0269] S304: In response to the AOD event being initiated, the power management service module reports a power-on indication message to the AOD module.
[0270] S305 , the AOD module sends the power-off indication message through a display channel, where the display channel includes a display service, a display HAL, and a display driver.
[0271] The power-off indication message passes through the display service, reaches the display HAL, and then reaches the display driver.
[0272] The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic upon receiving the power-off instruction.
[0273] It should be noted that the display service, display HAL, and display driver are usually used to process display data and can ensure that the display screen is in the bright screen state. The improvement of Example 2 of the present application is that after the screen is triggered to go out, the display service and display HAL are used to transmit the power-off indication message to the display driver to control the display driver to execute the power-off logic, so that the IC chip of the display screen does not turn off the power after the screen is triggered to go out, and the screen-off pattern is directly displayed before the power is turned off. In this way, the AOD process can be quickly entered after the screen is triggered to go out, thereby improving the user experience.
[0274] In the second embodiment, the transmission path of the power-on indication message may be: power management service module→AOD module→display service→display HAL→display driver.
[0275] It can be understood that if the display driver receives a power-off instruction, the display driver will execute a non-power-off logic, that is, will not drive the IC chip of the display screen to power off.
[0276] The above steps describe the process of sending a no-power-off indication message to the display driver after the power management service module receives the screen-off trigger message. The following steps describe how to complete the screen-off process after the power management service module receives the screen-off trigger message.
[0277] S307, the power management service module sends a screen-off instruction message, which passes through the SurfaceFlinger service module and HWC in sequence, and then reaches the display driver.
[0278] S308 , the display driver executes the non-power-off logic in response to the screen-off instruction message.
[0279] Compared to related technologies, in Example 2 of the present application, the display driver executes the no-power-off logic, meaning it does not drive the display's IC chip to power off. As indicated by the "×" in Figure 12, the display screen does not receive the power-off command. Furthermore, as indicated by the bold box in Figure 12, the display screen skips the power-off action, thereby reducing power consumption.
[0280] S309: The display driver returns a completion message to the upper layer. The completion message passes through the HWC and SurfaceFlinger service modules in sequence and finally reaches the power management service module.
[0281] The specific implementation of S310-S318 in FIG12 may refer to the specific implementation of S210-S218 in the above embodiment 1, which will not be repeated here.
[0282] The solution of related technologies is that when the screen-off conditions are met, the display usually turns off the backlight panel and controls the display's IC chip to power down, completing the screen-off process. Then, the AOD is triggered and executed according to the normal AOD process rules. First, the display's IC chip is controlled to power up, and then the display displays the screen-off pattern.
[0283] Compared with the related art, in the process of starting the AOD process after triggering the screen off, according to the solution provided in the above embodiment 2 of the present application, after triggering the screen off, the display screen is not powered off first. Instead, the AOD application sends a no-power-off indication message after triggering the screen off. The no-power-off indication message passes through the display service and the display HAL in sequence, and then reaches the display driver. The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. Then when the display driver receives the power-off instruction, the display driver executes the no-power-off logic, that is, it does not drive the IC chip of the display screen to power off. Then the AOD is triggered again. In the AOD implementation process, since the display screen is not powered off, the display screen does not need to be powered on after triggering the AOD. The screen-off pattern is directly displayed to complete the screen-off display. Among them, in the AOD implementation process provided in embodiment 2 of the present application, the power-off and power-on of the display screen are omitted, which greatly reduces the time required to start the AOD after triggering the screen off.
[0284] It should be noted that although the process of sending a no-power-off indication message to the display driver in Example 2 of the present application also consumes time, compared with the time required to power off and on the display screen, the time consumed in sending the no-power-off indication message is very small and can be ignored.
[0285] Through Example 2 of the present application, after the user presses the power button or does not operate for a timeout, triggering the screen to go off, the IC chip of the display screen does not power off. Since the IC chip of the display screen does not power off, the time consumed by powering off the IC chip of the display screen can be saved. Then the AOD process is triggered to start: the display screen displays the screen-off pattern, completing the AOD process. Since the IC chip of the display screen does not need to be powered on again, the time consumed by powering on the IC chip of the display screen can be saved. Therefore, the AOD process started after triggering the screen to go off provided in Example 2 of the present application can greatly reduce the time required to start the AOD after triggering the screen to go off, thereby improving the user experience.
[0286] Embodiment 3: The power management service module sends a non-power-off indication message through the touch screen channel.
[0287] Figure 13 shows a schematic diagram of the software architecture for starting the AOD process after triggering screen off, provided in Example 3 of the present application. The process of starting AOD after triggering screen off can be divided into two stages: the first stage: triggering screen off, indicating not to power off, and completing the screen off process; and the second stage: triggering AOD and completing the AOD process.
[0288] First of all, it should be noted that the difference between Example 3 and Example 1 and Example 2 is that: in Example 1 and Example 2, after receiving the message that triggers the screen off, the power management service module reports a no-power-off indication message to the AOD application, and then the AOD application sends the no-power-off indication message to the display driver. In Example 3, the power management service module makes a decision after receiving the message that triggers the screen off and sends a no-power-off indication message to the display driver, wherein the no-power-off indication message sent by the power management service module passes through the TP service, TP_HAL and TP driver in sequence, and finally reaches the display driver.
[0289] Phase 1: Triggering screen off, indicating no power off, and completing screen off process
[0290] 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.
[0291] Different from the related technical process shown in FIG6 , in Example 3 of the present application, after the power management service module receives a message indicating that the user has pressed the power button of the electronic device, the power management service module performs two actions in succession:
[0292] First, referring to the process direction marked ① in Figure 13, the power management service module makes a decision based on the message, and then sends a no-power-off indication message to the lower-level display driver. As shown in Figure 13, the AOD application sends a no-power-off indication message, which passes through the TP service, TP_HAL, TP driver in sequence, and then reaches the display driver. The no-power-off indication message is used to indicate that the display driver executes the no-power-off logic when it receives the power-off instruction. It can be understood that if the display driver receives the power-off instruction, the display driver will execute the no-power-off logic, that is, it will not drive the IC chip of the display screen to power off.
[0293] Then, referring to the process direction marked ② in Figure 13, the power management service module sends a screen-off instruction message to the lower layer. This screen-off instruction message passes through the SurfaceFlinger service module and HWC in the software architecture in sequence, and then reaches the display driver. Because the display driver has already received the do not power off instruction message before receiving the screen-off instruction message, in response to the screen-off instruction message sent by the upper layer of the software architecture, the display driver executes the do not power off logic, that is, does not drive the IC chip of the display screen to power off, thereby reducing time consumption.
[0294] It should be noted that, unlike the related technical process shown in Figure 6, in the present application scheme, since the display driver executes the non-power-off logic, as shown by the "×" in Figure 13, the power-off instruction will not reach the display screen, so the IC chip of the display screen will not be powered off.
[0295] After the display driver completes the power-off logic, it returns a completion message to the upper layer of the software architecture. This completion message passes through the HWC and SurfaceFlinger service modules in the software architecture, and finally reaches the power management service module.
[0296] After receiving the completion message, the power management service module instructs the status marking module to mark the display screen status as OFF. OFF means that the display screen is powered off.
[0297] Phase 2: Triggering AOD and completing the AOD process
[0298] As shown in the process direction marked ③ in Figure 13, the AOD application will continue to monitor the marked content of the status marking module. When the AOD application monitors that the marked display screen status has changed to OFF, the AOD application is informed that the display screen is powered off, and the AOD trigger condition is met, thereby triggering the start of the AOD process.
[0299] The AOD application sends an AOD startup message to the lower layer, and the AOD startup message is used to indicate the start of the AOD process. The AOD startup message passes through the power management service module and the SurfaceFlinger service module in the software architecture in sequence, and then reaches the HWC. The HWC responds to the AOD startup message and 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 chip of the display screen to power on. After the HWC receives the OK response message returned by the display driver, the HWC sends an AOD instruction to the display driver. The display driver responds to the AOD instruction and obtains a preset screen-off pattern from the IC chip. Then, the display driver sends the AOD instruction and the screen-off pattern to the display screen, and then the display screen displays the screen-off pattern to complete the AOD process.
[0300] Unlike the related technology shown in Figure 6, in Example 3 of the present application, as shown in Figure 13, since the display screen is not actually powered off, the display screen responds to the AOD instruction issued by the upper layer of the software architecture without executing the power-on process. The display screen can directly display the screen-off pattern to complete the screen-off display, thereby reducing time consumption.
[0301] As can be seen from Figure 13, in the process of entering the AOD process after triggering the screen off, according to the solution provided in Example 3 of the present application, after triggering the screen off, the display screen is not powered off first. Instead, after triggering the screen off, the AOD sends a no-power-off indication message. The no-power-off indication message passes through the TP service, TP_HAL and TP driver, and then reaches the display driver. The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. Then when the display driver receives the power-off instruction, the display driver executes the no-power-off logic, that is, does not drive the IC chip of the display screen to power off. Then trigger the AOD again. In the AOD implementation process, since the display screen is not powered off, the screen-off pattern can be directly displayed after the AOD is triggered, and the screen-off display is completed, without the need to display the screen-off pattern after the display screen is powered on as in the related art. Among them, in the AOD implementation process provided in Example 3 of the present application, the power-off and power-on of the display screen are omitted, which greatly reduces the time required to start the AOD after the screen is triggered.
[0302] It should be noted that although the process of sending a non-power-off indication message to the display driver in Example 3 of the present application also consumes time, the time consumption is very small. Compared with the time consumption incurred by powering off and on the display screen, the solution provided in Example 3 of the present application greatly reduces the time to start AOD after triggering the screen to turn off.
[0303] Based on Figure 13 , Figure 14 shows a timing diagram of starting the AOD process after triggering screen off in Example 3 of the present application. Referring to Figure 14 , the method includes the following steps S401 - S417 .
[0304] S401: The AOD application monitors the marking content of the status marking module to obtain the power-on / power-off status change of the display screen.
[0305] The AOD application monitors in real time whether the mark content of the status mark module changes to OFF, and OFF indicates that the display screen is powered off.
[0306] When the AOD application monitors that the content of the status mark module changes to OFF, the AOD application knows that the display screen is powered off and thus starts the AOD process. If the AOD application does not monitor that the content of the status mark module changes to OFF, it does not respond.
[0307] S402: When the display screen is on, the power button receives an operation of pressing the power button by the user.
[0308] S403: The power button reports to the power management service module that the user has pressed the power button when the display screen is on.
[0309] When the power management service module receives a message that the user presses the power button when the display screen is on, the power management service module triggers an AOD start event.
[0310] It should be noted that the main difference between the timing diagram of Example 3 of the present application shown in Figure 14 and the related technology timing diagram shown in Figure 7 lies in S404-S408 and S413-S417 shown in the dotted box in Figure 14.
[0311] The following first describes how the power management service module triggers the process of not powering off after receiving the screen off trigger message.
[0312] S404, in response to the start of the AOD event, the power management service module sends a no-power-off indication message through the touch screen channel, which includes the TP service, TP_HAL and TP driver, and then reaches the display driver.
[0313] The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic upon receiving the power-off instruction.
[0314] It should be noted that TP service, TP_HAL and TP driver are usually used to process touch screen data and can ensure that the display screen is in the bright screen state. The improvement of Example 3 of the present application is that after the screen is triggered to go out, the TP service, TP_HAL and TP driver are used to transmit the power-off indication message to the display driver to control the display driver to execute the power-off logic, so that the IC chip of the display screen does not turn off the power after the screen is triggered to go out, and the screen-off pattern is directly displayed before the power is turned off. In this way, the AOD process can be quickly entered after the screen is triggered to go out, thereby improving the user experience.
[0315] In embodiment 3, the transmission path of the non-power-off indication message may be: power management service module—TP service—TP_HAL—TP driver—display driver.
[0316] It can be understood that if the display driver receives a power-off instruction, the display driver will execute a non-power-off logic, that is, will not drive the IC chip of the display screen to power off.
[0317] The above steps describe the process of sending a no-power-off indication message to the display driver after the power management service module receives the screen-off trigger message. The following steps describe how to complete the screen-off process after the power management service module receives the screen-off trigger message.
[0318] S405, the power management service module sends a screen-off instruction message, which passes through the SurfaceFlinger service module and HWC in sequence, and then reaches the display driver.
[0319] S406: In response to the screen-off instruction message, the display driver executes the screen-off process rules and sends a backlight instruction to the display screen.
[0320] S407: The display screen turns off the backlight in response to the backlight instruction.
[0321] It should be noted that after receiving the screen off indication message, the display driver does not send a power-off instruction to the display screen according to the regular screen off process execution rules, but executes the no-power-off logic, that is, the display driver does not send a power-off instruction to the display screen.
[0322] Compared to related art, in Example 3 of the present application, the display driver executes the no-power-off logic, meaning it does not drive the display's IC chip to power off. As indicated by the "×" in Figure 14, the display driver does not send a power-off command to the display, so the display's IC chip does not power off. Furthermore, as indicated by the bold box in Figure 14, the display screen skips the power-off action, thereby reducing power consumption.
[0323] S408, the display driver returns a completion message to the upper layer, and the completion message passes through the HWC and SurfaceFlinger service modules in sequence, and finally reaches the power management service module.
[0324] The specific implementation of S409-S417 in FIG14 may refer to the specific implementation of S210-S218 in the above-mentioned embodiment 1, and will not be repeated here.
[0325] The solution of related technologies is that when the screen-off conditions are met, the display usually turns off the backlight panel and controls the display's IC chip to power down, completing the screen-off process. Then, the AOD is triggered and executed according to the normal AOD process rules. First, the display's IC chip is controlled to power up, and then the display displays the screen-off pattern.
[0326] Compared with the related art, in the process of starting the AOD process after triggering the screen off, according to the solution provided in Example 3 of the present application, after triggering the screen off, the display screen is not powered off first. Instead, after triggering the screen off, the AOD sends a no-power-off indication message. The no-power-off indication message passes through the TP service, TP_HAL and TP driver, and then reaches the display driver. The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. Then when the display driver receives the power-off instruction, the display driver executes the no-power-off logic, that is, it does not drive the IC chip of the display screen to power off. Then the AOD is triggered again. In the AOD implementation process, since the display screen is not powered off, the screen-off pattern can be directly displayed after the AOD is triggered, and the screen-off display is completed without the need to power on the display screen again. Among them, in the AOD implementation process provided in Example 3 of the present application, the power-off and power-on of the display screen are omitted, which greatly reduces the time required to start the AOD after triggering the screen off.
[0327] It should be noted that although the process of sending a no-power-off indication message to the display driver in Example 3 of the present application also consumes time, compared with the time consumed in powering off and on the display screen, the time consumed in sending the no-power-off indication message is very small and can be ignored.
[0328] Through Example 3, after the user presses the power button or times out without any operation, triggering the screen to go off, the IC chip of the display screen does not turn off the power. Since the IC chip of the display screen does not turn off the power, the time consumed by the IC chip of the display screen turning off the power 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 the IC chip of the display screen does not need to be powered on again, the time consumed by the IC chip of the display screen turning on the power can be saved. Therefore, the AOD process started after triggering the screen to go off provided in Example 3 of the present application can greatly reduce the time required to start the AOD after triggering the screen to go off, thereby improving the user experience.
[0329] Embodiment 4: The power management service module sends a power-off indication message through a display channel.
[0330] Figure 15 shows a schematic diagram of the software architecture for starting the AOD process after triggering screen off, provided in Example 4 of the present application. The process of starting AOD after triggering screen off may include two stages: the first stage: triggering screen off, indicating not to power off, and completing the screen off process; and the second stage: triggering AOD and completing the AOD process.
[0331] It should be noted that the difference between Example 4 and Example 1, Example 2 and Example 3 is that:
[0332] In Example 1 and Example 2, after receiving the message that triggers screen off, the power management service module reports a no-power-off indication message to the AOD application, and then the AOD application sends the no-power-off indication message to the display driver.
[0333] In Example 3, the power management service module makes a decision after receiving the message that triggers screen shutdown, and sends a no-power-off indication message to the display driver. The no-power-off indication message sent by the power management service module passes through the TP service, TP_HAL and TP driver in sequence, and then reaches the display driver.
[0334] In Example 4, the power management service module makes a decision after receiving the message that triggers screen shutdown, and sends a no-power-off indication message to the display driver. The no-power-off indication message sent by the power management service module passes through the display service and display HAL in turn, and then reaches the display driver.
[0335] Phase 1: Triggering screen off, indicating no power off, and completing screen off process
[0336] 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.
[0337] Different from the related technical process shown in FIG6 , in Example 4 of the present application, after the power management service module receives a message indicating that the user has pressed the power button of the electronic device, the power management service module performs two actions in succession:
[0338] First, referring to the process direction marked ① in Figure 15, the power management service module reports a no-power-off indication message to the AOD application based on the message; then the AOD application sends the no-power-off indication message to the display driver. As shown in Figure 15, the AOD application sends a no-power-off indication message, which passes through the display service and display HAL in sequence and then reaches the display driver. The no-power-off indication message is used to indicate that the display driver executes the no-power-off logic when it receives a power-off instruction. It can be understood that if the display driver receives a power-off instruction, the display driver will execute the no-power-off logic, that is, it will not drive the IC chip of the display screen to power off.
[0339] Then, referring to the process direction marked ② in Figure 15, the power management service module sends a screen-off instruction message to the lower layer. This screen-off instruction message passes through the SurfaceFlinger service module and HWC in the software architecture in sequence, and then reaches the display driver. Because the display driver has already received the do not power off instruction message before receiving the screen-off instruction message, in response to the screen-off instruction message sent by the upper layer of the software architecture, the display driver executes the do not power off logic, that is, does not drive the IC chip of the display screen to power off, thereby reducing time consumption.
[0340] It should be noted that, unlike the related technical process shown in Figure 6, in the present application scheme, since the display driver executes the non-power-off logic, as shown by the "×" in Figure 15, the power-off instruction will not reach the display screen, so the IC chip of the display screen will not be powered off.
[0341] After the display driver completes the power-off logic, it returns a completion message to the upper layer of the software architecture. This completion message passes through the HWC and SurfaceFlinger service modules in the software architecture, and finally reaches the power management service module.
[0342] After receiving the completion message, the power management service module instructs the status marking module to mark the display screen status as OFF. OFF means that the display screen is powered off.
[0343] Phase 2: Triggering AOD and completing the AOD process
[0344] As shown in the process direction marked ③ in Figure 15, the AOD application will continue to monitor the marked content of the status marking module. When the AOD application monitors that the marked display screen status has changed to OFF, the AOD application is informed that the display screen is powered off, and the AOD trigger condition is met, thereby triggering the start of the AOD process.
[0345] The AOD application sends an AOD instruction to the lower layer. The AOD instruction passes through the power management service module, SurfaceFlinger service module, HWC, and display driver in the software architecture in sequence, and finally reaches the display screen at the hardware layer.
[0346] Unlike the related technology shown in Figure 6, in Example 4 of the present application, as shown in Figure 15, since the display screen is not actually powered off, the display screen responds to the AOD instruction issued by the upper layer of the software architecture without executing the power-on process. The display screen can directly display the screen-off pattern to complete the screen-off display, thereby reducing time consumption.
[0347] It can be seen from Figure 15 that in the process of starting the AOD process after triggering the screen off, according to the solution provided in Example 4 of the present application, after triggering the screen off, the display screen is not powered off first. Instead, the AOD application sends a no-power-off indication message after triggering the screen off. The no-power-off indication message passes through the display service and display HAL in sequence, and then reaches the display driver. The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. Then when the display driver receives the power-off instruction, the display driver executes the no-power-off logic, that is, it does not drive the IC chip of the display screen to power off. Then the AOD is triggered again. In the AOD implementation process, since the display screen is not powered off, the screen-off pattern can be directly displayed after the AOD is triggered, and the screen-off display is completed without the need to power on the display screen first and then display the screen-off pattern. Among them, in the AOD implementation process provided in Example 4 of the present application, the power-off and power-on of the display screen are omitted, which greatly reduces the time required to start the AOD after triggering the screen off.
[0348] It should be noted that although the process of sending a non-power-off indication message to the display driver in Example 4 of the present application also consumes time, the time consumption is very small. Compared with the time consumption incurred by powering off and on the display screen, the solution provided in Example 4 of the present application greatly reduces the time to start AOD after triggering the screen to turn off.
[0349] Based on Figure 15 , Figure 16 shows a timing diagram of starting the AOD process after triggering screen off in Example 4 of the present application. Referring to Figure 16 , the method includes the following steps S501 - S517 .
[0350] S501: The AOD application monitors the marking content of the status marking module to obtain the power-on / power-off status change of the display screen.
[0351] The AOD application monitors in real time whether the mark content of the status mark module changes to OFF, and OFF indicates that the display screen is powered off.
[0352] When the AOD application monitors that the content of the status mark module changes to OFF, the AOD application knows that the display screen is powered off and thus starts the AOD process. If the AOD application does not monitor that the content of the status mark module changes to OFF, it does not respond.
[0353] S502: When the display screen is on, the power button receives an operation of pressing the power button by the user.
[0354] S503: The power button reports to the power management service module that the user has pressed the power button when the display screen is on.
[0355] When the power management service module receives a message that the user presses the power button when the display screen is on, the power management service module triggers an AOD start event.
[0356] It should be noted that the main difference between the timing diagram of Example 4 of the present application shown in Figure 16 and the related technology timing diagram shown in Figure 7 lies in S504-S508 and S513-S517 shown in the dotted box in Figure 16.
[0357] The following first describes how the power management service module triggers the process of not powering off after receiving the screen off trigger message.
[0358] S504 , in response to the AOD event being started, the power management service module sends the no-power-off indication message to the display driver. The no-power-off indication message passes through the display service and the display HAL in sequence, and then reaches the display driver.
[0359] S505: The display HAL sends a non-power-off indication message to the display driver.
[0360] The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic upon receiving the power-off instruction.
[0361] It should be noted that the display service, display HAL, and display driver are usually used to process display data and can ensure that the display screen is in the bright screen state. The improvement of Example 4 of the present application is that after the screen is triggered to go out, the display service and display HAL are used to transmit the power-on indication message to the display driver to control the display driver to execute the power-off logic, so that the IC chip of the display screen does not turn off the power after the screen is triggered to go out, and the screen-off pattern is directly displayed. In this way, the AOD process can be quickly entered after the screen is triggered to go out, thereby improving the user experience.
[0362] In embodiment 4, the transmission path of the power-off indication message may be: power management service module → display service → display HAL → display driver.
[0363] It can be understood that if the display driver receives a power-off instruction, the display driver will execute a non-power-off logic, that is, will not drive the IC chip of the display screen to power off.
[0364] The above steps describe the process of sending a no-power-off indication message to the display driver after the power management service module receives the screen-off trigger message. The following steps describe how to complete the screen-off process after the power management service module receives the screen-off trigger message.
[0365] S506, the power management service module sends a screen-off instruction message, which passes through the SurfaceFlinger service module and HWC in sequence, and then reaches the display driver.
[0366] S507: The display driver executes the non-power-off logic in response to the screen-off instruction message.
[0367] Compared to related technologies, in Example 4 of the present application, the display driver executes the no-power-off logic, that is, it does not drive the IC chip of the display to power off. As shown by the "×" in Figure 16, the display screen will not receive the power-off command. As shown by the bold box in Figure 16, the display screen skips the power-off action, thereby achieving the purpose of reducing time consumption.
[0368] S508, after executing the no-power-off logic, the display driver returns a completion message to the upper layer. The completion message passes through the HWC and SurfaceFlinger service modules in sequence and finally reaches the power management service module.
[0369] The specific implementation of S509-S517 in Figure 16 can refer to the specific implementation of S210-S218 in the above embodiment 1, and will not be repeated here.
[0370] The solution of related technologies is that when the screen-off conditions are met, the display usually turns off the backlight panel and controls the display's IC chip to power down, completing the screen-off process. Then, the AOD is triggered and executed according to the normal AOD process rules. First, the display's IC chip is controlled to power up, and then the display displays the screen-off pattern.
[0371] Compared with the related art, in the process of starting the AOD process after triggering the screen off, according to the solution provided in the above embodiment 4 of the present application, after triggering the screen off, the display screen is not powered off first. Instead, the AOD application sends a no-power-off indication message after triggering the screen off. The no-power-off indication message passes through the display service and the display HAL in sequence, and then reaches the display driver. The no-power-off indication message is used to instruct the display driver to execute the no-power-off logic when receiving the power-off instruction. Then when the display driver receives the power-off instruction, the display driver executes the no-power-off logic, that is, it does not drive the IC chip of the display screen to power off. Then the AOD is triggered again. In the AOD implementation process, since the display screen omits the power-off action, the screen-off pattern can be directly displayed after the AOD is triggered, and the screen-off display is completed without the need to power on the display screen again, thus eliminating the power-on action. Among them, in the AOD implementation process provided in embodiment 4 of the present application, the power-off and power-on of the display screen are omitted, which greatly reduces the time required to start the AOD after triggering the screen off.
[0372] It should be noted that although the process of sending a no-power-off indication message to the display driver in Example 4 of the present application also consumes time, compared with the time consumed in powering off and on the display screen, the time required for transmitting the no-power-off indication message is very small and can be ignored.
[0373] Through Example 4 of the present application, after the user presses the power button or does not operate for a timeout, triggering the screen off, the IC chip of the display screen does not power off. Since the IC chip of the display screen does not power off, the time consumed by powering off the IC chip of the display screen can be saved. Then the AOD process is triggered to start: the display screen displays the screen off pattern, completing the AOD process. Since the IC chip of the display screen does not need to be powered on again, the time consumed by powering on the IC chip of the display screen can be saved. Therefore, the AOD process started after triggering the screen off provided in Example 4 of the present application can greatly reduce the time required to start the AOD after triggering the screen off, thereby improving the user experience.
[0374] 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".
[0375] 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 scope of protection of this application.
[0376] 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 perform the methods in the above embodiments.
[0377] The present application also provides an electronic device, which includes a chip, and the chip is used to read and execute computer programs or instructions stored in a memory, so that the methods in each embodiment are executed.
[0378] This embodiment also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the control method for off-screen display in the above-mentioned embodiment.
[0379] This embodiment also provides a computer program product, in which a computer-readable storage medium stores program code. When the computer program product runs on a computer, the computer executes the above-mentioned related steps to implement the control method for off-screen display in the above-mentioned embodiment.
[0380] 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 to enable the chip to execute the control method of the off-screen display in the above-mentioned method embodiments.
[0381] 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.
[0382] In the several embodiments provided in this 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 merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, 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.
[0383] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for controlling screen-off display, It is characterized in that The method is applied to an electronic device, the electronic device includes a display screen and a processor, the processor includes an off-screen display AOD application, a display driver and a power management service module, and the method includes: When the screen-off triggering condition is met, the display driver receives a backlight instruction and a power-off instruction from the power management service module; The display driver sends only the backlight instruction in the backlight instruction and the power-off instruction to the display screen, so that the display screen turns off the backlight of the display screen based on the backlight instruction and keeps the integrated circuit IC chip of the display screen in a powered-on state; The display driver receives an AOD display instruction from the AOD application; In response to the AOD display instruction, the display driver controls the display screen to display a screen-off pattern.
2. The method according to claim 1, It is characterized in that The method further comprises: When the screen-off triggering condition is met, the display driver receives a no-power-off indication message from the power management service module; The display driver sends only the backlight instruction in the backlight instruction and the power-off instruction to the display screen, including: In response to the non-power-off indication message, the display driver sends only the backlight instruction among the backlight instruction and the power-off instruction to the display screen.
3. The method according to claim 1, It is characterized in that After the display driver sends only the backlight instruction in the backlight instruction and the power-off instruction to the display screen, the method further includes: The display driver generates a first message, wherein the first message is used to indicate that the IC chip of the display screen is in a power-off state; The display driver sends the first message to the power management service module.
4. The method according to claim 3, It is characterized in that The processor also includes a surface drawing SurfaceFlinger service module and a hardware synthesis module HWC; Among them, the AOD display instruction is triggered by the AOD application when the AOD application monitors the first message; after the AOD application is triggered, the AOD display instruction is transmitted through the SurfaceFlinger service module and the HWC to reach the display driver.
5. The method according to claim 4, It is characterized in that The display driver receives an AOD display instruction from the AOD application, including: The display driver receives a power-on instruction from the HWC, where the power-on instruction is triggered by the HWC after receiving the AOD display instruction; The display driver returns a response message of the power-on instruction to the HWC, where the response message is used to indicate that the display screen is in a powered-on state; The display driver receives the AOD display instruction transmitted via the HWC.
6. The method according to claim 4 or 5, It is characterized in that The power-off instruction and the backlight instruction are triggered by the power management service module, and after being transmitted by the SurfaceFlinger service module and the HWC, they reach the display driver; The first message is triggered by the display driver, and after being transmitted by the HWC and the SurfaceFlinger service module, is returned to the power management service module.
7. The method according to any one of claims 1 to 6, It is characterized in that In response to the AOD display instruction, the display driver controls the display screen to display a screen-off pattern, including: In response to the AOD display instruction, the display driver obtains the screen-off pattern from the IC chip of the display screen; The display driver sends the AOD display instruction and the screen-off pattern to the display screen.
8. The method according to claim 7, It is characterized in that After the display driver controls the display screen to display a screen-off pattern, the method further includes: After the display screen displays the screen-off pattern for a time period greater than or equal to a first preset time period, the display driver sends the power-off instruction to the display screen to control the IC chip of the display screen to power off.
9. The method according to claim 2, It is characterized in that The processor also includes a touch screen service module, a touch screen interface and a touch screen driver; The non-power-off indication message is generated by the power management service module, and reaches the display driver after being transmitted through the AOD application, the touch screen service module, the touch screen interface, and the touch screen driver; or, The no-power-off indication message is generated by the power management service module, and reaches the display driver after being transmitted through the touch screen service module, the touch screen interface, and the touch screen driver.
10. The method according to claim 2, It is characterized in that The processor also includes a display service module and a display interface; The non-power-off indication message is generated by the power management service module, and reaches the display driver after being transmitted through the AOD application, the display service module and the display interface; or, The non-power-off indication message is generated by the power management service module, and reaches the display driver after being transmitted through the display service module and the display interface.
11. The method according to any one of claims 1 to 10, It is characterized in that The screen-off triggering condition is: when the display screen is in the on-screen state, the user presses the power button; or, when the display screen is in the on-screen state, the time period without receiving user operation is greater than or equal to a second preset time period.
12. An electronic device, It is 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 11.
13. A computer-readable storage medium, It is 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 11.
14. A computer program product, It is characterized in that The computer program product comprises a computer program code, and when the computer program code is executed by an electronic device, the electronic device executes the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Screen-off display control method, electronic equipment and storage medium
CN118860113A
Display device and driving method thereof
CN107437403A
Mobile terminal, touch screen power-off control processing method and storage medium
CN107704131A
Display content updating method, electronic equipment and storage medium
CN115718535A
Electronic device for displaying screen through display in low-power mode and operating method thereof
US20220013053A1
