CN110209428B - Terminal screen awakening method and device, terminal and storage medium - Google Patents

Terminal screen awakening method and device, terminal and storage medium Download PDF

Info

Publication number
CN110209428B
CN110209428B CN201811629833.9A CN201811629833A CN110209428B CN 110209428 B CN110209428 B CN 110209428B CN 201811629833 A CN201811629833 A CN 201811629833A CN 110209428 B CN110209428 B CN 110209428B
Authority
CN
China
Prior art keywords
display
wake
screen
state
display module
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.)
Active
Application number
CN201811629833.9A
Other languages
Chinese (zh)
Other versions
CN110209428A (en
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.)
Shenzhen Taihengnuo Technology Co ltd
Original Assignee
Shenzhen Taihengnuo Technology 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 Shenzhen Taihengnuo Technology Co ltd filed Critical Shenzhen Taihengnuo Technology Co ltd
Priority to CN201811629833.9A priority Critical patent/CN110209428B/en
Publication of CN110209428A publication Critical patent/CN110209428A/en
Application granted granted Critical
Publication of CN110209428B publication Critical patent/CN110209428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a terminal screen awakening method, a device, a terminal and a storage medium, wherein the method is applied to the terminal, the terminal comprises a display module and a display interface, and the method comprises the following steps: when the terminal screen is in a screen-off state, receiving a wake-up signal, calling a display interface in a wake-up process according to the wake-up signal, and sending an exit instruction for exiting a sleep mode to a display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation for waking up a display passage according to the exit instruction so as to switch the display passage from the sleep state to a working state; and when the display module is detected to receive the preset image data and the display passage is detected to be in a working state, switching the terminal screen from a screen-off state to a screen-on state. The application is beneficial to shortening the wake-up time of the terminal screen and enhancing the user experience.

Description

