CN117711310A - Display control method, electronic device and storage medium - Google Patents

Display control method, electronic device and storage medium Download PDF

Info

Publication number
CN117711310A
CN117711310A CN202310859332.4A CN202310859332A CN117711310A CN 117711310 A CN117711310 A CN 117711310A CN 202310859332 A CN202310859332 A CN 202310859332A CN 117711310 A CN117711310 A CN 117711310A
Authority
CN
China
Prior art keywords
display
screen
aod
power
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310859332.4A
Other languages
Chinese (zh)
Inventor
庄瑞刚
陈格蒙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310859332.4A priority Critical patent/CN117711310A/en
Publication of CN117711310A publication Critical patent/CN117711310A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application provides a display control method, electronic equipment and a storage medium, and relates to the technical field of display. Under the condition that the preset condition is met, the power management service module only sends a backlight instruction to the display driver, and cancels sending of a power-down instruction to the display driver; therefore, the display drive turns off the backlight of the display screen, but does not execute the power-down process, so that the display screen is not triggered to be powered down, and the time consumed by power down is saved. And under the condition that the preset condition is met, the power management service module directly triggers the AOD application to start, and after the AOD application issues an AOD starting instruction, the display screen is in a power-on state, so that the display screen does not need to be powered on, and the power-on time is saved. Through this application scheme, start AOD flow after triggering to put out the screen fast to save the display screen and power down and power up flow, consequently start AOD consuming time and reduce by a wide margin, promoted user's use experience.

Description