Terminal screen awakening method and device, terminal and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a terminal screen wake-up method, device, terminal, and storage medium.
Background
As the lives of terminals and humans become more and more intimate, the terminal market today has become the consumer market, and the performance and experience of terminals has also become the subject of major consumer concern. The wake-up speed after the screen of the terminal is turned off is also slow, and the wake-up speed becomes a standard for the consumers to evaluate the performance and experience of the terminal. Therefore, how to shorten the wake-up time of the screen as much as possible when the terminal screen is in the off-screen state becomes a problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a terminal screen awakening method, a terminal screen awakening device, a terminal and a storage medium, which can shorten the awakening time of a terminal screen.
In a first aspect, an embodiment of the present invention provides a terminal screen wake-up method, where the method is applied to a terminal, the terminal includes a display module and a display interface, and the method includes:
when the terminal screen is in a screen-off state, receiving a wake-up signal, wherein the wake-up signal is used for indicating the terminal screen to be switched from the screen-off state to the screen-on state;
according to the wake-up signal, a wake-up process for waking up a display channel corresponding to the display module is operated, and the display interface is called in the wake-up process to send an exit instruction for exiting a sleep mode to the display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation for waking up the display channel according to the exit instruction so as to enable the display channel to be switched from a sleep state to a working state;
When the exit instruction is sent, a display process is started, and preset image data is sent to the display module in the display process; wherein the wake-up process and the display process independently run in parallel;
and when the display module is detected to receive the preset image data and the display passage is detected to be in a working state, switching the terminal screen from a screen-off state to a screen-on state.
In an embodiment, before the operation wakes up the wake-up process of the display module corresponding to the display channel, the display interface may be controlled to switch from the sleep state to the working state according to the wake-up signal, and the display module is controlled to be powered on; the specific implementation mode of calling the display interface to send the exit instruction for exiting the sleep mode to the display module in the wake-up process is as follows: and calling a display interface in the working state in the awakening process to send an exit instruction for exiting the sleep mode to the powered-on display module, wherein the exit instruction is used for indicating the powered-on display module to execute awakening operation for awakening the display access according to the exit instruction so as to enable the display access to be switched from the sleep state to the working state.
In one embodiment, when the display interface in the working state is called in the wake-up process to send an exit instruction for exiting the sleep mode to the powered-on display module, the system time T0 for sending the exit instruction is acquired; the specific implementation mode of sending the preset image data to the display module in the display process is as follows: and acquiring a time difference between the starting completion time T1 of the display process and the T0 in the display process, if the time difference is greater than or equal to a first preset effective time of the exit instruction, calling the display interface in a working state to send a display instruction to the powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, responding to the display instruction to send preset image data to the powered-on display module.
In an embodiment, before the calling the display interface in the working state sends a display instruction to the powered-on display module, if the time difference is smaller than a first preset effective time of the exit instruction, a target difference value between the first preset effective time and the time difference may be calculated; and triggering and executing the step of calling the display interface in the working state to send a display instruction to the powered-on display module after delaying the target difference value.
In one embodiment, the method is applied to a linux system, where the linux system includes a kernel space, and the specific implementation manner of starting the display process is as follows: acquiring a first callback function corresponding to a preset first event and a second callback function corresponding to a second event from a kernel notification linked list included in the kernel space; starting a display process for executing the first event and the second event according to the first callback function and the second callback function; the first event comprises the step of acquiring the starting completion time T1 of a display process; the second event comprises obtaining a time difference between the T1 and a system time T0 for sending the exit instruction, when the time difference is greater than or equal to a first preset effective time of the exit instruction, calling the display interface in a working state to send a display instruction to the powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, responding to the display instruction to send preset image data to the powered-on display module; and when the time difference is smaller than a first preset effective time of the exit instruction, calculating a target difference value between the first preset effective time and the time difference, calling the display interface in a working state to send a display instruction to the powered-on display module after delaying the target difference value, and responding to the display instruction to send preset image data to the powered-on display module after delaying a second preset effective time corresponding to the display instruction.
In one embodiment, the specific implementation manner of switching the terminal screen from the off-screen state to the on-screen state is as follows: and detecting whether the current electric quantity of the terminal is smaller than a preset electric quantity threshold value, if so, switching the screen of the terminal from a screen-off state to a screen-on state, and adjusting the display brightness of the screen of the terminal to the preset brightness.
In one embodiment, the wake-up signal comprises at least one of: fingerprint verification signals, key signals and preset trigger signals input for the terminal screen.
In a second aspect, an embodiment of the present invention provides a terminal screen wake-up device, where the terminal screen wake-up device includes a module for executing the method of the first aspect.
In a third aspect, an embodiment of the present invention provides a terminal, where the terminal includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is configured to store a computer program supporting the terminal to perform the method described above, and the computer program includes program instructions, and the processor is configured to invoke the program instructions to perform the method of the first aspect described above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
In the application, the terminal can receive the wake-up signal when the terminal screen is in the screen-off state. On the one hand, the terminal can operate a wake-up process of a display channel corresponding to the wake-up display module according to the wake-up signal, and call a display interface in the wake-up process to send an exit instruction for exiting the sleep mode to the display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation of waking up the display channel according to the exit instruction so as to switch the display channel from the sleep state to the working state; on the other hand, the terminal may start a display process when sending the exit instruction, and send preset image data to the display module in the display process. Further, the terminal can switch the terminal screen from the screen-off state to the screen-on state when the display module is detected to receive the preset image data and the display passage is detected to be in the working state. The application is beneficial to shortening the wake-up time of the terminal screen and enhancing the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a terminal screen wake-up method provided by an embodiment of the invention;
fig. 2 is a flowchart of another terminal screen wake-up method according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a terminal screen wake-up device according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For the terminal device, there may be two cases that may put the terminal device in an off-screen state. A standby state of terminal equipment; in order to save electricity, the other display screen of the terminal is turned off after reaching a preset time, namely, the display screen is turned off. In contrast, the bright screen state of the terminal device refers to a state when the light of the display screen of the terminal is turned on, and generally, after receiving a trigger signal input by a user, the terminal device can be switched from the off-screen state to the bright screen state.
The terminal device may be a smart Phone (such as an Android Phone, an iOS Phone, a Windows Phone, etc.), a tablet computer, a mobile internet device (Mobile Internet Device, MID), or other terminals with User Interfaces (UIs).
Referring to fig. 1, fig. 1 is a flowchart of a terminal screen wake-up method provided by an embodiment of the present invention, where the method may be executed by a terminal, the terminal includes a display module and a display interface, and as shown in the drawing, the terminal screen wake-up method may include:
101: and when the terminal screen is in the off-screen state, receiving a wake-up signal, wherein the wake-up signal is used for indicating the terminal screen to be switched from the off-screen state to the on-screen state.
Wherein the wake-up signal comprises at least one of: fingerprint verification signals, key signals and preset trigger signals input for a terminal screen. For example, when receiving a verification passing signal sent by the fingerprint sensor, or when pressing a power key and a volume key, the terminal acquires a screen wake-up instruction to instruct the terminal to switch from a screen off state to a screen on state. The preset trigger signal may be a single click, a double click, a preset sliding track, or the like. The present embodiment is not limited to the form of a preset trigger signal, and the trigger signal may also be a sound signal, a vibration signal, or the like.
102: and according to the wake-up signal, running a wake-up process of the wake-up display module corresponding to the display channel, and calling the display interface in the wake-up process to send an exit instruction for exiting the sleep mode to the display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation of waking up the display channel according to the exit instruction so as to switch the display channel from the sleep state to the working state.
The display Module in the application can be an LCD display Module (LCM), which refers to a Module that assembles together a liquid crystal display device, a connector, a peripheral circuit for controlling and driving, a PCB, a backlight source, a structural member, and the like. The display interface may be a display serial interface (Display Serial Interface Specification, DSI) or other display interfaces, such as an RGB interface, a low voltage differential signaling technology interface (Low Voltage Differential Signaling, LVDS), etc.
In one embodiment, when the terminal screen is in the off-screen state, the display interface in the terminal device is in the dormant state, and the display module is also in the power-off state. Under the condition, after the terminal receives the wake-up signal, the display interface in the dormant state can be controlled to be switched from the dormant state to the working state, and the display module is controlled to be electrified. Further, the terminal may run a wake-up process for waking up the display channel corresponding to the display module, and call the display interface in a working state in the wake-up process to send an exit instruction for exiting the sleep mode to the powered-on display module, where the exit instruction is used to instruct the powered-on display module to execute a wake-up operation for waking up the display channel according to the exit instruction, so that the display channel is switched from the sleep state to the working state. I.e. resume the display path re-work during the wake-up process.
The display module can work normally only when the display module needs to meet the time sequence requirement, so that when the terminal calls the display interface in a working state to send an exit instruction for exiting the sleep mode to the powered-on display module, the exit instruction can be effective only by delaying the time sequence time corresponding to the display module. The exit instruction needs to delay the time sequence time corresponding to the display module, namely the first preset effective time in the application.
The first predetermined effective time is related to a timing requirement of the display module, for example, 120ms.
103: and when the exit instruction is sent, starting a display process, and sending preset image data to the display module in the display process.
In one embodiment, the terminal may call the display interface in the working state in the wake-up process to send an exit instruction for exiting the sleep mode to the powered-on display module, and acquire the system time T0 for sending the exit instruction. Further, when the above exit instruction is sent, the terminal may start the display process, and record the start completion time T1 of the display process when the start of the display process is completed. Further, after the display process is started, the terminal may obtain a time difference between the start completion time T1 of the display process and the time T0 in the display process, and if the time difference is greater than or equal to a first preset effective time of the exit instruction, it may indicate that the exit instruction in step 102 is already effective, then the display interface in a working state may be invoked to send a display instruction to the powered-on display module, and after a second preset effective time corresponding to the delay display instruction, the terminal may respond to the display instruction to send preset image data to the powered-on display module.
The second preset effective time is effective time of the display instruction, and the effective time is preset by a developer according to display work requirements of the display module. For example 60ms.
In one embodiment, before the terminal invokes the display interface in the working state to send the display instruction to the powered-on display module, if the time difference is smaller than the first preset effective time of the exit instruction, it may indicate that the exit instruction in step 102 is not effective yet, and at this time, after the display interface in the working state is invoked to send the display instruction to the powered-on display module, the display module cannot work normally. Therefore, in this case, the terminal may calculate the target difference value between the first preset effective time and the time difference, and trigger to execute the step of calling the display interface in the working state to send a display instruction to the powered-on display module after delaying the target difference value.
Wherein the wake-up process and the display process independently run in parallel. As can be seen from the above description, the display module is required to operate normally in time sequence. The exit instruction corresponds to a first preset effective time, and the display instruction corresponds to a second preset effective time. In the wake-up flow of the terminal screen, after the terminal calls the display interface in the working state to send an exit instruction for exiting the sleep mode to the powered-on display module, the exit instruction can be validated after a first preset validation time is required to be delayed, that is, after the first preset validation time is delayed, the powered-on display module can execute the wake-up operation for waking up the display channel according to the exit instruction, so that the display channel is switched from the sleep state to the working state. It can be seen that, the terminal invokes the display interface in the working state to send an exit instruction for exiting the sleep mode to the powered-on display module, and a certain time is required to elapse until the display path is switched from the sleep state to the working state (hereinafter referred to as a process of resuming the display path). According to the application, in the process of recovering the display path, a display process is independently parallel, and the preset image data is sent to the display module in the display process, so that the wake-up time of the terminal screen can be effectively reduced.
104: when the display module is detected to receive preset image data and the display passage is detected to be in a working state, the terminal screen is switched from a screen-off state to a screen-on state.
In one embodiment, the terminal can lighten the light of the terminal screen when detecting that the display module receives the preset image data and detecting that the display channel is in the working state, so as to further realize the switching of the terminal screen from the off-screen state to the on-screen state.
In the embodiment of the application, the terminal can receive the wake-up signal when the terminal screen is in the screen-off state. On the one hand, the terminal can operate a wake-up process of a display channel corresponding to the wake-up display module according to the wake-up signal, and call a display interface in the wake-up process to send an exit instruction for exiting the sleep mode to the display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation of waking up the display channel according to the exit instruction so as to switch the display channel from the sleep state to the working state; on the other hand, the terminal may start a display process when sending the exit instruction, and send preset image data to the display module in the display process. Further, the terminal can switch the terminal screen from the screen-off state to the screen-on state when the display module is detected to receive the preset image data and the display passage is detected to be in the working state. The application is beneficial to shortening the wake-up time of the terminal screen and enhancing the user experience.
Referring to fig. 2, fig. 2 is a flowchart of another terminal screen wake-up method provided by an embodiment of the present invention, where the method may be performed by a terminal, the terminal includes a display module and a display interface, the method is applied to a linux system, the linux system includes a kernel space, and as shown in the figure, the terminal screen wake-up method may include:
201: and when the terminal screen is in the off-screen state, receiving a wake-up signal, wherein the wake-up signal is used for indicating the terminal screen to be switched from the off-screen state to the on-screen state.
202: and according to the wake-up signal, running a wake-up process of the wake-up display module corresponding to the display channel, and calling the display interface in the wake-up process to send an exit instruction for exiting the sleep mode to the display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation of waking up the display channel according to the exit instruction so as to switch the display channel from the sleep state to the working state.
The specific implementation manner of steps 201 to 202 may be referred to the description of steps 101 to 102 in the above embodiment, and will not be repeated here.
203: when the exit instruction is sent, a first callback function corresponding to a preset first event and a second callback function corresponding to a second event are obtained from a kernel notification linked list included in a kernel space.
204: and starting a display process for executing the first event and the second event according to the first callback function and the second callback function, so that preset image data are sent to the display module in the display process.
The first event includes acquiring a start completion time T1 of a display process; the second event comprises obtaining a time difference between T1 and a system time T0 for sending the exit instruction, when the time difference is greater than or equal to a first preset effective time of the exit instruction, calling a display interface in a working state to send a display instruction to a powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, responding to the display instruction to send preset image data to the powered-on display module; the second event further comprises the steps of calculating a target difference value of the first preset effective time and the time difference when the time difference is smaller than the first preset effective time of the exit instruction, calling a display interface in a working state to send a display instruction to the powered-on display module after delaying the target difference value, and responding to the display instruction to send preset image data to the powered-on display module after delaying the second preset effective time corresponding to the display instruction.
In one embodiment, the kernel space stores a kernel notification linked list in advance, where the kernel notification linked list may be regarded as a kernel event processing function list, and the kernel event processing function list stores callback functions corresponding to each event. The terminal can acquire the callback function corresponding to any one or more events from the kernel notification linked list, and further, a new process is started through the callback function corresponding to any one or more events, and any one or more events are executed. In one embodiment, the kernel notification linked list stores a first callback function corresponding to the first event and a second callback function corresponding to the second event in advance. In this case, when the terminal sends the exit instruction, the first callback function and the second callback function may be acquired from the kernel notification linked list, so as to start a display process for executing the first event and the second event.
Further, after the display process for executing the first event and the second event is started, the terminal may obtain time T1 for completing the start of the display process in the display process, obtain a time difference between the time T1 and a system time T0 for sending the exit instruction, call the display interface in a working state to send a display instruction to the powered-on display module when the time difference is greater than or equal to a first preset effective time of the exit instruction, and send preset image data to the powered-on display module in response to the display instruction after delaying the second preset effective time corresponding to the display instruction.
Or when the time difference is smaller than the first preset effective time of the exit instruction, a target difference value between the first preset effective time and the time difference can be calculated, after delaying the target difference value, a display interface in a working state is called to send a display instruction to the powered-on display module, and after delaying the second preset effective time corresponding to the display instruction, preset image data is sent to the powered-on display module in response to the display instruction.
205: when the display module is detected to receive preset image data and the display passage is detected to be in a working state, the terminal screen is switched from a screen-off state to a screen-on state.
In one embodiment, when the terminal detects that the display module receives the preset image data and detects that the display channel is in a working state, whether the current electric quantity is smaller than a preset electric quantity threshold value or not can be further detected, if the current electric quantity is smaller than the preset electric quantity threshold value, the terminal screen is switched from a screen-off state to a screen-on state, and the display brightness of the terminal screen is adjusted to be the preset brightness. The preset brightness is darker than the normal display brightness of the terminal screen, and specific numerical values can be set by a developer in combination with actual requirements or experimental data. By adopting the mode, when the current electric quantity is low, the display brightness can be properly reduced by lighting the screen, the electric quantity consumption of the terminal can be reduced, and the standby time of the terminal is further prolonged.
In the embodiment of the application, when the terminal screen is in the screen-off state, the terminal can operate the awakening process of the display passage corresponding to the awakening display module according to the awakening signal, and call the display interface to send the exit instruction for exiting the sleep mode to the display module in the awakening process, wherein the exit instruction is used for indicating the display module to execute the awakening operation of the awakening display passage according to the exit instruction so as to switch the display passage from the sleep state to the working state. Further, when the exit instruction is sent, the terminal may obtain a first callback function corresponding to a preset first event and a second callback function corresponding to a second event from a kernel notification linked list included in the kernel space, and start a display process for executing the first event and the second event according to the first callback function and the second callback function, so that preset image data is sent to the display module in the display process, and when the display module is detected to receive the preset image data and the display channel is detected to be in a working state, the terminal screen is switched from a screen-off state to a screen-on state. The application is beneficial to shortening the wake-up time of the terminal screen and enhancing the user experience.
The embodiment of the invention also provides a terminal screen awakening device which is configured in the terminal, wherein the terminal comprises a display module and a display interface, and the device comprises a module for executing the method shown in the foregoing figure 1 or figure 2. Specifically, referring to fig. 3, a schematic block diagram of a terminal screen wake-up device according to an embodiment of the present invention is provided. The terminal screen awakening device of the embodiment comprises:
the receiving module 30 is configured to receive a wake-up signal when the terminal screen is in a screen-off state, where the wake-up signal is used to instruct the terminal screen to switch from the screen-off state to a screen-on state;
the processing module 31 is configured to operate a wake-up process for waking up a display path corresponding to the display module according to the wake-up signal, and invoke the display interface to send an exit instruction for exiting the sleep mode to the display module in the wake-up process, where the exit instruction is configured to instruct the display module to perform a wake-up operation for waking up the display path according to the exit instruction, so that the display path is switched from a sleep state to a working state;
the processing module 31 is further configured to start a display process when the exit instruction is sent, and send preset image data to the display module in the display process; wherein the wake-up process and the display process independently run in parallel;
The processing module 31 is further configured to switch the terminal screen from a screen off state to a screen on state when it is detected that the display module receives the preset image data and detects that the display path is in a working state.
In one embodiment, the processing module 31 is further configured to control the display interface to switch from the sleep state to the working state according to the wake-up signal, and control the display module to be powered on; in this case, the processing module 31 is specifically configured to invoke, in the wake-up process, the display interface in the working state to send an exit instruction for exiting the sleep mode to the powered-on display module, where the exit instruction is used to instruct the powered-on display module to execute a wake-up operation for waking up the display path according to the exit instruction, so that the display path is switched from the sleep state to the working state.
In one embodiment, the processing module 31 is further configured to, when invoking the display interface in the working state to send an exit instruction for exiting the sleep mode to the powered display module in the wake-up process, obtain a system time T0 for sending the exit instruction; in this case, the processing module 31 is specifically configured to obtain, in the display process, a time difference between a start completion time T1 of the display process and the time T0, and if the time difference is greater than or equal to a first preset effective time of the exit instruction, call the display interface in a working state to send a display instruction to the powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, send preset image data to the powered-on display module in response to the display instruction.
In one embodiment, the processing module 31 is further configured to calculate a target difference between the first preset validation time and the time difference if the time difference is less than the first preset validation time of the exit instruction; and after delaying the target difference value, calling the display interface in a working state to send a display instruction to the powered-on display module.
In one embodiment, the device is applied to a linux system, where the linux system includes a kernel space, and the processing module 31 is specifically configured to obtain a first callback function corresponding to a preset first event and a second callback function corresponding to a second event from a kernel notification linked list included in the kernel space; starting a display process for executing the first event and the second event according to the first callback function and the second callback function; the first event comprises the step of acquiring the starting completion time T1 of a display process; the second event comprises obtaining a time difference between the T1 and a system time T0 for sending the exit instruction, when the time difference is greater than or equal to a first preset effective time of the exit instruction, calling the display interface in a working state to send a display instruction to the powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, responding to the display instruction to send preset image data to the powered-on display module; and when the time difference is smaller than a first preset effective time of the exit instruction, calculating a target difference value between the first preset effective time and the time difference, calling the display interface in a working state to send a display instruction to the powered-on display module after delaying the target difference value, and responding to the display instruction to send preset image data to the powered-on display module after delaying a second preset effective time corresponding to the display instruction.
In one embodiment, the processing module 31 is further specifically configured to detect whether the current power of the terminal is less than a preset power threshold, if yes, switch the terminal screen from the off-screen state to the on-screen state, and adjust the display brightness of the terminal screen to the preset brightness.
In one embodiment, the wake-up signal comprises at least one of: fingerprint verification signals, key signals and preset trigger signals input for the terminal screen.
It should be noted that, the functions of each functional module of the terminal screen wake-up device described in the embodiments of the present invention may be specifically implemented according to the method in the method embodiment described in fig. 1 or fig. 2, and the specific implementation process may refer to the related description of the method embodiment in fig. 1 or fig. 2, which is not repeated herein.
Referring to fig. 4, fig. 4 is a schematic block diagram of a terminal according to an embodiment of the present invention. The terminal comprises a display module 40 and a display interface 41, and may further comprise a processor 43, a memory 44, an input device 45 and an output device 46. The processor 43, memory 44, input device 45 and output device 46 may be connected by a bus or other means, as illustrated in fig. 4 by way of example in an embodiment of the present invention. Wherein the input device 45 and the output device 46 are controlled by said processor for transceiving messages, the memory 44 for storing a computer program comprising program instructions, and the processor 43 for executing the program instructions stored in the memory 44. Wherein the processor 43 is configured to invoke execution of the program instructions: when the terminal screen is in the off-screen state, receiving a wake-up signal through the input device 45, wherein the wake-up signal is used for indicating that the terminal screen is switched from the off-screen state to the on-screen state; according to the wake-up signal, a wake-up process for waking up a display channel corresponding to the display module is operated, and the display interface is called in the wake-up process to send an exit instruction for exiting a sleep mode to the display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation for waking up the display channel according to the exit instruction so as to enable the display channel to be switched from a sleep state to a working state; when the exit instruction is sent, a display process is started, and preset image data is sent to the display module in the display process; wherein the wake-up process and the display process independently run in parallel; and when the display module is detected to receive the preset image data and the display passage is detected to be in a working state, switching the terminal screen from a screen-off state to a screen-on state.
In one embodiment, the processor 43 is further configured to control the display interface to switch from the sleep state to the working state according to the wake-up signal, and control the display module to be powered on; in this case, the processor 43 is specifically configured to invoke the display interface in the working state in the wake-up process to send an exit instruction for exiting the sleep mode to the powered-on display module, where the exit instruction is used to instruct the powered-on display module to execute a wake-up operation for waking up the display path according to the exit instruction, so that the display path is switched from the sleep state to the working state.
In one embodiment, the processor 43 is further configured to acquire a system time T0 for sending the exit instruction when the wake-up process invokes the display interface in the working state to send the exit instruction for exiting the sleep mode to the powered-on display module; in this case, the processor 43 is specifically configured to obtain, in the display process, a time difference between a start completion time T1 of the display process and the time T0, and if the time difference is greater than or equal to a first preset effective time of the exit instruction, invoke the display interface in a working state to send a display instruction to the powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, send preset image data to the powered-on display module in response to the display instruction.
In one embodiment, the processor 43 is further configured to calculate a target difference between the first preset effective time and the time difference if the time difference is less than the first preset effective time of the exit instruction; and after delaying the target difference value, calling the display interface in a working state to send a display instruction to the powered-on display module.
In one embodiment, the device is applied to a linux system, where the linux system includes a kernel space, and the processor 43 is specifically configured to obtain a first callback function corresponding to a preset first event and a second callback function corresponding to a second event from a kernel notification linked list included in the kernel space; starting a display process for executing the first event and the second event according to the first callback function and the second callback function; the first event comprises the step of acquiring the starting completion time T1 of a display process; the second event comprises obtaining a time difference between the T1 and a system time T0 for sending the exit instruction, when the time difference is greater than or equal to a first preset effective time of the exit instruction, calling the display interface in a working state to send a display instruction to the powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, responding to the display instruction to send preset image data to the powered-on display module; and when the time difference is smaller than a first preset effective time of the exit instruction, calculating a target difference value between the first preset effective time and the time difference, calling the display interface in a working state to send a display instruction to the powered-on display module after delaying the target difference value, and responding to the display instruction to send preset image data to the powered-on display module after delaying a second preset effective time corresponding to the display instruction.
In one embodiment, the processor 43 is further specifically configured to detect whether the current power of the terminal is less than a preset power threshold, if yes, switch the terminal screen from the off-screen state to the on-screen state, and adjust the display brightness of the terminal screen to the preset brightness.
In one embodiment, the wake-up signal comprises at least one of: fingerprint verification signals, key signals and preset trigger signals input for the terminal screen.
It should be appreciated that in embodiments of the present invention, the processor 43 may be a central processing unit (Central Processing Unit, CPU), the processor 43 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 44 may include read only memory and random access memory and provides instructions and data to the processor 43. A portion of memory 44 may also include non-volatile random access memory. For example, the memory 44 may also store information of the device type.
The input device 45 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user), a microphone, a physical keyboard, etc., and the output device 46 may include a display (LCD, etc.), a speaker, etc.
In a specific implementation, the display module 40, the display interface 41, the processor 43, the memory 44, the input device 45 and the output device 46 described in the embodiments of the present invention may execute the implementation described in the embodiment of the method provided in fig. 1 or fig. 2, or may execute the implementation of the terminal screen wake-up device described in the embodiment of the present invention, which is not described herein again.
In another embodiment of the present invention, there is provided a computer-readable storage medium storing a computer program comprising program instructions that when executed by a processor implement: when the terminal screen is in a screen-off state, receiving a wake-up signal, wherein the wake-up signal is used for indicating the terminal screen to be switched from the screen-off state to the screen-on state; according to the wake-up signal, a wake-up process for waking up a display channel corresponding to the display module is operated, and the display interface is called in the wake-up process to send an exit instruction for exiting a sleep mode to the display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation for waking up the display channel according to the exit instruction so as to enable the display channel to be switched from a sleep state to a working state; when the exit instruction is sent, a display process is started, and preset image data is sent to the display module in the display process; wherein the wake-up process and the display process independently run in parallel; and when the display module is detected to receive the preset image data and the display passage is detected to be in a working state, switching the terminal screen from a screen-off state to a screen-on state.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used to store the computer program and other programs and data required by the terminal. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The above disclosure is only a few examples of the present invention, and it is not intended to limit the scope of the present invention, but it is understood by those skilled in the art that all or a part of the above embodiments may be implemented and equivalents thereof may be modified according to the scope of the present invention.

Claims (9)

1. The terminal screen awakening method is applied to a terminal, and is characterized by comprising a display module and a display interface, and the method comprises the following steps:
when the terminal screen is in a screen-off state, receiving a wake-up signal, wherein the wake-up signal is used for indicating the terminal screen to be switched from the screen-off state to the screen-on state;
according to the wake-up signal, a wake-up process for waking up a display channel corresponding to the display module is operated, and the display interface is called in the wake-up process to send an exit instruction for exiting a sleep mode to the display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation for waking up the display channel according to the exit instruction so as to enable the display channel to be switched from a sleep state to a working state;
when the exit instruction is sent, a display process is started, and preset image data is sent to the display module in the display process; wherein the wake-up process and the display process independently run in parallel;
When the display module is detected to receive the preset image data and the display passage is detected to be in a working state, switching the terminal screen from a screen-off state to a screen-on state;
when a display interface in a working state is called in the awakening process to send an exit instruction for exiting from a sleep mode to a powered-on display module, acquiring the system time T0 for sending the exit instruction;
wherein, the sending the preset image data to the display module in the display process includes: and acquiring a time difference between the starting completion time T1 of the display process and the T0 in the display process, if the time difference is greater than or equal to a first preset effective time of the exit instruction, calling the display interface in a working state to send a display instruction to the powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, responding to the display instruction to send preset image data to the powered-on display module.
2. The method of claim 1, wherein before the executing the wake-up process for waking up the display module corresponding to the display path, the method further comprises:
According to the wake-up signal, the display interface is controlled to be switched from a dormant state to a working state, and the display module is controlled to be electrified;
the step of calling the display interface in the wake-up process to send an exit instruction for exiting the sleep mode to the display module comprises the following steps:
and calling a display interface in the working state in the awakening process to send an exit instruction for exiting the sleep mode to the powered-on display module, wherein the exit instruction is used for indicating the powered-on display module to execute awakening operation for awakening the display access according to the exit instruction so as to enable the display access to be switched from the sleep state to the working state.
3. The method of claim 1, wherein before the calling the display interface in the active state sends a display instruction to the powered-on display module, the method further comprises:
if the time difference is smaller than the first preset effective time of the exit instruction, calculating a target difference value between the first preset effective time and the time difference;
and triggering and executing the step of calling the display interface in the working state to send a display instruction to the powered-on display module after delaying the target difference value.
4. A method according to any of claims 1-3, characterized in that the method is applied to a linux system comprising a kernel space, the starting a display process comprising:
acquiring a first callback function corresponding to a preset first event and a second callback function corresponding to a second event from a kernel notification linked list included in the kernel space;
starting a display process for executing the first event and the second event according to the first callback function and the second callback function;
the first event comprises the step of acquiring the starting completion time T1 of a display process; the second event comprises obtaining a time difference between the T1 and a system time T0 for sending the exit instruction, when the time difference is greater than or equal to a first preset effective time of the exit instruction, calling the display interface in a working state to send a display instruction to the powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, responding to the display instruction to send preset image data to the powered-on display module; and when the time difference is smaller than a first preset effective time of the exit instruction, calculating a target difference value between the first preset effective time and the time difference, calling the display interface in a working state to send a display instruction to the powered-on display module after delaying the target difference value, and responding to the display instruction to send preset image data to the powered-on display module after delaying a second preset effective time corresponding to the display instruction.
5. The method of claim 1, wherein the switching the terminal screen from the off-screen state to the on-screen state comprises:
and detecting whether the current electric quantity of the terminal is smaller than a preset electric quantity threshold value, if so, switching the terminal screen from a screen-off state to a screen-on state, and adjusting the display brightness of the terminal screen to the preset brightness.
6. The method of claim 1, the wake-up signal comprising at least one of: fingerprint verification signals, key signals and preset trigger signals input for the terminal screen.
7. A terminal screen wake-up device, the device is configured at a terminal, the terminal comprises a display module and a display interface, the device comprises:
the receiving module is used for receiving a wake-up signal when the terminal screen is in a screen-off state, and the wake-up signal is used for indicating the terminal screen to be switched from the screen-off state to the screen-on state;
the processing module is used for running and waking up a wake-up process of a display channel corresponding to the display module according to the wake-up signal, calling the display interface in the wake-up process to send an exit instruction for exiting the sleep mode to the display module, wherein the exit instruction is used for instructing the display module to execute wake-up operation for waking up the display channel according to the exit instruction so as to enable the display channel to be switched from a sleep state to a working state;
The processing module is further used for starting a display process when the exit instruction is sent, and sending preset image data to the display module in the display process; wherein the wake-up process and the display process independently run in parallel;
the processing module is further used for switching the terminal screen from a screen-off state to a screen-on state when the display module is detected to receive the preset image data and the display passage is detected to be in a working state;
the processing module is further used for acquiring the system time T0 for sending the exit instruction when the display interface in the working state is called to send the exit instruction for exiting the sleep mode to the powered-on display module in the wake-up process;
and in the aspect of sending preset image data to the display module in the display process, the processing module is specifically configured to obtain a time difference between a start completion time T1 of the display process and the time T0 in the display process, and if the time difference is greater than or equal to a first preset effective time of the exit instruction, call the display interface in a working state to send a display instruction to the powered-on display module, and after delaying a second preset effective time corresponding to the display instruction, respond to the display instruction to send preset image data to the powered-on display module.
8. A terminal comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is adapted to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-6.
9. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-6.
CN201811629833.9A 2018-12-28 2018-12-28 Terminal screen awakening method and device, terminal and storage medium Active CN110209428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811629833.9A CN110209428B (en) 2018-12-28 2018-12-28 Terminal screen awakening method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811629833.9A CN110209428B (en) 2018-12-28 2018-12-28 Terminal screen awakening method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110209428A CN110209428A (en) 2019-09-06
CN110209428B true CN110209428B (en) 2023-08-29

Family

ID=67780059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811629833.9A Active CN110209428B (en) 2018-12-28 2018-12-28 Terminal screen awakening method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110209428B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110703628A (en) * 2019-11-25 2020-01-17 京东方科技集团股份有限公司 Intelligent household system and control method
CN112114883A (en) * 2020-09-11 2020-12-22 青岛海信移动通信技术股份有限公司 Terminal awakening method, terminal and computer storage medium
CN112835826A (en) * 2021-03-04 2021-05-25 深圳市广和通无线股份有限公司 Communication method, device, equipment and readable storage medium
WO2024033775A1 (en) * 2022-08-06 2024-02-15 Nanogrid Limited Systems and methods for low power state management
CN116185513B (en) * 2023-04-27 2023-07-18 北京大上科技有限公司 Screen locking system and method
CN117711310A (en) * 2023-07-12 2024-03-15 荣耀终端有限公司 Display control method, electronic device and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010063158A1 (en) * 2008-12-05 2010-06-10 Zhang Jinjing Mobile network terminal device and method for monitoring electrophysiological data and pathological image
CN102147701A (en) * 2010-02-04 2011-08-10 三星电子株式会社 Apparatus and method for displaying a lock screen of a terminal equipped with a touch screen
CN104252605A (en) * 2014-09-17 2014-12-31 南京信息工程大学 Method and system for file transparent encryption and decryption of Android platform
WO2016041190A1 (en) * 2014-09-19 2016-03-24 华为技术有限公司 Method and apparatus for running application program
EP3073362A1 (en) * 2015-03-24 2016-09-28 LG Electronics Inc. Mobile terminal and method of controlling the same
CN106886703A (en) * 2017-03-08 2017-06-23 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and mobile terminal
CN107025399A (en) * 2017-04-28 2017-08-08 广东欧珀移动通信有限公司 Solve lock control method and Related product
CN107066859A (en) * 2017-03-15 2017-08-18 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and device
CN107329661A (en) * 2017-07-11 2017-11-07 广东欧珀移动通信有限公司 Method for information display, device, storage medium and terminal
CN107426430A (en) * 2017-07-27 2017-12-01 深圳市泰衡诺科技有限公司 A kind of startup item for intelligent terminal starts method and starter
CN107454955A (en) * 2017-06-15 2017-12-08 深圳市汇顶科技股份有限公司 A kind of screen awakening method, device and terminal device
CN107885534A (en) * 2017-10-23 2018-04-06 深圳市金立通信设备有限公司 A kind of screen locking method, terminal and computer-readable medium
CN107967419A (en) * 2016-03-14 2018-04-27 广东欧珀移动通信有限公司 One kind solution lock control method and mobile terminal
CN108182085A (en) * 2017-12-27 2018-06-19 上海传英信息技术有限公司 Awakening method, device, terminal and the storage medium of terminal screen
CN108376086A (en) * 2018-02-05 2018-08-07 广东欧珀移动通信有限公司 Display control method and device, terminal, computer readable storage medium
WO2018166168A1 (en) * 2017-03-15 2018-09-20 广东欧珀移动通信有限公司 Screen backlight control method and mobile terminal

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010063158A1 (en) * 2008-12-05 2010-06-10 Zhang Jinjing Mobile network terminal device and method for monitoring electrophysiological data and pathological image
CN102147701A (en) * 2010-02-04 2011-08-10 三星电子株式会社 Apparatus and method for displaying a lock screen of a terminal equipped with a touch screen
CN104252605A (en) * 2014-09-17 2014-12-31 南京信息工程大学 Method and system for file transparent encryption and decryption of Android platform
WO2016041190A1 (en) * 2014-09-19 2016-03-24 华为技术有限公司 Method and apparatus for running application program
EP3073362A1 (en) * 2015-03-24 2016-09-28 LG Electronics Inc. Mobile terminal and method of controlling the same
CN107967419A (en) * 2016-03-14 2018-04-27 广东欧珀移动通信有限公司 One kind solution lock control method and mobile terminal
CN106886703A (en) * 2017-03-08 2017-06-23 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and mobile terminal
CN107066859A (en) * 2017-03-15 2017-08-18 广东欧珀移动通信有限公司 A kind of unlocked by fingerprint method and device
WO2018166168A1 (en) * 2017-03-15 2018-09-20 广东欧珀移动通信有限公司 Screen backlight control method and mobile terminal
CN107025399A (en) * 2017-04-28 2017-08-08 广东欧珀移动通信有限公司 Solve lock control method and Related product
CN107454955A (en) * 2017-06-15 2017-12-08 深圳市汇顶科技股份有限公司 A kind of screen awakening method, device and terminal device
CN107329661A (en) * 2017-07-11 2017-11-07 广东欧珀移动通信有限公司 Method for information display, device, storage medium and terminal
CN107426430A (en) * 2017-07-27 2017-12-01 深圳市泰衡诺科技有限公司 A kind of startup item for intelligent terminal starts method and starter
CN107885534A (en) * 2017-10-23 2018-04-06 深圳市金立通信设备有限公司 A kind of screen locking method, terminal and computer-readable medium
CN108182085A (en) * 2017-12-27 2018-06-19 上海传英信息技术有限公司 Awakening method, device, terminal and the storage medium of terminal screen
CN108376086A (en) * 2018-02-05 2018-08-07 广东欧珀移动通信有限公司 Display control method and device, terminal, computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苟超.ATM场所嵌入式智能视频监控系统设计.《中国优秀硕士学位论文全文数据库信息科技辑》.2014,(第11期),1-62. *

Also Published As

Publication number Publication date
CN110209428A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN110209428B (en) Terminal screen awakening method and device, terminal and storage medium
CN106662905B (en) Displaying content related to always-on display
CN107273130B (en) Method, device and terminal for accelerating interface drawing
WO2017129082A1 (en) Terminal control method and terminal
CN105573465B (en) Electronic device and method of controlling power of electronic device
US9921631B2 (en) Methods and apparatus for saving power
US9412320B2 (en) Method for adjusting display backlight with aid of ambient light brightness detection and time detection, and associated apparatus and associated computer program product
RU2651207C2 (en) Method and apparatus for processing application program package
US11847469B2 (en) Intelligent device and method for controlling boot screen of the intelligent device
US11151912B2 (en) Control method, controller, and liquid crystal panel drive device
US11086635B2 (en) Electronic device, method for controlling electronic device, and program
US20140189338A1 (en) Electronic device and method for detecting booting time period for electronic device
CN108182085B (en) Terminal screen awakening method and device, terminal and storage medium
JP5204323B1 (en) Electronic device, control method of electronic device, control program, and recording medium
US20120091823A1 (en) Mobile storage device and method for managing power consumption of the mobile storage device
CN106101406B (en) Shutdown alarm triggering processing method based on mobile terminal and mobile terminal
CN102044201B (en) Device and method for constant brightness display of mobile equipment screen
CN112579369A (en) Multithreading flashing system, method, device, equipment and storage medium
US20150123875A1 (en) Power management device and method
JP2013182217A (en) Electronic apparatus, control method for electronic apparatus, control program, and recording medium
US10168777B2 (en) Display control method and terminal device
KR20190045764A (en) Electronic device dispaying an image and operation method of thereof
CN105159708B (en) A kind of information processing method and electronic equipment
WO2016177219A1 (en) Method and apparatus for detecting power consumption abnormality
CN107577479B (en) Electronic device and semi-sleep control method thereof

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
GR01 Patent grant
GR01 Patent grant