Display control method, electronic device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a display control method, an electronic device, and a storage medium.
Background
With rapid development of electronic technology, electronic devices such as smart phones and tablet computers have more and more functions, and have become an indispensable tool in life and work of people. Taking a mobile phone as an example, a user can frequently lighten a mobile phone screen to view information such as time, notification and the like. In order to facilitate users to view basic information such as time and the like and save the electric quantity of the electronic equipment, an off-screen display (always on display, AOD) function of the electronic equipment is generated.
The implementation principle of the AOD function is as follows: after the electronic equipment is turned off, part of pixel points of the screen can be lightened to display information such as clock, date, electric quantity and message reminding, and other pixel points of the screen are always in a closed state, for example, the pixel points in the closed state are black, so that a user can conveniently look up the information on the premise of not lightening the whole screen of the electronic equipment, and the power consumption of the electronic equipment can be reduced.
At present, under the condition that the electronic equipment is changed from a bright screen to a dead screen, the dead screen pattern can be displayed after the dead screen is turned off for a long time, that is, the time for entering the dead screen display after the dead screen is turned off is long, and the problem of overlong time for starting the dead screen display exists.
Disclosure of Invention
The application provides a display control method, electronic equipment and storage medium, which omits the power-down and power-up processes in the process of starting the AOD after triggering the screen quenching, so that the time consumption for starting the AOD is greatly reduced, and the use experience of a user is improved.
In a first aspect, the present application provides a display control method applied to an electronic device including a display screen, the method including:
under the condition that the preset condition is met, the power management service module sends a backlight instruction to the display driver, so that the display driver turns off the backlight of the display screen based on the backlight instruction;
the power management service module triggers the AOD application to start;
the power management service module receives an AOD starting instruction from an AOD application;
the power management service module sends an AOD start instruction to the display driver to enable the display driver to control the display screen to display the screen quenching pattern based on the AOD start instruction.
According to the display control method provided by the embodiment of the application, under the condition that the preset condition is met, the power management service module only sends the backlight instruction to the display driver and cancels the sending of the power-down instruction to the display driver, so that the display driver turns off the backlight of the display screen, but does not execute the power-down process, and the display screen is not triggered to be powered down, so that the power-down time is saved. And under the condition that the preset condition is met, the power management service module directly triggers the AOD application to start, and after the AOD application issues an AOD starting instruction, the display screen is in a power-on state, so that the display screen does not need to be powered on, and the power-on time is saved. Through this application scheme, start AOD flow after triggering to put out the screen fast to save the display screen and put down electricity and go up the power flow, consequently start AOD consuming time reduce by a wide margin, put out the screen and show and become more quick, promoted user's use experience.
In some possible implementations, after the power management service module sends the AOD start instruction to the display driver, the method further includes: and under the condition that the first preset duration is met, the power management service module sends a power-down instruction to the display driver, so that the display driver controls an integrated circuit (integrated circuit, IC) of the display screen to be powered down based on the power-down instruction. When in actual implementation, the power management service module starts timing from the moment of sending the AOD starting instruction; and after the timing duration is greater than or equal to the first preset duration, the power management service module sends a power-down instruction to the display driver.
In this application, after a preset condition (also referred to as a screen-off trigger condition) is satisfied, and before a first preset period of time is satisfied, the IC of the display screen remains in a powered-on state. That is, in the case that the off-screen triggering condition is satisfied, the power management service module cancels the transmission of the power-down instruction to the display driver, so that the display driver does not execute the power-down flow, the IC of the display screen does not need to be powered down, and the power-down time is saved. And after the AOD application issues the AOD starting instruction, the IC of the display screen is in a power-on state, so that the IC of the display screen does not need to be powered on, and the power-on time is saved. Thus significantly reducing the time required to initiate AOD.
In the related art, after a user presses a power key or does not operate after overtime, a display screen is turned off from a backlight after the screen is triggered to be turned off, and then an IC of the display screen is powered down; and then triggering and starting an AOD flow: the display screen is powered on firstly, then the display screen displays the screen extinguishing pattern, and the AOD process is completed. The display screen is powered down to generate more time consumption, and the display screen is powered up after being powered down to generate more time consumption. Therefore, the related art has more time consumption for starting the AOD flow after the screen is extinguished, so that the problem of slow realization of the AOD after the screen is extinguished is caused.
On the one hand, compared with the related art, the improvement of the scheme of the application is that: under the condition that the screen quenching triggering condition is met, the power management service module directly pulls up the AOD service to trigger the AOD application to be started, so that the AOD process can be started quickly, the time required for starting the AOD after the screen quenching is triggered is reduced to a certain extent, and the user experience is improved.
On the other hand, compared with the related art, the improvement of the scheme of the application is that: the time consumed by powering down and powering up the display screen is omitted in the process of starting the AOD after the screen is triggered to be extinguished, so that the time required for starting the AOD after the screen is triggered to be extinguished can be greatly reduced, and the use experience of a user is improved.
The scheme omits the power-down of the display screen and the power-up of the display screen, so that the power consumption of the display screen is omitted by about 120ms, and the power consumption of the display screen is omitted by about 120ms. The scheme of the application greatly reduces the time required for starting the AOD after triggering the screen to be extinguished.
In a comprehensive view, compared with the process of turning off the backlight and controlling the IC of the display screen to power down after triggering the screen quenching in the related art, then starting the AOD, controlling the IC of the display screen to power up and controlling the display screen to display the screen quenching pattern, the improvement of the method is that: under the condition that the screen-off triggering condition is met, the power management service module directly pulls up the AOD service to trigger the AOD application to start, so that the AOD process can be started quickly. Moreover, only the backlight is turned off after the screen is triggered to be turned off, and the IC of the display screen is not powered down, so that the time consumption caused by power-on of the display screen can be saved; after the AOD is started, the IC of the display screen does not need to be powered on, so that the display screen can be controlled to display the screen quenching pattern more quickly. Through this application scheme, can start AOD flow fast to save the consuming time that the display screen is electrified down and the power on caused, start AOD consuming time reduces by a wide margin. Therefore, after the screen is turned off, the screen off display is started more quickly, and the use experience of a user is improved.
In some possible implementations, after the power management service module sends the backlight instruction to the display driver, the method further includes: the power management service module receives a first message from the display driver indicating that the backlight of the display screen has been turned off.
In some possible implementations, the preset condition may be: when the display screen is in a bright screen state, the operation of pressing the power key by the user is received. For example, if the user presses the power key of the mobile phone while the mobile phone is in the bright screen state, the mobile phone is triggered to turn off the screen. In this case, the display screen of the mobile phone is switched from the bright screen state to the off screen state, at this time, all pixels of the display screen are darkened and turned off, and then the off screen pattern is displayed again, and after a first preset period (for example, 5 seconds), the display screen does not display the off screen pattern any more, and all pixels are darkened and turned off.
In other possible implementations, the screen-off triggering condition may be: when the display screen is in a bright screen state, the duration of the continuous non-receiving user operation is greater than or equal to the second preset duration. Illustratively, the second preset duration may be a system preset duration, for example 15 seconds; the duration of the setting may also be user-defined, for example 1 minute.
For example, when the mobile phone is in the bright screen state, the timer counts the period of time when the user input is not received, and if the counted period of time exceeds a preset second preset period of time (for example, 1 minute), the mobile phone automatically triggers to turn off the screen.
Through this application scheme, start AOD's in-process after triggering to put out the screen and saved the display screen and power on the flow down, consequently start AOD consuming time reduce by a wide margin, consequently after triggering to put out the screen, start to put out the screen and show and become more quick, promoted user's use experience.
In some possible implementations, the AOD launch instructions include a power-on instruction and an AOD display instruction.
The power management service module sends an AOD start instruction to the display driver to cause the display driver to control the display screen to display the quench screen pattern based on the AOD start instruction, comprising:
the power management service module sends the power-on instruction and the AOD display instruction to the display driver respectively, so that the display driver responds to the power-on instruction and returns a message that the IC of the display screen is in a power-on state, and then the display driver responds to the AOD display instruction and controls the display screen to display the screen quenching pattern.
In some possible implementations, the AOD launch instruction is triggered by the AOD application, transmitted through the power management service module, the surface drawing surfeflinger service module, and the hardware synthesis HWC module, to the display driver.
In some possible implementations, after the power-on instruction is transmitted to the HWC module, the HWC module sends the power-on instruction to the display driver; in the event that the HWC module receives a message that the IC of the display screen is already in a powered-on state, the HWC module sends an AOD display instruction to the display driver.
In some possible implementations, the backlight instructions are triggered by the power management service module, transmitted through the surfeflinger service module and the HWC module, and reach the display driver.
It should be noted that the above power management service module, AOD application, display driver, surfaceFlinger service module, and HWC are software function modules in the electronic device.
Through this application scheme, start AOD consuming time reduces by a wide margin, consequently after triggering to put out the screen, start to put out the screen and show and become more quick, promoted user's use experience.
In a second aspect, the present application provides a display control apparatus comprising means for performing the method of the first aspect described above. The apparatus may correspond to performing the method described in the first aspect, and the relevant descriptions of the units in the apparatus are referred to the description of the first aspect, which is omitted herein for brevity.
The method described in the first aspect may be implemented by hardware, or may be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules or units corresponding to the functions described above. Such as a processing module or unit, a display module or unit, etc.
In a third aspect, the present application provides an electronic device comprising a display screen, a processor and computer programs or instructions stored in a memory, the processor being for executing the computer programs or instructions such that the method of the first aspect is performed.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program (which may also be referred to as instructions or code) for implementing the method in the first aspect. For example, the computer program, when executed by a computer, causes the computer to perform the method of the first aspect.
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 the memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
In a sixth aspect, the present application provides a system-on-chip comprising a processor. The processor is configured to read and execute a computer program stored in the memory to perform the method of the first aspect and any possible implementation thereof. Optionally, the chip system further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
In a seventh aspect, the present application provides a computer program product comprising a computer program (which may also be referred to as instructions or code) which, when executed by an electronic device, causes the electronic device to carry out the method of the first aspect.
It will be appreciated that the advantages of the second to seventh aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
Fig. 1A to fig. 1C are schematic application scenarios of a display control method according to an embodiment of the present application;
fig. 2A and fig. 2B are schematic diagrams of two scenarios to which the display control method provided in the embodiments of the present application is applied;
fig. 3A and fig. 3B are schematic diagrams comparing a display control method provided in an embodiment of the present application with a related art;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 5 is a schematic software architecture of an electronic device according to an embodiment of the present application;
FIG. 6 is a flow chart of a display control method provided by the related art;
FIG. 7 is a timing diagram of a display control method according to the related art;
FIG. 8 is a schematic diagram of a display control method according to the related art;
fig. 9 is a schematic flow chart of a display control method according to an embodiment of the present application;
FIG. 10 is a timing chart of a display control method according to an embodiment of the present disclosure;
fig. 11A and 11B are schematic diagrams illustrating time-consuming situations of the display control method according to the embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art without the inventive effort, are intended to be within the scope of the present application based on the embodiments herein.
The term "and/or" herein is an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. The symbol "/" herein indicates a relationship in which the associated object is "or", e.g., a/B indicates a or B.
The terms "first" and "second" and the like in the description and in the claims are used for distinguishing between different objects and not for describing a particular sequential order of objects. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality of" means two or more, for example, a plurality of processing units means two or more processing units and the like; the plurality of elements means two or more elements and the like.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
With rapid development of electronic technology, electronic devices such as smart phones and tablet computers have more and more functions, and have become an indispensable tool in life and work of people. Taking a mobile phone as an example, a user can frequently lighten a mobile phone screen to view information such as time, notification and the like. In order to facilitate users to view basic information such as time and the like and save the electric quantity of the electronic equipment, an off screen display (AOD) function of the electronic equipment is generated.
The implementation principle of the AOD function is as follows: after the electronic equipment is turned off, part of pixel points of the screen can be lightened to display information such as clock, date, electric quantity and message reminding, and other pixel points of the screen are always in a closed state, for example, the pixel points in the closed state are black, so that a user can conveniently look up the information on the premise of not lightening the whole screen of the electronic equipment, and the power consumption of the electronic equipment can be reduced. The electronic device typically turns on the off-screen display function by default.
The electronic device may support three ways of triggering AODs:
mode 1: and when the screen is turned off in a timeout mode or the screen is turned off by pressing a power key, the AOD can be triggered.
As shown in fig. 1A, when the electronic device changes from bright screen to off screen, the AOD is automatically triggered, that is, a part of pixels of the screen are lit, and an off-screen pattern is displayed, for example, the off-screen pattern includes information such as a clock, a date, a notification, etc., so that a user can conveniently look at the common information, and the power consumption of the electronic device can be reduced. Then, after the off-screen pattern is displayed for a period of time (e.g., 5 seconds), the off-screen pattern will automatically disappear.
Mode 2: tapping the screen in the off-screen state may trigger the AOD.
As shown in fig. 1B, when the electronic device is in the off-screen state, if the user lightly touches or clicks the screen, the AOD is triggered, that is, a local area of the screen is lightened, and an off-screen pattern is displayed. Then, after a period of time (e.g., 5 seconds) is displayed, the screen-off pattern automatically disappears. This manner of tapping the screen while off the screen triggers the AOD may be referred to as a "tapping mode".
Mode 3: and the electronic equipment is moved slightly in the screen-off state, so that the AOD can be triggered.
As shown in fig. 1C, when the electronic device is in the off-screen state, if the user shakes or moves the electronic device slightly, the AOD is triggered, that is, a local area of the screen is lightened, and an off-screen pattern is displayed. Then, after a period of time (e.g., 5 seconds) is displayed, the screen-off pattern automatically disappears.
At present, for the condition that the electronic equipment in the mode 1 is changed from bright screen to off screen, the time for entering the off screen display after the off screen is turned off is long, and the problem of overlong off screen display delay exists. It should be noted that, the embodiment of the present application is mainly directed to research and improvement on the problem of excessively long display delay of the screen quenching in the above manner 1.
It has been found that the reasons for the long time required for entering the off-screen display in the current AOD procedure mainly include: the hardware requirement based on the screen IC chip specification needs to take about 300ms, and the software needs to take about 300ms when processing the AOD flow, so that the whole flow takes about 600ms at the minimum, the screen-off display time is long, and the user is given a feeling of slow screen-off display.
In order to solve the problem of slow screen-off display, the embodiment of the application provides a display control method, and under the condition that the screen-off triggering condition is met, a power management service module only sends a backlight instruction to a display driver and cancels sending of a power-down instruction to the display driver; therefore, the display drive turns off the backlight of the display screen, but does not execute the power-down process, so that the display screen is not triggered to be powered down, and the time consumed by power down is saved. And under the condition that the screen-off triggering condition is met, the power management service module directly triggers the AOD application to start, and after the AOD application issues an AOD starting instruction, the display screen is in a power-on state, so that the display screen does not need to be powered on, and the power-on time is saved. Through this application scheme, start AOD flow after triggering to put out the screen fast to save the display screen and power down and power up flow, consequently start AOD consuming time and reduce by a wide margin, promoted user's use experience.
According to the method and the device, the mobile phone software system is improved, so that the time consumed for starting the AOD process after the screen is turned off is shortened, and the user experience is improved. The optimization scheme for the screen-off display performance described in the embodiment of the application can support all current products, is suitable for all domestic and overseas versions, and has universality and universality.
In this application, the integrated circuit (integrated circuit, IC) of the display remains powered on. That is, in the case that the off-screen triggering condition is satisfied, the power management service module cancels the transmission of the power-down instruction to the display driver, so that the display driver does not execute the power-down flow, the IC of the display screen does not need to be powered down, and the power-down time is saved. And after the AOD application issues the AOD starting instruction, the IC of the display screen is in a power-on state, so that the IC of the display screen does not need to be powered on, and the power-on time is saved. Thus significantly reducing the time required to initiate AOD.
In the related art, after a user presses a power key or does not operate after overtime, a display screen is turned off from a backlight after the screen is triggered to be turned off, and then an IC of the display screen is powered down; and then triggering and starting an AOD flow: the display screen is powered on firstly, then the display screen displays the screen extinguishing pattern, and the AOD process is completed. The display screen is powered down to generate more time consumption, and the display screen is powered up after being powered down to generate more time consumption. Therefore, the related art has more time consumption for starting the AOD flow after the screen is extinguished, so that the problem of slow realization of the AOD after the screen is extinguished is caused.
On the one hand, compared with the related art, the improvement of the scheme of the application is that: under the condition that the screen quenching triggering condition is met, the power management service module directly pulls up the AOD service to trigger the AOD application to be started, so that the AOD process can be started quickly, the time required for starting the AOD after the screen quenching is triggered is reduced to a certain extent, and the user experience is improved.
On the other hand, compared with the related art, the improvement of the scheme of the application is that: the time consumed by powering down and powering up the display screen is omitted in the process of starting the AOD after the screen is triggered to be extinguished, so that the time required for starting the AOD after the screen is triggered to be extinguished can be greatly reduced, and the use experience of a user is improved.
For example, the scheme omits power-down of the display screen and power-up of the display screen, so that power consumption of the display screen is omitted for about 120ms, and power consumption of the display screen is omitted for about 120ms. The time required to start the AOD after the screen has been extinguished is thus greatly reduced.
In this embodiment, triggering the screen to be turned off in the screen-on state may include the following two possible implementation scenarios:
scene one, trigger and put out the screen through pressing the power key:
as shown in fig. 2A, if the user presses the power key of the mobile phone while the mobile phone is in the bright screen state, the mobile phone is triggered to turn off the screen. In this case, the display screen of the mobile phone is switched from the bright screen state to the off screen state, at this time, all pixels of the display screen are darkened and turned off, and then the off screen pattern is displayed again, and after a certain period of time (for example, 5 seconds), the off screen pattern automatically disappears, and all pixels are darkened and turned off.
Scene two, triggering to turn off the screen due to timeout not operating:
as shown in fig. 2B, when the mobile phone is in a bright screen state and the mobile phone has not received user input (the mobile phone is not operated after timeout), the mobile phone is triggered to automatically turn off the screen. For example, when the mobile phone is in a bright screen state, the timer counts the period of time when no user input is received, and if the counted period of time exceeds the sleep period (for example, 1 minute) preset by the system or the user, the mobile phone automatically triggers to turn off the screen. In this case, the display screen of the mobile phone will be automatically switched from the bright screen state to the off screen state, at this time, all pixels of the display screen are darkened and turned off, and then the off screen pattern will be displayed again, and after a certain period of time (for example, 5 seconds), the off screen pattern automatically disappears, and all pixels are darkened and turned off.
It should be noted that both application scenarios may be applicable to the display control method provided in the embodiment of the present application. That is, in a scene where the screen is turned off by pressing the power key in the bright screen state, the display control method provided by the embodiment of the present application may be executed; or in a scene that the screen is turned off due to no operation in a timeout in the screen-on state, the display control method provided by the embodiment of the application may also be executed. The display control method provided by the embodiment of the application can solve the problem of long time consumption for entering the screen quenching display in a scene of triggering screen quenching due to no operation of overtime or triggering screen quenching by pressing a power key.
For convenience of explanation, in the following embodiments, a scenario in which a screen is turned off by pressing a power key will be taken as an example, and an implementation manner of the display control method will be exemplarily described. For the implementation manner adopted in the scene of triggering the screen to be turned off due to the fact that the timeout is not operated, details will not be repeated, and specific reference may be made to the detailed description of the implementation manner adopted in the scene of triggering the screen to be turned off by pressing the power key.
For a better understanding of the embodiments of the present application, the embodiments of the present application are briefly described below in comparison to the related art with reference to fig. 3A and 3B:
fig. 3A shows a related art AOD flow. As shown in fig. 3A, for a screen-off triggering event, firstly the IC of the display screen is powered down, then the display screen is turned off, and then the AOD flow is entered: firstly, the IC of the display screen is electrified, and then the IC of the display screen can control the display screen to display a screen-extinguishing pattern, so that screen-extinguishing display is realized.
Specifically, when the power management service module of the electronic device monitors a screen-off triggering event, the power management service module issues a backlight instruction and a power-off instruction to a lower layer (display driver), wherein the backlight instruction is used for controlling a backlight parameter of a display screen to be set to 0, namely, for controlling the backlight of the display screen to be turned off, and the power-off instruction is used for controlling the display screen (particularly, an Integrated Circuit (IC) of the display screen) to be powered off.
Next, if the power management service module receives a message that the lower layer (display driver) reports that the backlight 0 is set up and a message that the display screen is powered down, the power management service module notifies the status flag module to change the display screen status to the powered down status (e.g., to be marked OFF).
Then, the AOD application monitors that the display screen is powered down, and triggers to start an AOD event, namely enters an AOD flow. Then, the display screen (specifically, the IC of the display screen) needs to be powered on firstly, then the display screen (specifically, the IC of the display screen) receives an AOD display instruction issued by the AOD application, and the IC of the display screen responds to the AOD display instruction to control the display screen to display the screen quenching pattern, so that the AOD process is completed.
Fig. 3B shows the AOD flow of the present application. As shown in fig. 3B, for the off-screen triggering event, the AOD service is directly activated or pulled up, and the power management service module (abbreviated as PMS module) does not perform the power-down operation, and directly sets the display state to AOD, so that the AOD process can be quickly entered without going on the power-down process.
The difference from the prior art is that, in the scheme of the present application, after the power management service module monitors the off-screen triggering event, the following two operations are executed:
First, the power management service module only issues backlight instructions to the display driver, but does not issue power-down instructions.
Second, the power management service module immediately sends a message to the AOD application indicating that the AOD service is pulled to activate the AOD service, thereby quickly entering the AOD flow.
In actual implementation, the power management service module may issue a backlight instruction to the display driver first, and then pull up the AOD application to quickly enter the AOD flow.
Compared with the related art, the scheme has the following beneficial effects:
and after the power management service module monitors the screen-off triggering event, the AOD service is directly activated or pulled up, the AOD process is quickly started, and the power-on and power-off process is not executed. Wherein, the "do not execute the power up and down flow" is embodied as: because the power management service module does not issue a power-down instruction, the IC of the display screen does not walk through a power-down flow, and power-down time is saved. Accordingly, after entering the AOD flow, the IC of the display screen is in a power-on state, so that the power-on flow is not needed, and the power-on time is saved.
Through the scheme, after the screen is triggered to be extinguished, the AOD service is directly activated or pulled up, the AOD process is rapidly started, the IC power-down operation flow, the power-up operation flow and the like of the display drive control display screen are omitted, that is, the IC power-up and power-down operation flow of the display screen is omitted in the process of starting the AOD process after the screen is triggered, so that the time consumption for starting the AOD is greatly reduced, and the user experience is improved.
The off-screen triggering event may be an event that a POWER key (POWER key) is pressed when the screen is on, or an event that the timeout is not operated when the screen is on.
It should be noted that, the electronic device described in the present application is an electronic device having a display screen and a screen-off display function, for example, the electronic device may be an intelligent terminal such as a mobile phone, a tablet computer, and a smart watch, and specific technologies and specific device forms adopted by the electronic device are not limited herein. For convenience of description, the following embodiments are all exemplified by an electronic device as a mobile phone.
Referring to fig. 4, a schematic structural diagram of an electronic device according to an embodiment of the present application is provided. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge 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, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor modules 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a touch sensor 180K, an ambient light sensor 180L, and the like.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. For example, the processor 110 is configured to perform the display control method in the embodiment of the present application.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
External memory 120 is generally referred to as external memory, which in the present embodiment refers to storage other than memory of an electronic device and a cache of a processor, which is generally non-volatile memory.
Internal memory 121, which may also be referred to as "memory," may be used to store computer-executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ an organic light-emitting diode (OLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The touch sensor 180K, also referred to as a "touch panel", or Touch Panel (TP) sensor. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 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 change display information.
The keys 190 include a power key for triggering the lighting up or extinguishing of the display. For example, when the display screen is in the bright screen state, if the user presses the power key, the display screen state changes from the bright screen state to the off screen state.
The above is a specific description of the embodiment of the present application taking the electronic device 100 as an example. It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. The electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
In addition, an operating system is run on the components. Such as the iOS operating system developed by apple corporation, the Android open source operating system developed by google corporation, the Windows operating system developed by microsoft corporation, etc. An operating application may be installed on the operating system.
The operating system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment, taking an Android (Android) system with a hierarchical architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 5 is a software configuration block diagram of the electronic device 100 of the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the android system is divided into five layers, from top to bottom, respectively, an application layer (applications), an application framework layer (application framework), a system Native library (called Native layer), a hardware abstraction layer (hardware abstraction layer, HAL), and a kernel layer (kernel). For ease of illustration, the hardware layers that interact with the software architecture described above are also embodied in FIG. 5.
It should be noted that the android system is an operating system based on Linux, and is mainly used for portable devices. Development of upper layer (e.g., application layer and application framework layer) applications in android systems is typically done on a Java basis. Since some of the underlying tasks are not easy to implement in Java, when tasks in terms of local services, link libraries, or hardware drivers are involved, it is often necessary to allow the C program to be implemented while the C program runs on the Native library of the system. The Native library of the system includes an interface for Java to call C++ code.
The application layer may include a series of application packages. For example, the application layer may include an AOD application, as well as other applications, to which embodiments of the present application are not limited in any way.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. By way of example, the application framework layer may include a power management service (power manager service, PMS) module, a status flag module, and the like, to which embodiments of the present application are not limited in any way.
The power management service module can be used for managing power-on and power-off of the display screen.
The state marking module can be used for marking the power-on/power-off state of the display screen according to the indication of the power management service module.
For example, after the display is powered ON, the power management service module instructs the status marking module to mark the display status as ON. After the display screen is powered down, the power management service module instructs the status marking module to mark the display screen status as OFF.
The Native layer may include a plurality of functional modules. For example, in the present application scenario, the Native layer includes a surface drawing (surfeflinger) service module. The SurfaceFinger service module is used for receiving graphic display data of multiple sources, synthesizing the graphic display data and then sending the graphic display data to a display device. The image display can be specifically achieved cooperatively by a plurality of classes such as SurfaceFlinger, HWC, a display screen, and the like.
The HAL layer may include a hardware composition module (HWC) having the function or capability to complete image data combining and displaying with hardware, providing hardware support for the SurfaceFlinger service.
The kernel layer is a layer between hardware and software. The kernel layer includes display drivers. The display driver may control display functions of the display screen, such as a quench screen display function, in conjunction with a display driver integrated circuit or chip (display driver integrated circuit, DDIC). The display driver may also be used to set backlight parameters of the display screen; when the backlight parameter of the display screen is set to 0, the display screen is switched to a screen-off state; when the backlight parameter of the display screen is set to any value in the range of [1, 255], the display screen is switched to a bright screen state.
The hardware layer may comprise a display screen (e.g. OLED or LCD) which is correspondingly provided with DDICs, also referred to as ICs of the display screen. The hardware layer also comprises a power key, and the display screen can be triggered to be changed from a bright screen to a dead screen by pressing the power key.
Although the Android system is taken as an example for explanation, the basic principle of the embodiment of the present application is equally applicable to electronic devices based on iOS, windows, and other operating systems.
The execution body of the display control method provided in the embodiment of the present application may be the above electronic device, or may be a functional module and/or a functional entity capable of implementing the display control method in the electronic device, and the solution of the present application may be implemented by means of hardware and/or software, and may specifically be determined according to actual use requirements, which is not limited in this application embodiment. The display control method provided in the embodiment of the present application is described below by taking an electronic device as an example with reference to the accompanying drawings.
In order to highlight the improvement points of the embodiments of the present application relative to the related art, the following compares and describes the improvement points with the aspects of the related art, such as the AOD procedure started after the screen is turned off, the timing diagram, and the time consuming situation. The AOD flow, the timing chart and the time consuming situation in the related art are described with reference to fig. 6 to 8, and then the display control method provided in the embodiments of the present application is described with reference to fig. 9 to 11B. An exemplary scenario in which pressing the power key triggers a screen-off will be described here.
In the embodiment of the application, the screen quenching process can relate to a backlight instruction and a power-down instruction. The backlight instruction is used for controlling the backlight plate of the display screen to be turned off. The backlight instruction includes a backlight parameter 0. The power-down instruction is used for controlling the power-down of the display screen, in particular to controlling the power-down of an IC of the display screen. Thus, "display powering down" effectively refers to "IC powering down of the display".
In the embodiment of the application, the AOD procedure may involve a power-on instruction and an AOD display instruction. The AOD display instruction is used for controlling the display screen to display the screen quenching pattern. The power-on instruction is used for controlling the power-on of the display screen, in particular to controlling the power-on of an IC of the display screen. Thus, "display powering up" effectively refers to "IC powering up of the display".
It can be understood that when the IC of the display screen is in a power-on state, a diagram can be sent to the display screen to provide display content; and the IC of the display screen can respond to the AOD display instruction to control the display screen to display the screen quenching pattern.
Fig. 6 is a schematic diagram of a software architecture for starting an AOD procedure after a screen is turned off in the related art. Wherein, the start of the AOD process after triggering the screen extinction can be divided into two stages: the first stage: triggering screen quenching and completing the screen quenching process, and a second stage: triggering the AOD and completing the flow of the AOD. The flow of triggering the screen quenching and completing the screen quenching is shown in the direction indicated by the arrow of the dotted line, and the flow of triggering the AOD and completing the AOD is shown in the direction indicated by the arrow of the solid line.
The first stage: triggering screen quenching and completing screen quenching process:
when the electronic device is in the bright screen state, if the user presses the power key of the electronic device, the power management service module of the electronic device receives a message that the user presses the power key of the electronic device.
It should be noted here that, for convenience of explanation, it is schematically shown here that a message that a user presses a power key of an electronic device is directly transmitted from the power key to a power management service module; in actual implementation, a message that a user presses a power key of an electronic device may be transmitted through a plurality of modules in a software architecture to reach a power management service module, which may be specifically determined according to actual use requirements, and the embodiment of the present application is not limited.
The power management service module issues a screen-off control instruction, wherein the screen-off control instruction comprises a backlight instruction and a power-off instruction, and the screen-off control instruction is used for controlling the backlight of the display screen to be closed and controlling the IC of the display screen to be powered off. The screen-quenching control instruction sequentially passes through a SurfaceFlinger service module and a HWC in a software architecture, then reaches a display driver, and the display driver responds to the screen-quenching control instruction to issue a backlight instruction (comprising a backlight parameter 0) and a power-down instruction to the display screen so as to drive the display screen to turn off backlight and power down. And responding to the backlight instruction and the power-off instruction, and turning off the backlight and powering off the display screen to finish screen extinction.
After the display screen is finished extinguishing, the display drive returns a message of 'finishing extinguishing' to the upper layer. The message of 'completing screen-off' is transmitted through HWC and SurfaceFlinger service module in software architecture in turn, and then reaches power management service module.
The power management service module instructs the state marking module to mark the state of the display screen as OFF after receiving the message of 'completing screen OFF'. OFF indicates that the display screen has been powered down.
And a second stage: triggering the AOD and completing the flow of the AOD:
the AOD application can monitor the mark content of the state mark module continuously, and when the AOD application monitors that the mark content is OFF, the AOD application knows that the display screen is powered down and meets the AOD trigger condition, so that the AOD process is triggered and started.
The AOD application issues an AOD start instruction, which includes a power-on instruction and an AOD display instruction. The AOD starting instruction is transmitted through a power management service module and a SurfaceFlinger service module in the software architecture in sequence and then reaches the HWC. The HWC firstly transmits a power-on instruction to the display driver, and correspondingly, the display driver responds to the power-on instruction to drive the IC of the display screen to power on. The HWC then issues an AOD display instruction to the display driver. The display driver sends the AOD display instruction to the IC of the display screen. And responding to the AOD display instruction, acquiring the screen-quenching pattern by the IC of the display screen, and controlling the display screen to display the screen-quenching pattern to finish screen-quenching display.
As can be seen from fig. 6, in the process of starting the AOD procedure after the screen is turned off, according to the related art, the display screen needs to be powered down first, and after the display screen is powered down, the AOD is triggered to be started. Because the display screen is powered down, the display screen needs to be triggered to be powered up first in the AOD implementation process, and then the display screen is triggered to display the screen-extinguishing pattern, so that screen-extinguishing display is completed. The display screen is powered down to generate more time consumption, and the display screen is powered up to generate more time consumption.
Fig. 7 shows a timing diagram of the related art of starting the AOD procedure after the screen is turned off by triggering on the basis of fig. 6. Referring to fig. 7, the method includes steps S101 to S118 described below.
S101, the AOD application monitors the marking content of the state marking module to acquire the power-on/power-off state change of the display screen.
The AOD application monitors whether the mark content of the state mark module is turned OFF in real time, and the OFF represents that the display screen is powered down. When the AOD application monitors that the marked content of the status marking module is turned OFF, the AOD application starts an AOD flow. When the marked content of the AOD application non-snoop status marking module becomes OFF, the AOD application does not respond.
S102, when the display screen is on, the power key is pressed by a user to operate the power key.
Wherein, the event that the power key is pressed when the display screen is on can be called a screen off triggering event. It will be appreciated that the off-screen triggering event satisfies the off-screen triggering condition.
And S103, reporting a screen-off triggering event to the power management service module by the power key.
And S104, after the power management service module monitors the screen-off triggering event, issuing a screen-off control instruction, wherein the screen-off control instruction sequentially passes through the surface eFlinger service module and the HWC and reaches the display driver. The display driving sends a screen-off control instruction to the display screen so as to drive the display screen to turn off the backlight and turn off electricity.
The power management service module can issue a screen-off control instruction according to the screen-off trigger event to enter a screen-off process. The screen-off control instruction comprises a backlight instruction and a power-on instruction.
S105, responding to the backlight instruction, and turning off the backlight of the display screen.
The backlight instruction is used for controlling the backlight parameter of the display screen to be set to 0. When the backlight parameter of the display screen is set to 0, the backlight of the display screen is turned off.
S106, responding to the power-down instruction, and controlling the IC of the display screen to power down.
The power-down instruction is used for controlling the IC of the display screen to power down.
When the display driver is actually realized, the display driver sends a backlight instruction and a power-down instruction to an IC of the display screen, then the IC of the display screen controls the display screen to close the backlight according to the backlight instruction, and controls the IC of the display screen to power down according to the power-down instruction, so that screen extinction is completed.
S107, the display driver returns a message of 'completing screen quenching' to the upper layer, and the message of 'completing screen quenching' is transmitted through the HWC and the surface eFlinger service module in sequence and reaches the power management service module.
S108, the power management service module informs the state marking module to mark the display screen state as OFF.
S109, the state marking module marks the display screen state as OFF according to the instruction. OFF indicates that the display screen has been powered down.
S110, the state marking module sends a message that the state of the display screen is changed to OFF to the AOD application, and the AOD application monitors that the state of the display screen is changed to OFF.
When the AOD application monitors that the state of the display screen is changed to OFF, the AOD application knows that the display screen is powered down, and meets the AOD triggering condition, so that the AOD process is triggered and started.
S111, the AOD application issues an AOD starting instruction to the power management service module. The AOD starting instruction is transmitted through the power management service module and the SurfaceFlinger service module in sequence and reaches the HWC.
And S112, the HWC responds to the AOD starting instruction, and sends a power-on instruction to the display driver, wherein the power-on instruction is used for controlling the IC of the display screen to be powered on.
S113, the display driver sends a power-on instruction to the display screen, and an IC for driving the display screen is powered on.
And S114, powering on the display screen in response to the power-on instruction.
In actual implementation, the display driver issues a power-on instruction to the display driver integrated chip, and then the display driver integrated chip controls the IC of the display screen to be powered on according to the power-on instruction.
S115, the display driver returns a completion message to the HWC.
S116, the HWC, after receiving the completion message, sends an AOD display instruction to the display driver.
S117, the display driver sends an AOD display instruction to the IC of the display screen to drive the display screen to display the screen extinguishing pattern.
S118, responding to the AOD display instruction, and controlling the display screen to display the screen quenching pattern by the IC of the display screen.
And responding to the AOD display instruction, acquiring the screen-off image by the IC of the display screen, and then controlling the display screen to display the screen-off image to finish the AOD flow.
As can be seen from fig. 7, in the process of starting the AOD procedure after the screen is turned off, according to the related art, the display screen needs to be powered down first, and after the display screen is powered down, the AOD is triggered. Because the display screen is powered down, the display screen is required to be powered on in the AOD implementation process, and then the screen extinguishing pattern can be displayed, so that screen extinguishing display is completed.
The above description is given by fig. 6 and fig. 7, respectively, of the related art of starting the AOD process after the screen is turned off, and the time-consuming situation of the related art AOD process is analyzed with reference to fig. 8.
As shown in fig. 8, in the related art, after a user presses a power key or does not operate over time, and turns off a screen, a display screen turns off a backlight, and then an IC of the display screen is powered down; and then triggering and starting an AOD flow: the display screen is powered on firstly, then the display screen displays the screen extinguishing pattern, and the AOD process is completed. The display screen is powered down to generate more time consumption, and the display screen is powered up after being powered down to generate more time consumption. Therefore, the related art has more time consumption for starting the AOD flow after the screen is extinguished, so that the problem of slow realization of the AOD after the screen is extinguished is caused.
Aiming at the problem of long time consumption in the related art that the AOD process is started after the screen is triggered to be extinguished, the embodiment of the application is improved in process, the IC of the display screen is controlled not to be powered down after the screen is triggered to be extinguished, the IC power-down process and power-up process of the display screen are omitted, the time consumption is greatly reduced, therefore, the AOD can be realized rapidly, and the user experience is improved.
Fig. 9 shows a schematic diagram of a software architecture for starting an AOD procedure after a screen is turned off according to an embodiment of the present application. The process of starting the AOD after triggering the screen to be turned off can be divided into two phases: the first stage: triggering screen quenching and completing the screen quenching process, and a second stage: and (5) rapidly pulling up the AOD service and completing the flow of the AOD.
The first stage: triggering screen quenching and completing screen quenching process:
when the electronic device is in the bright screen state, if the user presses the power key of the electronic device, the power management service module of the electronic device receives a message that the user presses the power key of the electronic device.
Unlike the related art flow shown in fig. 6, in the embodiment of the present application, after the power management service module receives a message that the user presses the power key of the electronic device, the power management service module performs the following actions:
referring to the direction indicated by the thin solid arrow in fig. 9, the power management service module issues a screen-off control command. The off-screen control instructions include a backlight instruction, but do not include a power-down instruction, the backlight instruction being for instructing turning off of the backlight of the display screen, the power-down instruction being for instructing powering down the IC of the display screen. As shown in fig. 9, the backlight command sequentially passes through the SurfaceFlinger service module, HWC and display driver in the software architecture, and then reaches the IC of the display screen; the IC of the display screen turns off the backlight of the display screen based on the backlight instruction.
It should be noted that, unlike the related art flow shown in fig. 6, in the present application, as shown by "x" in fig. 9, the power management service module does not issue a power-down instruction, so that the IC of the display screen does not power down, which can reduce the time consumption by about 120ms.
And a second stage: and (3) fast pulling up the AOD service and completing the AOD process:
unlike the related art flow shown in fig. 6, in the embodiment of the present application, after the power management service module receives the message that the user presses the power key of the electronic device, the power management service module performs another action at the same time: referring to the direction indicated by the thick solid arrow in fig. 9, the power management service module reports an AOD trigger event to the AOD application, rapidly pulls up the AOD service, starts the AOD application, and enters the AOD flow.
On the one hand, compared with the prior art that the AOD process is started after the display screen is turned off and the IC of the display screen is powered down, the AOD process can be started quickly.
On the other hand, compared with the AOD application in the related art determining that the AOD trigger condition is met by monitoring the marking content of the status marking module to be OFF, the AOD application in the embodiment of the application does not need to monitor the marking content of the status marking module. In the scheme, when the AOD application receives the AOD trigger event reported by the power management service module, the AOD application can directly pull up the AOD service and enter an AOD flow.
Specifically, the AOD application issues an AOD launch instruction to the lower layer, the AOD launch instruction including a power-on instruction and an AOD display instruction. The AOD starting instruction sequentially passes through a power management service module and a surface eFlinger service module in a software architecture and then reaches the HWC, the HWC firstly transmits a power-on instruction to the display driver, and the display driver does not need to power on an IC (integrated circuit) for driving the display screen because the display screen is not powered down, and the display driver directly returns an OK response message. After the HWC receives the OK response message returned by the display driver, the HWC sends an AOD display instruction to the display driver, which then sends the AOD display instruction to the IC of the display screen. And responding to the AOD display instruction, acquiring the screen-quenching pattern by the IC of the display screen and controlling the display screen to display the screen-quenching pattern.
It should be noted that, the scheme of the present application improves the screen quenching process and the AOD process, and the following two possible implementation manners are given:
mode 1: in the screen-off process, the IC of the display screen is not powered down by not issuing a power-down instruction to the display screen; then, according to the conventional AOD procedure, the AOD application issues power-on instructions and AOD display instructions to the display screen. When the display driver receives the power-on instruction, the display driver determines that the display screen is in the power-on state, so that the display driver does not need to send the power-on instruction to the display screen, and correspondingly, the display screen does not receive the power-on instruction, and therefore, the IC of the display screen is kept in the power-on state.
Mode 2: in the screen-off process, the IC of the display screen is not powered down by not issuing a power-down instruction to the display screen; then, in the improved AOD flow, the AOD application only issues an AOD display instruction to the display screen, but does not issue a power-on instruction to the display screen, and accordingly the display screen does not receive the power-on instruction, so that the IC of the display screen is kept in a power-on state.
The above-mentioned modes 1 and 2 can achieve the effect that the display screen is not powered down or powered up. Fig. 9 and 10 are exemplary illustrations of embodiment 1, and embodiment 2 may be employed in actual implementation. Specifically, the method can be set according to actual use requirements, and the embodiment of the application is not limited.
In the embodiment of the application, since the display screen is not powered down in practice, the display screen responds to the AOD display instruction issued by the upper layer of the software architecture, the power-on process is not required to be executed, and the display screen can directly display the screen-off pattern to finish screen-off display. In the AOD implementation flow provided by the embodiment of the application, the power-down of the display screen and the power-up of the display screen are omitted, so that the time consumed by the power-down and the power-up of the IC of the display screen can be reduced, and the time required for starting the AOD after the screen is triggered is greatly reduced.
For example, the time required for the hardware requirement based on the screen chip specification in the related art is about 300ms, which mainly refers to the time required for powering down the display screen and powering up the display screen, and the scheme of the present application omits to power down the display screen and power up the display screen, so that about 300ms can be omitted. Compared with the time consumption required by the AOD flow in the related art, the method and the device can save about 300ms, so that the time required for starting the AOD after triggering the screen quenching is greatly reduced.
Fig. 10 shows a timing diagram of the initiation of the AOD procedure after the screen is extinguished in the embodiment of the present application on the basis of fig. 9. Referring to fig. 10, the method includes steps S201 to S202, S203A to S206A, and S203B to S210B described below.
S201, when the display screen is on, the power key is pressed by a user to operate the power key.
S202, the power key reports a screen-off triggering event to the power management service module.
In one aspect, when the power management service module receives a screen-off trigger event, the power management service module issues a backlight instruction to a lower layer and enters a screen-off process.
On the other hand, when the power management service module receives the screen-off trigger event, the power management service module reports the AOD trigger event to the AOD application, and can directly pull up the AOD service to enter an AOD flow.
It should be noted that, compared with the related art timing chart shown in fig. 7, the timing chart of the embodiment of the present application shown in fig. 10 is mainly different in S203A-S206A (off-screen flow) and S203B-S210B (AOD flow) shown by the dashed line boxes in fig. 10.
The screen-off flow is described in connection with S203A-S206A.
S203A, the power management service module issues a screen-off control instruction (only including a backlight instruction), and the screen-off control instruction sequentially passes through the SurfaceFlinger service module and the HWC and then reaches the display driver.
Compared with the related art, the screen-off control instruction does not comprise a power-on instruction.
S204A-S205A, the display driver sends a backlight instruction to the IC of the display screen. In response to the backlight instruction, the IC control of the display screen turns off the backlight of the display screen.
In actual implementation, in the case where the display turns off the backlight, the display may return a response message to the display driver to feedback to the display driver that the display has turned off the backlight.
In actual implementation, the backlight parameters may be stored by a backlight register. For example, the backlight instruction may carry a backlight parameter of 0, at which time a 0 may be written in the backlight register, the backlight parameter of 0 representing turning off the backlight of the display. Thus, in response to a backlight instruction, the IC of the display screen may read backlight parameter 0 from the backlight register, and control the backlight of the display to be turned off according to the backlight parameter 0.
Compared with the related art, the embodiment of the application does not send the power-down instruction, and the IC of the display screen does not power down. As shown by "x" in fig. 10, only a backlight command is issued, but no power-down command is issued in the screen-off process, so that the IC of the display screen is not powered down, and as shown by the bold box in fig. 10, the purpose of reducing time consumption can be achieved because the IC of the display screen is omitted to power down.
S206A, the display driver returns a message of 'completing screen quenching' to the upper layer, and the message of 'completing screen quenching' sequentially passes through the HWC, surfaceFlinger service module and finally reaches the power management service module.
The AOD procedure is described first below in connection with S203B-S210B.
S203B, the power management service module reports the AOD trigger event to the AOD application.
S204B, the AOD application pulls up the AOD service after receiving the AOD trigger event.
S205B, the AOD application issues an AOD start instruction. The AOD starting instruction is transmitted through the power management service module and the SurfaceFlinger service module in sequence, and finally reaches the HWC. The AOD starting instruction comprises a power-on instruction and an AOD display instruction.
S206B, the HWC sends a power-on instruction to the display driver.
S207B, the display driver returns an OK message to the HWC to notify the IC of the display screen to be in the power-on state.
Since the IC of the previous display screen is not powered down, the display screen does not need to be powered up any more, and the display driver can directly return an OK message to the HWC.
Compared with the related art, in the embodiment of the application, the display screen is not powered down, so that power-on is not needed in the AOD process. As shown by the bold box in fig. 10, the display screen is not powered on, thereby achieving the goal of reducing time consumption.
S208B, in response to the OK message, the HWC then sends an AOD display instruction to the display driver.
S209B, the display driver sends the AOD display instruction to the IC of the display screen.
S210B, responding to the AOD display instruction, and controlling the IC of the display screen to display the screen quenching pattern.
In the related technical scheme, under the condition that the screen-off triggering condition is met, an IC of a display screen normally turns off the backlight of the display screen, and controls the IC of the display screen to be powered down to finish screen-off. And triggering and starting the AOD, and according to the conventional AOD flow execution rule, firstly controlling the IC of the display screen to be electrified, and then controlling the display screen to display the screen extinguishing pattern by the IC of the display screen.
Compared with the related art, under the condition that the screen quenching triggering condition is met, the embodiment of the application can quickly enter the AOD flow, the IC power-down and power-up flow of the display screen are omitted, and the time required for starting the AOD after the screen quenching is triggered is greatly reduced.
The above description is made by fig. 9 and fig. 10, respectively, of the AOD procedure and the timing chart started after the screen is turned off in the embodiment of the present application, and the time-consuming situation of starting the AOD procedure after the screen is turned off provided in the embodiment of the present application is analyzed in comparison with fig. 11A and fig. 11B.
As shown in fig. 11A, in the related art, after a user presses a power key or does not operate over time, and turns off a screen, the display screen turns off a backlight, and then an IC of the display screen is powered down; and then triggering and starting an AOD flow: the IC of the display screen is powered on firstly, then the display drive control display screen displays the screen quenching pattern acquired from the IC of the display screen, and the AOD process is completed. The display screen is powered down to generate more time consumption, and the display screen is powered up after being powered down to generate more time consumption.
As shown in fig. 11B, in the case that the user presses the power key or does not operate after timeout and turns off the display screen, the display screen turns off the backlight, but the IC of the display screen is not powered down through the embodiment of the present application. Because the IC of the display screen is not powered down, the time consumed by powering down the display screen can be saved. And then triggering and starting an AOD flow: the display screen displays the screen quenching pattern, and the AOD process is completed, so that the time consumption caused by the power on of the display screen can be saved as the power on is not needed. Therefore, the method and the device for starting the AOD flow after the screen is extinguished can greatly reduce the time required for starting the AOD after the screen is extinguished is triggered, and improve the user experience.
According to the display control method provided by the embodiment of the application, under the condition that the screen-off triggering condition is met, the power management service module only sends a backlight instruction to the display driver and cancels sending of a power-down instruction to the display driver; therefore, the display driver turns off the backlight of the display screen, but does not execute the power-down process, so that the IC of the display screen is not triggered to be powered down, and the time consumption of power-down is saved. And under the condition that the screen-off triggering condition is met, the power management service module directly triggers the AOD application to start, and after the AOD application issues an AOD starting instruction, the IC of the display screen is in a power-on state, so that the IC of the display screen does not need to be powered on, and the power-on time is saved. Through this application scheme, start AOD flow after triggering to put out the screen fast to save the display screen IC and power down and power up flow, consequently start AOD consuming time and reduce by a wide margin, promoted user's use experience.
Compared with the related art, the improvement of the scheme is that: under the condition that the screen quenching triggering condition is met, the power management service module directly pulls up the AOD service to trigger the AOD application to be started, so that the AOD process can be started quickly, the time required for starting the AOD after the screen quenching is triggered is reduced to a certain extent, and the user experience is improved. On the other hand, compared with the related art, the improvement of the scheme of the application is that: the time consumed by powering down and powering up the display screen is omitted in the process of starting the AOD after the screen is triggered to be extinguished, so that the time required for starting the AOD after the screen is triggered to be extinguished can be greatly reduced, and the use experience of a user is improved.
The scheme omits the power-down of the display screen and the power-up of the display screen, so that the power consumption of the display screen is omitted by about 120ms, and the power consumption of the display screen is omitted by about 120ms. The scheme of the application greatly reduces the time required for starting the AOD after triggering the screen to be extinguished.
According to the method and the device, the mobile phone software system is improved, so that the time consumed for starting the AOD process after the screen is turned off is shortened, and the user experience is improved. The optimization scheme for the screen-off display performance described in the embodiment of the application can support all current products, is suitable for all domestic and overseas versions, and has universality and universality.
In this embodiment, the "greater than" may be replaced with "greater than or equal to" and "less than or equal to" may be replaced with "less than" or "greater than or equal to" may be replaced with "greater than" and "less than" may be replaced with "less than or equal to".
The various embodiments described herein may be separate solutions or may be combined according to inherent logic, which fall within the scope of the present application.
The present application also provides a chip coupled to a memory for reading and executing a computer program or instructions stored in the memory to perform the methods of the embodiments described above.
The present application also provides an electronic device comprising a chip for reading and executing a computer program or instructions stored in a memory, such that the methods in the embodiments are performed.
The present embodiment also provides a computer-readable storage medium having stored therein computer instructions that, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the display control method in the above-described embodiments.
The present embodiment also provides a computer program product, the computer readable storage medium storing a program code, which when run on a computer causes the computer to perform the above-described related steps to implement the display control method in the above-described embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component, or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the display control method in each method embodiment.
The electronic device, the computer readable storage medium, the computer program product or the chip provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A display control method, characterized by being applied to an electronic device including a display screen, the method comprising:
under the condition that a preset condition is met, the power management service module sends a backlight instruction to a display driver, so that the display driver turns off backlight of the display screen based on the backlight instruction;
the power management service module triggers the screen-off display AOD application to start;
the power management service module receives an AOD starting instruction from the AOD application;
the power management service module sends the AOD start instruction to the display driver, so that the display driver controls the display screen to display a screen-off pattern based on the AOD start instruction.
2. The method of claim 1, wherein after the power management service module sends an AOD start instruction to the display driver, the method further comprises:
And under the condition that a first preset duration is met, the power management service module sends a power-down instruction to the display driver, so that the display driver controls the integrated circuit IC of the display screen to be powered down based on the power-down instruction.
3. The method of claim 2, wherein the IC of the display remains powered on after the predetermined condition is met and before the first predetermined period of time is met.
4. A method according to any one of claims 1 to 3, wherein after the power management service module sends a backlight instruction to the display driver, the method further comprises:
the power management service module receives a first message from the display driver, the first message indicating that the backlight of the display screen has been turned off.
5. The method according to any one of claims 1 to 4, wherein the preset conditions are: when the display screen is in a bright screen state, receiving an operation of pressing a power key by a user; or when the display screen is in a bright screen state, the duration of the continuous operation of the user is longer than or equal to a second preset duration.
6. The method of any one of claims 1 to 5, wherein the AOD start instruction includes a power-up instruction and an AOD display instruction;
the power management service module sends an AOD start instruction to the display driver to cause the display driver to control the display screen to display a screen quenching pattern based on the AOD start instruction, comprising:
the power management service module sends the power-on instruction and the AOD display instruction to the display driver respectively, so that the display driver responds to the power-on instruction and returns a message that the IC of the display screen is in a power-on state, and then the display driver responds to the AOD display instruction and controls the display screen to display the screen-off pattern.
7. The method of claim 6, wherein the AOD start instruction is triggered by the AOD application to pass through the power management service module, surface drawing surfefliger service module, and hardware synthesis HWC module to the display driver.
8. The method of claim 7, wherein the power-up instruction is sent by the HWC module to the display driver after being transmitted to the HWC module; and when the HWC module receives a message that the IC of the display screen is in a power-on state, the HWC module sends the AOD display instruction to the display driver.
9. The method of claim 7 or 8, wherein the backlight command is triggered by the power management service module, transmitted through the SurfaceFlinger service module and the HWC module, to the display driver.
10. An electronic device comprising a display screen, a processor, a memory, and a computer program stored on the memory, the processor being configured to execute the computer program to cause the electronic device to implement the method of any one of claims 1 to 9.
11. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when run on an electronic device, causes the electronic device to perform the method of any one of claims 1 to 9.
CN202310859332.4A 2023-07-12 2023-07-12 Display control method, electronic device and storage medium Pending CN117711310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310859332.4A CN117711310A (en) 2023-07-12 2023-07-12 Display control method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310859332.4A CN117711310A (en) 2023-07-12 2023-07-12 Display control method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117711310A true CN117711310A (en) 2024-03-15

Family

ID=90143052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310859332.4A Pending CN117711310A (en) 2023-07-12 2023-07-12 Display control method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117711310A (en)

Similar Documents

Publication Publication Date Title
CN107748686B (en) Application program starting optimization method and device, storage medium and intelligent terminal
US11069323B2 (en) Apparatus and method for driving display based on frequency operation cycle set differently according to frequency
CN108292491B (en) Display device and control method thereof
CN111831099B (en) Electronic device
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN112987986B (en) Method, device, storage medium and electronic equipment for realizing game application
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
US20230367634A1 (en) Method for Controlling Time-Limited Use of Application, and Electronic Device
CN110187752A (en) A kind of application operating method, apparatus and terminal device
CN113220176B (en) Display method and device based on widget, electronic equipment and readable storage medium
US20230152956A1 (en) Wallpaper display control method and apparatus and electronic device
CN109002250A (en) A kind of touch operation method, device, mobile terminal and storage medium
CN111258659A (en) Screen-off control method and device and storage medium
CN112764611B (en) Application program control method and device and electronic equipment
CN117711310A (en) Display control method, electronic device and storage medium
CN111381996A (en) Memory exception handling method and device
TWI597659B (en) Electronics and module for updating content to be shown before turning up display and method thereof
CN114500732B (en) Interface display method, electronic equipment and storage medium
CN102044201A (en) Constant-brightness display device and method for screen of mobile device
CN117707319A (en) Method for controlling screen-off display, electronic equipment and storage medium
CN117707320A (en) Method for controlling screen-off display, electronic equipment and storage medium
CN113806000A (en) Display method and device and electronic equipment
CN116775200B (en) AOD display method and electronic equipment
WO2023130927A1 (en) Always on display control method, electronic device, and storage medium
US11798516B2 (en) Method and device for adjusting display brightness, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination